{ "type": "File", "start": 0, "end": 21766, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 624, "column": 1 } }, "program": { "type": "Program", "start": 0, "end": 21766, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 624, "column": 1 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 59, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 59 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 9, "end": 28, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 28 } }, "imported": { "type": "Identifier", "start": 9, "end": 28, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 28 }, "identifierName": "makeOffscreenBuffer" }, "name": "makeOffscreenBuffer" }, "local": { "type": "Identifier", "start": 9, "end": 28, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 28 }, "identifierName": "makeOffscreenBuffer" }, "name": "makeOffscreenBuffer" } } ], "source": { "type": "StringLiteral", "start": 36, "end": 58, "loc": { "start": { "line": 1, "column": 36 }, "end": { "line": 1, "column": 58 } }, "extra": { "rawValue": "../core/buffer_utils", "raw": "\"../core/buffer_utils\"" }, "value": "../core/buffer_utils" } }, { "type": "ImportDeclaration", "start": 61, "end": 107, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 46 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 70, "end": 82, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 21 } }, "imported": { "type": "Identifier", "start": 70, "end": 82, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 21 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "local": { "type": "Identifier", "start": 70, "end": 82, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 21 }, "identifierName": "globalConfig" }, "name": "globalConfig" } } ], "source": { "type": "StringLiteral", "start": 90, "end": 106, "loc": { "start": { "line": 2, "column": 29 }, "end": { "line": 2, "column": 45 } }, "extra": { "rawValue": "../core/config", "raw": "\"../core/config\"" }, "value": "../core/config" } }, { "type": "ImportDeclaration", "start": 109, "end": 159, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 50 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 118, "end": 129, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 20 } }, "imported": { "type": "Identifier", "start": 118, "end": 129, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 20 }, "identifierName": "smoothenDpi" }, "name": "smoothenDpi" }, "local": { "type": "Identifier", "start": 118, "end": 129, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 20 }, "identifierName": "smoothenDpi" }, "name": "smoothenDpi" } } ], "source": { "type": "StringLiteral", "start": 137, "end": 158, "loc": { "start": { "line": 3, "column": 28 }, "end": { "line": 3, "column": 49 } }, "extra": { "rawValue": "../core/dpi_manager", "raw": "\"../core/dpi_manager\"" }, "value": "../core/dpi_manager" } }, { "type": "ImportDeclaration", "start": 161, "end": 218, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 57 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 170, "end": 184, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 23 } }, "imported": { "type": "Identifier", "start": 170, "end": 184, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 23 }, "identifierName": "DrawParameters" }, "name": "DrawParameters" }, "local": { "type": "Identifier", "start": 170, "end": 184, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 23 }, "identifierName": "DrawParameters" }, "name": "DrawParameters" } } ], "source": { "type": "StringLiteral", "start": 192, "end": 217, "loc": { "start": { "line": 4, "column": 31 }, "end": { "line": 4, "column": 56 } }, "extra": { "rawValue": "../core/draw_parameters", "raw": "\"../core/draw_parameters\"" }, "value": "../core/draw_parameters" } }, { "type": "ImportDeclaration", "start": 220, "end": 260, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 40 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 229, "end": 235, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 15 } }, "imported": { "type": "Identifier", "start": 229, "end": 235, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 15 }, "identifierName": "Vector" }, "name": "Vector" }, "local": { "type": "Identifier", "start": 229, "end": 235, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 15 }, "identifierName": "Vector" }, "name": "Vector" } } ], "source": { "type": "StringLiteral", "start": 243, "end": 259, "loc": { "start": { "line": 5, "column": 23 }, "end": { "line": 5, "column": 39 } }, "extra": { "rawValue": "../core/vector", "raw": "\"../core/vector\"" }, "value": "../core/vector" } }, { "type": "ImportDeclaration", "start": 262, "end": 337, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 75 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 271, "end": 294, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 32 } }, "imported": { "type": "Identifier", "start": 271, "end": 294, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 32 }, "identifierName": "BasicSerializableObject" }, "name": "BasicSerializableObject" }, "local": { "type": "Identifier", "start": 271, "end": 294, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 32 }, "identifierName": "BasicSerializableObject" }, "name": "BasicSerializableObject" } }, { "type": "ImportSpecifier", "start": 296, "end": 301, "loc": { "start": { "line": 6, "column": 34 }, "end": { "line": 6, "column": 39 } }, "imported": { "type": "Identifier", "start": 296, "end": 301, "loc": { "start": { "line": 6, "column": 34 }, "end": { "line": 6, "column": 39 }, "identifierName": "types" }, "name": "types" }, "local": { "type": "Identifier", "start": 296, "end": 301, "loc": { "start": { "line": 6, "column": 34 }, "end": { "line": 6, "column": 39 }, "identifierName": "types" }, "name": "types" } } ], "source": { "type": "StringLiteral", "start": 309, "end": 336, "loc": { "start": { "line": 6, "column": 47 }, "end": { "line": 6, "column": 74 } }, "extra": { "rawValue": "../savegame/serialization", "raw": "\"../savegame/serialization\"" }, "value": "../savegame/serialization" } }, { "type": "ImportDeclaration", "start": 339, "end": 442, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 103 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 348, "end": 358, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 19 } }, "imported": { "type": "Identifier", "start": 348, "end": 358, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 19 }, "identifierName": "enumColors" }, "name": "enumColors" }, "local": { "type": "Identifier", "start": 348, "end": 358, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 19 }, "identifierName": "enumColors" }, "name": "enumColors" } }, { "type": "ImportSpecifier", "start": 360, "end": 379, "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 7, "column": 40 } }, "imported": { "type": "Identifier", "start": 360, "end": 379, "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 7, "column": 40 }, "identifierName": "enumColorsToHexCode" }, "name": "enumColorsToHexCode" }, "local": { "type": "Identifier", "start": 360, "end": 379, "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 7, "column": 40 }, "identifierName": "enumColorsToHexCode" }, "name": "enumColorsToHexCode" } }, { "type": "ImportSpecifier", "start": 381, "end": 401, "loc": { "start": { "line": 7, "column": 42 }, "end": { "line": 7, "column": 62 } }, "imported": { "type": "Identifier", "start": 381, "end": 401, "loc": { "start": { "line": 7, "column": 42 }, "end": { "line": 7, "column": 62 }, "identifierName": "enumColorToShortcode" }, "name": "enumColorToShortcode" }, "local": { "type": "Identifier", "start": 381, "end": 401, "loc": { "start": { "line": 7, "column": 42 }, "end": { "line": 7, "column": 62 }, "identifierName": "enumColorToShortcode" }, "name": "enumColorToShortcode" } }, { "type": "ImportSpecifier", "start": 403, "end": 423, "loc": { "start": { "line": 7, "column": 64 }, "end": { "line": 7, "column": 84 } }, "imported": { "type": "Identifier", "start": 403, "end": 423, "loc": { "start": { "line": 7, "column": 64 }, "end": { "line": 7, "column": 84 }, "identifierName": "enumShortcodeToColor" }, "name": "enumShortcodeToColor" }, "local": { "type": "Identifier", "start": 403, "end": 423, "loc": { "start": { "line": 7, "column": 64 }, "end": { "line": 7, "column": 84 }, "identifierName": "enumShortcodeToColor" }, "name": "enumShortcodeToColor" } } ], "source": { "type": "StringLiteral", "start": 431, "end": 441, "loc": { "start": { "line": 7, "column": 92 }, "end": { "line": 7, "column": 102 } }, "extra": { "rawValue": "./colors", "raw": "\"./colors\"" }, "value": "./colors" } }, { "type": "ImportDeclaration", "start": 444, "end": 476, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 32 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 453, "end": 458, "loc": { "start": { "line": 8, "column": 9 }, "end": { "line": 8, "column": 14 } }, "imported": { "type": "Identifier", "start": 453, "end": 458, "loc": { "start": { "line": 8, "column": 9 }, "end": { "line": 8, "column": 14 }, "identifierName": "THEME" }, "name": "THEME" }, "local": { "type": "Identifier", "start": 453, "end": 458, "loc": { "start": { "line": 8, "column": 9 }, "end": { "line": 8, "column": 14 }, "identifierName": "THEME" }, "name": "THEME" } } ], "source": { "type": "StringLiteral", "start": 466, "end": 475, "loc": { "start": { "line": 8, "column": 22 }, "end": { "line": 8, "column": 31 } }, "extra": { "rawValue": "./theme", "raw": "\"./theme\"" }, "value": "./theme" }, "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * @typedef {{\r\n * subShape: enumSubShape,\r\n * color: enumColors,\r\n * }} ShapeLayerItem\r\n ", "start": 480, "end": 581, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 15, "column": 3 } } }, { "type": "CommentBlock", "value": "*\r\n * Order is Q1 (tr), Q2(br), Q3(bl), Q4(tl)\r\n * @typedef {[ShapeLayerItem?, ShapeLayerItem?, ShapeLayerItem?, ShapeLayerItem?]} ShapeLayer\r\n ", "start": 585, "end": 733, "loc": { "start": { "line": 17, "column": 0 }, "end": { "line": 20, "column": 3 } } } ] }, { "type": "VariableDeclaration", "start": 737, "end": 897, "loc": { "start": { "line": 22, "column": 0 }, "end": { "line": 27, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", "start": 743, "end": 896, "loc": { "start": { "line": 22, "column": 6 }, "end": { "line": 27, "column": 1 } }, "id": { "type": "Identifier", "start": 743, "end": 769, "loc": { "start": { "line": 22, "column": 6 }, "end": { "line": 22, "column": 32 }, "identifierName": "arrayQuadrantIndexToOffset" }, "name": "arrayQuadrantIndexToOffset", "leadingComments": null }, "init": { "type": "ArrayExpression", "start": 772, "end": 896, "loc": { "start": { "line": 22, "column": 35 }, "end": { "line": 27, "column": 1 } }, "elements": [ { "type": "NewExpression", "start": 779, "end": 796, "loc": { "start": { "line": 23, "column": 4 }, "end": { "line": 23, "column": 21 } }, "callee": { "type": "Identifier", "start": 783, "end": 789, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 14 }, "identifierName": "Vector" }, "name": "Vector" }, "arguments": [ { "type": "NumericLiteral", "start": 790, "end": 791, "loc": { "start": { "line": 23, "column": 15 }, "end": { "line": 23, "column": 16 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, { "type": "UnaryExpression", "start": 793, "end": 795, "loc": { "start": { "line": 23, "column": 18 }, "end": { "line": 23, "column": 20 } }, "operator": "-", "prefix": true, "argument": { "type": "NumericLiteral", "start": 794, "end": 795, "loc": { "start": { "line": 23, "column": 19 }, "end": { "line": 23, "column": 20 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, "extra": { "parenthesizedArgument": false } } ] }, { "type": "NewExpression", "start": 809, "end": 825, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 20 } }, "callee": { "type": "Identifier", "start": 813, "end": 819, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 14 }, "identifierName": "Vector" }, "name": "Vector" }, "arguments": [ { "type": "NumericLiteral", "start": 820, "end": 821, "loc": { "start": { "line": 24, "column": 15 }, "end": { "line": 24, "column": 16 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, { "type": "NumericLiteral", "start": 823, "end": 824, "loc": { "start": { "line": 24, "column": 18 }, "end": { "line": 24, "column": 19 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } ], "leadingComments": [ { "type": "CommentLine", "value": " tr", "start": 798, "end": 803, "loc": { "start": { "line": 23, "column": 23 }, "end": { "line": 23, "column": 28 } } } ] }, { "type": "NewExpression", "start": 838, "end": 855, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 21 } }, "callee": { "type": "Identifier", "start": 842, "end": 848, "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 14 }, "identifierName": "Vector" }, "name": "Vector" }, "arguments": [ { "type": "UnaryExpression", "start": 849, "end": 851, "loc": { "start": { "line": 25, "column": 15 }, "end": { "line": 25, "column": 17 } }, "operator": "-", "prefix": true, "argument": { "type": "NumericLiteral", "start": 850, "end": 851, "loc": { "start": { "line": 25, "column": 16 }, "end": { "line": 25, "column": 17 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, "extra": { "parenthesizedArgument": false } }, { "type": "NumericLiteral", "start": 853, "end": 854, "loc": { "start": { "line": 25, "column": 19 }, "end": { "line": 25, "column": 20 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } ], "leadingComments": [ { "type": "CommentLine", "value": " br", "start": 827, "end": 832, "loc": { "start": { "line": 24, "column": 22 }, "end": { "line": 24, "column": 27 } } } ] }, { "type": "NewExpression", "start": 868, "end": 886, "loc": { "start": { "line": 26, "column": 4 }, "end": { "line": 26, "column": 22 } }, "callee": { "type": "Identifier", "start": 872, "end": 878, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 14 }, "identifierName": "Vector" }, "name": "Vector" }, "arguments": [ { "type": "UnaryExpression", "start": 879, "end": 881, "loc": { "start": { "line": 26, "column": 15 }, "end": { "line": 26, "column": 17 } }, "operator": "-", "prefix": true, "argument": { "type": "NumericLiteral", "start": 880, "end": 881, "loc": { "start": { "line": 26, "column": 16 }, "end": { "line": 26, "column": 17 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, "extra": { "parenthesizedArgument": false } }, { "type": "UnaryExpression", "start": 883, "end": 885, "loc": { "start": { "line": 26, "column": 19 }, "end": { "line": 26, "column": 21 } }, "operator": "-", "prefix": true, "argument": { "type": "NumericLiteral", "start": 884, "end": 885, "loc": { "start": { "line": 26, "column": 20 }, "end": { "line": 26, "column": 21 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, "extra": { "parenthesizedArgument": false } } ], "leadingComments": [ { "type": "CommentLine", "value": " bl", "start": 857, "end": 862, "loc": { "start": { "line": 25, "column": 23 }, "end": { "line": 25, "column": 28 } } } ] } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * @typedef {{\r\n * subShape: enumSubShape,\r\n * color: enumColors,\r\n * }} ShapeLayerItem\r\n ", "start": 480, "end": 581, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 15, "column": 3 } } }, { "type": "CommentBlock", "value": "*\r\n * Order is Q1 (tr), Q2(br), Q3(bl), Q4(tl)\r\n * @typedef {[ShapeLayerItem?, ShapeLayerItem?, ShapeLayerItem?, ShapeLayerItem?]} ShapeLayer\r\n ", "start": 585, "end": 733, "loc": { "start": { "line": 17, "column": 0 }, "end": { "line": 20, "column": 3 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "* @enum {string} ", "start": 901, "end": 922, "loc": { "start": { "line": 29, "column": 0 }, "end": { "line": 29, "column": 21 } } } ] }, { "type": "ExportNamedDeclaration", "start": 924, "end": 1045, "loc": { "start": { "line": 30, "column": 0 }, "end": { "line": 35, "column": 2 } }, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start": 931, "end": 1045, "loc": { "start": { "line": 30, "column": 7 }, "end": { "line": 35, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", "start": 937, "end": 1044, "loc": { "start": { "line": 30, "column": 13 }, "end": { "line": 35, "column": 1 } }, "id": { "type": "Identifier", "start": 937, "end": 949, "loc": { "start": { "line": 30, "column": 13 }, "end": { "line": 30, "column": 25 }, "identifierName": "enumSubShape" }, "name": "enumSubShape", "leadingComments": null }, "init": { "type": "ObjectExpression", "start": 952, "end": 1044, "loc": { "start": { "line": 30, "column": 28 }, "end": { "line": 35, "column": 1 } }, "properties": [ { "type": "ObjectProperty", "start": 959, "end": 971, "loc": { "start": { "line": 31, "column": 4 }, "end": { "line": 31, "column": 16 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 959, "end": 963, "loc": { "start": { "line": 31, "column": 4 }, "end": { "line": 31, "column": 8 }, "identifierName": "rect" }, "name": "rect" }, "value": { "type": "StringLiteral", "start": 965, "end": 971, "loc": { "start": { "line": 31, "column": 10 }, "end": { "line": 31, "column": 16 } }, "extra": { "rawValue": "rect", "raw": "\"rect\"" }, "value": "rect" } }, { "type": "ObjectProperty", "start": 978, "end": 994, "loc": { "start": { "line": 32, "column": 4 }, "end": { "line": 32, "column": 20 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 978, "end": 984, "loc": { "start": { "line": 32, "column": 4 }, "end": { "line": 32, "column": 10 }, "identifierName": "circle" }, "name": "circle" }, "value": { "type": "StringLiteral", "start": 986, "end": 994, "loc": { "start": { "line": 32, "column": 12 }, "end": { "line": 32, "column": 20 } }, "extra": { "rawValue": "circle", "raw": "\"circle\"" }, "value": "circle" } }, { "type": "ObjectProperty", "start": 1001, "end": 1013, "loc": { "start": { "line": 33, "column": 4 }, "end": { "line": 33, "column": 16 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 1001, "end": 1005, "loc": { "start": { "line": 33, "column": 4 }, "end": { "line": 33, "column": 8 }, "identifierName": "star" }, "name": "star" }, "value": { "type": "StringLiteral", "start": 1007, "end": 1013, "loc": { "start": { "line": 33, "column": 10 }, "end": { "line": 33, "column": 16 } }, "extra": { "rawValue": "star", "raw": "\"star\"" }, "value": "star" } }, { "type": "ObjectProperty", "start": 1020, "end": 1040, "loc": { "start": { "line": 34, "column": 4 }, "end": { "line": 34, "column": 24 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 1020, "end": 1028, "loc": { "start": { "line": 34, "column": 4 }, "end": { "line": 34, "column": 12 }, "identifierName": "windmill" }, "name": "windmill" }, "value": { "type": "StringLiteral", "start": 1030, "end": 1040, "loc": { "start": { "line": 34, "column": 14 }, "end": { "line": 34, "column": 24 } }, "extra": { "rawValue": "windmill", "raw": "\"windmill\"" }, "value": "windmill" } } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentBlock", "value": "* @enum {string} ", "start": 901, "end": 922, "loc": { "start": { "line": 29, "column": 0 }, "end": { "line": 29, "column": 21 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "* @enum {string} ", "start": 1049, "end": 1070, "loc": { "start": { "line": 37, "column": 0 }, "end": { "line": 37, "column": 21 } } } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "* @enum {string} ", "start": 901, "end": 922, "loc": { "start": { "line": 29, "column": 0 }, "end": { "line": 29, "column": 21 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "* @enum {string} ", "start": 1049, "end": 1070, "loc": { "start": { "line": 37, "column": 0 }, "end": { "line": 37, "column": 21 } } } ] }, { "type": "ExportNamedDeclaration", "start": 1072, "end": 1246, "loc": { "start": { "line": 38, "column": 0 }, "end": { "line": 43, "column": 2 } }, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start": 1079, "end": 1246, "loc": { "start": { "line": 38, "column": 7 }, "end": { "line": 43, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1085, "end": 1245, "loc": { "start": { "line": 38, "column": 13 }, "end": { "line": 43, "column": 1 } }, "id": { "type": "Identifier", "start": 1085, "end": 1108, "loc": { "start": { "line": 38, "column": 13 }, "end": { "line": 38, "column": 36 }, "identifierName": "enumSubShapeToShortcode" }, "name": "enumSubShapeToShortcode", "leadingComments": null }, "init": { "type": "ObjectExpression", "start": 1111, "end": 1245, "loc": { "start": { "line": 38, "column": 39 }, "end": { "line": 43, "column": 1 } }, "properties": [ { "type": "ObjectProperty", "start": 1118, "end": 1142, "loc": { "start": { "line": 39, "column": 4 }, "end": { "line": 39, "column": 28 } }, "method": false, "shorthand": false, "computed": true, "key": { "type": "MemberExpression", "start": 1119, "end": 1136, "loc": { "start": { "line": 39, "column": 5 }, "end": { "line": 39, "column": 22 } }, "object": { "type": "Identifier", "start": 1119, "end": 1131, "loc": { "start": { "line": 39, "column": 5 }, "end": { "line": 39, "column": 17 }, "identifierName": "enumSubShape" }, "name": "enumSubShape" }, "property": { "type": "Identifier", "start": 1132, "end": 1136, "loc": { "start": { "line": 39, "column": 18 }, "end": { "line": 39, "column": 22 }, "identifierName": "rect" }, "name": "rect" }, "computed": false }, "value": { "type": "StringLiteral", "start": 1139, "end": 1142, "loc": { "start": { "line": 39, "column": 25 }, "end": { "line": 39, "column": 28 } }, "extra": { "rawValue": "R", "raw": "\"R\"" }, "value": "R" } }, { "type": "ObjectProperty", "start": 1149, "end": 1175, "loc": { "start": { "line": 40, "column": 4 }, "end": { "line": 40, "column": 30 } }, "method": false, "shorthand": false, "computed": true, "key": { "type": "MemberExpression", "start": 1150, "end": 1169, "loc": { "start": { "line": 40, "column": 5 }, "end": { "line": 40, "column": 24 } }, "object": { "type": "Identifier", "start": 1150, "end": 1162, "loc": { "start": { "line": 40, "column": 5 }, "end": { "line": 40, "column": 17 }, "identifierName": "enumSubShape" }, "name": "enumSubShape" }, "property": { "type": "Identifier", "start": 1163, "end": 1169, "loc": { "start": { "line": 40, "column": 18 }, "end": { "line": 40, "column": 24 }, "identifierName": "circle" }, "name": "circle" }, "computed": false }, "value": { "type": "StringLiteral", "start": 1172, "end": 1175, "loc": { "start": { "line": 40, "column": 27 }, "end": { "line": 40, "column": 30 } }, "extra": { "rawValue": "C", "raw": "\"C\"" }, "value": "C" } }, { "type": "ObjectProperty", "start": 1182, "end": 1206, "loc": { "start": { "line": 41, "column": 4 }, "end": { "line": 41, "column": 28 } }, "method": false, "shorthand": false, "computed": true, "key": { "type": "MemberExpression", "start": 1183, "end": 1200, "loc": { "start": { "line": 41, "column": 5 }, "end": { "line": 41, "column": 22 } }, "object": { "type": "Identifier", "start": 1183, "end": 1195, "loc": { "start": { "line": 41, "column": 5 }, "end": { "line": 41, "column": 17 }, "identifierName": "enumSubShape" }, "name": "enumSubShape" }, "property": { "type": "Identifier", "start": 1196, "end": 1200, "loc": { "start": { "line": 41, "column": 18 }, "end": { "line": 41, "column": 22 }, "identifierName": "star" }, "name": "star" }, "computed": false }, "value": { "type": "StringLiteral", "start": 1203, "end": 1206, "loc": { "start": { "line": 41, "column": 25 }, "end": { "line": 41, "column": 28 } }, "extra": { "rawValue": "S", "raw": "\"S\"" }, "value": "S" } }, { "type": "ObjectProperty", "start": 1213, "end": 1241, "loc": { "start": { "line": 42, "column": 4 }, "end": { "line": 42, "column": 32 } }, "method": false, "shorthand": false, "computed": true, "key": { "type": "MemberExpression", "start": 1214, "end": 1235, "loc": { "start": { "line": 42, "column": 5 }, "end": { "line": 42, "column": 26 } }, "object": { "type": "Identifier", "start": 1214, "end": 1226, "loc": { "start": { "line": 42, "column": 5 }, "end": { "line": 42, "column": 17 }, "identifierName": "enumSubShape" }, "name": "enumSubShape" }, "property": { "type": "Identifier", "start": 1227, "end": 1235, "loc": { "start": { "line": 42, "column": 18 }, "end": { "line": 42, "column": 26 }, "identifierName": "windmill" }, "name": "windmill" }, "computed": false }, "value": { "type": "StringLiteral", "start": 1238, "end": 1241, "loc": { "start": { "line": 42, "column": 29 }, "end": { "line": 42, "column": 32 } }, "extra": { "rawValue": "W", "raw": "\"W\"" }, "value": "W" } } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentBlock", "value": "* @enum {string} ", "start": 1049, "end": 1070, "loc": { "start": { "line": 37, "column": 0 }, "end": { "line": 37, "column": 21 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "* @enum {enumSubShape} ", "start": 1250, "end": 1277, "loc": { "start": { "line": 45, "column": 0 }, "end": { "line": 45, "column": 27 } } } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "* @enum {string} ", "start": 1049, "end": 1070, "loc": { "start": { "line": 37, "column": 0 }, "end": { "line": 37, "column": 21 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "* @enum {enumSubShape} ", "start": 1250, "end": 1277, "loc": { "start": { "line": 45, "column": 0 }, "end": { "line": 45, "column": 27 } } } ] }, { "type": "ExportNamedDeclaration", "start": 1279, "end": 1321, "loc": { "start": { "line": 46, "column": 0 }, "end": { "line": 46, "column": 42 } }, "specifiers": [], "source": null, "declaration": { "type": "VariableDeclaration", "start": 1286, "end": 1321, "loc": { "start": { "line": 46, "column": 7 }, "end": { "line": 46, "column": 42 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1292, "end": 1320, "loc": { "start": { "line": 46, "column": 13 }, "end": { "line": 46, "column": 41 } }, "id": { "type": "Identifier", "start": 1292, "end": 1315, "loc": { "start": { "line": 46, "column": 13 }, "end": { "line": 46, "column": 36 }, "identifierName": "enumShortcodeToSubShape" }, "name": "enumShortcodeToSubShape", "leadingComments": null }, "init": { "type": "ObjectExpression", "start": 1318, "end": 1320, "loc": { "start": { "line": 46, "column": 39 }, "end": { "line": 46, "column": 41 } }, "properties": [] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentBlock", "value": "* @enum {enumSubShape} ", "start": 1250, "end": 1277, "loc": { "start": { "line": 45, "column": 0 }, "end": { "line": 45, "column": 27 } } } ], "trailingComments": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "* @enum {enumSubShape} ", "start": 1250, "end": 1277, "loc": { "start": { "line": 45, "column": 0 }, "end": { "line": 45, "column": 27 } } } ] }, { "type": "ForInStatement", "start": 1323, "end": 1436, "loc": { "start": { "line": 47, "column": 0 }, "end": { "line": 49, "column": 1 } }, "left": { "type": "VariableDeclaration", "start": 1328, "end": 1337, "loc": { "start": { "line": 47, "column": 5 }, "end": { "line": 47, "column": 14 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1334, "end": 1337, "loc": { "start": { "line": 47, "column": 11 }, "end": { "line": 47, "column": 14 } }, "id": { "type": "Identifier", "start": 1334, "end": 1337, "loc": { "start": { "line": 47, "column": 11 }, "end": { "line": 47, "column": 14 }, "identifierName": "key" }, "name": "key" }, "init": null } ], "kind": "const" }, "right": { "type": "Identifier", "start": 1341, "end": 1364, "loc": { "start": { "line": 47, "column": 18 }, "end": { "line": 47, "column": 41 }, "identifierName": "enumSubShapeToShortcode" }, "name": "enumSubShapeToShortcode" }, "body": { "type": "BlockStatement", "start": 1366, "end": 1436, "loc": { "start": { "line": 47, "column": 43 }, "end": { "line": 49, "column": 1 } }, "body": [ { "type": "ExpressionStatement", "start": 1373, "end": 1433, "loc": { "start": { "line": 48, "column": 4 }, "end": { "line": 48, "column": 64 } }, "expression": { "type": "AssignmentExpression", "start": 1373, "end": 1432, "loc": { "start": { "line": 48, "column": 4 }, "end": { "line": 48, "column": 63 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1373, "end": 1426, "loc": { "start": { "line": 48, "column": 4 }, "end": { "line": 48, "column": 57 } }, "object": { "type": "Identifier", "start": 1373, "end": 1396, "loc": { "start": { "line": 48, "column": 4 }, "end": { "line": 48, "column": 27 }, "identifierName": "enumShortcodeToSubShape" }, "name": "enumShortcodeToSubShape" }, "property": { "type": "MemberExpression", "start": 1397, "end": 1425, "loc": { "start": { "line": 48, "column": 28 }, "end": { "line": 48, "column": 56 } }, "object": { "type": "Identifier", "start": 1397, "end": 1420, "loc": { "start": { "line": 48, "column": 28 }, "end": { "line": 48, "column": 51 }, "identifierName": "enumSubShapeToShortcode" }, "name": "enumSubShapeToShortcode" }, "property": { "type": "Identifier", "start": 1421, "end": 1424, "loc": { "start": { "line": 48, "column": 52 }, "end": { "line": 48, "column": 55 }, "identifierName": "key" }, "name": "key" }, "computed": true }, "computed": true }, "right": { "type": "Identifier", "start": 1429, "end": 1432, "loc": { "start": { "line": 48, "column": 60 }, "end": { "line": 48, "column": 63 }, "identifierName": "key" }, "name": "key" } } } ], "directives": [], "trailingComments": null }, "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Converts the given parameters to a valid shape definition\r\n * @param {*} layers\r\n * @returns {Array}\r\n ", "start": 1440, "end": 1594, "loc": { "start": { "line": 51, "column": 0 }, "end": { "line": 55, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "start": 1596, "end": 1854, "loc": { "start": { "line": 56, "column": 0 }, "end": { "line": 65, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "FunctionDeclaration", "start": 1603, "end": 1854, "loc": { "start": { "line": 56, "column": 7 }, "end": { "line": 65, "column": 1 } }, "id": { "type": "Identifier", "start": 1612, "end": 1629, "loc": { "start": { "line": 56, "column": 16 }, "end": { "line": 56, "column": 33 }, "identifierName": "createSimpleShape" }, "name": "createSimpleShape", "leadingComments": null }, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1630, "end": 1636, "loc": { "start": { "line": 56, "column": 34 }, "end": { "line": 56, "column": 40 }, "identifierName": "layers" }, "name": "layers" } ], "body": { "type": "BlockStatement", "start": 1638, "end": 1854, "loc": { "start": { "line": 56, "column": 42 }, "end": { "line": 65, "column": 1 } }, "body": [ { "type": "ExpressionStatement", "start": 1645, "end": 1831, "loc": { "start": { "line": 57, "column": 4 }, "end": { "line": 63, "column": 7 } }, "expression": { "type": "CallExpression", "start": 1645, "end": 1830, "loc": { "start": { "line": 57, "column": 4 }, "end": { "line": 63, "column": 6 } }, "callee": { "type": "MemberExpression", "start": 1645, "end": 1659, "loc": { "start": { "line": 57, "column": 4 }, "end": { "line": 57, "column": 18 } }, "object": { "type": "Identifier", "start": 1645, "end": 1651, "loc": { "start": { "line": 57, "column": 4 }, "end": { "line": 57, "column": 10 }, "identifierName": "layers" }, "name": "layers" }, "property": { "type": "Identifier", "start": 1652, "end": 1659, "loc": { "start": { "line": 57, "column": 11 }, "end": { "line": 57, "column": 18 }, "identifierName": "forEach" }, "name": "forEach" }, "computed": false }, "arguments": [ { "type": "ArrowFunctionExpression", "start": 1660, "end": 1829, "loc": { "start": { "line": 57, "column": 19 }, "end": { "line": 63, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1660, "end": 1665, "loc": { "start": { "line": 57, "column": 19 }, "end": { "line": 57, "column": 24 }, "identifierName": "layer" }, "name": "layer" } ], "body": { "type": "BlockStatement", "start": 1669, "end": 1829, "loc": { "start": { "line": 57, "column": 28 }, "end": { "line": 63, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 1680, "end": 1822, "loc": { "start": { "line": 58, "column": 8 }, "end": { "line": 62, "column": 11 } }, "expression": { "type": "CallExpression", "start": 1680, "end": 1821, "loc": { "start": { "line": 58, "column": 8 }, "end": { "line": 62, "column": 10 } }, "callee": { "type": "MemberExpression", "start": 1680, "end": 1693, "loc": { "start": { "line": 58, "column": 8 }, "end": { "line": 58, "column": 21 } }, "object": { "type": "Identifier", "start": 1680, "end": 1685, "loc": { "start": { "line": 58, "column": 8 }, "end": { "line": 58, "column": 13 }, "identifierName": "layer" }, "name": "layer" }, "property": { "type": "Identifier", "start": 1686, "end": 1693, "loc": { "start": { "line": 58, "column": 14 }, "end": { "line": 58, "column": 21 }, "identifierName": "forEach" }, "name": "forEach" }, "computed": false }, "arguments": [ { "type": "ArrowFunctionExpression", "start": 1694, "end": 1820, "loc": { "start": { "line": 58, "column": 22 }, "end": { "line": 62, "column": 9 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1694, "end": 1698, "loc": { "start": { "line": 58, "column": 22 }, "end": { "line": 58, "column": 26 }, "identifierName": "item" }, "name": "item" } ], "body": { "type": "BlockStatement", "start": 1702, "end": 1820, "loc": { "start": { "line": 58, "column": 30 }, "end": { "line": 62, "column": 9 } }, "body": [ { "type": "IfStatement", "start": 1717, "end": 1809, "loc": { "start": { "line": 59, "column": 12 }, "end": { "line": 61, "column": 13 } }, "test": { "type": "Identifier", "start": 1721, "end": 1725, "loc": { "start": { "line": 59, "column": 16 }, "end": { "line": 59, "column": 20 }, "identifierName": "item" }, "name": "item" }, "consequent": { "type": "BlockStatement", "start": 1727, "end": 1809, "loc": { "start": { "line": 59, "column": 22 }, "end": { "line": 61, "column": 13 } }, "body": [ { "type": "ExpressionStatement", "start": 1746, "end": 1794, "loc": { "start": { "line": 60, "column": 16 }, "end": { "line": 60, "column": 64 } }, "expression": { "type": "AssignmentExpression", "start": 1746, "end": 1793, "loc": { "start": { "line": 60, "column": 16 }, "end": { "line": 60, "column": 63 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1746, "end": 1756, "loc": { "start": { "line": 60, "column": 16 }, "end": { "line": 60, "column": 26 } }, "object": { "type": "Identifier", "start": 1746, "end": 1750, "loc": { "start": { "line": 60, "column": 16 }, "end": { "line": 60, "column": 20 }, "identifierName": "item" }, "name": "item" }, "property": { "type": "Identifier", "start": 1751, "end": 1756, "loc": { "start": { "line": 60, "column": 21 }, "end": { "line": 60, "column": 26 }, "identifierName": "color" }, "name": "color" }, "computed": false }, "right": { "type": "LogicalExpression", "start": 1759, "end": 1793, "loc": { "start": { "line": 60, "column": 29 }, "end": { "line": 60, "column": 63 } }, "left": { "type": "MemberExpression", "start": 1759, "end": 1769, "loc": { "start": { "line": 60, "column": 29 }, "end": { "line": 60, "column": 39 } }, "object": { "type": "Identifier", "start": 1759, "end": 1763, "loc": { "start": { "line": 60, "column": 29 }, "end": { "line": 60, "column": 33 }, "identifierName": "item" }, "name": "item" }, "property": { "type": "Identifier", "start": 1764, "end": 1769, "loc": { "start": { "line": 60, "column": 34 }, "end": { "line": 60, "column": 39 }, "identifierName": "color" }, "name": "color" }, "computed": false }, "operator": "||", "right": { "type": "MemberExpression", "start": 1773, "end": 1793, "loc": { "start": { "line": 60, "column": 43 }, "end": { "line": 60, "column": 63 } }, "object": { "type": "Identifier", "start": 1773, "end": 1783, "loc": { "start": { "line": 60, "column": 43 }, "end": { "line": 60, "column": 53 }, "identifierName": "enumColors" }, "name": "enumColors" }, "property": { "type": "Identifier", "start": 1784, "end": 1793, "loc": { "start": { "line": 60, "column": 54 }, "end": { "line": 60, "column": 63 }, "identifierName": "uncolored" }, "name": "uncolored" }, "computed": false } } } } ], "directives": [] }, "alternate": null } ], "directives": [] } } ] } } ], "directives": [] } } ] } }, { "type": "ReturnStatement", "start": 1837, "end": 1851, "loc": { "start": { "line": 64, "column": 4 }, "end": { "line": 64, "column": 18 } }, "argument": { "type": "Identifier", "start": 1844, "end": 1850, "loc": { "start": { "line": 64, "column": 11 }, "end": { "line": 64, "column": 17 }, "identifierName": "layers" }, "name": "layers" } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Converts the given parameters to a valid shape definition\r\n * @param {*} layers\r\n * @returns {Array}\r\n ", "start": 1440, "end": 1594, "loc": { "start": { "line": 51, "column": 0 }, "end": { "line": 55, "column": 3 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Cache which shapes are valid short keys and which not\r\n * @type {Map}\r\n ", "start": 1858, "end": 1957, "loc": { "start": { "line": 67, "column": 0 }, "end": { "line": 70, "column": 3 } } } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Converts the given parameters to a valid shape definition\r\n * @param {*} layers\r\n * @returns {Array}\r\n ", "start": 1440, "end": 1594, "loc": { "start": { "line": 51, "column": 0 }, "end": { "line": 55, "column": 3 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Cache which shapes are valid short keys and which not\r\n * @type {Map}\r\n ", "start": 1858, "end": 1957, "loc": { "start": { "line": 67, "column": 0 }, "end": { "line": 70, "column": 3 } } } ] }, { "type": "VariableDeclaration", "start": 1959, "end": 1993, "loc": { "start": { "line": 71, "column": 0 }, "end": { "line": 71, "column": 34 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1965, "end": 1992, "loc": { "start": { "line": 71, "column": 6 }, "end": { "line": 71, "column": 33 } }, "id": { "type": "Identifier", "start": 1965, "end": 1980, "loc": { "start": { "line": 71, "column": 6 }, "end": { "line": 71, "column": 21 }, "identifierName": "SHORT_KEY_CACHE" }, "name": "SHORT_KEY_CACHE", "leadingComments": null }, "init": { "type": "NewExpression", "start": 1983, "end": 1992, "loc": { "start": { "line": 71, "column": 24 }, "end": { "line": 71, "column": 33 } }, "callee": { "type": "Identifier", "start": 1987, "end": 1990, "loc": { "start": { "line": 71, "column": 28 }, "end": { "line": 71, "column": 31 }, "identifierName": "Map" }, "name": "Map" }, "arguments": [] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Cache which shapes are valid short keys and which not\r\n * @type {Map}\r\n ", "start": 1858, "end": 1957, "loc": { "start": { "line": 67, "column": 0 }, "end": { "line": 70, "column": 3 } } } ] }, { "type": "ExportNamedDeclaration", "start": 1997, "end": 21766, "loc": { "start": { "line": 73, "column": 0 }, "end": { "line": 624, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "ClassDeclaration", "start": 2004, "end": 21766, "loc": { "start": { "line": 73, "column": 7 }, "end": { "line": 624, "column": 1 } }, "id": { "type": "Identifier", "start": 2010, "end": 2025, "loc": { "start": { "line": 73, "column": 13 }, "end": { "line": 73, "column": 28 }, "identifierName": "ShapeDefinition" }, "name": "ShapeDefinition" }, "superClass": { "type": "Identifier", "start": 2034, "end": 2057, "loc": { "start": { "line": 73, "column": 37 }, "end": { "line": 73, "column": 60 }, "identifierName": "BasicSerializableObject" }, "name": "BasicSerializableObject" }, "body": { "type": "ClassBody", "start": 2058, "end": 21766, "loc": { "start": { "line": 73, "column": 61 }, "end": { "line": 624, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 2065, "end": 2123, "loc": { "start": { "line": 74, "column": 4 }, "end": { "line": 76, "column": 5 } }, "static": true, "computed": false, "key": { "type": "Identifier", "start": 2072, "end": 2077, "loc": { "start": { "line": 74, "column": 11 }, "end": { "line": 74, "column": 16 }, "identifierName": "getId" }, "name": "getId" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 2080, "end": 2123, "loc": { "start": { "line": 74, "column": 19 }, "end": { "line": 76, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 2091, "end": 2116, "loc": { "start": { "line": 75, "column": 8 }, "end": { "line": 75, "column": 33 } }, "argument": { "type": "StringLiteral", "start": 2098, "end": 2115, "loc": { "start": { "line": 75, "column": 15 }, "end": { "line": 75, "column": 32 } }, "extra": { "rawValue": "ShapeDefinition", "raw": "\"ShapeDefinition\"" }, "value": "ShapeDefinition" } } ], "directives": [] } }, { "type": "ClassMethod", "start": 2131, "end": 2178, "loc": { "start": { "line": 78, "column": 4 }, "end": { "line": 80, "column": 5 } }, "static": true, "computed": false, "key": { "type": "Identifier", "start": 2138, "end": 2147, "loc": { "start": { "line": 78, "column": 11 }, "end": { "line": 78, "column": 20 }, "identifierName": "getSchema" }, "name": "getSchema" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 2150, "end": 2178, "loc": { "start": { "line": 78, "column": 23 }, "end": { "line": 80, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 2161, "end": 2171, "loc": { "start": { "line": 79, "column": 8 }, "end": { "line": 79, "column": 18 } }, "argument": { "type": "ObjectExpression", "start": 2168, "end": 2170, "loc": { "start": { "line": 79, "column": 15 }, "end": { "line": 79, "column": 17 } }, "properties": [] } } ], "directives": [] } }, { "type": "ClassMethod", "start": 2186, "end": 2473, "loc": { "start": { "line": 82, "column": 4 }, "end": { "line": 89, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2186, "end": 2197, "loc": { "start": { "line": 82, "column": 4 }, "end": { "line": 82, "column": 15 }, "identifierName": "deserialize" }, "name": "deserialize" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 2198, "end": 2202, "loc": { "start": { "line": 82, "column": 16 }, "end": { "line": 82, "column": 20 }, "identifierName": "data" }, "name": "data" } ], "body": { "type": "BlockStatement", "start": 2204, "end": 2473, "loc": { "start": { "line": 82, "column": 22 }, "end": { "line": 89, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 2215, "end": 2257, "loc": { "start": { "line": 83, "column": 8 }, "end": { "line": 83, "column": 50 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2221, "end": 2256, "loc": { "start": { "line": 83, "column": 14 }, "end": { "line": 83, "column": 49 } }, "id": { "type": "Identifier", "start": 2221, "end": 2230, "loc": { "start": { "line": 83, "column": 14 }, "end": { "line": 83, "column": 23 }, "identifierName": "errorCode" }, "name": "errorCode" }, "init": { "type": "CallExpression", "start": 2233, "end": 2256, "loc": { "start": { "line": 83, "column": 26 }, "end": { "line": 83, "column": 49 } }, "callee": { "type": "MemberExpression", "start": 2233, "end": 2250, "loc": { "start": { "line": 83, "column": 26 }, "end": { "line": 83, "column": 43 } }, "object": { "type": "Super", "start": 2233, "end": 2238, "loc": { "start": { "line": 83, "column": 26 }, "end": { "line": 83, "column": 31 } } }, "property": { "type": "Identifier", "start": 2239, "end": 2250, "loc": { "start": { "line": 83, "column": 32 }, "end": { "line": 83, "column": 43 }, "identifierName": "deserialize" }, "name": "deserialize" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 2251, "end": 2255, "loc": { "start": { "line": 83, "column": 44 }, "end": { "line": 83, "column": 48 }, "identifierName": "data" }, "name": "data" } ] } } ], "kind": "const" }, { "type": "IfStatement", "start": 2267, "end": 2325, "loc": { "start": { "line": 84, "column": 8 }, "end": { "line": 86, "column": 9 } }, "test": { "type": "Identifier", "start": 2271, "end": 2280, "loc": { "start": { "line": 84, "column": 12 }, "end": { "line": 84, "column": 21 }, "identifierName": "errorCode" }, "name": "errorCode" }, "consequent": { "type": "BlockStatement", "start": 2282, "end": 2325, "loc": { "start": { "line": 84, "column": 23 }, "end": { "line": 86, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 2297, "end": 2314, "loc": { "start": { "line": 85, "column": 12 }, "end": { "line": 85, "column": 29 } }, "argument": { "type": "Identifier", "start": 2304, "end": 2313, "loc": { "start": { "line": 85, "column": 19 }, "end": { "line": 85, "column": 28 }, "identifierName": "errorCode" }, "name": "errorCode" } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 2335, "end": 2389, "loc": { "start": { "line": 87, "column": 8 }, "end": { "line": 87, "column": 62 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2341, "end": 2388, "loc": { "start": { "line": 87, "column": 14 }, "end": { "line": 87, "column": 61 } }, "id": { "type": "Identifier", "start": 2341, "end": 2351, "loc": { "start": { "line": 87, "column": 14 }, "end": { "line": 87, "column": 24 }, "identifierName": "definition" }, "name": "definition" }, "init": { "type": "CallExpression", "start": 2354, "end": 2388, "loc": { "start": { "line": 87, "column": 27 }, "end": { "line": 87, "column": 61 } }, "callee": { "type": "MemberExpression", "start": 2354, "end": 2382, "loc": { "start": { "line": 87, "column": 27 }, "end": { "line": 87, "column": 55 } }, "object": { "type": "Identifier", "start": 2354, "end": 2369, "loc": { "start": { "line": 87, "column": 27 }, "end": { "line": 87, "column": 42 }, "identifierName": "ShapeDefinition" }, "name": "ShapeDefinition" }, "property": { "type": "Identifier", "start": 2370, "end": 2382, "loc": { "start": { "line": 87, "column": 43 }, "end": { "line": 87, "column": 55 }, "identifierName": "fromShortKey" }, "name": "fromShortKey" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 2383, "end": 2387, "loc": { "start": { "line": 87, "column": 56 }, "end": { "line": 87, "column": 60 }, "identifierName": "data" }, "name": "data" } ] } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 2399, "end": 2466, "loc": { "start": { "line": 88, "column": 8 }, "end": { "line": 88, "column": 75 } }, "expression": { "type": "AssignmentExpression", "start": 2399, "end": 2465, "loc": { "start": { "line": 88, "column": 8 }, "end": { "line": 88, "column": 74 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 2399, "end": 2410, "loc": { "start": { "line": 88, "column": 8 }, "end": { "line": 88, "column": 19 } }, "object": { "type": "ThisExpression", "start": 2399, "end": 2403, "loc": { "start": { "line": 88, "column": 8 }, "end": { "line": 88, "column": 12 } } }, "property": { "type": "Identifier", "start": 2404, "end": 2410, "loc": { "start": { "line": 88, "column": 13 }, "end": { "line": 88, "column": 19 }, "identifierName": "layers" }, "name": "layers" }, "computed": false }, "right": { "type": "MemberExpression", "start": 2447, "end": 2464, "loc": { "start": { "line": 88, "column": 56 }, "end": { "line": 88, "column": 73 } }, "object": { "type": "Identifier", "start": 2447, "end": 2457, "loc": { "start": { "line": 88, "column": 56 }, "end": { "line": 88, "column": 66 }, "identifierName": "definition" }, "name": "definition", "leadingComments": null }, "property": { "type": "Identifier", "start": 2458, "end": 2464, "loc": { "start": { "line": 88, "column": 67 }, "end": { "line": 88, "column": 73 }, "identifierName": "layers" }, "name": "layers" }, "computed": false, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {Array} ", "start": 2413, "end": 2445, "loc": { "start": { "line": 88, "column": 22 }, "end": { "line": 88, "column": 54 } } } ], "extra": { "parenthesized": true, "parenStart": 2446 } } } } ], "directives": [] } }, { "type": "ClassMethod", "start": 2481, "end": 2533, "loc": { "start": { "line": 91, "column": 4 }, "end": { "line": 93, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2481, "end": 2490, "loc": { "start": { "line": 91, "column": 4 }, "end": { "line": 91, "column": 13 }, "identifierName": "serialize" }, "name": "serialize" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 2493, "end": 2533, "loc": { "start": { "line": 91, "column": 16 }, "end": { "line": 93, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 2504, "end": 2526, "loc": { "start": { "line": 92, "column": 8 }, "end": { "line": 92, "column": 30 } }, "argument": { "type": "CallExpression", "start": 2511, "end": 2525, "loc": { "start": { "line": 92, "column": 15 }, "end": { "line": 92, "column": 29 } }, "callee": { "type": "MemberExpression", "start": 2511, "end": 2523, "loc": { "start": { "line": 92, "column": 15 }, "end": { "line": 92, "column": 27 } }, "object": { "type": "ThisExpression", "start": 2511, "end": 2515, "loc": { "start": { "line": 92, "column": 15 }, "end": { "line": 92, "column": 19 } } }, "property": { "type": "Identifier", "start": 2516, "end": 2523, "loc": { "start": { "line": 92, "column": 20 }, "end": { "line": 92, "column": 27 }, "identifierName": "getHash" }, "name": "getHash" }, "computed": false }, "arguments": [] } } ], "directives": [], "trailingComments": null }, "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {object} param0\r\n * @param {Array=} param0.layers\r\n ", "start": 2541, "end": 2642, "loc": { "start": { "line": 95, "column": 4 }, "end": { "line": 99, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 2648, "end": 2974, "loc": { "start": { "line": 100, "column": 4 }, "end": { "line": 114, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2648, "end": 2659, "loc": { "start": { "line": 100, "column": 4 }, "end": { "line": 100, "column": 15 }, "identifierName": "constructor" }, "name": "constructor", "leadingComments": null }, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "ObjectPattern", "start": 2660, "end": 2675, "loc": { "start": { "line": 100, "column": 16 }, "end": { "line": 100, "column": 31 } }, "properties": [ { "type": "ObjectProperty", "start": 2662, "end": 2673, "loc": { "start": { "line": 100, "column": 18 }, "end": { "line": 100, "column": 29 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 2662, "end": 2668, "loc": { "start": { "line": 100, "column": 18 }, "end": { "line": 100, "column": 24 }, "identifierName": "layers" }, "name": "layers" }, "value": { "type": "AssignmentPattern", "start": 2662, "end": 2673, "loc": { "start": { "line": 100, "column": 18 }, "end": { "line": 100, "column": 29 } }, "left": { "type": "Identifier", "start": 2662, "end": 2668, "loc": { "start": { "line": 100, "column": 18 }, "end": { "line": 100, "column": 24 }, "identifierName": "layers" }, "name": "layers" }, "right": { "type": "ArrayExpression", "start": 2671, "end": 2673, "loc": { "start": { "line": 100, "column": 27 }, "end": { "line": 100, "column": 29 } }, "elements": [] } }, "extra": { "shorthand": true } } ] } ], "body": { "type": "BlockStatement", "start": 2677, "end": 2974, "loc": { "start": { "line": 100, "column": 33 }, "end": { "line": 114, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 2688, "end": 2696, "loc": { "start": { "line": 101, "column": 8 }, "end": { "line": 101, "column": 16 } }, "expression": { "type": "CallExpression", "start": 2688, "end": 2695, "loc": { "start": { "line": 101, "column": 8 }, "end": { "line": 101, "column": 15 } }, "callee": { "type": "Super", "start": 2688, "end": 2693, "loc": { "start": { "line": 101, "column": 8 }, "end": { "line": 101, "column": 13 } } }, "arguments": [] }, "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * The layers from bottom to top\r\n * @type {Array}\r\n ", "start": 2708, "end": 2804, "loc": { "start": { "line": 103, "column": 8 }, "end": { "line": 106, "column": 11 } } } ] }, { "type": "ExpressionStatement", "start": 2814, "end": 2835, "loc": { "start": { "line": 107, "column": 8 }, "end": { "line": 107, "column": 29 } }, "expression": { "type": "AssignmentExpression", "start": 2814, "end": 2834, "loc": { "start": { "line": 107, "column": 8 }, "end": { "line": 107, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 2814, "end": 2825, "loc": { "start": { "line": 107, "column": 8 }, "end": { "line": 107, "column": 19 } }, "object": { "type": "ThisExpression", "start": 2814, "end": 2818, "loc": { "start": { "line": 107, "column": 8 }, "end": { "line": 107, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 2819, "end": 2825, "loc": { "start": { "line": 107, "column": 13 }, "end": { "line": 107, "column": 19 }, "identifierName": "layers" }, "name": "layers" }, "computed": false, "leadingComments": null }, "right": { "type": "Identifier", "start": 2828, "end": 2834, "loc": { "start": { "line": 107, "column": 22 }, "end": { "line": 107, "column": 28 }, "identifierName": "layers" }, "name": "layers" }, "leadingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * The layers from bottom to top\r\n * @type {Array}\r\n ", "start": 2708, "end": 2804, "loc": { "start": { "line": 103, "column": 8 }, "end": { "line": 106, "column": 11 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "* @type {string} ", "start": 2847, "end": 2868, "loc": { "start": { "line": 109, "column": 8 }, "end": { "line": 109, "column": 29 } } } ] }, { "type": "ExpressionStatement", "start": 2878, "end": 2901, "loc": { "start": { "line": 110, "column": 8 }, "end": { "line": 110, "column": 31 } }, "expression": { "type": "AssignmentExpression", "start": 2878, "end": 2900, "loc": { "start": { "line": 110, "column": 8 }, "end": { "line": 110, "column": 30 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 2878, "end": 2893, "loc": { "start": { "line": 110, "column": 8 }, "end": { "line": 110, "column": 23 } }, "object": { "type": "ThisExpression", "start": 2878, "end": 2882, "loc": { "start": { "line": 110, "column": 8 }, "end": { "line": 110, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 2883, "end": 2893, "loc": { "start": { "line": 110, "column": 13 }, "end": { "line": 110, "column": 23 }, "identifierName": "cachedHash" }, "name": "cachedHash" }, "computed": false, "leadingComments": null }, "right": { "type": "NullLiteral", "start": 2896, "end": 2900, "loc": { "start": { "line": 110, "column": 26 }, "end": { "line": 110, "column": 30 } } }, "leadingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "* @type {string} ", "start": 2847, "end": 2868, "loc": { "start": { "line": 109, "column": 8 }, "end": { "line": 109, "column": 29 } } } ], "trailingComments": [ { "type": "CommentLine", "value": " Set on demand", "start": 2913, "end": 2929, "loc": { "start": { "line": 112, "column": 8 }, "end": { "line": 112, "column": 24 } } } ] }, { "type": "ExpressionStatement", "start": 2939, "end": 2967, "loc": { "start": { "line": 113, "column": 8 }, "end": { "line": 113, "column": 36 } }, "expression": { "type": "AssignmentExpression", "start": 2939, "end": 2966, "loc": { "start": { "line": 113, "column": 8 }, "end": { "line": 113, "column": 35 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 2939, "end": 2959, "loc": { "start": { "line": 113, "column": 8 }, "end": { "line": 113, "column": 28 } }, "object": { "type": "ThisExpression", "start": 2939, "end": 2943, "loc": { "start": { "line": 113, "column": 8 }, "end": { "line": 113, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 2944, "end": 2959, "loc": { "start": { "line": 113, "column": 13 }, "end": { "line": 113, "column": 28 }, "identifierName": "bufferGenerator" }, "name": "bufferGenerator" }, "computed": false, "leadingComments": null }, "right": { "type": "NullLiteral", "start": 2962, "end": 2966, "loc": { "start": { "line": 113, "column": 31 }, "end": { "line": 113, "column": 35 } } }, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " Set on demand", "start": 2913, "end": 2929, "loc": { "start": { "line": 112, "column": 8 }, "end": { "line": 112, "column": 24 } } } ] } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {object} param0\r\n * @param {Array=} param0.layers\r\n ", "start": 2541, "end": 2642, "loc": { "start": { "line": 95, "column": 4 }, "end": { "line": 99, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates the definition from the given short key\r\n * @param {string} key\r\n * @returns {ShapeDefinition}\r\n ", "start": 2982, "end": 3115, "loc": { "start": { "line": 116, "column": 4 }, "end": { "line": 120, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 3121, "end": 4349, "loc": { "start": { "line": 121, "column": 4 }, "end": { "line": 151, "column": 5 } }, "static": true, "computed": false, "key": { "type": "Identifier", "start": 3128, "end": 3140, "loc": { "start": { "line": 121, "column": 11 }, "end": { "line": 121, "column": 23 }, "identifierName": "fromShortKey" }, "name": "fromShortKey" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 3141, "end": 3144, "loc": { "start": { "line": 121, "column": 24 }, "end": { "line": 121, "column": 27 }, "identifierName": "key" }, "name": "key" } ], "body": { "type": "BlockStatement", "start": 3146, "end": 4349, "loc": { "start": { "line": 121, "column": 29 }, "end": { "line": 151, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 3157, "end": 3193, "loc": { "start": { "line": 122, "column": 8 }, "end": { "line": 122, "column": 44 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3163, "end": 3192, "loc": { "start": { "line": 122, "column": 14 }, "end": { "line": 122, "column": 43 } }, "id": { "type": "Identifier", "start": 3163, "end": 3175, "loc": { "start": { "line": 122, "column": 14 }, "end": { "line": 122, "column": 26 }, "identifierName": "sourceLayers" }, "name": "sourceLayers" }, "init": { "type": "CallExpression", "start": 3178, "end": 3192, "loc": { "start": { "line": 122, "column": 29 }, "end": { "line": 122, "column": 43 } }, "callee": { "type": "MemberExpression", "start": 3178, "end": 3187, "loc": { "start": { "line": 122, "column": 29 }, "end": { "line": 122, "column": 38 } }, "object": { "type": "Identifier", "start": 3178, "end": 3181, "loc": { "start": { "line": 122, "column": 29 }, "end": { "line": 122, "column": 32 }, "identifierName": "key" }, "name": "key" }, "property": { "type": "Identifier", "start": 3182, "end": 3187, "loc": { "start": { "line": 122, "column": 33 }, "end": { "line": 122, "column": 38 }, "identifierName": "split" }, "name": "split" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 3188, "end": 3191, "loc": { "start": { "line": 122, "column": 39 }, "end": { "line": 122, "column": 42 } }, "extra": { "rawValue": ":", "raw": "\":\"" }, "value": ":" } ] } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 3203, "end": 3219, "loc": { "start": { "line": 123, "column": 8 }, "end": { "line": 123, "column": 24 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3207, "end": 3218, "loc": { "start": { "line": 123, "column": 12 }, "end": { "line": 123, "column": 23 } }, "id": { "type": "Identifier", "start": 3207, "end": 3213, "loc": { "start": { "line": 123, "column": 12 }, "end": { "line": 123, "column": 18 }, "identifierName": "layers" }, "name": "layers" }, "init": { "type": "ArrayExpression", "start": 3216, "end": 3218, "loc": { "start": { "line": 123, "column": 21 }, "end": { "line": 123, "column": 23 } }, "elements": [] } } ], "kind": "let" }, { "type": "ForStatement", "start": 3229, "end": 4166, "loc": { "start": { "line": 124, "column": 8 }, "end": { "line": 145, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 3234, "end": 3243, "loc": { "start": { "line": 124, "column": 13 }, "end": { "line": 124, "column": 22 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3238, "end": 3243, "loc": { "start": { "line": 124, "column": 17 }, "end": { "line": 124, "column": 22 } }, "id": { "type": "Identifier", "start": 3238, "end": 3239, "loc": { "start": { "line": 124, "column": 17 }, "end": { "line": 124, "column": 18 }, "identifierName": "i" }, "name": "i" }, "init": { "type": "NumericLiteral", "start": 3242, "end": 3243, "loc": { "start": { "line": 124, "column": 21 }, "end": { "line": 124, "column": 22 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 3245, "end": 3268, "loc": { "start": { "line": 124, "column": 24 }, "end": { "line": 124, "column": 47 } }, "left": { "type": "Identifier", "start": 3245, "end": 3246, "loc": { "start": { "line": 124, "column": 24 }, "end": { "line": 124, "column": 25 }, "identifierName": "i" }, "name": "i" }, "operator": "<", "right": { "type": "MemberExpression", "start": 3249, "end": 3268, "loc": { "start": { "line": 124, "column": 28 }, "end": { "line": 124, "column": 47 } }, "object": { "type": "Identifier", "start": 3249, "end": 3261, "loc": { "start": { "line": 124, "column": 28 }, "end": { "line": 124, "column": 40 }, "identifierName": "sourceLayers" }, "name": "sourceLayers" }, "property": { "type": "Identifier", "start": 3262, "end": 3268, "loc": { "start": { "line": 124, "column": 41 }, "end": { "line": 124, "column": 47 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 3270, "end": 3273, "loc": { "start": { "line": 124, "column": 49 }, "end": { "line": 124, "column": 52 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 3272, "end": 3273, "loc": { "start": { "line": 124, "column": 51 }, "end": { "line": 124, "column": 52 }, "identifierName": "i" }, "name": "i" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 3275, "end": 4166, "loc": { "start": { "line": 124, "column": 54 }, "end": { "line": 145, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 3290, "end": 3319, "loc": { "start": { "line": 125, "column": 12 }, "end": { "line": 125, "column": 41 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3296, "end": 3318, "loc": { "start": { "line": 125, "column": 18 }, "end": { "line": 125, "column": 40 } }, "id": { "type": "Identifier", "start": 3296, "end": 3300, "loc": { "start": { "line": 125, "column": 18 }, "end": { "line": 125, "column": 22 }, "identifierName": "text" }, "name": "text" }, "init": { "type": "MemberExpression", "start": 3303, "end": 3318, "loc": { "start": { "line": 125, "column": 25 }, "end": { "line": 125, "column": 40 } }, "object": { "type": "Identifier", "start": 3303, "end": 3315, "loc": { "start": { "line": 125, "column": 25 }, "end": { "line": 125, "column": 37 }, "identifierName": "sourceLayers" }, "name": "sourceLayers" }, "property": { "type": "Identifier", "start": 3316, "end": 3317, "loc": { "start": { "line": 125, "column": 38 }, "end": { "line": 125, "column": 39 }, "identifierName": "i" }, "name": "i" }, "computed": true } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 3333, "end": 3394, "loc": { "start": { "line": 126, "column": 12 }, "end": { "line": 126, "column": 73 } }, "expression": { "type": "CallExpression", "start": 3333, "end": 3393, "loc": { "start": { "line": 126, "column": 12 }, "end": { "line": 126, "column": 72 } }, "callee": { "type": "Identifier", "start": 3333, "end": 3339, "loc": { "start": { "line": 126, "column": 12 }, "end": { "line": 126, "column": 18 }, "identifierName": "assert" }, "name": "assert" }, "arguments": [ { "type": "BinaryExpression", "start": 3340, "end": 3357, "loc": { "start": { "line": 126, "column": 19 }, "end": { "line": 126, "column": 36 } }, "left": { "type": "MemberExpression", "start": 3340, "end": 3351, "loc": { "start": { "line": 126, "column": 19 }, "end": { "line": 126, "column": 30 } }, "object": { "type": "Identifier", "start": 3340, "end": 3344, "loc": { "start": { "line": 126, "column": 19 }, "end": { "line": 126, "column": 23 }, "identifierName": "text" }, "name": "text" }, "property": { "type": "Identifier", "start": 3345, "end": 3351, "loc": { "start": { "line": 126, "column": 24 }, "end": { "line": 126, "column": 30 }, "identifierName": "length" }, "name": "length" }, "computed": false }, "operator": "===", "right": { "type": "NumericLiteral", "start": 3356, "end": 3357, "loc": { "start": { "line": 126, "column": 35 }, "end": { "line": 126, "column": 36 } }, "extra": { "rawValue": 8, "raw": "8" }, "value": 8 } }, { "type": "BinaryExpression", "start": 3359, "end": 3392, "loc": { "start": { "line": 126, "column": 38 }, "end": { "line": 126, "column": 71 } }, "left": { "type": "StringLiteral", "start": 3359, "end": 3386, "loc": { "start": { "line": 126, "column": 38 }, "end": { "line": 126, "column": 65 } }, "extra": { "rawValue": "Invalid shape short key: ", "raw": "\"Invalid shape short key: \"" }, "value": "Invalid shape short key: " }, "operator": "+", "right": { "type": "Identifier", "start": 3389, "end": 3392, "loc": { "start": { "line": 126, "column": 68 }, "end": { "line": 126, "column": 71 }, "identifierName": "key" }, "name": "key" } } ] }, "trailingComments": [ { "type": "CommentBlock", "value": "* @type {ShapeLayer} ", "start": 3410, "end": 3435, "loc": { "start": { "line": 128, "column": 12 }, "end": { "line": 128, "column": 37 } } } ] }, { "type": "VariableDeclaration", "start": 3449, "end": 3488, "loc": { "start": { "line": 129, "column": 12 }, "end": { "line": 129, "column": 51 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3455, "end": 3487, "loc": { "start": { "line": 129, "column": 18 }, "end": { "line": 129, "column": 50 } }, "id": { "type": "Identifier", "start": 3455, "end": 3460, "loc": { "start": { "line": 129, "column": 18 }, "end": { "line": 129, "column": 23 }, "identifierName": "quads" }, "name": "quads", "leadingComments": null }, "init": { "type": "ArrayExpression", "start": 3463, "end": 3487, "loc": { "start": { "line": 129, "column": 26 }, "end": { "line": 129, "column": 50 } }, "elements": [ { "type": "NullLiteral", "start": 3464, "end": 3468, "loc": { "start": { "line": 129, "column": 27 }, "end": { "line": 129, "column": 31 } } }, { "type": "NullLiteral", "start": 3470, "end": 3474, "loc": { "start": { "line": 129, "column": 33 }, "end": { "line": 129, "column": 37 } } }, { "type": "NullLiteral", "start": 3476, "end": 3480, "loc": { "start": { "line": 129, "column": 39 }, "end": { "line": 129, "column": 43 } } }, { "type": "NullLiteral", "start": 3482, "end": 3486, "loc": { "start": { "line": 129, "column": 45 }, "end": { "line": 129, "column": 49 } } } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentBlock", "value": "* @type {ShapeLayer} ", "start": 3410, "end": 3435, "loc": { "start": { "line": 128, "column": 12 }, "end": { "line": 128, "column": 37 } } } ] }, { "type": "ForStatement", "start": 3502, "end": 4122, "loc": { "start": { "line": 130, "column": 12 }, "end": { "line": 143, "column": 13 } }, "init": { "type": "VariableDeclaration", "start": 3507, "end": 3519, "loc": { "start": { "line": 130, "column": 17 }, "end": { "line": 130, "column": 29 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3511, "end": 3519, "loc": { "start": { "line": 130, "column": 21 }, "end": { "line": 130, "column": 29 } }, "id": { "type": "Identifier", "start": 3511, "end": 3515, "loc": { "start": { "line": 130, "column": 21 }, "end": { "line": 130, "column": 25 }, "identifierName": "quad" }, "name": "quad" }, "init": { "type": "NumericLiteral", "start": 3518, "end": 3519, "loc": { "start": { "line": 130, "column": 28 }, "end": { "line": 130, "column": 29 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 3521, "end": 3529, "loc": { "start": { "line": 130, "column": 31 }, "end": { "line": 130, "column": 39 } }, "left": { "type": "Identifier", "start": 3521, "end": 3525, "loc": { "start": { "line": 130, "column": 31 }, "end": { "line": 130, "column": 35 }, "identifierName": "quad" }, "name": "quad" }, "operator": "<", "right": { "type": "NumericLiteral", "start": 3528, "end": 3529, "loc": { "start": { "line": 130, "column": 38 }, "end": { "line": 130, "column": 39 } }, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 } }, "update": { "type": "UpdateExpression", "start": 3531, "end": 3537, "loc": { "start": { "line": 130, "column": 41 }, "end": { "line": 130, "column": 47 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 3533, "end": 3537, "loc": { "start": { "line": 130, "column": 43 }, "end": { "line": 130, "column": 47 }, "identifierName": "quad" }, "name": "quad" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 3539, "end": 4122, "loc": { "start": { "line": 130, "column": 49 }, "end": { "line": 143, "column": 13 } }, "body": [ { "type": "VariableDeclaration", "start": 3558, "end": 3595, "loc": { "start": { "line": 131, "column": 16 }, "end": { "line": 131, "column": 53 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3564, "end": 3594, "loc": { "start": { "line": 131, "column": 22 }, "end": { "line": 131, "column": 52 } }, "id": { "type": "Identifier", "start": 3564, "end": 3573, "loc": { "start": { "line": 131, "column": 22 }, "end": { "line": 131, "column": 31 }, "identifierName": "shapeText" }, "name": "shapeText" }, "init": { "type": "MemberExpression", "start": 3576, "end": 3594, "loc": { "start": { "line": 131, "column": 34 }, "end": { "line": 131, "column": 52 } }, "object": { "type": "Identifier", "start": 3576, "end": 3580, "loc": { "start": { "line": 131, "column": 34 }, "end": { "line": 131, "column": 38 }, "identifierName": "text" }, "name": "text" }, "property": { "type": "BinaryExpression", "start": 3581, "end": 3593, "loc": { "start": { "line": 131, "column": 39 }, "end": { "line": 131, "column": 51 } }, "left": { "type": "BinaryExpression", "start": 3581, "end": 3589, "loc": { "start": { "line": 131, "column": 39 }, "end": { "line": 131, "column": 47 } }, "left": { "type": "Identifier", "start": 3581, "end": 3585, "loc": { "start": { "line": 131, "column": 39 }, "end": { "line": 131, "column": 43 }, "identifierName": "quad" }, "name": "quad" }, "operator": "*", "right": { "type": "NumericLiteral", "start": 3588, "end": 3589, "loc": { "start": { "line": 131, "column": 46 }, "end": { "line": 131, "column": 47 } }, "extra": { "rawValue": 2, "raw": "2" }, "value": 2 } }, "operator": "+", "right": { "type": "NumericLiteral", "start": 3592, "end": 3593, "loc": { "start": { "line": 131, "column": 50 }, "end": { "line": 131, "column": 51 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } }, "computed": true } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 3613, "end": 3665, "loc": { "start": { "line": 132, "column": 16 }, "end": { "line": 132, "column": 68 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3619, "end": 3664, "loc": { "start": { "line": 132, "column": 22 }, "end": { "line": 132, "column": 67 } }, "id": { "type": "Identifier", "start": 3619, "end": 3627, "loc": { "start": { "line": 132, "column": 22 }, "end": { "line": 132, "column": 30 }, "identifierName": "subShape" }, "name": "subShape" }, "init": { "type": "MemberExpression", "start": 3630, "end": 3664, "loc": { "start": { "line": 132, "column": 33 }, "end": { "line": 132, "column": 67 } }, "object": { "type": "Identifier", "start": 3630, "end": 3653, "loc": { "start": { "line": 132, "column": 33 }, "end": { "line": 132, "column": 56 }, "identifierName": "enumShortcodeToSubShape" }, "name": "enumShortcodeToSubShape" }, "property": { "type": "Identifier", "start": 3654, "end": 3663, "loc": { "start": { "line": 132, "column": 57 }, "end": { "line": 132, "column": 66 }, "identifierName": "shapeText" }, "name": "shapeText" }, "computed": true } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 3683, "end": 3738, "loc": { "start": { "line": 133, "column": 16 }, "end": { "line": 133, "column": 71 } }, "declarations": [ { "type": "VariableDeclarator", "start": 3689, "end": 3737, "loc": { "start": { "line": 133, "column": 22 }, "end": { "line": 133, "column": 70 } }, "id": { "type": "Identifier", "start": 3689, "end": 3694, "loc": { "start": { "line": 133, "column": 22 }, "end": { "line": 133, "column": 27 }, "identifierName": "color" }, "name": "color" }, "init": { "type": "MemberExpression", "start": 3697, "end": 3737, "loc": { "start": { "line": 133, "column": 30 }, "end": { "line": 133, "column": 70 } }, "object": { "type": "Identifier", "start": 3697, "end": 3717, "loc": { "start": { "line": 133, "column": 30 }, "end": { "line": 133, "column": 50 }, "identifierName": "enumShortcodeToColor" }, "name": "enumShortcodeToColor" }, "property": { "type": "MemberExpression", "start": 3718, "end": 3736, "loc": { "start": { "line": 133, "column": 51 }, "end": { "line": 133, "column": 69 } }, "object": { "type": "Identifier", "start": 3718, "end": 3722, "loc": { "start": { "line": 133, "column": 51 }, "end": { "line": 133, "column": 55 }, "identifierName": "text" }, "name": "text" }, "property": { "type": "BinaryExpression", "start": 3723, "end": 3735, "loc": { "start": { "line": 133, "column": 56 }, "end": { "line": 133, "column": 68 } }, "left": { "type": "BinaryExpression", "start": 3723, "end": 3731, "loc": { "start": { "line": 133, "column": 56 }, "end": { "line": 133, "column": 64 } }, "left": { "type": "Identifier", "start": 3723, "end": 3727, "loc": { "start": { "line": 133, "column": 56 }, "end": { "line": 133, "column": 60 }, "identifierName": "quad" }, "name": "quad" }, "operator": "*", "right": { "type": "NumericLiteral", "start": 3730, "end": 3731, "loc": { "start": { "line": 133, "column": 63 }, "end": { "line": 133, "column": 64 } }, "extra": { "rawValue": 2, "raw": "2" }, "value": 2 } }, "operator": "+", "right": { "type": "NumericLiteral", "start": 3734, "end": 3735, "loc": { "start": { "line": 133, "column": 67 }, "end": { "line": 133, "column": 68 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } }, "computed": true }, "computed": true } } ], "kind": "const" }, { "type": "IfStatement", "start": 3756, "end": 4107, "loc": { "start": { "line": 134, "column": 16 }, "end": { "line": 142, "column": 17 } }, "test": { "type": "Identifier", "start": 3760, "end": 3768, "loc": { "start": { "line": 134, "column": 20 }, "end": { "line": 134, "column": 28 }, "identifierName": "subShape" }, "name": "subShape" }, "consequent": { "type": "BlockStatement", "start": 3770, "end": 3987, "loc": { "start": { "line": 134, "column": 30 }, "end": { "line": 140, "column": 17 } }, "body": [ { "type": "ExpressionStatement", "start": 3793, "end": 3840, "loc": { "start": { "line": 135, "column": 20 }, "end": { "line": 135, "column": 67 } }, "expression": { "type": "CallExpression", "start": 3793, "end": 3839, "loc": { "start": { "line": 135, "column": 20 }, "end": { "line": 135, "column": 66 } }, "callee": { "type": "Identifier", "start": 3793, "end": 3799, "loc": { "start": { "line": 135, "column": 20 }, "end": { "line": 135, "column": 26 }, "identifierName": "assert" }, "name": "assert" }, "arguments": [ { "type": "Identifier", "start": 3800, "end": 3805, "loc": { "start": { "line": 135, "column": 27 }, "end": { "line": 135, "column": 32 }, "identifierName": "color" }, "name": "color" }, { "type": "StringLiteral", "start": 3807, "end": 3833, "loc": { "start": { "line": 135, "column": 34 }, "end": { "line": 135, "column": 60 } }, "extra": { "rawValue": "Invalid shape short key:", "raw": "\"Invalid shape short key:\"" }, "value": "Invalid shape short key:" }, { "type": "Identifier", "start": 3835, "end": 3838, "loc": { "start": { "line": 135, "column": 62 }, "end": { "line": 135, "column": 65 }, "identifierName": "key" }, "name": "key" } ] } }, { "type": "ExpressionStatement", "start": 3862, "end": 3968, "loc": { "start": { "line": 136, "column": 20 }, "end": { "line": 139, "column": 22 } }, "expression": { "type": "AssignmentExpression", "start": 3862, "end": 3967, "loc": { "start": { "line": 136, "column": 20 }, "end": { "line": 139, "column": 21 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 3862, "end": 3873, "loc": { "start": { "line": 136, "column": 20 }, "end": { "line": 136, "column": 31 } }, "object": { "type": "Identifier", "start": 3862, "end": 3867, "loc": { "start": { "line": 136, "column": 20 }, "end": { "line": 136, "column": 25 }, "identifierName": "quads" }, "name": "quads" }, "property": { "type": "Identifier", "start": 3868, "end": 3872, "loc": { "start": { "line": 136, "column": 26 }, "end": { "line": 136, "column": 30 }, "identifierName": "quad" }, "name": "quad" }, "computed": true }, "right": { "type": "ObjectExpression", "start": 3876, "end": 3967, "loc": { "start": { "line": 136, "column": 34 }, "end": { "line": 139, "column": 21 } }, "properties": [ { "type": "ObjectProperty", "start": 3903, "end": 3911, "loc": { "start": { "line": 137, "column": 24 }, "end": { "line": 137, "column": 32 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 3903, "end": 3911, "loc": { "start": { "line": 137, "column": 24 }, "end": { "line": 137, "column": 32 }, "identifierName": "subShape" }, "name": "subShape" }, "value": { "type": "Identifier", "start": 3903, "end": 3911, "loc": { "start": { "line": 137, "column": 24 }, "end": { "line": 137, "column": 32 }, "identifierName": "subShape" }, "name": "subShape" }, "extra": { "shorthand": true } }, { "type": "ObjectProperty", "start": 3938, "end": 3943, "loc": { "start": { "line": 138, "column": 24 }, "end": { "line": 138, "column": 29 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 3938, "end": 3943, "loc": { "start": { "line": 138, "column": 24 }, "end": { "line": 138, "column": 29 }, "identifierName": "color" }, "name": "color" }, "value": { "type": "Identifier", "start": 3938, "end": 3943, "loc": { "start": { "line": 138, "column": 24 }, "end": { "line": 138, "column": 29 }, "identifierName": "color" }, "name": "color" }, "extra": { "shorthand": true } } ] } } } ], "directives": [] }, "alternate": { "type": "IfStatement", "start": 3993, "end": 4107, "loc": { "start": { "line": 140, "column": 23 }, "end": { "line": 142, "column": 17 } }, "test": { "type": "BinaryExpression", "start": 3997, "end": 4014, "loc": { "start": { "line": 140, "column": 27 }, "end": { "line": 140, "column": 44 } }, "left": { "type": "Identifier", "start": 3997, "end": 4006, "loc": { "start": { "line": 140, "column": 27 }, "end": { "line": 140, "column": 36 }, "identifierName": "shapeText" }, "name": "shapeText" }, "operator": "!==", "right": { "type": "StringLiteral", "start": 4011, "end": 4014, "loc": { "start": { "line": 140, "column": 41 }, "end": { "line": 140, "column": 44 } }, "extra": { "rawValue": "-", "raw": "\"-\"" }, "value": "-" } }, "consequent": { "type": "BlockStatement", "start": 4016, "end": 4107, "loc": { "start": { "line": 140, "column": 46 }, "end": { "line": 142, "column": 17 } }, "body": [ { "type": "ExpressionStatement", "start": 4039, "end": 4088, "loc": { "start": { "line": 141, "column": 20 }, "end": { "line": 141, "column": 69 } }, "expression": { "type": "CallExpression", "start": 4039, "end": 4087, "loc": { "start": { "line": 141, "column": 20 }, "end": { "line": 141, "column": 68 } }, "callee": { "type": "Identifier", "start": 4039, "end": 4045, "loc": { "start": { "line": 141, "column": 20 }, "end": { "line": 141, "column": 26 }, "identifierName": "assert" }, "name": "assert" }, "arguments": [ { "type": "BooleanLiteral", "start": 4046, "end": 4051, "loc": { "start": { "line": 141, "column": 27 }, "end": { "line": 141, "column": 32 } }, "value": false }, { "type": "BinaryExpression", "start": 4053, "end": 4086, "loc": { "start": { "line": 141, "column": 34 }, "end": { "line": 141, "column": 67 } }, "left": { "type": "StringLiteral", "start": 4053, "end": 4074, "loc": { "start": { "line": 141, "column": 34 }, "end": { "line": 141, "column": 55 } }, "extra": { "rawValue": "Invalid shape key: ", "raw": "\"Invalid shape key: \"" }, "value": "Invalid shape key: " }, "operator": "+", "right": { "type": "Identifier", "start": 4077, "end": 4086, "loc": { "start": { "line": 141, "column": 58 }, "end": { "line": 141, "column": 67 }, "identifierName": "shapeText" }, "name": "shapeText" } } ] } } ], "directives": [] }, "alternate": null } } ], "directives": [] } }, { "type": "ExpressionStatement", "start": 4136, "end": 4155, "loc": { "start": { "line": 144, "column": 12 }, "end": { "line": 144, "column": 31 } }, "expression": { "type": "CallExpression", "start": 4136, "end": 4154, "loc": { "start": { "line": 144, "column": 12 }, "end": { "line": 144, "column": 30 } }, "callee": { "type": "MemberExpression", "start": 4136, "end": 4147, "loc": { "start": { "line": 144, "column": 12 }, "end": { "line": 144, "column": 23 } }, "object": { "type": "Identifier", "start": 4136, "end": 4142, "loc": { "start": { "line": 144, "column": 12 }, "end": { "line": 144, "column": 18 }, "identifierName": "layers" }, "name": "layers" }, "property": { "type": "Identifier", "start": 4143, "end": 4147, "loc": { "start": { "line": 144, "column": 19 }, "end": { "line": 144, "column": 23 }, "identifierName": "push" }, "name": "push" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 4148, "end": 4153, "loc": { "start": { "line": 144, "column": 24 }, "end": { "line": 144, "column": 29 }, "identifierName": "quads" }, "name": "quads" } ] } } ], "directives": [] } }, { "type": "VariableDeclaration", "start": 4178, "end": 4229, "loc": { "start": { "line": 147, "column": 8 }, "end": { "line": 147, "column": 59 } }, "declarations": [ { "type": "VariableDeclarator", "start": 4184, "end": 4228, "loc": { "start": { "line": 147, "column": 14 }, "end": { "line": 147, "column": 58 } }, "id": { "type": "Identifier", "start": 4184, "end": 4194, "loc": { "start": { "line": 147, "column": 14 }, "end": { "line": 147, "column": 24 }, "identifierName": "definition" }, "name": "definition" }, "init": { "type": "NewExpression", "start": 4197, "end": 4228, "loc": { "start": { "line": 147, "column": 27 }, "end": { "line": 147, "column": 58 } }, "callee": { "type": "Identifier", "start": 4201, "end": 4216, "loc": { "start": { "line": 147, "column": 31 }, "end": { "line": 147, "column": 46 }, "identifierName": "ShapeDefinition" }, "name": "ShapeDefinition" }, "arguments": [ { "type": "ObjectExpression", "start": 4217, "end": 4227, "loc": { "start": { "line": 147, "column": 47 }, "end": { "line": 147, "column": 57 } }, "properties": [ { "type": "ObjectProperty", "start": 4219, "end": 4225, "loc": { "start": { "line": 147, "column": 49 }, "end": { "line": 147, "column": 55 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 4219, "end": 4225, "loc": { "start": { "line": 147, "column": 49 }, "end": { "line": 147, "column": 55 }, "identifierName": "layers" }, "name": "layers" }, "value": { "type": "Identifier", "start": 4219, "end": 4225, "loc": { "start": { "line": 147, "column": 49 }, "end": { "line": 147, "column": 55 }, "identifierName": "layers" }, "name": "layers" }, "extra": { "shorthand": true } } ] } ] } } ], "kind": "const", "trailingComments": [ { "type": "CommentLine", "value": " We know the hash so save some work", "start": 4239, "end": 4276, "loc": { "start": { "line": 148, "column": 8 }, "end": { "line": 148, "column": 45 } } } ] }, { "type": "ExpressionStatement", "start": 4286, "end": 4314, "loc": { "start": { "line": 149, "column": 8 }, "end": { "line": 149, "column": 36 } }, "expression": { "type": "AssignmentExpression", "start": 4286, "end": 4313, "loc": { "start": { "line": 149, "column": 8 }, "end": { "line": 149, "column": 35 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 4286, "end": 4307, "loc": { "start": { "line": 149, "column": 8 }, "end": { "line": 149, "column": 29 } }, "object": { "type": "Identifier", "start": 4286, "end": 4296, "loc": { "start": { "line": 149, "column": 8 }, "end": { "line": 149, "column": 18 }, "identifierName": "definition" }, "name": "definition", "leadingComments": null }, "property": { "type": "Identifier", "start": 4297, "end": 4307, "loc": { "start": { "line": 149, "column": 19 }, "end": { "line": 149, "column": 29 }, "identifierName": "cachedHash" }, "name": "cachedHash" }, "computed": false, "leadingComments": null }, "right": { "type": "Identifier", "start": 4310, "end": 4313, "loc": { "start": { "line": 149, "column": 32 }, "end": { "line": 149, "column": 35 }, "identifierName": "key" }, "name": "key" }, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " We know the hash so save some work", "start": 4239, "end": 4276, "loc": { "start": { "line": 148, "column": 8 }, "end": { "line": 148, "column": 45 } } } ] }, { "type": "ReturnStatement", "start": 4324, "end": 4342, "loc": { "start": { "line": 150, "column": 8 }, "end": { "line": 150, "column": 26 } }, "argument": { "type": "Identifier", "start": 4331, "end": 4341, "loc": { "start": { "line": 150, "column": 15 }, "end": { "line": 150, "column": 25 }, "identifierName": "definition" }, "name": "definition" } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates the definition from the given short key\r\n * @param {string} key\r\n * @returns {ShapeDefinition}\r\n ", "start": 2982, "end": 3115, "loc": { "start": { "line": 116, "column": 4 }, "end": { "line": 120, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Checks if a given string is a valid short key\r\n * @param {string} key\r\n * @returns {boolean}\r\n ", "start": 4357, "end": 4478, "loc": { "start": { "line": 153, "column": 4 }, "end": { "line": 157, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 4484, "end": 4757, "loc": { "start": { "line": 158, "column": 4 }, "end": { "line": 166, "column": 5 } }, "static": true, "computed": false, "key": { "type": "Identifier", "start": 4491, "end": 4506, "loc": { "start": { "line": 158, "column": 11 }, "end": { "line": 158, "column": 26 }, "identifierName": "isValidShortKey" }, "name": "isValidShortKey" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 4507, "end": 4510, "loc": { "start": { "line": 158, "column": 27 }, "end": { "line": 158, "column": 30 }, "identifierName": "key" }, "name": "key" } ], "body": { "type": "BlockStatement", "start": 4512, "end": 4757, "loc": { "start": { "line": 158, "column": 32 }, "end": { "line": 166, "column": 5 } }, "body": [ { "type": "IfStatement", "start": 4523, "end": 4611, "loc": { "start": { "line": 159, "column": 8 }, "end": { "line": 161, "column": 9 } }, "test": { "type": "CallExpression", "start": 4527, "end": 4551, "loc": { "start": { "line": 159, "column": 12 }, "end": { "line": 159, "column": 36 } }, "callee": { "type": "MemberExpression", "start": 4527, "end": 4546, "loc": { "start": { "line": 159, "column": 12 }, "end": { "line": 159, "column": 31 } }, "object": { "type": "Identifier", "start": 4527, "end": 4542, "loc": { "start": { "line": 159, "column": 12 }, "end": { "line": 159, "column": 27 }, "identifierName": "SHORT_KEY_CACHE" }, "name": "SHORT_KEY_CACHE" }, "property": { "type": "Identifier", "start": 4543, "end": 4546, "loc": { "start": { "line": 159, "column": 28 }, "end": { "line": 159, "column": 31 }, "identifierName": "has" }, "name": "has" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 4547, "end": 4550, "loc": { "start": { "line": 159, "column": 32 }, "end": { "line": 159, "column": 35 }, "identifierName": "key" }, "name": "key" } ] }, "consequent": { "type": "BlockStatement", "start": 4553, "end": 4611, "loc": { "start": { "line": 159, "column": 38 }, "end": { "line": 161, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 4568, "end": 4600, "loc": { "start": { "line": 160, "column": 12 }, "end": { "line": 160, "column": 44 } }, "argument": { "type": "CallExpression", "start": 4575, "end": 4599, "loc": { "start": { "line": 160, "column": 19 }, "end": { "line": 160, "column": 43 } }, "callee": { "type": "MemberExpression", "start": 4575, "end": 4594, "loc": { "start": { "line": 160, "column": 19 }, "end": { "line": 160, "column": 38 } }, "object": { "type": "Identifier", "start": 4575, "end": 4590, "loc": { "start": { "line": 160, "column": 19 }, "end": { "line": 160, "column": 34 }, "identifierName": "SHORT_KEY_CACHE" }, "name": "SHORT_KEY_CACHE" }, "property": { "type": "Identifier", "start": 4591, "end": 4594, "loc": { "start": { "line": 160, "column": 35 }, "end": { "line": 160, "column": 38 }, "identifierName": "get" }, "name": "get" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 4595, "end": 4598, "loc": { "start": { "line": 160, "column": 39 }, "end": { "line": 160, "column": 42 }, "identifierName": "key" }, "name": "key" } ] } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 4623, "end": 4683, "loc": { "start": { "line": 163, "column": 8 }, "end": { "line": 163, "column": 68 } }, "declarations": [ { "type": "VariableDeclarator", "start": 4629, "end": 4682, "loc": { "start": { "line": 163, "column": 14 }, "end": { "line": 163, "column": 67 } }, "id": { "type": "Identifier", "start": 4629, "end": 4635, "loc": { "start": { "line": 163, "column": 14 }, "end": { "line": 163, "column": 20 }, "identifierName": "result" }, "name": "result" }, "init": { "type": "CallExpression", "start": 4638, "end": 4682, "loc": { "start": { "line": 163, "column": 23 }, "end": { "line": 163, "column": 67 } }, "callee": { "type": "MemberExpression", "start": 4638, "end": 4677, "loc": { "start": { "line": 163, "column": 23 }, "end": { "line": 163, "column": 62 } }, "object": { "type": "Identifier", "start": 4638, "end": 4653, "loc": { "start": { "line": 163, "column": 23 }, "end": { "line": 163, "column": 38 }, "identifierName": "ShapeDefinition" }, "name": "ShapeDefinition" }, "property": { "type": "Identifier", "start": 4654, "end": 4677, "loc": { "start": { "line": 163, "column": 39 }, "end": { "line": 163, "column": 62 }, "identifierName": "isValidShortKeyInternal" }, "name": "isValidShortKeyInternal" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 4678, "end": 4681, "loc": { "start": { "line": 163, "column": 63 }, "end": { "line": 163, "column": 66 }, "identifierName": "key" }, "name": "key" } ] } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 4693, "end": 4726, "loc": { "start": { "line": 164, "column": 8 }, "end": { "line": 164, "column": 41 } }, "expression": { "type": "CallExpression", "start": 4693, "end": 4725, "loc": { "start": { "line": 164, "column": 8 }, "end": { "line": 164, "column": 40 } }, "callee": { "type": "MemberExpression", "start": 4693, "end": 4712, "loc": { "start": { "line": 164, "column": 8 }, "end": { "line": 164, "column": 27 } }, "object": { "type": "Identifier", "start": 4693, "end": 4708, "loc": { "start": { "line": 164, "column": 8 }, "end": { "line": 164, "column": 23 }, "identifierName": "SHORT_KEY_CACHE" }, "name": "SHORT_KEY_CACHE" }, "property": { "type": "Identifier", "start": 4709, "end": 4712, "loc": { "start": { "line": 164, "column": 24 }, "end": { "line": 164, "column": 27 }, "identifierName": "set" }, "name": "set" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 4713, "end": 4716, "loc": { "start": { "line": 164, "column": 28 }, "end": { "line": 164, "column": 31 }, "identifierName": "key" }, "name": "key" }, { "type": "Identifier", "start": 4718, "end": 4724, "loc": { "start": { "line": 164, "column": 33 }, "end": { "line": 164, "column": 39 }, "identifierName": "result" }, "name": "result" } ] } }, { "type": "ReturnStatement", "start": 4736, "end": 4750, "loc": { "start": { "line": 165, "column": 8 }, "end": { "line": 165, "column": 22 } }, "argument": { "type": "Identifier", "start": 4743, "end": 4749, "loc": { "start": { "line": 165, "column": 15 }, "end": { "line": 165, "column": 21 }, "identifierName": "result" }, "name": "result" } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Checks if a given string is a valid short key\r\n * @param {string} key\r\n * @returns {boolean}\r\n ", "start": 4357, "end": 4478, "loc": { "start": { "line": 153, "column": 4 }, "end": { "line": 157, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * INTERNAL\r\n * Checks if a given string is a valid short key\r\n * @param {string} key\r\n * @returns {boolean}\r\n ", "start": 4765, "end": 4903, "loc": { "start": { "line": 168, "column": 4 }, "end": { "line": 173, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 4909, "end": 6637, "loc": { "start": { "line": 174, "column": 4 }, "end": { "line": 226, "column": 5 } }, "static": true, "computed": false, "key": { "type": "Identifier", "start": 4916, "end": 4939, "loc": { "start": { "line": 174, "column": 11 }, "end": { "line": 174, "column": 34 }, "identifierName": "isValidShortKeyInternal" }, "name": "isValidShortKeyInternal" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 4940, "end": 4943, "loc": { "start": { "line": 174, "column": 35 }, "end": { "line": 174, "column": 38 }, "identifierName": "key" }, "name": "key" } ], "body": { "type": "BlockStatement", "start": 4945, "end": 6637, "loc": { "start": { "line": 174, "column": 40 }, "end": { "line": 226, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 4956, "end": 4992, "loc": { "start": { "line": 175, "column": 8 }, "end": { "line": 175, "column": 44 } }, "declarations": [ { "type": "VariableDeclarator", "start": 4962, "end": 4991, "loc": { "start": { "line": 175, "column": 14 }, "end": { "line": 175, "column": 43 } }, "id": { "type": "Identifier", "start": 4962, "end": 4974, "loc": { "start": { "line": 175, "column": 14 }, "end": { "line": 175, "column": 26 }, "identifierName": "sourceLayers" }, "name": "sourceLayers" }, "init": { "type": "CallExpression", "start": 4977, "end": 4991, "loc": { "start": { "line": 175, "column": 29 }, "end": { "line": 175, "column": 43 } }, "callee": { "type": "MemberExpression", "start": 4977, "end": 4986, "loc": { "start": { "line": 175, "column": 29 }, "end": { "line": 175, "column": 38 } }, "object": { "type": "Identifier", "start": 4977, "end": 4980, "loc": { "start": { "line": 175, "column": 29 }, "end": { "line": 175, "column": 32 }, "identifierName": "key" }, "name": "key" }, "property": { "type": "Identifier", "start": 4981, "end": 4986, "loc": { "start": { "line": 175, "column": 33 }, "end": { "line": 175, "column": 38 }, "identifierName": "split" }, "name": "split" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 4987, "end": 4990, "loc": { "start": { "line": 175, "column": 39 }, "end": { "line": 175, "column": 42 } }, "extra": { "rawValue": ":", "raw": "\":\"" }, "value": ":" } ] } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 5002, "end": 5018, "loc": { "start": { "line": 176, "column": 8 }, "end": { "line": 176, "column": 24 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5006, "end": 5017, "loc": { "start": { "line": 176, "column": 12 }, "end": { "line": 176, "column": 23 } }, "id": { "type": "Identifier", "start": 5006, "end": 5012, "loc": { "start": { "line": 176, "column": 12 }, "end": { "line": 176, "column": 18 }, "identifierName": "layers" }, "name": "layers" }, "init": { "type": "ArrayExpression", "start": 5015, "end": 5017, "loc": { "start": { "line": 176, "column": 21 }, "end": { "line": 176, "column": 23 } }, "elements": [] } } ], "kind": "let" }, { "type": "ForStatement", "start": 5028, "end": 6509, "loc": { "start": { "line": 177, "column": 8 }, "end": { "line": 219, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 5033, "end": 5042, "loc": { "start": { "line": 177, "column": 13 }, "end": { "line": 177, "column": 22 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5037, "end": 5042, "loc": { "start": { "line": 177, "column": 17 }, "end": { "line": 177, "column": 22 } }, "id": { "type": "Identifier", "start": 5037, "end": 5038, "loc": { "start": { "line": 177, "column": 17 }, "end": { "line": 177, "column": 18 }, "identifierName": "i" }, "name": "i" }, "init": { "type": "NumericLiteral", "start": 5041, "end": 5042, "loc": { "start": { "line": 177, "column": 21 }, "end": { "line": 177, "column": 22 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 5044, "end": 5067, "loc": { "start": { "line": 177, "column": 24 }, "end": { "line": 177, "column": 47 } }, "left": { "type": "Identifier", "start": 5044, "end": 5045, "loc": { "start": { "line": 177, "column": 24 }, "end": { "line": 177, "column": 25 }, "identifierName": "i" }, "name": "i" }, "operator": "<", "right": { "type": "MemberExpression", "start": 5048, "end": 5067, "loc": { "start": { "line": 177, "column": 28 }, "end": { "line": 177, "column": 47 } }, "object": { "type": "Identifier", "start": 5048, "end": 5060, "loc": { "start": { "line": 177, "column": 28 }, "end": { "line": 177, "column": 40 }, "identifierName": "sourceLayers" }, "name": "sourceLayers" }, "property": { "type": "Identifier", "start": 5061, "end": 5067, "loc": { "start": { "line": 177, "column": 41 }, "end": { "line": 177, "column": 47 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 5069, "end": 5072, "loc": { "start": { "line": 177, "column": 49 }, "end": { "line": 177, "column": 52 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 5071, "end": 5072, "loc": { "start": { "line": 177, "column": 51 }, "end": { "line": 177, "column": 52 }, "identifierName": "i" }, "name": "i" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 5074, "end": 6509, "loc": { "start": { "line": 177, "column": 54 }, "end": { "line": 219, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 5089, "end": 5118, "loc": { "start": { "line": 178, "column": 12 }, "end": { "line": 178, "column": 41 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5095, "end": 5117, "loc": { "start": { "line": 178, "column": 18 }, "end": { "line": 178, "column": 40 } }, "id": { "type": "Identifier", "start": 5095, "end": 5099, "loc": { "start": { "line": 178, "column": 18 }, "end": { "line": 178, "column": 22 }, "identifierName": "text" }, "name": "text" }, "init": { "type": "MemberExpression", "start": 5102, "end": 5117, "loc": { "start": { "line": 178, "column": 25 }, "end": { "line": 178, "column": 40 } }, "object": { "type": "Identifier", "start": 5102, "end": 5114, "loc": { "start": { "line": 178, "column": 25 }, "end": { "line": 178, "column": 37 }, "identifierName": "sourceLayers" }, "name": "sourceLayers" }, "property": { "type": "Identifier", "start": 5115, "end": 5116, "loc": { "start": { "line": 178, "column": 38 }, "end": { "line": 178, "column": 39 }, "identifierName": "i" }, "name": "i" }, "computed": true } } ], "kind": "const" }, { "type": "IfStatement", "start": 5132, "end": 5202, "loc": { "start": { "line": 179, "column": 12 }, "end": { "line": 181, "column": 13 } }, "test": { "type": "BinaryExpression", "start": 5136, "end": 5153, "loc": { "start": { "line": 179, "column": 16 }, "end": { "line": 179, "column": 33 } }, "left": { "type": "MemberExpression", "start": 5136, "end": 5147, "loc": { "start": { "line": 179, "column": 16 }, "end": { "line": 179, "column": 27 } }, "object": { "type": "Identifier", "start": 5136, "end": 5140, "loc": { "start": { "line": 179, "column": 16 }, "end": { "line": 179, "column": 20 }, "identifierName": "text" }, "name": "text" }, "property": { "type": "Identifier", "start": 5141, "end": 5147, "loc": { "start": { "line": 179, "column": 21 }, "end": { "line": 179, "column": 27 }, "identifierName": "length" }, "name": "length" }, "computed": false }, "operator": "!==", "right": { "type": "NumericLiteral", "start": 5152, "end": 5153, "loc": { "start": { "line": 179, "column": 32 }, "end": { "line": 179, "column": 33 } }, "extra": { "rawValue": 8, "raw": "8" }, "value": 8 } }, "consequent": { "type": "BlockStatement", "start": 5155, "end": 5202, "loc": { "start": { "line": 179, "column": 35 }, "end": { "line": 181, "column": 13 } }, "body": [ { "type": "ReturnStatement", "start": 5174, "end": 5187, "loc": { "start": { "line": 180, "column": 16 }, "end": { "line": 180, "column": 29 } }, "argument": { "type": "BooleanLiteral", "start": 5181, "end": 5186, "loc": { "start": { "line": 180, "column": 23 }, "end": { "line": 180, "column": 28 } }, "value": false } } ], "directives": [], "trailingComments": null }, "alternate": null, "trailingComments": [ { "type": "CommentBlock", "value": "* @type {ShapeLayer} ", "start": 5218, "end": 5243, "loc": { "start": { "line": 183, "column": 12 }, "end": { "line": 183, "column": 37 } } } ] }, { "type": "VariableDeclaration", "start": 5257, "end": 5296, "loc": { "start": { "line": 184, "column": 12 }, "end": { "line": 184, "column": 51 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5263, "end": 5295, "loc": { "start": { "line": 184, "column": 18 }, "end": { "line": 184, "column": 50 } }, "id": { "type": "Identifier", "start": 5263, "end": 5268, "loc": { "start": { "line": 184, "column": 18 }, "end": { "line": 184, "column": 23 }, "identifierName": "quads" }, "name": "quads", "leadingComments": null }, "init": { "type": "ArrayExpression", "start": 5271, "end": 5295, "loc": { "start": { "line": 184, "column": 26 }, "end": { "line": 184, "column": 50 } }, "elements": [ { "type": "NullLiteral", "start": 5272, "end": 5276, "loc": { "start": { "line": 184, "column": 27 }, "end": { "line": 184, "column": 31 } } }, { "type": "NullLiteral", "start": 5278, "end": 5282, "loc": { "start": { "line": 184, "column": 33 }, "end": { "line": 184, "column": 37 } } }, { "type": "NullLiteral", "start": 5284, "end": 5288, "loc": { "start": { "line": 184, "column": 39 }, "end": { "line": 184, "column": 43 } } }, { "type": "NullLiteral", "start": 5290, "end": 5294, "loc": { "start": { "line": 184, "column": 45 }, "end": { "line": 184, "column": 49 } } } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentBlock", "value": "* @type {ShapeLayer} ", "start": 5218, "end": 5243, "loc": { "start": { "line": 183, "column": 12 }, "end": { "line": 183, "column": 37 } } } ] }, { "type": "VariableDeclaration", "start": 5310, "end": 5332, "loc": { "start": { "line": 185, "column": 12 }, "end": { "line": 185, "column": 34 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5314, "end": 5331, "loc": { "start": { "line": 185, "column": 16 }, "end": { "line": 185, "column": 33 } }, "id": { "type": "Identifier", "start": 5314, "end": 5323, "loc": { "start": { "line": 185, "column": 16 }, "end": { "line": 185, "column": 25 }, "identifierName": "anyFilled" }, "name": "anyFilled" }, "init": { "type": "BooleanLiteral", "start": 5326, "end": 5331, "loc": { "start": { "line": 185, "column": 28 }, "end": { "line": 185, "column": 33 } }, "value": false } } ], "kind": "let" }, { "type": "ForStatement", "start": 5346, "end": 6354, "loc": { "start": { "line": 186, "column": 12 }, "end": { "line": 212, "column": 13 } }, "init": { "type": "VariableDeclaration", "start": 5351, "end": 5363, "loc": { "start": { "line": 186, "column": 17 }, "end": { "line": 186, "column": 29 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5355, "end": 5363, "loc": { "start": { "line": 186, "column": 21 }, "end": { "line": 186, "column": 29 } }, "id": { "type": "Identifier", "start": 5355, "end": 5359, "loc": { "start": { "line": 186, "column": 21 }, "end": { "line": 186, "column": 25 }, "identifierName": "quad" }, "name": "quad" }, "init": { "type": "NumericLiteral", "start": 5362, "end": 5363, "loc": { "start": { "line": 186, "column": 28 }, "end": { "line": 186, "column": 29 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 5365, "end": 5373, "loc": { "start": { "line": 186, "column": 31 }, "end": { "line": 186, "column": 39 } }, "left": { "type": "Identifier", "start": 5365, "end": 5369, "loc": { "start": { "line": 186, "column": 31 }, "end": { "line": 186, "column": 35 }, "identifierName": "quad" }, "name": "quad" }, "operator": "<", "right": { "type": "NumericLiteral", "start": 5372, "end": 5373, "loc": { "start": { "line": 186, "column": 38 }, "end": { "line": 186, "column": 39 } }, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 } }, "update": { "type": "UpdateExpression", "start": 5375, "end": 5381, "loc": { "start": { "line": 186, "column": 41 }, "end": { "line": 186, "column": 47 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 5377, "end": 5381, "loc": { "start": { "line": 186, "column": 43 }, "end": { "line": 186, "column": 47 }, "identifierName": "quad" }, "name": "quad" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 5383, "end": 6354, "loc": { "start": { "line": 186, "column": 49 }, "end": { "line": 212, "column": 13 } }, "body": [ { "type": "VariableDeclaration", "start": 5402, "end": 5439, "loc": { "start": { "line": 187, "column": 16 }, "end": { "line": 187, "column": 53 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5408, "end": 5438, "loc": { "start": { "line": 187, "column": 22 }, "end": { "line": 187, "column": 52 } }, "id": { "type": "Identifier", "start": 5408, "end": 5417, "loc": { "start": { "line": 187, "column": 22 }, "end": { "line": 187, "column": 31 }, "identifierName": "shapeText" }, "name": "shapeText" }, "init": { "type": "MemberExpression", "start": 5420, "end": 5438, "loc": { "start": { "line": 187, "column": 34 }, "end": { "line": 187, "column": 52 } }, "object": { "type": "Identifier", "start": 5420, "end": 5424, "loc": { "start": { "line": 187, "column": 34 }, "end": { "line": 187, "column": 38 }, "identifierName": "text" }, "name": "text" }, "property": { "type": "BinaryExpression", "start": 5425, "end": 5437, "loc": { "start": { "line": 187, "column": 39 }, "end": { "line": 187, "column": 51 } }, "left": { "type": "BinaryExpression", "start": 5425, "end": 5433, "loc": { "start": { "line": 187, "column": 39 }, "end": { "line": 187, "column": 47 } }, "left": { "type": "Identifier", "start": 5425, "end": 5429, "loc": { "start": { "line": 187, "column": 39 }, "end": { "line": 187, "column": 43 }, "identifierName": "quad" }, "name": "quad" }, "operator": "*", "right": { "type": "NumericLiteral", "start": 5432, "end": 5433, "loc": { "start": { "line": 187, "column": 46 }, "end": { "line": 187, "column": 47 } }, "extra": { "rawValue": 2, "raw": "2" }, "value": 2 } }, "operator": "+", "right": { "type": "NumericLiteral", "start": 5436, "end": 5437, "loc": { "start": { "line": 187, "column": 50 }, "end": { "line": 187, "column": 51 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } }, "computed": true } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 5457, "end": 5494, "loc": { "start": { "line": 188, "column": 16 }, "end": { "line": 188, "column": 53 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5463, "end": 5493, "loc": { "start": { "line": 188, "column": 22 }, "end": { "line": 188, "column": 52 } }, "id": { "type": "Identifier", "start": 5463, "end": 5472, "loc": { "start": { "line": 188, "column": 22 }, "end": { "line": 188, "column": 31 }, "identifierName": "colorText" }, "name": "colorText" }, "init": { "type": "MemberExpression", "start": 5475, "end": 5493, "loc": { "start": { "line": 188, "column": 34 }, "end": { "line": 188, "column": 52 } }, "object": { "type": "Identifier", "start": 5475, "end": 5479, "loc": { "start": { "line": 188, "column": 34 }, "end": { "line": 188, "column": 38 }, "identifierName": "text" }, "name": "text" }, "property": { "type": "BinaryExpression", "start": 5480, "end": 5492, "loc": { "start": { "line": 188, "column": 39 }, "end": { "line": 188, "column": 51 } }, "left": { "type": "BinaryExpression", "start": 5480, "end": 5488, "loc": { "start": { "line": 188, "column": 39 }, "end": { "line": 188, "column": 47 } }, "left": { "type": "Identifier", "start": 5480, "end": 5484, "loc": { "start": { "line": 188, "column": 39 }, "end": { "line": 188, "column": 43 }, "identifierName": "quad" }, "name": "quad" }, "operator": "*", "right": { "type": "NumericLiteral", "start": 5487, "end": 5488, "loc": { "start": { "line": 188, "column": 46 }, "end": { "line": 188, "column": 47 } }, "extra": { "rawValue": 2, "raw": "2" }, "value": 2 } }, "operator": "+", "right": { "type": "NumericLiteral", "start": 5491, "end": 5492, "loc": { "start": { "line": 188, "column": 50 }, "end": { "line": 188, "column": 51 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } }, "computed": true } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 5512, "end": 5564, "loc": { "start": { "line": 189, "column": 16 }, "end": { "line": 189, "column": 68 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5518, "end": 5563, "loc": { "start": { "line": 189, "column": 22 }, "end": { "line": 189, "column": 67 } }, "id": { "type": "Identifier", "start": 5518, "end": 5526, "loc": { "start": { "line": 189, "column": 22 }, "end": { "line": 189, "column": 30 }, "identifierName": "subShape" }, "name": "subShape" }, "init": { "type": "MemberExpression", "start": 5529, "end": 5563, "loc": { "start": { "line": 189, "column": 33 }, "end": { "line": 189, "column": 67 } }, "object": { "type": "Identifier", "start": 5529, "end": 5552, "loc": { "start": { "line": 189, "column": 33 }, "end": { "line": 189, "column": 56 }, "identifierName": "enumShortcodeToSubShape" }, "name": "enumShortcodeToSubShape" }, "property": { "type": "Identifier", "start": 5553, "end": 5562, "loc": { "start": { "line": 189, "column": 57 }, "end": { "line": 189, "column": 66 }, "identifierName": "shapeText" }, "name": "shapeText" }, "computed": true } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 5582, "end": 5628, "loc": { "start": { "line": 190, "column": 16 }, "end": { "line": 190, "column": 62 } }, "declarations": [ { "type": "VariableDeclarator", "start": 5588, "end": 5627, "loc": { "start": { "line": 190, "column": 22 }, "end": { "line": 190, "column": 61 } }, "id": { "type": "Identifier", "start": 5588, "end": 5593, "loc": { "start": { "line": 190, "column": 22 }, "end": { "line": 190, "column": 27 }, "identifierName": "color" }, "name": "color" }, "init": { "type": "MemberExpression", "start": 5596, "end": 5627, "loc": { "start": { "line": 190, "column": 30 }, "end": { "line": 190, "column": 61 } }, "object": { "type": "Identifier", "start": 5596, "end": 5616, "loc": { "start": { "line": 190, "column": 30 }, "end": { "line": 190, "column": 50 }, "identifierName": "enumShortcodeToColor" }, "name": "enumShortcodeToColor" }, "property": { "type": "Identifier", "start": 5617, "end": 5626, "loc": { "start": { "line": 190, "column": 51 }, "end": { "line": 190, "column": 60 }, "identifierName": "colorText" }, "name": "colorText" }, "computed": true } } ], "kind": "const", "trailingComments": [ { "type": "CommentLine", "value": " Valid shape", "start": 5648, "end": 5662, "loc": { "start": { "line": 192, "column": 16 }, "end": { "line": 192, "column": 30 } } } ] }, { "type": "IfStatement", "start": 5680, "end": 6339, "loc": { "start": { "line": 193, "column": 16 }, "end": { "line": 211, "column": 17 } }, "test": { "type": "Identifier", "start": 5684, "end": 5692, "loc": { "start": { "line": 193, "column": 20 }, "end": { "line": 193, "column": 28 }, "identifierName": "subShape" }, "name": "subShape", "leadingComments": null }, "consequent": { "type": "BlockStatement", "start": 5694, "end": 6020, "loc": { "start": { "line": 193, "column": 30 }, "end": { "line": 203, "column": 17 } }, "body": [ { "type": "IfStatement", "start": 5717, "end": 5834, "loc": { "start": { "line": 194, "column": 20 }, "end": { "line": 197, "column": 21 } }, "test": { "type": "UnaryExpression", "start": 5721, "end": 5727, "loc": { "start": { "line": 194, "column": 24 }, "end": { "line": 194, "column": 30 } }, "operator": "!", "prefix": true, "argument": { "type": "Identifier", "start": 5722, "end": 5727, "loc": { "start": { "line": 194, "column": 25 }, "end": { "line": 194, "column": 30 }, "identifierName": "color" }, "name": "color" }, "extra": { "parenthesizedArgument": false } }, "consequent": { "type": "BlockStatement", "start": 5729, "end": 5834, "loc": { "start": { "line": 194, "column": 32 }, "end": { "line": 197, "column": 21 } }, "body": [ { "type": "ReturnStatement", "start": 5798, "end": 5811, "loc": { "start": { "line": 196, "column": 24 }, "end": { "line": 196, "column": 37 } }, "argument": { "type": "BooleanLiteral", "start": 5805, "end": 5810, "loc": { "start": { "line": 196, "column": 31 }, "end": { "line": 196, "column": 36 } }, "value": false, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " Invalid color", "start": 5756, "end": 5772, "loc": { "start": { "line": 195, "column": 24 }, "end": { "line": 195, "column": 40 } } } ] } ], "directives": [] }, "alternate": null }, { "type": "ExpressionStatement", "start": 5856, "end": 5962, "loc": { "start": { "line": 198, "column": 20 }, "end": { "line": 201, "column": 22 } }, "expression": { "type": "AssignmentExpression", "start": 5856, "end": 5961, "loc": { "start": { "line": 198, "column": 20 }, "end": { "line": 201, "column": 21 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 5856, "end": 5867, "loc": { "start": { "line": 198, "column": 20 }, "end": { "line": 198, "column": 31 } }, "object": { "type": "Identifier", "start": 5856, "end": 5861, "loc": { "start": { "line": 198, "column": 20 }, "end": { "line": 198, "column": 25 }, "identifierName": "quads" }, "name": "quads" }, "property": { "type": "Identifier", "start": 5862, "end": 5866, "loc": { "start": { "line": 198, "column": 26 }, "end": { "line": 198, "column": 30 }, "identifierName": "quad" }, "name": "quad" }, "computed": true }, "right": { "type": "ObjectExpression", "start": 5870, "end": 5961, "loc": { "start": { "line": 198, "column": 34 }, "end": { "line": 201, "column": 21 } }, "properties": [ { "type": "ObjectProperty", "start": 5897, "end": 5905, "loc": { "start": { "line": 199, "column": 24 }, "end": { "line": 199, "column": 32 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 5897, "end": 5905, "loc": { "start": { "line": 199, "column": 24 }, "end": { "line": 199, "column": 32 }, "identifierName": "subShape" }, "name": "subShape" }, "value": { "type": "Identifier", "start": 5897, "end": 5905, "loc": { "start": { "line": 199, "column": 24 }, "end": { "line": 199, "column": 32 }, "identifierName": "subShape" }, "name": "subShape" }, "extra": { "shorthand": true } }, { "type": "ObjectProperty", "start": 5932, "end": 5937, "loc": { "start": { "line": 200, "column": 24 }, "end": { "line": 200, "column": 29 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 5932, "end": 5937, "loc": { "start": { "line": 200, "column": 24 }, "end": { "line": 200, "column": 29 }, "identifierName": "color" }, "name": "color" }, "value": { "type": "Identifier", "start": 5932, "end": 5937, "loc": { "start": { "line": 200, "column": 24 }, "end": { "line": 200, "column": 29 }, "identifierName": "color" }, "name": "color" }, "extra": { "shorthand": true } } ] } } }, { "type": "ExpressionStatement", "start": 5984, "end": 6001, "loc": { "start": { "line": 202, "column": 20 }, "end": { "line": 202, "column": 37 } }, "expression": { "type": "AssignmentExpression", "start": 5984, "end": 6000, "loc": { "start": { "line": 202, "column": 20 }, "end": { "line": 202, "column": 36 } }, "operator": "=", "left": { "type": "Identifier", "start": 5984, "end": 5993, "loc": { "start": { "line": 202, "column": 20 }, "end": { "line": 202, "column": 29 }, "identifierName": "anyFilled" }, "name": "anyFilled" }, "right": { "type": "BooleanLiteral", "start": 5996, "end": 6000, "loc": { "start": { "line": 202, "column": 32 }, "end": { "line": 202, "column": 36 } }, "value": true } } } ], "directives": [] }, "alternate": { "type": "IfStatement", "start": 6026, "end": 6339, "loc": { "start": { "line": 203, "column": 23 }, "end": { "line": 211, "column": 17 } }, "test": { "type": "BinaryExpression", "start": 6030, "end": 6047, "loc": { "start": { "line": 203, "column": 27 }, "end": { "line": 203, "column": 44 } }, "left": { "type": "Identifier", "start": 6030, "end": 6039, "loc": { "start": { "line": 203, "column": 27 }, "end": { "line": 203, "column": 36 }, "identifierName": "shapeText" }, "name": "shapeText" }, "operator": "===", "right": { "type": "StringLiteral", "start": 6044, "end": 6047, "loc": { "start": { "line": 203, "column": 41 }, "end": { "line": 203, "column": 44 } }, "extra": { "rawValue": "-", "raw": "\"-\"" }, "value": "-" } }, "consequent": { "type": "BlockStatement", "start": 6049, "end": 6236, "loc": { "start": { "line": 203, "column": 46 }, "end": { "line": 208, "column": 17 } }, "body": [ { "type": "IfStatement", "start": 6131, "end": 6217, "loc": { "start": { "line": 205, "column": 20 }, "end": { "line": 207, "column": 21 } }, "test": { "type": "BinaryExpression", "start": 6135, "end": 6152, "loc": { "start": { "line": 205, "column": 24 }, "end": { "line": 205, "column": 41 } }, "left": { "type": "Identifier", "start": 6135, "end": 6144, "loc": { "start": { "line": 205, "column": 24 }, "end": { "line": 205, "column": 33 }, "identifierName": "colorText" }, "name": "colorText", "leadingComments": null }, "operator": "!==", "right": { "type": "StringLiteral", "start": 6149, "end": 6152, "loc": { "start": { "line": 205, "column": 38 }, "end": { "line": 205, "column": 41 } }, "extra": { "rawValue": "-", "raw": "\"-\"" }, "value": "-" }, "leadingComments": null }, "consequent": { "type": "BlockStatement", "start": 6154, "end": 6217, "loc": { "start": { "line": 205, "column": 43 }, "end": { "line": 207, "column": 21 } }, "body": [ { "type": "ReturnStatement", "start": 6181, "end": 6194, "loc": { "start": { "line": 206, "column": 24 }, "end": { "line": 206, "column": 37 } }, "argument": { "type": "BooleanLiteral", "start": 6188, "end": 6193, "loc": { "start": { "line": 206, "column": 31 }, "end": { "line": 206, "column": 36 } }, "value": false } } ], "directives": [] }, "alternate": null, "leadingComments": [ { "type": "CommentLine", "value": " Make sure color is empty then, too", "start": 6072, "end": 6109, "loc": { "start": { "line": 204, "column": 20 }, "end": { "line": 204, "column": 57 } } } ] } ], "directives": [] }, "alternate": { "type": "BlockStatement", "start": 6242, "end": 6339, "loc": { "start": { "line": 208, "column": 23 }, "end": { "line": 211, "column": 17 } }, "body": [ { "type": "ReturnStatement", "start": 6307, "end": 6320, "loc": { "start": { "line": 210, "column": 20 }, "end": { "line": 210, "column": 33 } }, "argument": { "type": "BooleanLiteral", "start": 6314, "end": 6319, "loc": { "start": { "line": 210, "column": 27 }, "end": { "line": 210, "column": 32 } }, "value": false, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " Invalid shape key", "start": 6265, "end": 6285, "loc": { "start": { "line": 209, "column": 20 }, "end": { "line": 209, "column": 40 } } } ] } ], "directives": [] } }, "leadingComments": [ { "type": "CommentLine", "value": " Valid shape", "start": 5648, "end": 5662, "loc": { "start": { "line": 192, "column": 16 }, "end": { "line": 192, "column": 30 } } } ] } ], "directives": [] } }, { "type": "IfStatement", "start": 6370, "end": 6465, "loc": { "start": { "line": 214, "column": 12 }, "end": { "line": 217, "column": 13 } }, "test": { "type": "UnaryExpression", "start": 6374, "end": 6384, "loc": { "start": { "line": 214, "column": 16 }, "end": { "line": 214, "column": 26 } }, "operator": "!", "prefix": true, "argument": { "type": "Identifier", "start": 6375, "end": 6384, "loc": { "start": { "line": 214, "column": 17 }, "end": { "line": 214, "column": 26 }, "identifierName": "anyFilled" }, "name": "anyFilled" }, "extra": { "parenthesizedArgument": false } }, "consequent": { "type": "BlockStatement", "start": 6386, "end": 6465, "loc": { "start": { "line": 214, "column": 28 }, "end": { "line": 217, "column": 13 } }, "body": [ { "type": "ReturnStatement", "start": 6437, "end": 6450, "loc": { "start": { "line": 216, "column": 16 }, "end": { "line": 216, "column": 29 } }, "argument": { "type": "BooleanLiteral", "start": 6444, "end": 6449, "loc": { "start": { "line": 216, "column": 23 }, "end": { "line": 216, "column": 28 } }, "value": false, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " Empty layer", "start": 6405, "end": 6419, "loc": { "start": { "line": 215, "column": 16 }, "end": { "line": 215, "column": 30 } } } ] } ], "directives": [] }, "alternate": null }, { "type": "ExpressionStatement", "start": 6479, "end": 6498, "loc": { "start": { "line": 218, "column": 12 }, "end": { "line": 218, "column": 31 } }, "expression": { "type": "CallExpression", "start": 6479, "end": 6497, "loc": { "start": { "line": 218, "column": 12 }, "end": { "line": 218, "column": 30 } }, "callee": { "type": "MemberExpression", "start": 6479, "end": 6490, "loc": { "start": { "line": 218, "column": 12 }, "end": { "line": 218, "column": 23 } }, "object": { "type": "Identifier", "start": 6479, "end": 6485, "loc": { "start": { "line": 218, "column": 12 }, "end": { "line": 218, "column": 18 }, "identifierName": "layers" }, "name": "layers" }, "property": { "type": "Identifier", "start": 6486, "end": 6490, "loc": { "start": { "line": 218, "column": 19 }, "end": { "line": 218, "column": 23 }, "identifierName": "push" }, "name": "push" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 6491, "end": 6496, "loc": { "start": { "line": 218, "column": 24 }, "end": { "line": 218, "column": 29 }, "identifierName": "quads" }, "name": "quads" } ] } } ], "directives": [] } }, { "type": "IfStatement", "start": 6521, "end": 6606, "loc": { "start": { "line": 221, "column": 8 }, "end": { "line": 223, "column": 9 } }, "test": { "type": "LogicalExpression", "start": 6525, "end": 6565, "loc": { "start": { "line": 221, "column": 12 }, "end": { "line": 221, "column": 52 } }, "left": { "type": "BinaryExpression", "start": 6525, "end": 6544, "loc": { "start": { "line": 221, "column": 12 }, "end": { "line": 221, "column": 31 } }, "left": { "type": "MemberExpression", "start": 6525, "end": 6538, "loc": { "start": { "line": 221, "column": 12 }, "end": { "line": 221, "column": 25 } }, "object": { "type": "Identifier", "start": 6525, "end": 6531, "loc": { "start": { "line": 221, "column": 12 }, "end": { "line": 221, "column": 18 }, "identifierName": "layers" }, "name": "layers" }, "property": { "type": "Identifier", "start": 6532, "end": 6538, "loc": { "start": { "line": 221, "column": 19 }, "end": { "line": 221, "column": 25 }, "identifierName": "length" }, "name": "length" }, "computed": false }, "operator": "===", "right": { "type": "NumericLiteral", "start": 6543, "end": 6544, "loc": { "start": { "line": 221, "column": 30 }, "end": { "line": 221, "column": 31 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } }, "operator": "||", "right": { "type": "BinaryExpression", "start": 6548, "end": 6565, "loc": { "start": { "line": 221, "column": 35 }, "end": { "line": 221, "column": 52 } }, "left": { "type": "MemberExpression", "start": 6548, "end": 6561, "loc": { "start": { "line": 221, "column": 35 }, "end": { "line": 221, "column": 48 } }, "object": { "type": "Identifier", "start": 6548, "end": 6554, "loc": { "start": { "line": 221, "column": 35 }, "end": { "line": 221, "column": 41 }, "identifierName": "layers" }, "name": "layers" }, "property": { "type": "Identifier", "start": 6555, "end": 6561, "loc": { "start": { "line": 221, "column": 42 }, "end": { "line": 221, "column": 48 }, "identifierName": "length" }, "name": "length" }, "computed": false }, "operator": ">", "right": { "type": "NumericLiteral", "start": 6564, "end": 6565, "loc": { "start": { "line": 221, "column": 51 }, "end": { "line": 221, "column": 52 } }, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 } } }, "consequent": { "type": "BlockStatement", "start": 6567, "end": 6606, "loc": { "start": { "line": 221, "column": 54 }, "end": { "line": 223, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 6582, "end": 6595, "loc": { "start": { "line": 222, "column": 12 }, "end": { "line": 222, "column": 25 } }, "argument": { "type": "BooleanLiteral", "start": 6589, "end": 6594, "loc": { "start": { "line": 222, "column": 19 }, "end": { "line": 222, "column": 24 } }, "value": false } } ], "directives": [] }, "alternate": null }, { "type": "ReturnStatement", "start": 6618, "end": 6630, "loc": { "start": { "line": 225, "column": 8 }, "end": { "line": 225, "column": 20 } }, "argument": { "type": "BooleanLiteral", "start": 6625, "end": 6629, "loc": { "start": { "line": 225, "column": 15 }, "end": { "line": 225, "column": 19 } }, "value": true } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * INTERNAL\r\n * Checks if a given string is a valid short key\r\n * @param {string} key\r\n * @returns {boolean}\r\n ", "start": 4765, "end": 4903, "loc": { "start": { "line": 168, "column": 4 }, "end": { "line": 173, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Internal method to clone the shape definition\r\n * @returns {Array}\r\n ", "start": 6645, "end": 6748, "loc": { "start": { "line": 228, "column": 4 }, "end": { "line": 231, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 6754, "end": 6841, "loc": { "start": { "line": 232, "column": 4 }, "end": { "line": 234, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 6754, "end": 6773, "loc": { "start": { "line": 232, "column": 4 }, "end": { "line": 232, "column": 23 }, "identifierName": "internalCloneLayers" }, "name": "internalCloneLayers", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 6776, "end": 6841, "loc": { "start": { "line": 232, "column": 26 }, "end": { "line": 234, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 6787, "end": 6834, "loc": { "start": { "line": 233, "column": 8 }, "end": { "line": 233, "column": 55 } }, "argument": { "type": "CallExpression", "start": 6794, "end": 6833, "loc": { "start": { "line": 233, "column": 15 }, "end": { "line": 233, "column": 54 } }, "callee": { "type": "MemberExpression", "start": 6794, "end": 6804, "loc": { "start": { "line": 233, "column": 15 }, "end": { "line": 233, "column": 25 } }, "object": { "type": "Identifier", "start": 6794, "end": 6798, "loc": { "start": { "line": 233, "column": 15 }, "end": { "line": 233, "column": 19 }, "identifierName": "JSON" }, "name": "JSON" }, "property": { "type": "Identifier", "start": 6799, "end": 6804, "loc": { "start": { "line": 233, "column": 20 }, "end": { "line": 233, "column": 25 }, "identifierName": "parse" }, "name": "parse" }, "computed": false }, "arguments": [ { "type": "CallExpression", "start": 6805, "end": 6832, "loc": { "start": { "line": 233, "column": 26 }, "end": { "line": 233, "column": 53 } }, "callee": { "type": "MemberExpression", "start": 6805, "end": 6819, "loc": { "start": { "line": 233, "column": 26 }, "end": { "line": 233, "column": 40 } }, "object": { "type": "Identifier", "start": 6805, "end": 6809, "loc": { "start": { "line": 233, "column": 26 }, "end": { "line": 233, "column": 30 }, "identifierName": "JSON" }, "name": "JSON" }, "property": { "type": "Identifier", "start": 6810, "end": 6819, "loc": { "start": { "line": 233, "column": 31 }, "end": { "line": 233, "column": 40 }, "identifierName": "stringify" }, "name": "stringify" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 6820, "end": 6831, "loc": { "start": { "line": 233, "column": 41 }, "end": { "line": 233, "column": 52 } }, "object": { "type": "ThisExpression", "start": 6820, "end": 6824, "loc": { "start": { "line": 233, "column": 41 }, "end": { "line": 233, "column": 45 } } }, "property": { "type": "Identifier", "start": 6825, "end": 6831, "loc": { "start": { "line": 233, "column": 46 }, "end": { "line": 233, "column": 52 }, "identifierName": "layers" }, "name": "layers" }, "computed": false } ] } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Internal method to clone the shape definition\r\n * @returns {Array}\r\n ", "start": 6645, "end": 6748, "loc": { "start": { "line": 228, "column": 4 }, "end": { "line": 231, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns if the definition is entirely empty^\r\n * @returns {boolean}\r\n ", "start": 6849, "end": 6941, "loc": { "start": { "line": 236, "column": 4 }, "end": { "line": 239, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 6947, "end": 7015, "loc": { "start": { "line": 240, "column": 4 }, "end": { "line": 242, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 6947, "end": 6962, "loc": { "start": { "line": 240, "column": 4 }, "end": { "line": 240, "column": 19 }, "identifierName": "isEntirelyEmpty" }, "name": "isEntirelyEmpty", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 6965, "end": 7015, "loc": { "start": { "line": 240, "column": 22 }, "end": { "line": 242, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 6976, "end": 7008, "loc": { "start": { "line": 241, "column": 8 }, "end": { "line": 241, "column": 40 } }, "argument": { "type": "BinaryExpression", "start": 6983, "end": 7007, "loc": { "start": { "line": 241, "column": 15 }, "end": { "line": 241, "column": 39 } }, "left": { "type": "MemberExpression", "start": 6983, "end": 7001, "loc": { "start": { "line": 241, "column": 15 }, "end": { "line": 241, "column": 33 } }, "object": { "type": "MemberExpression", "start": 6983, "end": 6994, "loc": { "start": { "line": 241, "column": 15 }, "end": { "line": 241, "column": 26 } }, "object": { "type": "ThisExpression", "start": 6983, "end": 6987, "loc": { "start": { "line": 241, "column": 15 }, "end": { "line": 241, "column": 19 } } }, "property": { "type": "Identifier", "start": 6988, "end": 6994, "loc": { "start": { "line": 241, "column": 20 }, "end": { "line": 241, "column": 26 }, "identifierName": "layers" }, "name": "layers" }, "computed": false }, "property": { "type": "Identifier", "start": 6995, "end": 7001, "loc": { "start": { "line": 241, "column": 27 }, "end": { "line": 241, "column": 33 }, "identifierName": "length" }, "name": "length" }, "computed": false }, "operator": "===", "right": { "type": "NumericLiteral", "start": 7006, "end": 7007, "loc": { "start": { "line": 241, "column": 38 }, "end": { "line": 241, "column": 39 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns if the definition is entirely empty^\r\n * @returns {boolean}\r\n ", "start": 6849, "end": 6941, "loc": { "start": { "line": 236, "column": 4 }, "end": { "line": 239, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns a unique id for this shape\r\n * @returns {string}\r\n ", "start": 7023, "end": 7104, "loc": { "start": { "line": 244, "column": 4 }, "end": { "line": 247, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 7110, "end": 7878, "loc": { "start": { "line": 248, "column": 4 }, "end": { "line": 272, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 7110, "end": 7117, "loc": { "start": { "line": 248, "column": 4 }, "end": { "line": 248, "column": 11 }, "identifierName": "getHash" }, "name": "getHash", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 7120, "end": 7878, "loc": { "start": { "line": 248, "column": 14 }, "end": { "line": 272, "column": 5 } }, "body": [ { "type": "IfStatement", "start": 7131, "end": 7201, "loc": { "start": { "line": 249, "column": 8 }, "end": { "line": 251, "column": 9 } }, "test": { "type": "MemberExpression", "start": 7135, "end": 7150, "loc": { "start": { "line": 249, "column": 12 }, "end": { "line": 249, "column": 27 } }, "object": { "type": "ThisExpression", "start": 7135, "end": 7139, "loc": { "start": { "line": 249, "column": 12 }, "end": { "line": 249, "column": 16 } } }, "property": { "type": "Identifier", "start": 7140, "end": 7150, "loc": { "start": { "line": 249, "column": 17 }, "end": { "line": 249, "column": 27 }, "identifierName": "cachedHash" }, "name": "cachedHash" }, "computed": false }, "consequent": { "type": "BlockStatement", "start": 7152, "end": 7201, "loc": { "start": { "line": 249, "column": 29 }, "end": { "line": 251, "column": 9 } }, "body": [ { "type": "ReturnStatement", "start": 7167, "end": 7190, "loc": { "start": { "line": 250, "column": 12 }, "end": { "line": 250, "column": 35 } }, "argument": { "type": "MemberExpression", "start": 7174, "end": 7189, "loc": { "start": { "line": 250, "column": 19 }, "end": { "line": 250, "column": 34 } }, "object": { "type": "ThisExpression", "start": 7174, "end": 7178, "loc": { "start": { "line": 250, "column": 19 }, "end": { "line": 250, "column": 23 } } }, "property": { "type": "Identifier", "start": 7179, "end": 7189, "loc": { "start": { "line": 250, "column": 24 }, "end": { "line": 250, "column": 34 }, "identifierName": "cachedHash" }, "name": "cachedHash" }, "computed": false } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 7213, "end": 7225, "loc": { "start": { "line": 253, "column": 8 }, "end": { "line": 253, "column": 20 } }, "declarations": [ { "type": "VariableDeclarator", "start": 7217, "end": 7224, "loc": { "start": { "line": 253, "column": 12 }, "end": { "line": 253, "column": 19 } }, "id": { "type": "Identifier", "start": 7217, "end": 7219, "loc": { "start": { "line": 253, "column": 12 }, "end": { "line": 253, "column": 14 }, "identifierName": "id" }, "name": "id" }, "init": { "type": "StringLiteral", "start": 7222, "end": 7224, "loc": { "start": { "line": 253, "column": 17 }, "end": { "line": 253, "column": 19 } }, "extra": { "rawValue": "", "raw": "\"\"" }, "value": "" } } ], "kind": "let" }, { "type": "ForStatement", "start": 7235, "end": 7820, "loc": { "start": { "line": 254, "column": 8 }, "end": { "line": 269, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 7240, "end": 7258, "loc": { "start": { "line": 254, "column": 13 }, "end": { "line": 254, "column": 31 } }, "declarations": [ { "type": "VariableDeclarator", "start": 7244, "end": 7258, "loc": { "start": { "line": 254, "column": 17 }, "end": { "line": 254, "column": 31 } }, "id": { "type": "Identifier", "start": 7244, "end": 7254, "loc": { "start": { "line": 254, "column": 17 }, "end": { "line": 254, "column": 27 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "init": { "type": "NumericLiteral", "start": 7257, "end": 7258, "loc": { "start": { "line": 254, "column": 30 }, "end": { "line": 254, "column": 31 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 7260, "end": 7291, "loc": { "start": { "line": 254, "column": 33 }, "end": { "line": 254, "column": 64 } }, "left": { "type": "Identifier", "start": 7260, "end": 7270, "loc": { "start": { "line": 254, "column": 33 }, "end": { "line": 254, "column": 43 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "operator": "<", "right": { "type": "MemberExpression", "start": 7273, "end": 7291, "loc": { "start": { "line": 254, "column": 46 }, "end": { "line": 254, "column": 64 } }, "object": { "type": "MemberExpression", "start": 7273, "end": 7284, "loc": { "start": { "line": 254, "column": 46 }, "end": { "line": 254, "column": 57 } }, "object": { "type": "ThisExpression", "start": 7273, "end": 7277, "loc": { "start": { "line": 254, "column": 46 }, "end": { "line": 254, "column": 50 } } }, "property": { "type": "Identifier", "start": 7278, "end": 7284, "loc": { "start": { "line": 254, "column": 51 }, "end": { "line": 254, "column": 57 }, "identifierName": "layers" }, "name": "layers" }, "computed": false }, "property": { "type": "Identifier", "start": 7285, "end": 7291, "loc": { "start": { "line": 254, "column": 58 }, "end": { "line": 254, "column": 64 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 7293, "end": 7305, "loc": { "start": { "line": 254, "column": 66 }, "end": { "line": 254, "column": 78 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 7295, "end": 7305, "loc": { "start": { "line": 254, "column": 68 }, "end": { "line": 254, "column": 78 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 7307, "end": 7820, "loc": { "start": { "line": 254, "column": 80 }, "end": { "line": 269, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 7322, "end": 7360, "loc": { "start": { "line": 255, "column": 12 }, "end": { "line": 255, "column": 50 } }, "declarations": [ { "type": "VariableDeclarator", "start": 7328, "end": 7359, "loc": { "start": { "line": 255, "column": 18 }, "end": { "line": 255, "column": 49 } }, "id": { "type": "Identifier", "start": 7328, "end": 7333, "loc": { "start": { "line": 255, "column": 18 }, "end": { "line": 255, "column": 23 }, "identifierName": "layer" }, "name": "layer" }, "init": { "type": "MemberExpression", "start": 7336, "end": 7359, "loc": { "start": { "line": 255, "column": 26 }, "end": { "line": 255, "column": 49 } }, "object": { "type": "MemberExpression", "start": 7336, "end": 7347, "loc": { "start": { "line": 255, "column": 26 }, "end": { "line": 255, "column": 37 } }, "object": { "type": "ThisExpression", "start": 7336, "end": 7340, "loc": { "start": { "line": 255, "column": 26 }, "end": { "line": 255, "column": 30 } } }, "property": { "type": "Identifier", "start": 7341, "end": 7347, "loc": { "start": { "line": 255, "column": 31 }, "end": { "line": 255, "column": 37 }, "identifierName": "layers" }, "name": "layers" }, "computed": false }, "property": { "type": "Identifier", "start": 7348, "end": 7358, "loc": { "start": { "line": 255, "column": 38 }, "end": { "line": 255, "column": 48 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "computed": true } } ], "kind": "const" }, { "type": "ForStatement", "start": 7376, "end": 7708, "loc": { "start": { "line": 257, "column": 12 }, "end": { "line": 264, "column": 13 } }, "init": { "type": "VariableDeclaration", "start": 7381, "end": 7397, "loc": { "start": { "line": 257, "column": 17 }, "end": { "line": 257, "column": 33 } }, "declarations": [ { "type": "VariableDeclarator", "start": 7385, "end": 7397, "loc": { "start": { "line": 257, "column": 21 }, "end": { "line": 257, "column": 33 } }, "id": { "type": "Identifier", "start": 7385, "end": 7393, "loc": { "start": { "line": 257, "column": 21 }, "end": { "line": 257, "column": 29 }, "identifierName": "quadrant" }, "name": "quadrant" }, "init": { "type": "NumericLiteral", "start": 7396, "end": 7397, "loc": { "start": { "line": 257, "column": 32 }, "end": { "line": 257, "column": 33 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 7399, "end": 7422, "loc": { "start": { "line": 257, "column": 35 }, "end": { "line": 257, "column": 58 } }, "left": { "type": "Identifier", "start": 7399, "end": 7407, "loc": { "start": { "line": 257, "column": 35 }, "end": { "line": 257, "column": 43 }, "identifierName": "quadrant" }, "name": "quadrant" }, "operator": "<", "right": { "type": "MemberExpression", "start": 7410, "end": 7422, "loc": { "start": { "line": 257, "column": 46 }, "end": { "line": 257, "column": 58 } }, "object": { "type": "Identifier", "start": 7410, "end": 7415, "loc": { "start": { "line": 257, "column": 46 }, "end": { "line": 257, "column": 51 }, "identifierName": "layer" }, "name": "layer" }, "property": { "type": "Identifier", "start": 7416, "end": 7422, "loc": { "start": { "line": 257, "column": 52 }, "end": { "line": 257, "column": 58 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 7424, "end": 7434, "loc": { "start": { "line": 257, "column": 60 }, "end": { "line": 257, "column": 70 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 7426, "end": 7434, "loc": { "start": { "line": 257, "column": 62 }, "end": { "line": 257, "column": 70 }, "identifierName": "quadrant" }, "name": "quadrant" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 7436, "end": 7708, "loc": { "start": { "line": 257, "column": 72 }, "end": { "line": 264, "column": 13 } }, "body": [ { "type": "VariableDeclaration", "start": 7455, "end": 7484, "loc": { "start": { "line": 258, "column": 16 }, "end": { "line": 258, "column": 45 } }, "declarations": [ { "type": "VariableDeclarator", "start": 7461, "end": 7483, "loc": { "start": { "line": 258, "column": 22 }, "end": { "line": 258, "column": 44 } }, "id": { "type": "Identifier", "start": 7461, "end": 7465, "loc": { "start": { "line": 258, "column": 22 }, "end": { "line": 258, "column": 26 }, "identifierName": "item" }, "name": "item" }, "init": { "type": "MemberExpression", "start": 7468, "end": 7483, "loc": { "start": { "line": 258, "column": 29 }, "end": { "line": 258, "column": 44 } }, "object": { "type": "Identifier", "start": 7468, "end": 7473, "loc": { "start": { "line": 258, "column": 29 }, "end": { "line": 258, "column": 34 }, "identifierName": "layer" }, "name": "layer" }, "property": { "type": "Identifier", "start": 7474, "end": 7482, "loc": { "start": { "line": 258, "column": 35 }, "end": { "line": 258, "column": 43 }, "identifierName": "quadrant" }, "name": "quadrant" }, "computed": true } } ], "kind": "const" }, { "type": "IfStatement", "start": 7502, "end": 7693, "loc": { "start": { "line": 259, "column": 16 }, "end": { "line": 263, "column": 17 } }, "test": { "type": "Identifier", "start": 7506, "end": 7510, "loc": { "start": { "line": 259, "column": 20 }, "end": { "line": 259, "column": 24 }, "identifierName": "item" }, "name": "item" }, "consequent": { "type": "BlockStatement", "start": 7512, "end": 7634, "loc": { "start": { "line": 259, "column": 26 }, "end": { "line": 261, "column": 17 } }, "body": [ { "type": "ExpressionStatement", "start": 7535, "end": 7615, "loc": { "start": { "line": 260, "column": 20 }, "end": { "line": 260, "column": 100 } }, "expression": { "type": "AssignmentExpression", "start": 7535, "end": 7614, "loc": { "start": { "line": 260, "column": 20 }, "end": { "line": 260, "column": 99 } }, "operator": "+=", "left": { "type": "Identifier", "start": 7535, "end": 7537, "loc": { "start": { "line": 260, "column": 20 }, "end": { "line": 260, "column": 22 }, "identifierName": "id" }, "name": "id" }, "right": { "type": "BinaryExpression", "start": 7541, "end": 7614, "loc": { "start": { "line": 260, "column": 26 }, "end": { "line": 260, "column": 99 } }, "left": { "type": "MemberExpression", "start": 7541, "end": 7579, "loc": { "start": { "line": 260, "column": 26 }, "end": { "line": 260, "column": 64 } }, "object": { "type": "Identifier", "start": 7541, "end": 7564, "loc": { "start": { "line": 260, "column": 26 }, "end": { "line": 260, "column": 49 }, "identifierName": "enumSubShapeToShortcode" }, "name": "enumSubShapeToShortcode" }, "property": { "type": "MemberExpression", "start": 7565, "end": 7578, "loc": { "start": { "line": 260, "column": 50 }, "end": { "line": 260, "column": 63 } }, "object": { "type": "Identifier", "start": 7565, "end": 7569, "loc": { "start": { "line": 260, "column": 50 }, "end": { "line": 260, "column": 54 }, "identifierName": "item" }, "name": "item" }, "property": { "type": "Identifier", "start": 7570, "end": 7578, "loc": { "start": { "line": 260, "column": 55 }, "end": { "line": 260, "column": 63 }, "identifierName": "subShape" }, "name": "subShape" }, "computed": false }, "computed": true }, "operator": "+", "right": { "type": "MemberExpression", "start": 7582, "end": 7614, "loc": { "start": { "line": 260, "column": 67 }, "end": { "line": 260, "column": 99 } }, "object": { "type": "Identifier", "start": 7582, "end": 7602, "loc": { "start": { "line": 260, "column": 67 }, "end": { "line": 260, "column": 87 }, "identifierName": "enumColorToShortcode" }, "name": "enumColorToShortcode" }, "property": { "type": "MemberExpression", "start": 7603, "end": 7613, "loc": { "start": { "line": 260, "column": 88 }, "end": { "line": 260, "column": 98 } }, "object": { "type": "Identifier", "start": 7603, "end": 7607, "loc": { "start": { "line": 260, "column": 88 }, "end": { "line": 260, "column": 92 }, "identifierName": "item" }, "name": "item" }, "property": { "type": "Identifier", "start": 7608, "end": 7613, "loc": { "start": { "line": 260, "column": 93 }, "end": { "line": 260, "column": 98 }, "identifierName": "color" }, "name": "color" }, "computed": false }, "computed": true } } } } ], "directives": [] }, "alternate": { "type": "BlockStatement", "start": 7640, "end": 7693, "loc": { "start": { "line": 261, "column": 23 }, "end": { "line": 263, "column": 17 } }, "body": [ { "type": "ExpressionStatement", "start": 7663, "end": 7674, "loc": { "start": { "line": 262, "column": 20 }, "end": { "line": 262, "column": 31 } }, "expression": { "type": "AssignmentExpression", "start": 7663, "end": 7673, "loc": { "start": { "line": 262, "column": 20 }, "end": { "line": 262, "column": 30 } }, "operator": "+=", "left": { "type": "Identifier", "start": 7663, "end": 7665, "loc": { "start": { "line": 262, "column": 20 }, "end": { "line": 262, "column": 22 }, "identifierName": "id" }, "name": "id" }, "right": { "type": "StringLiteral", "start": 7669, "end": 7673, "loc": { "start": { "line": 262, "column": 26 }, "end": { "line": 262, "column": 30 } }, "extra": { "rawValue": "--", "raw": "\"--\"" }, "value": "--" } } } ], "directives": [] } } ], "directives": [] } }, { "type": "IfStatement", "start": 7724, "end": 7809, "loc": { "start": { "line": 266, "column": 12 }, "end": { "line": 268, "column": 13 } }, "test": { "type": "BinaryExpression", "start": 7728, "end": 7763, "loc": { "start": { "line": 266, "column": 16 }, "end": { "line": 266, "column": 51 } }, "left": { "type": "Identifier", "start": 7728, "end": 7738, "loc": { "start": { "line": 266, "column": 16 }, "end": { "line": 266, "column": 26 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "operator": "<", "right": { "type": "BinaryExpression", "start": 7741, "end": 7763, "loc": { "start": { "line": 266, "column": 29 }, "end": { "line": 266, "column": 51 } }, "left": { "type": "MemberExpression", "start": 7741, "end": 7759, "loc": { "start": { "line": 266, "column": 29 }, "end": { "line": 266, "column": 47 } }, "object": { "type": "MemberExpression", "start": 7741, "end": 7752, "loc": { "start": { "line": 266, "column": 29 }, "end": { "line": 266, "column": 40 } }, "object": { "type": "ThisExpression", "start": 7741, "end": 7745, "loc": { "start": { "line": 266, "column": 29 }, "end": { "line": 266, "column": 33 } } }, "property": { "type": "Identifier", "start": 7746, "end": 7752, "loc": { "start": { "line": 266, "column": 34 }, "end": { "line": 266, "column": 40 }, "identifierName": "layers" }, "name": "layers" }, "computed": false }, "property": { "type": "Identifier", "start": 7753, "end": 7759, "loc": { "start": { "line": 266, "column": 41 }, "end": { "line": 266, "column": 47 }, "identifierName": "length" }, "name": "length" }, "computed": false }, "operator": "-", "right": { "type": "NumericLiteral", "start": 7762, "end": 7763, "loc": { "start": { "line": 266, "column": 50 }, "end": { "line": 266, "column": 51 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } } }, "consequent": { "type": "BlockStatement", "start": 7765, "end": 7809, "loc": { "start": { "line": 266, "column": 53 }, "end": { "line": 268, "column": 13 } }, "body": [ { "type": "ExpressionStatement", "start": 7784, "end": 7794, "loc": { "start": { "line": 267, "column": 16 }, "end": { "line": 267, "column": 26 } }, "expression": { "type": "AssignmentExpression", "start": 7784, "end": 7793, "loc": { "start": { "line": 267, "column": 16 }, "end": { "line": 267, "column": 25 } }, "operator": "+=", "left": { "type": "Identifier", "start": 7784, "end": 7786, "loc": { "start": { "line": 267, "column": 16 }, "end": { "line": 267, "column": 18 }, "identifierName": "id" }, "name": "id" }, "right": { "type": "StringLiteral", "start": 7790, "end": 7793, "loc": { "start": { "line": 267, "column": 22 }, "end": { "line": 267, "column": 25 } }, "extra": { "rawValue": ":", "raw": "\":\"" }, "value": ":" } } } ], "directives": [] }, "alternate": null } ], "directives": [] } }, { "type": "ExpressionStatement", "start": 7830, "end": 7851, "loc": { "start": { "line": 270, "column": 8 }, "end": { "line": 270, "column": 29 } }, "expression": { "type": "AssignmentExpression", "start": 7830, "end": 7850, "loc": { "start": { "line": 270, "column": 8 }, "end": { "line": 270, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 7830, "end": 7845, "loc": { "start": { "line": 270, "column": 8 }, "end": { "line": 270, "column": 23 } }, "object": { "type": "ThisExpression", "start": 7830, "end": 7834, "loc": { "start": { "line": 270, "column": 8 }, "end": { "line": 270, "column": 12 } } }, "property": { "type": "Identifier", "start": 7835, "end": 7845, "loc": { "start": { "line": 270, "column": 13 }, "end": { "line": 270, "column": 23 }, "identifierName": "cachedHash" }, "name": "cachedHash" }, "computed": false }, "right": { "type": "Identifier", "start": 7848, "end": 7850, "loc": { "start": { "line": 270, "column": 26 }, "end": { "line": 270, "column": 28 }, "identifierName": "id" }, "name": "id" } } }, { "type": "ReturnStatement", "start": 7861, "end": 7871, "loc": { "start": { "line": 271, "column": 8 }, "end": { "line": 271, "column": 18 } }, "argument": { "type": "Identifier", "start": 7868, "end": 7870, "loc": { "start": { "line": 271, "column": 15 }, "end": { "line": 271, "column": 17 }, "identifierName": "id" }, "name": "id" } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns a unique id for this shape\r\n * @returns {string}\r\n ", "start": 7023, "end": 7104, "loc": { "start": { "line": 244, "column": 4 }, "end": { "line": 247, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Draws the shape definition\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {DrawParameters} parameters\r\n * @param {number=} diameter\r\n ", "start": 7886, "end": 8062, "loc": { "start": { "line": 274, "column": 4 }, "end": { "line": 280, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 8068, "end": 8823, "loc": { "start": { "line": 281, "column": 4 }, "end": { "line": 299, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 8068, "end": 8080, "loc": { "start": { "line": 281, "column": 4 }, "end": { "line": 281, "column": 16 }, "identifierName": "drawCentered" }, "name": "drawCentered", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 8081, "end": 8082, "loc": { "start": { "line": 281, "column": 17 }, "end": { "line": 281, "column": 18 }, "identifierName": "x" }, "name": "x" }, { "type": "Identifier", "start": 8084, "end": 8085, "loc": { "start": { "line": 281, "column": 20 }, "end": { "line": 281, "column": 21 }, "identifierName": "y" }, "name": "y" }, { "type": "Identifier", "start": 8087, "end": 8097, "loc": { "start": { "line": 281, "column": 23 }, "end": { "line": 281, "column": 33 }, "identifierName": "parameters" }, "name": "parameters" }, { "type": "AssignmentPattern", "start": 8099, "end": 8112, "loc": { "start": { "line": 281, "column": 35 }, "end": { "line": 281, "column": 48 } }, "left": { "type": "Identifier", "start": 8099, "end": 8107, "loc": { "start": { "line": 281, "column": 35 }, "end": { "line": 281, "column": 43 }, "identifierName": "diameter" }, "name": "diameter" }, "right": { "type": "NumericLiteral", "start": 8110, "end": 8112, "loc": { "start": { "line": 281, "column": 46 }, "end": { "line": 281, "column": 48 } }, "extra": { "rawValue": 20, "raw": "20" }, "value": 20 } }, { "type": "AssignmentPattern", "start": 8114, "end": 8131, "loc": { "start": { "line": 281, "column": 50 }, "end": { "line": 281, "column": 67 } }, "left": { "type": "Identifier", "start": 8114, "end": 8124, "loc": { "start": { "line": 281, "column": 50 }, "end": { "line": 281, "column": 60 }, "identifierName": "background" }, "name": "background" }, "right": { "type": "BooleanLiteral", "start": 8127, "end": 8131, "loc": { "start": { "line": 281, "column": 63 }, "end": { "line": 281, "column": 67 } }, "value": true } } ], "body": { "type": "BlockStatement", "start": 8133, "end": 8823, "loc": { "start": { "line": 281, "column": 69 }, "end": { "line": 299, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 8144, "end": 8221, "loc": { "start": { "line": 282, "column": 8 }, "end": { "line": 282, "column": 85 } }, "declarations": [ { "type": "VariableDeclarator", "start": 8150, "end": 8220, "loc": { "start": { "line": 282, "column": 14 }, "end": { "line": 282, "column": 84 } }, "id": { "type": "Identifier", "start": 8150, "end": 8153, "loc": { "start": { "line": 282, "column": 14 }, "end": { "line": 282, "column": 17 }, "identifierName": "dpi" }, "name": "dpi" }, "init": { "type": "CallExpression", "start": 8156, "end": 8220, "loc": { "start": { "line": 282, "column": 20 }, "end": { "line": 282, "column": 84 } }, "callee": { "type": "Identifier", "start": 8156, "end": 8167, "loc": { "start": { "line": 282, "column": 20 }, "end": { "line": 282, "column": 31 }, "identifierName": "smoothenDpi" }, "name": "smoothenDpi" }, "arguments": [ { "type": "BinaryExpression", "start": 8168, "end": 8219, "loc": { "start": { "line": 282, "column": 32 }, "end": { "line": 282, "column": 83 } }, "left": { "type": "MemberExpression", "start": 8168, "end": 8196, "loc": { "start": { "line": 282, "column": 32 }, "end": { "line": 282, "column": 60 } }, "object": { "type": "Identifier", "start": 8168, "end": 8180, "loc": { "start": { "line": 282, "column": 32 }, "end": { "line": 282, "column": 44 }, "identifierName": "globalConfig" }, "name": "globalConfig" }, "property": { "type": "Identifier", "start": 8181, "end": 8196, "loc": { "start": { "line": 282, "column": 45 }, "end": { "line": 282, "column": 60 }, "identifierName": "shapesSharpness" }, "name": "shapesSharpness" }, "computed": false }, "operator": "*", "right": { "type": "MemberExpression", "start": 8199, "end": 8219, "loc": { "start": { "line": 282, "column": 63 }, "end": { "line": 282, "column": 83 } }, "object": { "type": "Identifier", "start": 8199, "end": 8209, "loc": { "start": { "line": 282, "column": 63 }, "end": { "line": 282, "column": 73 }, "identifierName": "parameters" }, "name": "parameters" }, "property": { "type": "Identifier", "start": 8210, "end": 8219, "loc": { "start": { "line": 282, "column": 74 }, "end": { "line": 282, "column": 83 }, "identifierName": "zoomLevel" }, "name": "zoomLevel" }, "computed": false } } ] } } ], "kind": "const" }, { "type": "IfStatement", "start": 8233, "end": 8353, "loc": { "start": { "line": 284, "column": 8 }, "end": { "line": 286, "column": 9 } }, "test": { "type": "UnaryExpression", "start": 8237, "end": 8258, "loc": { "start": { "line": 284, "column": 12 }, "end": { "line": 284, "column": 33 } }, "operator": "!", "prefix": true, "argument": { "type": "MemberExpression", "start": 8238, "end": 8258, "loc": { "start": { "line": 284, "column": 13 }, "end": { "line": 284, "column": 33 } }, "object": { "type": "ThisExpression", "start": 8238, "end": 8242, "loc": { "start": { "line": 284, "column": 13 }, "end": { "line": 284, "column": 17 } } }, "property": { "type": "Identifier", "start": 8243, "end": 8258, "loc": { "start": { "line": 284, "column": 18 }, "end": { "line": 284, "column": 33 }, "identifierName": "bufferGenerator" }, "name": "bufferGenerator" }, "computed": false }, "extra": { "parenthesizedArgument": false } }, "consequent": { "type": "BlockStatement", "start": 8260, "end": 8353, "loc": { "start": { "line": 284, "column": 35 }, "end": { "line": 286, "column": 9 } }, "body": [ { "type": "ExpressionStatement", "start": 8275, "end": 8342, "loc": { "start": { "line": 285, "column": 12 }, "end": { "line": 285, "column": 79 } }, "expression": { "type": "AssignmentExpression", "start": 8275, "end": 8341, "loc": { "start": { "line": 285, "column": 12 }, "end": { "line": 285, "column": 78 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 8275, "end": 8295, "loc": { "start": { "line": 285, "column": 12 }, "end": { "line": 285, "column": 32 } }, "object": { "type": "ThisExpression", "start": 8275, "end": 8279, "loc": { "start": { "line": 285, "column": 12 }, "end": { "line": 285, "column": 16 } } }, "property": { "type": "Identifier", "start": 8280, "end": 8295, "loc": { "start": { "line": 285, "column": 17 }, "end": { "line": 285, "column": 32 }, "identifierName": "bufferGenerator" }, "name": "bufferGenerator" }, "computed": false }, "right": { "type": "CallExpression", "start": 8298, "end": 8341, "loc": { "start": { "line": 285, "column": 35 }, "end": { "line": 285, "column": 78 } }, "callee": { "type": "MemberExpression", "start": 8298, "end": 8335, "loc": { "start": { "line": 285, "column": 35 }, "end": { "line": 285, "column": 72 } }, "object": { "type": "MemberExpression", "start": 8298, "end": 8330, "loc": { "start": { "line": 285, "column": 35 }, "end": { "line": 285, "column": 67 } }, "object": { "type": "ThisExpression", "start": 8298, "end": 8302, "loc": { "start": { "line": 285, "column": 35 }, "end": { "line": 285, "column": 39 } } }, "property": { "type": "Identifier", "start": 8303, "end": 8330, "loc": { "start": { "line": 285, "column": 40 }, "end": { "line": 285, "column": 67 }, "identifierName": "internalGenerateShapeBuffer" }, "name": "internalGenerateShapeBuffer" }, "computed": false }, "property": { "type": "Identifier", "start": 8331, "end": 8335, "loc": { "start": { "line": 285, "column": 68 }, "end": { "line": 285, "column": 72 }, "identifierName": "bind" }, "name": "bind" }, "computed": false }, "arguments": [ { "type": "ThisExpression", "start": 8336, "end": 8340, "loc": { "start": { "line": 285, "column": 73 }, "end": { "line": 285, "column": 77 } } } ] } } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 8365, "end": 8422, "loc": { "start": { "line": 288, "column": 8 }, "end": { "line": 288, "column": 65 } }, "declarations": [ { "type": "VariableDeclarator", "start": 8371, "end": 8421, "loc": { "start": { "line": 288, "column": 14 }, "end": { "line": 288, "column": 64 } }, "id": { "type": "Identifier", "start": 8371, "end": 8374, "loc": { "start": { "line": 288, "column": 14 }, "end": { "line": 288, "column": 17 }, "identifierName": "key" }, "name": "key" }, "init": { "type": "BinaryExpression", "start": 8377, "end": 8421, "loc": { "start": { "line": 288, "column": 20 }, "end": { "line": 288, "column": 64 } }, "left": { "type": "BinaryExpression", "start": 8377, "end": 8403, "loc": { "start": { "line": 288, "column": 20 }, "end": { "line": 288, "column": 46 } }, "left": { "type": "BinaryExpression", "start": 8377, "end": 8397, "loc": { "start": { "line": 288, "column": 20 }, "end": { "line": 288, "column": 40 } }, "left": { "type": "BinaryExpression", "start": 8377, "end": 8391, "loc": { "start": { "line": 288, "column": 20 }, "end": { "line": 288, "column": 34 } }, "left": { "type": "Identifier", "start": 8377, "end": 8385, "loc": { "start": { "line": 288, "column": 20 }, "end": { "line": 288, "column": 28 }, "identifierName": "diameter" }, "name": "diameter" }, "operator": "+", "right": { "type": "StringLiteral", "start": 8388, "end": 8391, "loc": { "start": { "line": 288, "column": 31 }, "end": { "line": 288, "column": 34 } }, "extra": { "rawValue": "/", "raw": "\"/\"" }, "value": "/" } }, "operator": "+", "right": { "type": "Identifier", "start": 8394, "end": 8397, "loc": { "start": { "line": 288, "column": 37 }, "end": { "line": 288, "column": 40 }, "identifierName": "dpi" }, "name": "dpi" } }, "operator": "+", "right": { "type": "StringLiteral", "start": 8400, "end": 8403, "loc": { "start": { "line": 288, "column": 43 }, "end": { "line": 288, "column": 46 } }, "extra": { "rawValue": "/", "raw": "\"/\"" }, "value": "/" } }, "operator": "+", "right": { "type": "MemberExpression", "start": 8406, "end": 8421, "loc": { "start": { "line": 288, "column": 49 }, "end": { "line": 288, "column": 64 } }, "object": { "type": "ThisExpression", "start": 8406, "end": 8410, "loc": { "start": { "line": 288, "column": 49 }, "end": { "line": 288, "column": 53 } } }, "property": { "type": "Identifier", "start": 8411, "end": 8421, "loc": { "start": { "line": 288, "column": 54 }, "end": { "line": 288, "column": 64 }, "identifierName": "cachedHash" }, "name": "cachedHash" }, "computed": false } } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 8432, "end": 8713, "loc": { "start": { "line": 289, "column": 8 }, "end": { "line": 297, "column": 11 } }, "declarations": [ { "type": "VariableDeclarator", "start": 8438, "end": 8712, "loc": { "start": { "line": 289, "column": 14 }, "end": { "line": 297, "column": 10 } }, "id": { "type": "Identifier", "start": 8438, "end": 8444, "loc": { "start": { "line": 289, "column": 14 }, "end": { "line": 289, "column": 20 }, "identifierName": "canvas" }, "name": "canvas" }, "init": { "type": "CallExpression", "start": 8447, "end": 8712, "loc": { "start": { "line": 289, "column": 23 }, "end": { "line": 297, "column": 10 } }, "callee": { "type": "MemberExpression", "start": 8447, "end": 8480, "loc": { "start": { "line": 289, "column": 23 }, "end": { "line": 289, "column": 56 } }, "object": { "type": "MemberExpression", "start": 8447, "end": 8470, "loc": { "start": { "line": 289, "column": 23 }, "end": { "line": 289, "column": 46 } }, "object": { "type": "MemberExpression", "start": 8447, "end": 8462, "loc": { "start": { "line": 289, "column": 23 }, "end": { "line": 289, "column": 38 } }, "object": { "type": "Identifier", "start": 8447, "end": 8457, "loc": { "start": { "line": 289, "column": 23 }, "end": { "line": 289, "column": 33 }, "identifierName": "parameters" }, "name": "parameters" }, "property": { "type": "Identifier", "start": 8458, "end": 8462, "loc": { "start": { "line": 289, "column": 34 }, "end": { "line": 289, "column": 38 }, "identifierName": "root" }, "name": "root" }, "computed": false }, "property": { "type": "Identifier", "start": 8463, "end": 8470, "loc": { "start": { "line": 289, "column": 39 }, "end": { "line": 289, "column": 46 }, "identifierName": "buffers" }, "name": "buffers" }, "computed": false }, "property": { "type": "Identifier", "start": 8471, "end": 8480, "loc": { "start": { "line": 289, "column": 47 }, "end": { "line": 289, "column": 56 }, "identifierName": "getForKey" }, "name": "getForKey" }, "computed": false }, "arguments": [ { "type": "ObjectExpression", "start": 8481, "end": 8711, "loc": { "start": { "line": 289, "column": 57 }, "end": { "line": 297, "column": 9 } }, "properties": [ { "type": "ObjectProperty", "start": 8496, "end": 8511, "loc": { "start": { "line": 290, "column": 12 }, "end": { "line": 290, "column": 27 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 8496, "end": 8499, "loc": { "start": { "line": 290, "column": 12 }, "end": { "line": 290, "column": 15 }, "identifierName": "key" }, "name": "key" }, "value": { "type": "StringLiteral", "start": 8501, "end": 8511, "loc": { "start": { "line": 290, "column": 17 }, "end": { "line": 290, "column": 27 } }, "extra": { "rawValue": "shapedef", "raw": "\"shapedef\"" }, "value": "shapedef" } }, { "type": "ObjectProperty", "start": 8526, "end": 8537, "loc": { "start": { "line": 291, "column": 12 }, "end": { "line": 291, "column": 23 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 8526, "end": 8532, "loc": { "start": { "line": 291, "column": 12 }, "end": { "line": 291, "column": 18 }, "identifierName": "subKey" }, "name": "subKey" }, "value": { "type": "Identifier", "start": 8534, "end": 8537, "loc": { "start": { "line": 291, "column": 20 }, "end": { "line": 291, "column": 23 }, "identifierName": "key" }, "name": "key" } }, { "type": "ObjectProperty", "start": 8552, "end": 8563, "loc": { "start": { "line": 292, "column": 12 }, "end": { "line": 292, "column": 23 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 8552, "end": 8553, "loc": { "start": { "line": 292, "column": 12 }, "end": { "line": 292, "column": 13 }, "identifierName": "w" }, "name": "w" }, "value": { "type": "Identifier", "start": 8555, "end": 8563, "loc": { "start": { "line": 292, "column": 15 }, "end": { "line": 292, "column": 23 }, "identifierName": "diameter" }, "name": "diameter" } }, { "type": "ObjectProperty", "start": 8578, "end": 8589, "loc": { "start": { "line": 293, "column": 12 }, "end": { "line": 293, "column": 23 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 8578, "end": 8579, "loc": { "start": { "line": 293, "column": 12 }, "end": { "line": 293, "column": 13 }, "identifierName": "h" }, "name": "h" }, "value": { "type": "Identifier", "start": 8581, "end": 8589, "loc": { "start": { "line": 293, "column": 15 }, "end": { "line": 293, "column": 23 }, "identifierName": "diameter" }, "name": "diameter" } }, { "type": "ObjectProperty", "start": 8604, "end": 8607, "loc": { "start": { "line": 294, "column": 12 }, "end": { "line": 294, "column": 15 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 8604, "end": 8607, "loc": { "start": { "line": 294, "column": 12 }, "end": { "line": 294, "column": 15 }, "identifierName": "dpi" }, "name": "dpi" }, "value": { "type": "Identifier", "start": 8604, "end": 8607, "loc": { "start": { "line": 294, "column": 12 }, "end": { "line": 294, "column": 15 }, "identifierName": "dpi" }, "name": "dpi" }, "extra": { "shorthand": true } }, { "type": "ObjectProperty", "start": 8622, "end": 8656, "loc": { "start": { "line": 295, "column": 12 }, "end": { "line": 295, "column": 46 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 8622, "end": 8634, "loc": { "start": { "line": 295, "column": 12 }, "end": { "line": 295, "column": 24 }, "identifierName": "redrawMethod" }, "name": "redrawMethod" }, "value": { "type": "MemberExpression", "start": 8636, "end": 8656, "loc": { "start": { "line": 295, "column": 26 }, "end": { "line": 295, "column": 46 } }, "object": { "type": "ThisExpression", "start": 8636, "end": 8640, "loc": { "start": { "line": 295, "column": 26 }, "end": { "line": 295, "column": 30 } } }, "property": { "type": "Identifier", "start": 8641, "end": 8656, "loc": { "start": { "line": 295, "column": 31 }, "end": { "line": 295, "column": 46 }, "identifierName": "bufferGenerator" }, "name": "bufferGenerator" }, "computed": false } }, { "type": "ObjectProperty", "start": 8671, "end": 8699, "loc": { "start": { "line": 296, "column": 12 }, "end": { "line": 296, "column": 40 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 8671, "end": 8687, "loc": { "start": { "line": 296, "column": 12 }, "end": { "line": 296, "column": 28 }, "identifierName": "additionalParams" }, "name": "additionalParams" }, "value": { "type": "Identifier", "start": 8689, "end": 8699, "loc": { "start": { "line": 296, "column": 30 }, "end": { "line": 296, "column": 40 }, "identifierName": "background" }, "name": "background" } } ] } ] } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 8723, "end": 8816, "loc": { "start": { "line": 298, "column": 8 }, "end": { "line": 298, "column": 101 } }, "expression": { "type": "CallExpression", "start": 8723, "end": 8815, "loc": { "start": { "line": 298, "column": 8 }, "end": { "line": 298, "column": 100 } }, "callee": { "type": "MemberExpression", "start": 8723, "end": 8751, "loc": { "start": { "line": 298, "column": 8 }, "end": { "line": 298, "column": 36 } }, "object": { "type": "MemberExpression", "start": 8723, "end": 8741, "loc": { "start": { "line": 298, "column": 8 }, "end": { "line": 298, "column": 26 } }, "object": { "type": "Identifier", "start": 8723, "end": 8733, "loc": { "start": { "line": 298, "column": 8 }, "end": { "line": 298, "column": 18 }, "identifierName": "parameters" }, "name": "parameters" }, "property": { "type": "Identifier", "start": 8734, "end": 8741, "loc": { "start": { "line": 298, "column": 19 }, "end": { "line": 298, "column": 26 }, "identifierName": "context" }, "name": "context" }, "computed": false }, "property": { "type": "Identifier", "start": 8742, "end": 8751, "loc": { "start": { "line": 298, "column": 27 }, "end": { "line": 298, "column": 36 }, "identifierName": "drawImage" }, "name": "drawImage" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 8752, "end": 8758, "loc": { "start": { "line": 298, "column": 37 }, "end": { "line": 298, "column": 43 }, "identifierName": "canvas" }, "name": "canvas" }, { "type": "BinaryExpression", "start": 8760, "end": 8776, "loc": { "start": { "line": 298, "column": 45 }, "end": { "line": 298, "column": 61 } }, "left": { "type": "Identifier", "start": 8760, "end": 8761, "loc": { "start": { "line": 298, "column": 45 }, "end": { "line": 298, "column": 46 }, "identifierName": "x" }, "name": "x" }, "operator": "-", "right": { "type": "BinaryExpression", "start": 8764, "end": 8776, "loc": { "start": { "line": 298, "column": 49 }, "end": { "line": 298, "column": 61 } }, "left": { "type": "Identifier", "start": 8764, "end": 8772, "loc": { "start": { "line": 298, "column": 49 }, "end": { "line": 298, "column": 57 }, "identifierName": "diameter" }, "name": "diameter" }, "operator": "/", "right": { "type": "NumericLiteral", "start": 8775, "end": 8776, "loc": { "start": { "line": 298, "column": 60 }, "end": { "line": 298, "column": 61 } }, "extra": { "rawValue": 2, "raw": "2" }, "value": 2 } } }, { "type": "BinaryExpression", "start": 8778, "end": 8794, "loc": { "start": { "line": 298, "column": 63 }, "end": { "line": 298, "column": 79 } }, "left": { "type": "Identifier", "start": 8778, "end": 8779, "loc": { "start": { "line": 298, "column": 63 }, "end": { "line": 298, "column": 64 }, "identifierName": "y" }, "name": "y" }, "operator": "-", "right": { "type": "BinaryExpression", "start": 8782, "end": 8794, "loc": { "start": { "line": 298, "column": 67 }, "end": { "line": 298, "column": 79 } }, "left": { "type": "Identifier", "start": 8782, "end": 8790, "loc": { "start": { "line": 298, "column": 67 }, "end": { "line": 298, "column": 75 }, "identifierName": "diameter" }, "name": "diameter" }, "operator": "/", "right": { "type": "NumericLiteral", "start": 8793, "end": 8794, "loc": { "start": { "line": 298, "column": 78 }, "end": { "line": 298, "column": 79 } }, "extra": { "rawValue": 2, "raw": "2" }, "value": 2 } } }, { "type": "Identifier", "start": 8796, "end": 8804, "loc": { "start": { "line": 298, "column": 81 }, "end": { "line": 298, "column": 89 }, "identifierName": "diameter" }, "name": "diameter" }, { "type": "Identifier", "start": 8806, "end": 8814, "loc": { "start": { "line": 298, "column": 91 }, "end": { "line": 298, "column": 99 }, "identifierName": "diameter" }, "name": "diameter" } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Draws the shape definition\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {DrawParameters} parameters\r\n * @param {number=} diameter\r\n ", "start": 7886, "end": 8062, "loc": { "start": { "line": 274, "column": 4 }, "end": { "line": 280, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Draws the item to a canvas\r\n * @param {CanvasRenderingContext2D} context\r\n * @param {number} size\r\n ", "start": 8831, "end": 8957, "loc": { "start": { "line": 301, "column": 4 }, "end": { "line": 305, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 8963, "end": 9111, "loc": { "start": { "line": 306, "column": 4 }, "end": { "line": 308, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 8963, "end": 8983, "loc": { "start": { "line": 306, "column": 4 }, "end": { "line": 306, "column": 24 }, "identifierName": "drawFullSizeOnCanvas" }, "name": "drawFullSizeOnCanvas", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 8984, "end": 8991, "loc": { "start": { "line": 306, "column": 25 }, "end": { "line": 306, "column": 32 }, "identifierName": "context" }, "name": "context" }, { "type": "Identifier", "start": 8993, "end": 8997, "loc": { "start": { "line": 306, "column": 34 }, "end": { "line": 306, "column": 38 }, "identifierName": "size" }, "name": "size" }, { "type": "AssignmentPattern", "start": 8999, "end": 9016, "loc": { "start": { "line": 306, "column": 40 }, "end": { "line": 306, "column": 57 } }, "left": { "type": "Identifier", "start": 8999, "end": 9009, "loc": { "start": { "line": 306, "column": 40 }, "end": { "line": 306, "column": 50 }, "identifierName": "background" }, "name": "background" }, "right": { "type": "BooleanLiteral", "start": 9012, "end": 9016, "loc": { "start": { "line": 306, "column": 53 }, "end": { "line": 306, "column": 57 } }, "value": true } } ], "body": { "type": "BlockStatement", "start": 9018, "end": 9111, "loc": { "start": { "line": 306, "column": 59 }, "end": { "line": 308, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 9029, "end": 9104, "loc": { "start": { "line": 307, "column": 8 }, "end": { "line": 307, "column": 83 } }, "expression": { "type": "CallExpression", "start": 9029, "end": 9103, "loc": { "start": { "line": 307, "column": 8 }, "end": { "line": 307, "column": 82 } }, "callee": { "type": "MemberExpression", "start": 9029, "end": 9061, "loc": { "start": { "line": 307, "column": 8 }, "end": { "line": 307, "column": 40 } }, "object": { "type": "ThisExpression", "start": 9029, "end": 9033, "loc": { "start": { "line": 307, "column": 8 }, "end": { "line": 307, "column": 12 } } }, "property": { "type": "Identifier", "start": 9034, "end": 9061, "loc": { "start": { "line": 307, "column": 13 }, "end": { "line": 307, "column": 40 }, "identifierName": "internalGenerateShapeBuffer" }, "name": "internalGenerateShapeBuffer" }, "computed": false }, "arguments": [ { "type": "NullLiteral", "start": 9062, "end": 9066, "loc": { "start": { "line": 307, "column": 41 }, "end": { "line": 307, "column": 45 } } }, { "type": "Identifier", "start": 9068, "end": 9075, "loc": { "start": { "line": 307, "column": 47 }, "end": { "line": 307, "column": 54 }, "identifierName": "context" }, "name": "context" }, { "type": "Identifier", "start": 9077, "end": 9081, "loc": { "start": { "line": 307, "column": 56 }, "end": { "line": 307, "column": 60 }, "identifierName": "size" }, "name": "size" }, { "type": "Identifier", "start": 9083, "end": 9087, "loc": { "start": { "line": 307, "column": 62 }, "end": { "line": 307, "column": 66 }, "identifierName": "size" }, "name": "size" }, { "type": "NumericLiteral", "start": 9089, "end": 9090, "loc": { "start": { "line": 307, "column": 68 }, "end": { "line": 307, "column": 69 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, { "type": "Identifier", "start": 9092, "end": 9102, "loc": { "start": { "line": 307, "column": 71 }, "end": { "line": 307, "column": 81 }, "identifierName": "background" }, "name": "background" } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Draws the item to a canvas\r\n * @param {CanvasRenderingContext2D} context\r\n * @param {number} size\r\n ", "start": 8831, "end": 8957, "loc": { "start": { "line": 301, "column": 4 }, "end": { "line": 305, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates this shape as a canvas\r\n * @param {number} size\r\n ", "start": 9119, "end": 9201, "loc": { "start": { "line": 310, "column": 4 }, "end": { "line": 313, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 9207, "end": 9580, "loc": { "start": { "line": 314, "column": 4 }, "end": { "line": 323, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 9207, "end": 9223, "loc": { "start": { "line": 314, "column": 4 }, "end": { "line": 314, "column": 20 }, "identifierName": "generateAsCanvas" }, "name": "generateAsCanvas", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "AssignmentPattern", "start": 9224, "end": 9234, "loc": { "start": { "line": 314, "column": 21 }, "end": { "line": 314, "column": 31 } }, "left": { "type": "Identifier", "start": 9224, "end": 9228, "loc": { "start": { "line": 314, "column": 21 }, "end": { "line": 314, "column": 25 }, "identifierName": "size" }, "name": "size" }, "right": { "type": "NumericLiteral", "start": 9231, "end": 9234, "loc": { "start": { "line": 314, "column": 28 }, "end": { "line": 314, "column": 31 } }, "extra": { "rawValue": 120, "raw": "120" }, "value": 120 } }, { "type": "AssignmentPattern", "start": 9236, "end": 9253, "loc": { "start": { "line": 314, "column": 33 }, "end": { "line": 314, "column": 50 } }, "left": { "type": "Identifier", "start": 9236, "end": 9246, "loc": { "start": { "line": 314, "column": 33 }, "end": { "line": 314, "column": 43 }, "identifierName": "background" }, "name": "background" }, "right": { "type": "BooleanLiteral", "start": 9249, "end": 9253, "loc": { "start": { "line": 314, "column": 46 }, "end": { "line": 314, "column": 50 } }, "value": true } } ], "body": { "type": "BlockStatement", "start": 9255, "end": 9580, "loc": { "start": { "line": 314, "column": 52 }, "end": { "line": 323, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 9266, "end": 9460, "loc": { "start": { "line": 315, "column": 8 }, "end": { "line": 319, "column": 11 } }, "declarations": [ { "type": "VariableDeclarator", "start": 9272, "end": 9459, "loc": { "start": { "line": 315, "column": 14 }, "end": { "line": 319, "column": 10 } }, "id": { "type": "ArrayPattern", "start": 9272, "end": 9289, "loc": { "start": { "line": 315, "column": 14 }, "end": { "line": 315, "column": 31 } }, "elements": [ { "type": "Identifier", "start": 9273, "end": 9279, "loc": { "start": { "line": 315, "column": 15 }, "end": { "line": 315, "column": 21 }, "identifierName": "canvas" }, "name": "canvas" }, { "type": "Identifier", "start": 9281, "end": 9288, "loc": { "start": { "line": 315, "column": 23 }, "end": { "line": 315, "column": 30 }, "identifierName": "context" }, "name": "context" } ] }, "init": { "type": "CallExpression", "start": 9292, "end": 9459, "loc": { "start": { "line": 315, "column": 34 }, "end": { "line": 319, "column": 10 } }, "callee": { "type": "Identifier", "start": 9292, "end": 9311, "loc": { "start": { "line": 315, "column": 34 }, "end": { "line": 315, "column": 53 }, "identifierName": "makeOffscreenBuffer" }, "name": "makeOffscreenBuffer" }, "arguments": [ { "type": "Identifier", "start": 9312, "end": 9316, "loc": { "start": { "line": 315, "column": 54 }, "end": { "line": 315, "column": 58 }, "identifierName": "size" }, "name": "size" }, { "type": "Identifier", "start": 9318, "end": 9322, "loc": { "start": { "line": 315, "column": 60 }, "end": { "line": 315, "column": 64 }, "identifierName": "size" }, "name": "size" }, { "type": "ObjectExpression", "start": 9324, "end": 9458, "loc": { "start": { "line": 315, "column": 66 }, "end": { "line": 319, "column": 9 } }, "properties": [ { "type": "ObjectProperty", "start": 9339, "end": 9351, "loc": { "start": { "line": 316, "column": 12 }, "end": { "line": 316, "column": 24 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 9339, "end": 9345, "loc": { "start": { "line": 316, "column": 12 }, "end": { "line": 316, "column": 18 }, "identifierName": "smooth" }, "name": "smooth" }, "value": { "type": "BooleanLiteral", "start": 9347, "end": 9351, "loc": { "start": { "line": 316, "column": 20 }, "end": { "line": 316, "column": 24 } }, "value": true } }, { "type": "ObjectProperty", "start": 9366, "end": 9416, "loc": { "start": { "line": 317, "column": 12 }, "end": { "line": 317, "column": 62 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 9366, "end": 9371, "loc": { "start": { "line": 317, "column": 12 }, "end": { "line": 317, "column": 17 }, "identifierName": "label" }, "name": "label" }, "value": { "type": "BinaryExpression", "start": 9373, "end": 9416, "loc": { "start": { "line": 317, "column": 19 }, "end": { "line": 317, "column": 62 } }, "left": { "type": "StringLiteral", "start": 9373, "end": 9399, "loc": { "start": { "line": 317, "column": 19 }, "end": { "line": 317, "column": 45 } }, "extra": { "rawValue": "definition-canvas-cache-", "raw": "\"definition-canvas-cache-\"" }, "value": "definition-canvas-cache-" }, "operator": "+", "right": { "type": "CallExpression", "start": 9402, "end": 9416, "loc": { "start": { "line": 317, "column": 48 }, "end": { "line": 317, "column": 62 } }, "callee": { "type": "MemberExpression", "start": 9402, "end": 9414, "loc": { "start": { "line": 317, "column": 48 }, "end": { "line": 317, "column": 60 } }, "object": { "type": "ThisExpression", "start": 9402, "end": 9406, "loc": { "start": { "line": 317, "column": 48 }, "end": { "line": 317, "column": 52 } } }, "property": { "type": "Identifier", "start": 9407, "end": 9414, "loc": { "start": { "line": 317, "column": 53 }, "end": { "line": 317, "column": 60 }, "identifierName": "getHash" }, "name": "getHash" }, "computed": false }, "arguments": [] } } }, { "type": "ObjectProperty", "start": 9431, "end": 9446, "loc": { "start": { "line": 318, "column": 12 }, "end": { "line": 318, "column": 27 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 9431, "end": 9439, "loc": { "start": { "line": 318, "column": 12 }, "end": { "line": 318, "column": 20 }, "identifierName": "reusable" }, "name": "reusable" }, "value": { "type": "BooleanLiteral", "start": 9441, "end": 9446, "loc": { "start": { "line": 318, "column": 22 }, "end": { "line": 318, "column": 27 } }, "value": false } } ] } ] } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 9472, "end": 9549, "loc": { "start": { "line": 321, "column": 8 }, "end": { "line": 321, "column": 85 } }, "expression": { "type": "CallExpression", "start": 9472, "end": 9548, "loc": { "start": { "line": 321, "column": 8 }, "end": { "line": 321, "column": 84 } }, "callee": { "type": "MemberExpression", "start": 9472, "end": 9504, "loc": { "start": { "line": 321, "column": 8 }, "end": { "line": 321, "column": 40 } }, "object": { "type": "ThisExpression", "start": 9472, "end": 9476, "loc": { "start": { "line": 321, "column": 8 }, "end": { "line": 321, "column": 12 } } }, "property": { "type": "Identifier", "start": 9477, "end": 9504, "loc": { "start": { "line": 321, "column": 13 }, "end": { "line": 321, "column": 40 }, "identifierName": "internalGenerateShapeBuffer" }, "name": "internalGenerateShapeBuffer" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 9505, "end": 9511, "loc": { "start": { "line": 321, "column": 41 }, "end": { "line": 321, "column": 47 }, "identifierName": "canvas" }, "name": "canvas" }, { "type": "Identifier", "start": 9513, "end": 9520, "loc": { "start": { "line": 321, "column": 49 }, "end": { "line": 321, "column": 56 }, "identifierName": "context" }, "name": "context" }, { "type": "Identifier", "start": 9522, "end": 9526, "loc": { "start": { "line": 321, "column": 58 }, "end": { "line": 321, "column": 62 }, "identifierName": "size" }, "name": "size" }, { "type": "Identifier", "start": 9528, "end": 9532, "loc": { "start": { "line": 321, "column": 64 }, "end": { "line": 321, "column": 68 }, "identifierName": "size" }, "name": "size" }, { "type": "NumericLiteral", "start": 9534, "end": 9535, "loc": { "start": { "line": 321, "column": 70 }, "end": { "line": 321, "column": 71 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, { "type": "Identifier", "start": 9537, "end": 9547, "loc": { "start": { "line": 321, "column": 73 }, "end": { "line": 321, "column": 83 }, "identifierName": "background" }, "name": "background" } ] } }, { "type": "ReturnStatement", "start": 9559, "end": 9573, "loc": { "start": { "line": 322, "column": 8 }, "end": { "line": 322, "column": 22 } }, "argument": { "type": "Identifier", "start": 9566, "end": 9572, "loc": { "start": { "line": 322, "column": 15 }, "end": { "line": 322, "column": 21 }, "identifierName": "canvas" }, "name": "canvas" } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Generates this shape as a canvas\r\n * @param {number} size\r\n ", "start": 9119, "end": 9201, "loc": { "start": { "line": 310, "column": 4 }, "end": { "line": 313, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {HTMLCanvasElement} canvas\r\n * @param {CanvasRenderingContext2D} context\r\n * @param {number} w\r\n * @param {number} h\r\n * @param {number} dpi\r\n ", "start": 9588, "end": 9780, "loc": { "start": { "line": 325, "column": 4 }, "end": { "line": 332, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 9786, "end": 14684, "loc": { "start": { "line": 333, "column": 4 }, "end": { "line": 446, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 9786, "end": 9813, "loc": { "start": { "line": 333, "column": 4 }, "end": { "line": 333, "column": 31 }, "identifierName": "internalGenerateShapeBuffer" }, "name": "internalGenerateShapeBuffer", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 9814, "end": 9820, "loc": { "start": { "line": 333, "column": 32 }, "end": { "line": 333, "column": 38 }, "identifierName": "canvas" }, "name": "canvas" }, { "type": "Identifier", "start": 9822, "end": 9829, "loc": { "start": { "line": 333, "column": 40 }, "end": { "line": 333, "column": 47 }, "identifierName": "context" }, "name": "context" }, { "type": "Identifier", "start": 9831, "end": 9832, "loc": { "start": { "line": 333, "column": 49 }, "end": { "line": 333, "column": 50 }, "identifierName": "w" }, "name": "w" }, { "type": "Identifier", "start": 9834, "end": 9835, "loc": { "start": { "line": 333, "column": 52 }, "end": { "line": 333, "column": 53 }, "identifierName": "h" }, "name": "h" }, { "type": "Identifier", "start": 9837, "end": 9840, "loc": { "start": { "line": 333, "column": 55 }, "end": { "line": 333, "column": 58 }, "identifierName": "dpi" }, "name": "dpi" }, { "type": "AssignmentPattern", "start": 9842, "end": 9859, "loc": { "start": { "line": 333, "column": 60 }, "end": { "line": 333, "column": 77 } }, "left": { "type": "Identifier", "start": 9842, "end": 9852, "loc": { "start": { "line": 333, "column": 60 }, "end": { "line": 333, "column": 70 }, "identifierName": "background" }, "name": "background" }, "right": { "type": "BooleanLiteral", "start": 9855, "end": 9859, "loc": { "start": { "line": 333, "column": 73 }, "end": { "line": 333, "column": 77 } }, "value": true } } ], "body": { "type": "BlockStatement", "start": 9861, "end": 14684, "loc": { "start": { "line": 333, "column": 79 }, "end": { "line": 446, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 9872, "end": 9920, "loc": { "start": { "line": 334, "column": 8 }, "end": { "line": 334, "column": 56 } }, "expression": { "type": "CallExpression", "start": 9872, "end": 9919, "loc": { "start": { "line": 334, "column": 8 }, "end": { "line": 334, "column": 55 } }, "callee": { "type": "MemberExpression", "start": 9872, "end": 9889, "loc": { "start": { "line": 334, "column": 8 }, "end": { "line": 334, "column": 25 } }, "object": { "type": "Identifier", "start": 9872, "end": 9879, "loc": { "start": { "line": 334, "column": 8 }, "end": { "line": 334, "column": 15 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 9880, "end": 9889, "loc": { "start": { "line": 334, "column": 16 }, "end": { "line": 334, "column": 25 }, "identifierName": "translate" }, "name": "translate" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 9890, "end": 9903, "loc": { "start": { "line": 334, "column": 26 }, "end": { "line": 334, "column": 39 } }, "left": { "type": "BinaryExpression", "start": 9891, "end": 9898, "loc": { "start": { "line": 334, "column": 27 }, "end": { "line": 334, "column": 34 } }, "left": { "type": "Identifier", "start": 9891, "end": 9892, "loc": { "start": { "line": 334, "column": 27 }, "end": { "line": 334, "column": 28 }, "identifierName": "w" }, "name": "w" }, "operator": "*", "right": { "type": "Identifier", "start": 9895, "end": 9898, "loc": { "start": { "line": 334, "column": 31 }, "end": { "line": 334, "column": 34 }, "identifierName": "dpi" }, "name": "dpi" }, "extra": { "parenthesized": true, "parenStart": 9890 } }, "operator": "/", "right": { "type": "NumericLiteral", "start": 9902, "end": 9903, "loc": { "start": { "line": 334, "column": 38 }, "end": { "line": 334, "column": 39 } }, "extra": { "rawValue": 2, "raw": "2" }, "value": 2 } }, { "type": "BinaryExpression", "start": 9905, "end": 9918, "loc": { "start": { "line": 334, "column": 41 }, "end": { "line": 334, "column": 54 } }, "left": { "type": "BinaryExpression", "start": 9906, "end": 9913, "loc": { "start": { "line": 334, "column": 42 }, "end": { "line": 334, "column": 49 } }, "left": { "type": "Identifier", "start": 9906, "end": 9907, "loc": { "start": { "line": 334, "column": 42 }, "end": { "line": 334, "column": 43 }, "identifierName": "h" }, "name": "h" }, "operator": "*", "right": { "type": "Identifier", "start": 9910, "end": 9913, "loc": { "start": { "line": 334, "column": 46 }, "end": { "line": 334, "column": 49 }, "identifierName": "dpi" }, "name": "dpi" }, "extra": { "parenthesized": true, "parenStart": 9905 } }, "operator": "/", "right": { "type": "NumericLiteral", "start": 9917, "end": 9918, "loc": { "start": { "line": 334, "column": 53 }, "end": { "line": 334, "column": 54 } }, "extra": { "rawValue": 2, "raw": "2" }, "value": 2 } } ] } }, { "type": "ExpressionStatement", "start": 9930, "end": 9976, "loc": { "start": { "line": 335, "column": 8 }, "end": { "line": 335, "column": 54 } }, "expression": { "type": "CallExpression", "start": 9930, "end": 9975, "loc": { "start": { "line": 335, "column": 8 }, "end": { "line": 335, "column": 53 } }, "callee": { "type": "MemberExpression", "start": 9930, "end": 9943, "loc": { "start": { "line": 335, "column": 8 }, "end": { "line": 335, "column": 21 } }, "object": { "type": "Identifier", "start": 9930, "end": 9937, "loc": { "start": { "line": 335, "column": 8 }, "end": { "line": 335, "column": 15 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 9938, "end": 9943, "loc": { "start": { "line": 335, "column": 16 }, "end": { "line": 335, "column": 21 }, "identifierName": "scale" }, "name": "scale" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 9944, "end": 9958, "loc": { "start": { "line": 335, "column": 22 }, "end": { "line": 335, "column": 36 } }, "left": { "type": "BinaryExpression", "start": 9945, "end": 9952, "loc": { "start": { "line": 335, "column": 23 }, "end": { "line": 335, "column": 30 } }, "left": { "type": "Identifier", "start": 9945, "end": 9948, "loc": { "start": { "line": 335, "column": 23 }, "end": { "line": 335, "column": 26 }, "identifierName": "dpi" }, "name": "dpi" }, "operator": "*", "right": { "type": "Identifier", "start": 9951, "end": 9952, "loc": { "start": { "line": 335, "column": 29 }, "end": { "line": 335, "column": 30 }, "identifierName": "w" }, "name": "w" }, "extra": { "parenthesized": true, "parenStart": 9944 } }, "operator": "/", "right": { "type": "NumericLiteral", "start": 9956, "end": 9958, "loc": { "start": { "line": 335, "column": 34 }, "end": { "line": 335, "column": 36 } }, "extra": { "rawValue": 23, "raw": "23" }, "value": 23 } }, { "type": "BinaryExpression", "start": 9960, "end": 9974, "loc": { "start": { "line": 335, "column": 38 }, "end": { "line": 335, "column": 52 } }, "left": { "type": "BinaryExpression", "start": 9961, "end": 9968, "loc": { "start": { "line": 335, "column": 39 }, "end": { "line": 335, "column": 46 } }, "left": { "type": "Identifier", "start": 9961, "end": 9964, "loc": { "start": { "line": 335, "column": 39 }, "end": { "line": 335, "column": 42 }, "identifierName": "dpi" }, "name": "dpi" }, "operator": "*", "right": { "type": "Identifier", "start": 9967, "end": 9968, "loc": { "start": { "line": 335, "column": 45 }, "end": { "line": 335, "column": 46 }, "identifierName": "h" }, "name": "h" }, "extra": { "parenthesized": true, "parenStart": 9960 } }, "operator": "/", "right": { "type": "NumericLiteral", "start": 9972, "end": 9974, "loc": { "start": { "line": 335, "column": 50 }, "end": { "line": 335, "column": 52 } }, "extra": { "rawValue": 23, "raw": "23" }, "value": 23 } } ] } }, { "type": "ExpressionStatement", "start": 9988, "end": 10018, "loc": { "start": { "line": 337, "column": 8 }, "end": { "line": 337, "column": 38 } }, "expression": { "type": "AssignmentExpression", "start": 9988, "end": 10017, "loc": { "start": { "line": 337, "column": 8 }, "end": { "line": 337, "column": 37 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 9988, "end": 10005, "loc": { "start": { "line": 337, "column": 8 }, "end": { "line": 337, "column": 25 } }, "object": { "type": "Identifier", "start": 9988, "end": 9995, "loc": { "start": { "line": 337, "column": 8 }, "end": { "line": 337, "column": 15 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 9996, "end": 10005, "loc": { "start": { "line": 337, "column": 16 }, "end": { "line": 337, "column": 25 }, "identifierName": "fillStyle" }, "name": "fillStyle" }, "computed": false }, "right": { "type": "StringLiteral", "start": 10008, "end": 10017, "loc": { "start": { "line": 337, "column": 28 }, "end": { "line": 337, "column": 37 } }, "extra": { "rawValue": "#e9ecf7", "raw": "\"#e9ecf7\"" }, "value": "#e9ecf7" } } }, { "type": "VariableDeclaration", "start": 10030, "end": 10054, "loc": { "start": { "line": 339, "column": 8 }, "end": { "line": 339, "column": 32 } }, "declarations": [ { "type": "VariableDeclarator", "start": 10036, "end": 10053, "loc": { "start": { "line": 339, "column": 14 }, "end": { "line": 339, "column": 31 } }, "id": { "type": "Identifier", "start": 10036, "end": 10048, "loc": { "start": { "line": 339, "column": 14 }, "end": { "line": 339, "column": 26 }, "identifierName": "quadrantSize" }, "name": "quadrantSize" }, "init": { "type": "NumericLiteral", "start": 10051, "end": 10053, "loc": { "start": { "line": 339, "column": 29 }, "end": { "line": 339, "column": 31 } }, "extra": { "rawValue": 10, "raw": "10" }, "value": 10 } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 10064, "end": 10106, "loc": { "start": { "line": 340, "column": 8 }, "end": { "line": 340, "column": 50 } }, "declarations": [ { "type": "VariableDeclarator", "start": 10070, "end": 10105, "loc": { "start": { "line": 340, "column": 14 }, "end": { "line": 340, "column": 49 } }, "id": { "type": "Identifier", "start": 10070, "end": 10086, "loc": { "start": { "line": 340, "column": 14 }, "end": { "line": 340, "column": 30 }, "identifierName": "quadrantHalfSize" }, "name": "quadrantHalfSize" }, "init": { "type": "BinaryExpression", "start": 10089, "end": 10105, "loc": { "start": { "line": 340, "column": 33 }, "end": { "line": 340, "column": 49 } }, "left": { "type": "Identifier", "start": 10089, "end": 10101, "loc": { "start": { "line": 340, "column": 33 }, "end": { "line": 340, "column": 45 }, "identifierName": "quadrantSize" }, "name": "quadrantSize" }, "operator": "/", "right": { "type": "NumericLiteral", "start": 10104, "end": 10105, "loc": { "start": { "line": 340, "column": 48 }, "end": { "line": 340, "column": 49 } }, "extra": { "rawValue": 2, "raw": "2" }, "value": 2 } } } ], "kind": "const" }, { "type": "IfStatement", "start": 10118, "end": 10299, "loc": { "start": { "line": 342, "column": 8 }, "end": { "line": 346, "column": 9 } }, "test": { "type": "Identifier", "start": 10122, "end": 10132, "loc": { "start": { "line": 342, "column": 12 }, "end": { "line": 342, "column": 22 }, "identifierName": "background" }, "name": "background" }, "consequent": { "type": "BlockStatement", "start": 10134, "end": 10299, "loc": { "start": { "line": 342, "column": 24 }, "end": { "line": 346, "column": 9 } }, "body": [ { "type": "ExpressionStatement", "start": 10149, "end": 10198, "loc": { "start": { "line": 343, "column": 12 }, "end": { "line": 343, "column": 61 } }, "expression": { "type": "AssignmentExpression", "start": 10149, "end": 10197, "loc": { "start": { "line": 343, "column": 12 }, "end": { "line": 343, "column": 60 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 10149, "end": 10166, "loc": { "start": { "line": 343, "column": 12 }, "end": { "line": 343, "column": 29 } }, "object": { "type": "Identifier", "start": 10149, "end": 10156, "loc": { "start": { "line": 343, "column": 12 }, "end": { "line": 343, "column": 19 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 10157, "end": 10166, "loc": { "start": { "line": 343, "column": 20 }, "end": { "line": 343, "column": 29 }, "identifierName": "fillStyle" }, "name": "fillStyle" }, "computed": false }, "right": { "type": "MemberExpression", "start": 10169, "end": 10197, "loc": { "start": { "line": 343, "column": 32 }, "end": { "line": 343, "column": 60 } }, "object": { "type": "MemberExpression", "start": 10169, "end": 10180, "loc": { "start": { "line": 343, "column": 32 }, "end": { "line": 343, "column": 43 } }, "object": { "type": "Identifier", "start": 10169, "end": 10174, "loc": { "start": { "line": 343, "column": 32 }, "end": { "line": 343, "column": 37 }, "identifierName": "THEME" }, "name": "THEME" }, "property": { "type": "Identifier", "start": 10175, "end": 10180, "loc": { "start": { "line": 343, "column": 38 }, "end": { "line": 343, "column": 43 }, "identifierName": "items" }, "name": "items" }, "computed": false }, "property": { "type": "Identifier", "start": 10181, "end": 10197, "loc": { "start": { "line": 343, "column": 44 }, "end": { "line": 343, "column": 60 }, "identifierName": "circleBackground" }, "name": "circleBackground" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 10212, "end": 10259, "loc": { "start": { "line": 344, "column": 12 }, "end": { "line": 344, "column": 59 } }, "expression": { "type": "CallExpression", "start": 10212, "end": 10258, "loc": { "start": { "line": 344, "column": 12 }, "end": { "line": 344, "column": 58 } }, "callee": { "type": "MemberExpression", "start": 10212, "end": 10231, "loc": { "start": { "line": 344, "column": 12 }, "end": { "line": 344, "column": 31 } }, "object": { "type": "Identifier", "start": 10212, "end": 10219, "loc": { "start": { "line": 344, "column": 12 }, "end": { "line": 344, "column": 19 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 10220, "end": 10231, "loc": { "start": { "line": 344, "column": 20 }, "end": { "line": 344, "column": 31 }, "identifierName": "beginCircle" }, "name": "beginCircle" }, "computed": false }, "arguments": [ { "type": "NumericLiteral", "start": 10232, "end": 10233, "loc": { "start": { "line": 344, "column": 32 }, "end": { "line": 344, "column": 33 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, { "type": "NumericLiteral", "start": 10235, "end": 10236, "loc": { "start": { "line": 344, "column": 35 }, "end": { "line": 344, "column": 36 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, { "type": "BinaryExpression", "start": 10238, "end": 10257, "loc": { "start": { "line": 344, "column": 38 }, "end": { "line": 344, "column": 57 } }, "left": { "type": "Identifier", "start": 10238, "end": 10250, "loc": { "start": { "line": 344, "column": 38 }, "end": { "line": 344, "column": 50 }, "identifierName": "quadrantSize" }, "name": "quadrantSize" }, "operator": "*", "right": { "type": "NumericLiteral", "start": 10253, "end": 10257, "loc": { "start": { "line": 344, "column": 53 }, "end": { "line": 344, "column": 57 } }, "extra": { "rawValue": 1.15, "raw": "1.15" }, "value": 1.15 } } ] } }, { "type": "ExpressionStatement", "start": 10273, "end": 10288, "loc": { "start": { "line": 345, "column": 12 }, "end": { "line": 345, "column": 27 } }, "expression": { "type": "CallExpression", "start": 10273, "end": 10287, "loc": { "start": { "line": 345, "column": 12 }, "end": { "line": 345, "column": 26 } }, "callee": { "type": "MemberExpression", "start": 10273, "end": 10285, "loc": { "start": { "line": 345, "column": 12 }, "end": { "line": 345, "column": 24 } }, "object": { "type": "Identifier", "start": 10273, "end": 10280, "loc": { "start": { "line": 345, "column": 12 }, "end": { "line": 345, "column": 19 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 10281, "end": 10285, "loc": { "start": { "line": 345, "column": 20 }, "end": { "line": 345, "column": 24 }, "identifierName": "fill" }, "name": "fill" }, "computed": false }, "arguments": [] } } ], "directives": [] }, "alternate": null }, { "type": "ForStatement", "start": 10311, "end": 14677, "loc": { "start": { "line": 348, "column": 8 }, "end": { "line": 445, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 10316, "end": 10334, "loc": { "start": { "line": 348, "column": 13 }, "end": { "line": 348, "column": 31 } }, "declarations": [ { "type": "VariableDeclarator", "start": 10320, "end": 10334, "loc": { "start": { "line": 348, "column": 17 }, "end": { "line": 348, "column": 31 } }, "id": { "type": "Identifier", "start": 10320, "end": 10330, "loc": { "start": { "line": 348, "column": 17 }, "end": { "line": 348, "column": 27 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "init": { "type": "NumericLiteral", "start": 10333, "end": 10334, "loc": { "start": { "line": 348, "column": 30 }, "end": { "line": 348, "column": 31 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 10336, "end": 10367, "loc": { "start": { "line": 348, "column": 33 }, "end": { "line": 348, "column": 64 } }, "left": { "type": "Identifier", "start": 10336, "end": 10346, "loc": { "start": { "line": 348, "column": 33 }, "end": { "line": 348, "column": 43 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "operator": "<", "right": { "type": "MemberExpression", "start": 10349, "end": 10367, "loc": { "start": { "line": 348, "column": 46 }, "end": { "line": 348, "column": 64 } }, "object": { "type": "MemberExpression", "start": 10349, "end": 10360, "loc": { "start": { "line": 348, "column": 46 }, "end": { "line": 348, "column": 57 } }, "object": { "type": "ThisExpression", "start": 10349, "end": 10353, "loc": { "start": { "line": 348, "column": 46 }, "end": { "line": 348, "column": 50 } } }, "property": { "type": "Identifier", "start": 10354, "end": 10360, "loc": { "start": { "line": 348, "column": 51 }, "end": { "line": 348, "column": 57 }, "identifierName": "layers" }, "name": "layers" }, "computed": false }, "property": { "type": "Identifier", "start": 10361, "end": 10367, "loc": { "start": { "line": 348, "column": 58 }, "end": { "line": 348, "column": 64 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 10369, "end": 10381, "loc": { "start": { "line": 348, "column": 66 }, "end": { "line": 348, "column": 78 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 10371, "end": 10381, "loc": { "start": { "line": 348, "column": 68 }, "end": { "line": 348, "column": 78 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 10383, "end": 14677, "loc": { "start": { "line": 348, "column": 80 }, "end": { "line": 445, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 10398, "end": 10440, "loc": { "start": { "line": 349, "column": 12 }, "end": { "line": 349, "column": 54 } }, "declarations": [ { "type": "VariableDeclarator", "start": 10404, "end": 10439, "loc": { "start": { "line": 349, "column": 18 }, "end": { "line": 349, "column": 53 } }, "id": { "type": "Identifier", "start": 10404, "end": 10413, "loc": { "start": { "line": 349, "column": 18 }, "end": { "line": 349, "column": 27 }, "identifierName": "quadrants" }, "name": "quadrants" }, "init": { "type": "MemberExpression", "start": 10416, "end": 10439, "loc": { "start": { "line": 349, "column": 30 }, "end": { "line": 349, "column": 53 } }, "object": { "type": "MemberExpression", "start": 10416, "end": 10427, "loc": { "start": { "line": 349, "column": 30 }, "end": { "line": 349, "column": 41 } }, "object": { "type": "ThisExpression", "start": 10416, "end": 10420, "loc": { "start": { "line": 349, "column": 30 }, "end": { "line": 349, "column": 34 } } }, "property": { "type": "Identifier", "start": 10421, "end": 10427, "loc": { "start": { "line": 349, "column": 35 }, "end": { "line": 349, "column": 41 }, "identifierName": "layers" }, "name": "layers" }, "computed": false }, "property": { "type": "Identifier", "start": 10428, "end": 10438, "loc": { "start": { "line": 349, "column": 42 }, "end": { "line": 349, "column": 52 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "computed": true } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 10456, "end": 10514, "loc": { "start": { "line": 351, "column": 12 }, "end": { "line": 351, "column": 70 } }, "declarations": [ { "type": "VariableDeclarator", "start": 10462, "end": 10513, "loc": { "start": { "line": 351, "column": 18 }, "end": { "line": 351, "column": 69 } }, "id": { "type": "Identifier", "start": 10462, "end": 10472, "loc": { "start": { "line": 351, "column": 18 }, "end": { "line": 351, "column": 28 }, "identifierName": "layerScale" }, "name": "layerScale" }, "init": { "type": "CallExpression", "start": 10475, "end": 10513, "loc": { "start": { "line": 351, "column": 31 }, "end": { "line": 351, "column": 69 } }, "callee": { "type": "MemberExpression", "start": 10475, "end": 10483, "loc": { "start": { "line": 351, "column": 31 }, "end": { "line": 351, "column": 39 } }, "object": { "type": "Identifier", "start": 10475, "end": 10479, "loc": { "start": { "line": 351, "column": 31 }, "end": { "line": 351, "column": 35 }, "identifierName": "Math" }, "name": "Math" }, "property": { "type": "Identifier", "start": 10480, "end": 10483, "loc": { "start": { "line": 351, "column": 36 }, "end": { "line": 351, "column": 39 }, "identifierName": "max" }, "name": "max" }, "computed": false }, "arguments": [ { "type": "NumericLiteral", "start": 10484, "end": 10487, "loc": { "start": { "line": 351, "column": 40 }, "end": { "line": 351, "column": 43 } }, "extra": { "rawValue": 0.1, "raw": "0.1" }, "value": 0.1 }, { "type": "BinaryExpression", "start": 10489, "end": 10512, "loc": { "start": { "line": 351, "column": 45 }, "end": { "line": 351, "column": 68 } }, "left": { "type": "NumericLiteral", "start": 10489, "end": 10492, "loc": { "start": { "line": 351, "column": 45 }, "end": { "line": 351, "column": 48 } }, "extra": { "rawValue": 0.9, "raw": "0.9" }, "value": 0.9 }, "operator": "-", "right": { "type": "BinaryExpression", "start": 10495, "end": 10512, "loc": { "start": { "line": 351, "column": 51 }, "end": { "line": 351, "column": 68 } }, "left": { "type": "Identifier", "start": 10495, "end": 10505, "loc": { "start": { "line": 351, "column": 51 }, "end": { "line": 351, "column": 61 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "operator": "*", "right": { "type": "NumericLiteral", "start": 10508, "end": 10512, "loc": { "start": { "line": 351, "column": 64 }, "end": { "line": 351, "column": 68 } }, "extra": { "rawValue": 0.22, "raw": "0.22" }, "value": 0.22 } } } ] } } ], "kind": "const" }, { "type": "ForStatement", "start": 10530, "end": 14666, "loc": { "start": { "line": 353, "column": 12 }, "end": { "line": 444, "column": 13 } }, "init": { "type": "VariableDeclaration", "start": 10535, "end": 10556, "loc": { "start": { "line": 353, "column": 17 }, "end": { "line": 353, "column": 38 } }, "declarations": [ { "type": "VariableDeclarator", "start": 10539, "end": 10556, "loc": { "start": { "line": 353, "column": 21 }, "end": { "line": 353, "column": 38 } }, "id": { "type": "Identifier", "start": 10539, "end": 10552, "loc": { "start": { "line": 353, "column": 21 }, "end": { "line": 353, "column": 34 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "init": { "type": "NumericLiteral", "start": 10555, "end": 10556, "loc": { "start": { "line": 353, "column": 37 }, "end": { "line": 353, "column": 38 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 10558, "end": 10575, "loc": { "start": { "line": 353, "column": 40 }, "end": { "line": 353, "column": 57 } }, "left": { "type": "Identifier", "start": 10558, "end": 10571, "loc": { "start": { "line": 353, "column": 40 }, "end": { "line": 353, "column": 53 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "operator": "<", "right": { "type": "NumericLiteral", "start": 10574, "end": 10575, "loc": { "start": { "line": 353, "column": 56 }, "end": { "line": 353, "column": 57 } }, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 } }, "update": { "type": "UpdateExpression", "start": 10577, "end": 10592, "loc": { "start": { "line": 353, "column": 59 }, "end": { "line": 353, "column": 74 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 10579, "end": 10592, "loc": { "start": { "line": 353, "column": 61 }, "end": { "line": 353, "column": 74 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 10594, "end": 14666, "loc": { "start": { "line": 353, "column": 76 }, "end": { "line": 444, "column": 13 } }, "body": [ { "type": "IfStatement", "start": 10613, "end": 10695, "loc": { "start": { "line": 354, "column": 16 }, "end": { "line": 356, "column": 17 } }, "test": { "type": "UnaryExpression", "start": 10617, "end": 10642, "loc": { "start": { "line": 354, "column": 20 }, "end": { "line": 354, "column": 45 } }, "operator": "!", "prefix": true, "argument": { "type": "MemberExpression", "start": 10618, "end": 10642, "loc": { "start": { "line": 354, "column": 21 }, "end": { "line": 354, "column": 45 } }, "object": { "type": "Identifier", "start": 10618, "end": 10627, "loc": { "start": { "line": 354, "column": 21 }, "end": { "line": 354, "column": 30 }, "identifierName": "quadrants" }, "name": "quadrants" }, "property": { "type": "Identifier", "start": 10628, "end": 10641, "loc": { "start": { "line": 354, "column": 31 }, "end": { "line": 354, "column": 44 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "computed": true }, "extra": { "parenthesizedArgument": false } }, "consequent": { "type": "BlockStatement", "start": 10644, "end": 10695, "loc": { "start": { "line": 354, "column": 47 }, "end": { "line": 356, "column": 17 } }, "body": [ { "type": "ContinueStatement", "start": 10667, "end": 10676, "loc": { "start": { "line": 355, "column": 20 }, "end": { "line": 355, "column": 29 } }, "label": null } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 10713, "end": 10766, "loc": { "start": { "line": 357, "column": 16 }, "end": { "line": 357, "column": 69 } }, "declarations": [ { "type": "VariableDeclarator", "start": 10719, "end": 10765, "loc": { "start": { "line": 357, "column": 22 }, "end": { "line": 357, "column": 68 } }, "id": { "type": "ObjectPattern", "start": 10719, "end": 10738, "loc": { "start": { "line": 357, "column": 22 }, "end": { "line": 357, "column": 41 } }, "properties": [ { "type": "ObjectProperty", "start": 10721, "end": 10729, "loc": { "start": { "line": 357, "column": 24 }, "end": { "line": 357, "column": 32 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 10721, "end": 10729, "loc": { "start": { "line": 357, "column": 24 }, "end": { "line": 357, "column": 32 }, "identifierName": "subShape" }, "name": "subShape" }, "value": { "type": "Identifier", "start": 10721, "end": 10729, "loc": { "start": { "line": 357, "column": 24 }, "end": { "line": 357, "column": 32 }, "identifierName": "subShape" }, "name": "subShape" }, "extra": { "shorthand": true } }, { "type": "ObjectProperty", "start": 10731, "end": 10736, "loc": { "start": { "line": 357, "column": 34 }, "end": { "line": 357, "column": 39 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 10731, "end": 10736, "loc": { "start": { "line": 357, "column": 34 }, "end": { "line": 357, "column": 39 }, "identifierName": "color" }, "name": "color" }, "value": { "type": "Identifier", "start": 10731, "end": 10736, "loc": { "start": { "line": 357, "column": 34 }, "end": { "line": 357, "column": 39 }, "identifierName": "color" }, "name": "color" }, "extra": { "shorthand": true } } ] }, "init": { "type": "MemberExpression", "start": 10741, "end": 10765, "loc": { "start": { "line": 357, "column": 44 }, "end": { "line": 357, "column": 68 } }, "object": { "type": "Identifier", "start": 10741, "end": 10750, "loc": { "start": { "line": 357, "column": 44 }, "end": { "line": 357, "column": 53 }, "identifierName": "quadrants" }, "name": "quadrants" }, "property": { "type": "Identifier", "start": 10751, "end": 10764, "loc": { "start": { "line": 357, "column": 54 }, "end": { "line": 357, "column": 67 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "computed": true } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 10786, "end": 10848, "loc": { "start": { "line": 359, "column": 16 }, "end": { "line": 359, "column": 78 } }, "declarations": [ { "type": "VariableDeclarator", "start": 10792, "end": 10847, "loc": { "start": { "line": 359, "column": 22 }, "end": { "line": 359, "column": 77 } }, "id": { "type": "Identifier", "start": 10792, "end": 10803, "loc": { "start": { "line": 359, "column": 22 }, "end": { "line": 359, "column": 33 }, "identifierName": "quadrantPos" }, "name": "quadrantPos" }, "init": { "type": "MemberExpression", "start": 10806, "end": 10847, "loc": { "start": { "line": 359, "column": 36 }, "end": { "line": 359, "column": 77 } }, "object": { "type": "Identifier", "start": 10806, "end": 10832, "loc": { "start": { "line": 359, "column": 36 }, "end": { "line": 359, "column": 62 }, "identifierName": "arrayQuadrantIndexToOffset" }, "name": "arrayQuadrantIndexToOffset" }, "property": { "type": "Identifier", "start": 10833, "end": 10846, "loc": { "start": { "line": 359, "column": 63 }, "end": { "line": 359, "column": 76 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "computed": true } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 10866, "end": 10923, "loc": { "start": { "line": 360, "column": 16 }, "end": { "line": 360, "column": 73 } }, "declarations": [ { "type": "VariableDeclarator", "start": 10872, "end": 10922, "loc": { "start": { "line": 360, "column": 22 }, "end": { "line": 360, "column": 72 } }, "id": { "type": "Identifier", "start": 10872, "end": 10887, "loc": { "start": { "line": 360, "column": 22 }, "end": { "line": 360, "column": 37 }, "identifierName": "centerQuadrantX" }, "name": "centerQuadrantX" }, "init": { "type": "BinaryExpression", "start": 10890, "end": 10922, "loc": { "start": { "line": 360, "column": 40 }, "end": { "line": 360, "column": 72 } }, "left": { "type": "MemberExpression", "start": 10890, "end": 10903, "loc": { "start": { "line": 360, "column": 40 }, "end": { "line": 360, "column": 53 } }, "object": { "type": "Identifier", "start": 10890, "end": 10901, "loc": { "start": { "line": 360, "column": 40 }, "end": { "line": 360, "column": 51 }, "identifierName": "quadrantPos" }, "name": "quadrantPos" }, "property": { "type": "Identifier", "start": 10902, "end": 10903, "loc": { "start": { "line": 360, "column": 52 }, "end": { "line": 360, "column": 53 }, "identifierName": "x" }, "name": "x" }, "computed": false }, "operator": "*", "right": { "type": "Identifier", "start": 10906, "end": 10922, "loc": { "start": { "line": 360, "column": 56 }, "end": { "line": 360, "column": 72 }, "identifierName": "quadrantHalfSize" }, "name": "quadrantHalfSize" } } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 10941, "end": 10998, "loc": { "start": { "line": 361, "column": 16 }, "end": { "line": 361, "column": 73 } }, "declarations": [ { "type": "VariableDeclarator", "start": 10947, "end": 10997, "loc": { "start": { "line": 361, "column": 22 }, "end": { "line": 361, "column": 72 } }, "id": { "type": "Identifier", "start": 10947, "end": 10962, "loc": { "start": { "line": 361, "column": 22 }, "end": { "line": 361, "column": 37 }, "identifierName": "centerQuadrantY" }, "name": "centerQuadrantY" }, "init": { "type": "BinaryExpression", "start": 10965, "end": 10997, "loc": { "start": { "line": 361, "column": 40 }, "end": { "line": 361, "column": 72 } }, "left": { "type": "MemberExpression", "start": 10965, "end": 10978, "loc": { "start": { "line": 361, "column": 40 }, "end": { "line": 361, "column": 53 } }, "object": { "type": "Identifier", "start": 10965, "end": 10976, "loc": { "start": { "line": 361, "column": 40 }, "end": { "line": 361, "column": 51 }, "identifierName": "quadrantPos" }, "name": "quadrantPos" }, "property": { "type": "Identifier", "start": 10977, "end": 10978, "loc": { "start": { "line": 361, "column": 52 }, "end": { "line": 361, "column": 53 }, "identifierName": "y" }, "name": "y" }, "computed": false }, "operator": "*", "right": { "type": "Identifier", "start": 10981, "end": 10997, "loc": { "start": { "line": 361, "column": 56 }, "end": { "line": 361, "column": 72 }, "identifierName": "quadrantHalfSize" }, "name": "quadrantHalfSize" } } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 11018, "end": 11068, "loc": { "start": { "line": 363, "column": 16 }, "end": { "line": 363, "column": 66 } }, "declarations": [ { "type": "VariableDeclarator", "start": 11024, "end": 11067, "loc": { "start": { "line": 363, "column": 22 }, "end": { "line": 363, "column": 65 } }, "id": { "type": "Identifier", "start": 11024, "end": 11032, "loc": { "start": { "line": 363, "column": 22 }, "end": { "line": 363, "column": 30 }, "identifierName": "rotation" }, "name": "rotation" }, "init": { "type": "CallExpression", "start": 11035, "end": 11067, "loc": { "start": { "line": 363, "column": 33 }, "end": { "line": 363, "column": 65 } }, "callee": { "type": "MemberExpression", "start": 11035, "end": 11047, "loc": { "start": { "line": 363, "column": 33 }, "end": { "line": 363, "column": 45 } }, "object": { "type": "Identifier", "start": 11035, "end": 11039, "loc": { "start": { "line": 363, "column": 33 }, "end": { "line": 363, "column": 37 }, "identifierName": "Math" }, "name": "Math" }, "property": { "type": "Identifier", "start": 11040, "end": 11047, "loc": { "start": { "line": 363, "column": 38 }, "end": { "line": 363, "column": 45 }, "identifierName": "radians" }, "name": "radians" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 11048, "end": 11066, "loc": { "start": { "line": 363, "column": 46 }, "end": { "line": 363, "column": 64 } }, "left": { "type": "Identifier", "start": 11048, "end": 11061, "loc": { "start": { "line": 363, "column": 46 }, "end": { "line": 363, "column": 59 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "operator": "*", "right": { "type": "NumericLiteral", "start": 11064, "end": 11066, "loc": { "start": { "line": 363, "column": 62 }, "end": { "line": 363, "column": 64 } }, "extra": { "rawValue": 90, "raw": "90" }, "value": 90 } } ] } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 11088, "end": 11140, "loc": { "start": { "line": 365, "column": 16 }, "end": { "line": 365, "column": 68 } }, "expression": { "type": "CallExpression", "start": 11088, "end": 11139, "loc": { "start": { "line": 365, "column": 16 }, "end": { "line": 365, "column": 67 } }, "callee": { "type": "MemberExpression", "start": 11088, "end": 11105, "loc": { "start": { "line": 365, "column": 16 }, "end": { "line": 365, "column": 33 } }, "object": { "type": "Identifier", "start": 11088, "end": 11095, "loc": { "start": { "line": 365, "column": 16 }, "end": { "line": 365, "column": 23 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 11096, "end": 11105, "loc": { "start": { "line": 365, "column": 24 }, "end": { "line": 365, "column": 33 }, "identifierName": "translate" }, "name": "translate" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 11106, "end": 11121, "loc": { "start": { "line": 365, "column": 34 }, "end": { "line": 365, "column": 49 }, "identifierName": "centerQuadrantX" }, "name": "centerQuadrantX" }, { "type": "Identifier", "start": 11123, "end": 11138, "loc": { "start": { "line": 365, "column": 51 }, "end": { "line": 365, "column": 66 }, "identifierName": "centerQuadrantY" }, "name": "centerQuadrantY" } ] } }, { "type": "ExpressionStatement", "start": 11158, "end": 11183, "loc": { "start": { "line": 366, "column": 16 }, "end": { "line": 366, "column": 41 } }, "expression": { "type": "CallExpression", "start": 11158, "end": 11182, "loc": { "start": { "line": 366, "column": 16 }, "end": { "line": 366, "column": 40 } }, "callee": { "type": "MemberExpression", "start": 11158, "end": 11172, "loc": { "start": { "line": 366, "column": 16 }, "end": { "line": 366, "column": 30 } }, "object": { "type": "Identifier", "start": 11158, "end": 11165, "loc": { "start": { "line": 366, "column": 16 }, "end": { "line": 366, "column": 23 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 11166, "end": 11172, "loc": { "start": { "line": 366, "column": 24 }, "end": { "line": 366, "column": 30 }, "identifierName": "rotate" }, "name": "rotate" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 11173, "end": 11181, "loc": { "start": { "line": 366, "column": 31 }, "end": { "line": 366, "column": 39 }, "identifierName": "rotation" }, "name": "rotation" } ] } }, { "type": "ExpressionStatement", "start": 11203, "end": 11250, "loc": { "start": { "line": 368, "column": 16 }, "end": { "line": 368, "column": 63 } }, "expression": { "type": "AssignmentExpression", "start": 11203, "end": 11249, "loc": { "start": { "line": 368, "column": 16 }, "end": { "line": 368, "column": 62 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 11203, "end": 11220, "loc": { "start": { "line": 368, "column": 16 }, "end": { "line": 368, "column": 33 } }, "object": { "type": "Identifier", "start": 11203, "end": 11210, "loc": { "start": { "line": 368, "column": 16 }, "end": { "line": 368, "column": 23 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 11211, "end": 11220, "loc": { "start": { "line": 368, "column": 24 }, "end": { "line": 368, "column": 33 }, "identifierName": "fillStyle" }, "name": "fillStyle" }, "computed": false }, "right": { "type": "MemberExpression", "start": 11223, "end": 11249, "loc": { "start": { "line": 368, "column": 36 }, "end": { "line": 368, "column": 62 } }, "object": { "type": "Identifier", "start": 11223, "end": 11242, "loc": { "start": { "line": 368, "column": 36 }, "end": { "line": 368, "column": 55 }, "identifierName": "enumColorsToHexCode" }, "name": "enumColorsToHexCode" }, "property": { "type": "Identifier", "start": 11243, "end": 11248, "loc": { "start": { "line": 368, "column": 56 }, "end": { "line": 368, "column": 61 }, "identifierName": "color" }, "name": "color" }, "computed": true } } }, { "type": "ExpressionStatement", "start": 11268, "end": 11310, "loc": { "start": { "line": 369, "column": 16 }, "end": { "line": 369, "column": 58 } }, "expression": { "type": "AssignmentExpression", "start": 11268, "end": 11309, "loc": { "start": { "line": 369, "column": 16 }, "end": { "line": 369, "column": 57 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 11268, "end": 11287, "loc": { "start": { "line": 369, "column": 16 }, "end": { "line": 369, "column": 35 } }, "object": { "type": "Identifier", "start": 11268, "end": 11275, "loc": { "start": { "line": 369, "column": 16 }, "end": { "line": 369, "column": 23 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 11276, "end": 11287, "loc": { "start": { "line": 369, "column": 24 }, "end": { "line": 369, "column": 35 }, "identifierName": "strokeStyle" }, "name": "strokeStyle" }, "computed": false }, "right": { "type": "MemberExpression", "start": 11290, "end": 11309, "loc": { "start": { "line": 369, "column": 38 }, "end": { "line": 369, "column": 57 } }, "object": { "type": "MemberExpression", "start": 11290, "end": 11301, "loc": { "start": { "line": 369, "column": 38 }, "end": { "line": 369, "column": 49 } }, "object": { "type": "Identifier", "start": 11290, "end": 11295, "loc": { "start": { "line": 369, "column": 38 }, "end": { "line": 369, "column": 43 }, "identifierName": "THEME" }, "name": "THEME" }, "property": { "type": "Identifier", "start": 11296, "end": 11301, "loc": { "start": { "line": 369, "column": 44 }, "end": { "line": 369, "column": 49 }, "identifierName": "items" }, "name": "items" }, "computed": false }, "property": { "type": "Identifier", "start": 11302, "end": 11309, "loc": { "start": { "line": 369, "column": 50 }, "end": { "line": 369, "column": 57 }, "identifierName": "outline" }, "name": "outline" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 11328, "end": 11373, "loc": { "start": { "line": 370, "column": 16 }, "end": { "line": 370, "column": 61 } }, "expression": { "type": "AssignmentExpression", "start": 11328, "end": 11372, "loc": { "start": { "line": 370, "column": 16 }, "end": { "line": 370, "column": 60 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 11328, "end": 11345, "loc": { "start": { "line": 370, "column": 16 }, "end": { "line": 370, "column": 33 } }, "object": { "type": "Identifier", "start": 11328, "end": 11335, "loc": { "start": { "line": 370, "column": 16 }, "end": { "line": 370, "column": 23 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 11336, "end": 11345, "loc": { "start": { "line": 370, "column": 24 }, "end": { "line": 370, "column": 33 }, "identifierName": "lineWidth" }, "name": "lineWidth" }, "computed": false }, "right": { "type": "MemberExpression", "start": 11348, "end": 11372, "loc": { "start": { "line": 370, "column": 36 }, "end": { "line": 370, "column": 60 } }, "object": { "type": "MemberExpression", "start": 11348, "end": 11359, "loc": { "start": { "line": 370, "column": 36 }, "end": { "line": 370, "column": 47 } }, "object": { "type": "Identifier", "start": 11348, "end": 11353, "loc": { "start": { "line": 370, "column": 36 }, "end": { "line": 370, "column": 41 }, "identifierName": "THEME" }, "name": "THEME" }, "property": { "type": "Identifier", "start": 11354, "end": 11359, "loc": { "start": { "line": 370, "column": 42 }, "end": { "line": 370, "column": 47 }, "identifierName": "items" }, "name": "items" }, "computed": false }, "property": { "type": "Identifier", "start": 11360, "end": 11372, "loc": { "start": { "line": 370, "column": 48 }, "end": { "line": 370, "column": 60 }, "identifierName": "outlineWidth" }, "name": "outlineWidth" }, "computed": false } } }, { "type": "VariableDeclaration", "start": 11393, "end": 11418, "loc": { "start": { "line": 372, "column": 16 }, "end": { "line": 372, "column": 41 } }, "declarations": [ { "type": "VariableDeclarator", "start": 11399, "end": 11417, "loc": { "start": { "line": 372, "column": 22 }, "end": { "line": 372, "column": 40 } }, "id": { "type": "Identifier", "start": 11399, "end": 11411, "loc": { "start": { "line": 372, "column": 22 }, "end": { "line": 372, "column": 34 }, "identifierName": "insetPadding" }, "name": "insetPadding" }, "init": { "type": "NumericLiteral", "start": 11414, "end": 11417, "loc": { "start": { "line": 372, "column": 37 }, "end": { "line": 372, "column": 40 } }, "extra": { "rawValue": 0, "raw": "0.0" }, "value": 0 } } ], "kind": "const" }, { "type": "SwitchStatement", "start": 11438, "end": 14463, "loc": { "start": { "line": 374, "column": 16 }, "end": { "line": 437, "column": 17 } }, "discriminant": { "type": "Identifier", "start": 11446, "end": 11454, "loc": { "start": { "line": 374, "column": 24 }, "end": { "line": 374, "column": 32 }, "identifierName": "subShape" }, "name": "subShape" }, "cases": [ { "type": "SwitchCase", "start": 11479, "end": 11973, "loc": { "start": { "line": 375, "column": 20 }, "end": { "line": 386, "column": 25 } }, "consequent": [ { "type": "BlockStatement", "start": 11528, "end": 11973, "loc": { "start": { "line": 376, "column": 24 }, "end": { "line": 386, "column": 25 } }, "body": [ { "type": "ExpressionStatement", "start": 11559, "end": 11579, "loc": { "start": { "line": 377, "column": 28 }, "end": { "line": 377, "column": 48 } }, "expression": { "type": "CallExpression", "start": 11559, "end": 11578, "loc": { "start": { "line": 377, "column": 28 }, "end": { "line": 377, "column": 47 } }, "callee": { "type": "MemberExpression", "start": 11559, "end": 11576, "loc": { "start": { "line": 377, "column": 28 }, "end": { "line": 377, "column": 45 } }, "object": { "type": "Identifier", "start": 11559, "end": 11566, "loc": { "start": { "line": 377, "column": 28 }, "end": { "line": 377, "column": 35 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 11567, "end": 11576, "loc": { "start": { "line": 377, "column": 36 }, "end": { "line": 377, "column": 45 }, "identifierName": "beginPath" }, "name": "beginPath" }, "computed": false }, "arguments": [] } }, { "type": "VariableDeclaration", "start": 11609, "end": 11648, "loc": { "start": { "line": 378, "column": 28 }, "end": { "line": 378, "column": 67 } }, "declarations": [ { "type": "VariableDeclarator", "start": 11615, "end": 11647, "loc": { "start": { "line": 378, "column": 34 }, "end": { "line": 378, "column": 66 } }, "id": { "type": "Identifier", "start": 11615, "end": 11619, "loc": { "start": { "line": 378, "column": 34 }, "end": { "line": 378, "column": 38 }, "identifierName": "dims" }, "name": "dims" }, "init": { "type": "BinaryExpression", "start": 11622, "end": 11647, "loc": { "start": { "line": 378, "column": 41 }, "end": { "line": 378, "column": 66 } }, "left": { "type": "Identifier", "start": 11622, "end": 11634, "loc": { "start": { "line": 378, "column": 41 }, "end": { "line": 378, "column": 53 }, "identifierName": "quadrantSize" }, "name": "quadrantSize" }, "operator": "*", "right": { "type": "Identifier", "start": 11637, "end": 11647, "loc": { "start": { "line": 378, "column": 56 }, "end": { "line": 378, "column": 66 }, "identifierName": "layerScale" }, "name": "layerScale" } } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 11678, "end": 11908, "loc": { "start": { "line": 379, "column": 28 }, "end": { "line": 383, "column": 30 } }, "expression": { "type": "CallExpression", "start": 11678, "end": 11907, "loc": { "start": { "line": 379, "column": 28 }, "end": { "line": 383, "column": 29 } }, "callee": { "type": "MemberExpression", "start": 11678, "end": 11690, "loc": { "start": { "line": 379, "column": 28 }, "end": { "line": 379, "column": 40 } }, "object": { "type": "Identifier", "start": 11678, "end": 11685, "loc": { "start": { "line": 379, "column": 28 }, "end": { "line": 379, "column": 35 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 11686, "end": 11690, "loc": { "start": { "line": 379, "column": 36 }, "end": { "line": 379, "column": 40 }, "identifierName": "rect" }, "name": "rect" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 11725, "end": 11757, "loc": { "start": { "line": 380, "column": 32 }, "end": { "line": 380, "column": 64 } }, "left": { "type": "Identifier", "start": 11725, "end": 11737, "loc": { "start": { "line": 380, "column": 32 }, "end": { "line": 380, "column": 44 }, "identifierName": "insetPadding" }, "name": "insetPadding" }, "operator": "+", "right": { "type": "UnaryExpression", "start": 11740, "end": 11757, "loc": { "start": { "line": 380, "column": 47 }, "end": { "line": 380, "column": 64 } }, "operator": "-", "prefix": true, "argument": { "type": "Identifier", "start": 11741, "end": 11757, "loc": { "start": { "line": 380, "column": 48 }, "end": { "line": 380, "column": 64 }, "identifierName": "quadrantHalfSize" }, "name": "quadrantHalfSize" }, "extra": { "parenthesizedArgument": false } } }, { "type": "BinaryExpression", "start": 11759, "end": 11798, "loc": { "start": { "line": 380, "column": 66 }, "end": { "line": 380, "column": 105 } }, "left": { "type": "BinaryExpression", "start": 11759, "end": 11791, "loc": { "start": { "line": 380, "column": 66 }, "end": { "line": 380, "column": 98 } }, "left": { "type": "UnaryExpression", "start": 11759, "end": 11772, "loc": { "start": { "line": 380, "column": 66 }, "end": { "line": 380, "column": 79 } }, "operator": "-", "prefix": true, "argument": { "type": "Identifier", "start": 11760, "end": 11772, "loc": { "start": { "line": 380, "column": 67 }, "end": { "line": 380, "column": 79 }, "identifierName": "insetPadding" }, "name": "insetPadding" }, "extra": { "parenthesizedArgument": false } }, "operator": "+", "right": { "type": "Identifier", "start": 11775, "end": 11791, "loc": { "start": { "line": 380, "column": 82 }, "end": { "line": 380, "column": 98 }, "identifierName": "quadrantHalfSize" }, "name": "quadrantHalfSize" } }, "operator": "-", "right": { "type": "Identifier", "start": 11794, "end": 11798, "loc": { "start": { "line": 380, "column": 101 }, "end": { "line": 380, "column": 105 }, "identifierName": "dims" }, "name": "dims" } }, { "type": "Identifier", "start": 11833, "end": 11837, "loc": { "start": { "line": 381, "column": 32 }, "end": { "line": 381, "column": 36 }, "identifierName": "dims" }, "name": "dims" }, { "type": "Identifier", "start": 11872, "end": 11876, "loc": { "start": { "line": 382, "column": 32 }, "end": { "line": 382, "column": 36 }, "identifierName": "dims" }, "name": "dims" } ] } }, { "type": "BreakStatement", "start": 11940, "end": 11946, "loc": { "start": { "line": 385, "column": 28 }, "end": { "line": 385, "column": 34 } }, "label": null } ], "directives": [] } ], "test": { "type": "MemberExpression", "start": 11484, "end": 11501, "loc": { "start": { "line": 375, "column": 25 }, "end": { "line": 375, "column": 42 } }, "object": { "type": "Identifier", "start": 11484, "end": 11496, "loc": { "start": { "line": 375, "column": 25 }, "end": { "line": 375, "column": 37 }, "identifierName": "enumSubShape" }, "name": "enumSubShape" }, "property": { "type": "Identifier", "start": 11497, "end": 11501, "loc": { "start": { "line": 375, "column": 38 }, "end": { "line": 375, "column": 42 }, "identifierName": "rect" }, "name": "rect" }, "computed": false } }, { "type": "SwitchCase", "start": 11995, "end": 12810, "loc": { "start": { "line": 387, "column": 20 }, "end": { "line": 402, "column": 25 } }, "consequent": [ { "type": "BlockStatement", "start": 12044, "end": 12810, "loc": { "start": { "line": 388, "column": 24 }, "end": { "line": 402, "column": 25 } }, "body": [ { "type": "ExpressionStatement", "start": 12075, "end": 12095, "loc": { "start": { "line": 389, "column": 28 }, "end": { "line": 389, "column": 48 } }, "expression": { "type": "CallExpression", "start": 12075, "end": 12094, "loc": { "start": { "line": 389, "column": 28 }, "end": { "line": 389, "column": 47 } }, "callee": { "type": "MemberExpression", "start": 12075, "end": 12092, "loc": { "start": { "line": 389, "column": 28 }, "end": { "line": 389, "column": 45 } }, "object": { "type": "Identifier", "start": 12075, "end": 12082, "loc": { "start": { "line": 389, "column": 28 }, "end": { "line": 389, "column": 35 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 12083, "end": 12092, "loc": { "start": { "line": 389, "column": 36 }, "end": { "line": 389, "column": 45 }, "identifierName": "beginPath" }, "name": "beginPath" }, "computed": false }, "arguments": [] } }, { "type": "VariableDeclaration", "start": 12125, "end": 12164, "loc": { "start": { "line": 390, "column": 28 }, "end": { "line": 390, "column": 67 } }, "declarations": [ { "type": "VariableDeclarator", "start": 12131, "end": 12163, "loc": { "start": { "line": 390, "column": 34 }, "end": { "line": 390, "column": 66 } }, "id": { "type": "Identifier", "start": 12131, "end": 12135, "loc": { "start": { "line": 390, "column": 34 }, "end": { "line": 390, "column": 38 }, "identifierName": "dims" }, "name": "dims" }, "init": { "type": "BinaryExpression", "start": 12138, "end": 12163, "loc": { "start": { "line": 390, "column": 41 }, "end": { "line": 390, "column": 66 } }, "left": { "type": "Identifier", "start": 12138, "end": 12150, "loc": { "start": { "line": 390, "column": 41 }, "end": { "line": 390, "column": 53 }, "identifierName": "quadrantSize" }, "name": "quadrantSize" }, "operator": "*", "right": { "type": "Identifier", "start": 12153, "end": 12163, "loc": { "start": { "line": 390, "column": 56 }, "end": { "line": 390, "column": 66 }, "identifierName": "layerScale" }, "name": "layerScale" } } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 12196, "end": 12242, "loc": { "start": { "line": 392, "column": 28 }, "end": { "line": 392, "column": 74 } }, "declarations": [ { "type": "VariableDeclarator", "start": 12200, "end": 12241, "loc": { "start": { "line": 392, "column": 32 }, "end": { "line": 392, "column": 73 } }, "id": { "type": "Identifier", "start": 12200, "end": 12207, "loc": { "start": { "line": 392, "column": 32 }, "end": { "line": 392, "column": 39 }, "identifierName": "originX" }, "name": "originX" }, "init": { "type": "BinaryExpression", "start": 12210, "end": 12241, "loc": { "start": { "line": 392, "column": 42 }, "end": { "line": 392, "column": 73 } }, "left": { "type": "Identifier", "start": 12210, "end": 12222, "loc": { "start": { "line": 392, "column": 42 }, "end": { "line": 392, "column": 54 }, "identifierName": "insetPadding" }, "name": "insetPadding" }, "operator": "-", "right": { "type": "Identifier", "start": 12225, "end": 12241, "loc": { "start": { "line": 392, "column": 57 }, "end": { "line": 392, "column": 73 }, "identifierName": "quadrantHalfSize" }, "name": "quadrantHalfSize" } } } ], "kind": "let" }, { "type": "VariableDeclaration", "start": 12272, "end": 12326, "loc": { "start": { "line": 393, "column": 28 }, "end": { "line": 393, "column": 82 } }, "declarations": [ { "type": "VariableDeclarator", "start": 12276, "end": 12325, "loc": { "start": { "line": 393, "column": 32 }, "end": { "line": 393, "column": 81 } }, "id": { "type": "Identifier", "start": 12276, "end": 12283, "loc": { "start": { "line": 393, "column": 32 }, "end": { "line": 393, "column": 39 }, "identifierName": "originY" }, "name": "originY" }, "init": { "type": "BinaryExpression", "start": 12286, "end": 12325, "loc": { "start": { "line": 393, "column": 42 }, "end": { "line": 393, "column": 81 } }, "left": { "type": "BinaryExpression", "start": 12286, "end": 12318, "loc": { "start": { "line": 393, "column": 42 }, "end": { "line": 393, "column": 74 } }, "left": { "type": "UnaryExpression", "start": 12286, "end": 12299, "loc": { "start": { "line": 393, "column": 42 }, "end": { "line": 393, "column": 55 } }, "operator": "-", "prefix": true, "argument": { "type": "Identifier", "start": 12287, "end": 12299, "loc": { "start": { "line": 393, "column": 43 }, "end": { "line": 393, "column": 55 }, "identifierName": "insetPadding" }, "name": "insetPadding" }, "extra": { "parenthesizedArgument": false } }, "operator": "+", "right": { "type": "Identifier", "start": 12302, "end": 12318, "loc": { "start": { "line": 393, "column": 58 }, "end": { "line": 393, "column": 74 }, "identifierName": "quadrantHalfSize" }, "name": "quadrantHalfSize" } }, "operator": "-", "right": { "type": "Identifier", "start": 12321, "end": 12325, "loc": { "start": { "line": 393, "column": 77 }, "end": { "line": 393, "column": 81 }, "identifierName": "dims" }, "name": "dims" } } } ], "kind": "let" }, { "type": "VariableDeclaration", "start": 12358, "end": 12389, "loc": { "start": { "line": 395, "column": 28 }, "end": { "line": 395, "column": 59 } }, "declarations": [ { "type": "VariableDeclarator", "start": 12364, "end": 12388, "loc": { "start": { "line": 395, "column": 34 }, "end": { "line": 395, "column": 58 } }, "id": { "type": "Identifier", "start": 12364, "end": 12375, "loc": { "start": { "line": 395, "column": 34 }, "end": { "line": 395, "column": 45 }, "identifierName": "moveInwards" }, "name": "moveInwards" }, "init": { "type": "BinaryExpression", "start": 12378, "end": 12388, "loc": { "start": { "line": 395, "column": 48 }, "end": { "line": 395, "column": 58 } }, "left": { "type": "Identifier", "start": 12378, "end": 12382, "loc": { "start": { "line": 395, "column": 48 }, "end": { "line": 395, "column": 52 }, "identifierName": "dims" }, "name": "dims" }, "operator": "*", "right": { "type": "NumericLiteral", "start": 12385, "end": 12388, "loc": { "start": { "line": 395, "column": 55 }, "end": { "line": 395, "column": 58 } }, "extra": { "rawValue": 0.4, "raw": "0.4" }, "value": 0.4 } } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 12419, "end": 12466, "loc": { "start": { "line": 396, "column": 28 }, "end": { "line": 396, "column": 75 } }, "expression": { "type": "CallExpression", "start": 12419, "end": 12465, "loc": { "start": { "line": 396, "column": 28 }, "end": { "line": 396, "column": 74 } }, "callee": { "type": "MemberExpression", "start": 12419, "end": 12433, "loc": { "start": { "line": 396, "column": 28 }, "end": { "line": 396, "column": 42 } }, "object": { "type": "Identifier", "start": 12419, "end": 12426, "loc": { "start": { "line": 396, "column": 28 }, "end": { "line": 396, "column": 35 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 12427, "end": 12433, "loc": { "start": { "line": 396, "column": 36 }, "end": { "line": 396, "column": 42 }, "identifierName": "moveTo" }, "name": "moveTo" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 12434, "end": 12441, "loc": { "start": { "line": 396, "column": 43 }, "end": { "line": 396, "column": 50 }, "identifierName": "originX" }, "name": "originX" }, { "type": "BinaryExpression", "start": 12443, "end": 12464, "loc": { "start": { "line": 396, "column": 52 }, "end": { "line": 396, "column": 73 } }, "left": { "type": "Identifier", "start": 12443, "end": 12450, "loc": { "start": { "line": 396, "column": 52 }, "end": { "line": 396, "column": 59 }, "identifierName": "originY" }, "name": "originY" }, "operator": "+", "right": { "type": "Identifier", "start": 12453, "end": 12464, "loc": { "start": { "line": 396, "column": 62 }, "end": { "line": 396, "column": 73 }, "identifierName": "moveInwards" }, "name": "moveInwards" } } ] } }, { "type": "ExpressionStatement", "start": 12496, "end": 12536, "loc": { "start": { "line": 397, "column": 28 }, "end": { "line": 397, "column": 68 } }, "expression": { "type": "CallExpression", "start": 12496, "end": 12535, "loc": { "start": { "line": 397, "column": 28 }, "end": { "line": 397, "column": 67 } }, "callee": { "type": "MemberExpression", "start": 12496, "end": 12510, "loc": { "start": { "line": 397, "column": 28 }, "end": { "line": 397, "column": 42 } }, "object": { "type": "Identifier", "start": 12496, "end": 12503, "loc": { "start": { "line": 397, "column": 28 }, "end": { "line": 397, "column": 35 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 12504, "end": 12510, "loc": { "start": { "line": 397, "column": 36 }, "end": { "line": 397, "column": 42 }, "identifierName": "lineTo" }, "name": "lineTo" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 12511, "end": 12525, "loc": { "start": { "line": 397, "column": 43 }, "end": { "line": 397, "column": 57 } }, "left": { "type": "Identifier", "start": 12511, "end": 12518, "loc": { "start": { "line": 397, "column": 43 }, "end": { "line": 397, "column": 50 }, "identifierName": "originX" }, "name": "originX" }, "operator": "+", "right": { "type": "Identifier", "start": 12521, "end": 12525, "loc": { "start": { "line": 397, "column": 53 }, "end": { "line": 397, "column": 57 }, "identifierName": "dims" }, "name": "dims" } }, { "type": "Identifier", "start": 12527, "end": 12534, "loc": { "start": { "line": 397, "column": 59 }, "end": { "line": 397, "column": 66 }, "identifierName": "originY" }, "name": "originY" } ] } }, { "type": "ExpressionStatement", "start": 12566, "end": 12627, "loc": { "start": { "line": 398, "column": 28 }, "end": { "line": 398, "column": 89 } }, "expression": { "type": "CallExpression", "start": 12566, "end": 12626, "loc": { "start": { "line": 398, "column": 28 }, "end": { "line": 398, "column": 88 } }, "callee": { "type": "MemberExpression", "start": 12566, "end": 12580, "loc": { "start": { "line": 398, "column": 28 }, "end": { "line": 398, "column": 42 } }, "object": { "type": "Identifier", "start": 12566, "end": 12573, "loc": { "start": { "line": 398, "column": 28 }, "end": { "line": 398, "column": 35 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 12574, "end": 12580, "loc": { "start": { "line": 398, "column": 36 }, "end": { "line": 398, "column": 42 }, "identifierName": "lineTo" }, "name": "lineTo" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 12581, "end": 12609, "loc": { "start": { "line": 398, "column": 43 }, "end": { "line": 398, "column": 71 } }, "left": { "type": "BinaryExpression", "start": 12581, "end": 12595, "loc": { "start": { "line": 398, "column": 43 }, "end": { "line": 398, "column": 57 } }, "left": { "type": "Identifier", "start": 12581, "end": 12588, "loc": { "start": { "line": 398, "column": 43 }, "end": { "line": 398, "column": 50 }, "identifierName": "originX" }, "name": "originX" }, "operator": "+", "right": { "type": "Identifier", "start": 12591, "end": 12595, "loc": { "start": { "line": 398, "column": 53 }, "end": { "line": 398, "column": 57 }, "identifierName": "dims" }, "name": "dims" } }, "operator": "-", "right": { "type": "Identifier", "start": 12598, "end": 12609, "loc": { "start": { "line": 398, "column": 60 }, "end": { "line": 398, "column": 71 }, "identifierName": "moveInwards" }, "name": "moveInwards" } }, { "type": "BinaryExpression", "start": 12611, "end": 12625, "loc": { "start": { "line": 398, "column": 73 }, "end": { "line": 398, "column": 87 } }, "left": { "type": "Identifier", "start": 12611, "end": 12618, "loc": { "start": { "line": 398, "column": 73 }, "end": { "line": 398, "column": 80 }, "identifierName": "originY" }, "name": "originY" }, "operator": "+", "right": { "type": "Identifier", "start": 12621, "end": 12625, "loc": { "start": { "line": 398, "column": 83 }, "end": { "line": 398, "column": 87 }, "identifierName": "dims" }, "name": "dims" } } ] } }, { "type": "ExpressionStatement", "start": 12657, "end": 12697, "loc": { "start": { "line": 399, "column": 28 }, "end": { "line": 399, "column": 68 } }, "expression": { "type": "CallExpression", "start": 12657, "end": 12696, "loc": { "start": { "line": 399, "column": 28 }, "end": { "line": 399, "column": 67 } }, "callee": { "type": "MemberExpression", "start": 12657, "end": 12671, "loc": { "start": { "line": 399, "column": 28 }, "end": { "line": 399, "column": 42 } }, "object": { "type": "Identifier", "start": 12657, "end": 12664, "loc": { "start": { "line": 399, "column": 28 }, "end": { "line": 399, "column": 35 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 12665, "end": 12671, "loc": { "start": { "line": 399, "column": 36 }, "end": { "line": 399, "column": 42 }, "identifierName": "lineTo" }, "name": "lineTo" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 12672, "end": 12679, "loc": { "start": { "line": 399, "column": 43 }, "end": { "line": 399, "column": 50 }, "identifierName": "originX" }, "name": "originX" }, { "type": "BinaryExpression", "start": 12681, "end": 12695, "loc": { "start": { "line": 399, "column": 52 }, "end": { "line": 399, "column": 66 } }, "left": { "type": "Identifier", "start": 12681, "end": 12688, "loc": { "start": { "line": 399, "column": 52 }, "end": { "line": 399, "column": 59 }, "identifierName": "originY" }, "name": "originY" }, "operator": "+", "right": { "type": "Identifier", "start": 12691, "end": 12695, "loc": { "start": { "line": 399, "column": 62 }, "end": { "line": 399, "column": 66 }, "identifierName": "dims" }, "name": "dims" } } ] } }, { "type": "ExpressionStatement", "start": 12727, "end": 12747, "loc": { "start": { "line": 400, "column": 28 }, "end": { "line": 400, "column": 48 } }, "expression": { "type": "CallExpression", "start": 12727, "end": 12746, "loc": { "start": { "line": 400, "column": 28 }, "end": { "line": 400, "column": 47 } }, "callee": { "type": "MemberExpression", "start": 12727, "end": 12744, "loc": { "start": { "line": 400, "column": 28 }, "end": { "line": 400, "column": 45 } }, "object": { "type": "Identifier", "start": 12727, "end": 12734, "loc": { "start": { "line": 400, "column": 28 }, "end": { "line": 400, "column": 35 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 12735, "end": 12744, "loc": { "start": { "line": 400, "column": 36 }, "end": { "line": 400, "column": 45 }, "identifierName": "closePath" }, "name": "closePath" }, "computed": false }, "arguments": [] } }, { "type": "BreakStatement", "start": 12777, "end": 12783, "loc": { "start": { "line": 401, "column": 28 }, "end": { "line": 401, "column": 34 } }, "label": null } ], "directives": [] } ], "test": { "type": "MemberExpression", "start": 12000, "end": 12017, "loc": { "start": { "line": 387, "column": 25 }, "end": { "line": 387, "column": 42 } }, "object": { "type": "Identifier", "start": 12000, "end": 12012, "loc": { "start": { "line": 387, "column": 25 }, "end": { "line": 387, "column": 37 }, "identifierName": "enumSubShape" }, "name": "enumSubShape" }, "property": { "type": "Identifier", "start": 12013, "end": 12017, "loc": { "start": { "line": 387, "column": 38 }, "end": { "line": 387, "column": 42 }, "identifierName": "star" }, "name": "star" }, "computed": false } }, { "type": "SwitchCase", "start": 12834, "end": 13637, "loc": { "start": { "line": 404, "column": 20 }, "end": { "line": 418, "column": 25 } }, "consequent": [ { "type": "BlockStatement", "start": 12887, "end": 13637, "loc": { "start": { "line": 405, "column": 24 }, "end": { "line": 418, "column": 25 } }, "body": [ { "type": "ExpressionStatement", "start": 12918, "end": 12938, "loc": { "start": { "line": 406, "column": 28 }, "end": { "line": 406, "column": 48 } }, "expression": { "type": "CallExpression", "start": 12918, "end": 12937, "loc": { "start": { "line": 406, "column": 28 }, "end": { "line": 406, "column": 47 } }, "callee": { "type": "MemberExpression", "start": 12918, "end": 12935, "loc": { "start": { "line": 406, "column": 28 }, "end": { "line": 406, "column": 45 } }, "object": { "type": "Identifier", "start": 12918, "end": 12925, "loc": { "start": { "line": 406, "column": 28 }, "end": { "line": 406, "column": 35 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 12926, "end": 12935, "loc": { "start": { "line": 406, "column": 36 }, "end": { "line": 406, "column": 45 }, "identifierName": "beginPath" }, "name": "beginPath" }, "computed": false }, "arguments": [] } }, { "type": "VariableDeclaration", "start": 12968, "end": 13007, "loc": { "start": { "line": 407, "column": 28 }, "end": { "line": 407, "column": 67 } }, "declarations": [ { "type": "VariableDeclarator", "start": 12974, "end": 13006, "loc": { "start": { "line": 407, "column": 34 }, "end": { "line": 407, "column": 66 } }, "id": { "type": "Identifier", "start": 12974, "end": 12978, "loc": { "start": { "line": 407, "column": 34 }, "end": { "line": 407, "column": 38 }, "identifierName": "dims" }, "name": "dims" }, "init": { "type": "BinaryExpression", "start": 12981, "end": 13006, "loc": { "start": { "line": 407, "column": 41 }, "end": { "line": 407, "column": 66 } }, "left": { "type": "Identifier", "start": 12981, "end": 12993, "loc": { "start": { "line": 407, "column": 41 }, "end": { "line": 407, "column": 53 }, "identifierName": "quadrantSize" }, "name": "quadrantSize" }, "operator": "*", "right": { "type": "Identifier", "start": 12996, "end": 13006, "loc": { "start": { "line": 407, "column": 56 }, "end": { "line": 407, "column": 66 }, "identifierName": "layerScale" }, "name": "layerScale" } } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 13039, "end": 13085, "loc": { "start": { "line": 409, "column": 28 }, "end": { "line": 409, "column": 74 } }, "declarations": [ { "type": "VariableDeclarator", "start": 13043, "end": 13084, "loc": { "start": { "line": 409, "column": 32 }, "end": { "line": 409, "column": 73 } }, "id": { "type": "Identifier", "start": 13043, "end": 13050, "loc": { "start": { "line": 409, "column": 32 }, "end": { "line": 409, "column": 39 }, "identifierName": "originX" }, "name": "originX" }, "init": { "type": "BinaryExpression", "start": 13053, "end": 13084, "loc": { "start": { "line": 409, "column": 42 }, "end": { "line": 409, "column": 73 } }, "left": { "type": "Identifier", "start": 13053, "end": 13065, "loc": { "start": { "line": 409, "column": 42 }, "end": { "line": 409, "column": 54 }, "identifierName": "insetPadding" }, "name": "insetPadding" }, "operator": "-", "right": { "type": "Identifier", "start": 13068, "end": 13084, "loc": { "start": { "line": 409, "column": 57 }, "end": { "line": 409, "column": 73 }, "identifierName": "quadrantHalfSize" }, "name": "quadrantHalfSize" } } } ], "kind": "let" }, { "type": "VariableDeclaration", "start": 13115, "end": 13169, "loc": { "start": { "line": 410, "column": 28 }, "end": { "line": 410, "column": 82 } }, "declarations": [ { "type": "VariableDeclarator", "start": 13119, "end": 13168, "loc": { "start": { "line": 410, "column": 32 }, "end": { "line": 410, "column": 81 } }, "id": { "type": "Identifier", "start": 13119, "end": 13126, "loc": { "start": { "line": 410, "column": 32 }, "end": { "line": 410, "column": 39 }, "identifierName": "originY" }, "name": "originY" }, "init": { "type": "BinaryExpression", "start": 13129, "end": 13168, "loc": { "start": { "line": 410, "column": 42 }, "end": { "line": 410, "column": 81 } }, "left": { "type": "BinaryExpression", "start": 13129, "end": 13161, "loc": { "start": { "line": 410, "column": 42 }, "end": { "line": 410, "column": 74 } }, "left": { "type": "UnaryExpression", "start": 13129, "end": 13142, "loc": { "start": { "line": 410, "column": 42 }, "end": { "line": 410, "column": 55 } }, "operator": "-", "prefix": true, "argument": { "type": "Identifier", "start": 13130, "end": 13142, "loc": { "start": { "line": 410, "column": 43 }, "end": { "line": 410, "column": 55 }, "identifierName": "insetPadding" }, "name": "insetPadding" }, "extra": { "parenthesizedArgument": false } }, "operator": "+", "right": { "type": "Identifier", "start": 13145, "end": 13161, "loc": { "start": { "line": 410, "column": 58 }, "end": { "line": 410, "column": 74 }, "identifierName": "quadrantHalfSize" }, "name": "quadrantHalfSize" } }, "operator": "-", "right": { "type": "Identifier", "start": 13164, "end": 13168, "loc": { "start": { "line": 410, "column": 77 }, "end": { "line": 410, "column": 81 }, "identifierName": "dims" }, "name": "dims" } } } ], "kind": "let" }, { "type": "VariableDeclaration", "start": 13199, "end": 13230, "loc": { "start": { "line": 411, "column": 28 }, "end": { "line": 411, "column": 59 } }, "declarations": [ { "type": "VariableDeclarator", "start": 13205, "end": 13229, "loc": { "start": { "line": 411, "column": 34 }, "end": { "line": 411, "column": 58 } }, "id": { "type": "Identifier", "start": 13205, "end": 13216, "loc": { "start": { "line": 411, "column": 34 }, "end": { "line": 411, "column": 45 }, "identifierName": "moveInwards" }, "name": "moveInwards" }, "init": { "type": "BinaryExpression", "start": 13219, "end": 13229, "loc": { "start": { "line": 411, "column": 48 }, "end": { "line": 411, "column": 58 } }, "left": { "type": "Identifier", "start": 13219, "end": 13223, "loc": { "start": { "line": 411, "column": 48 }, "end": { "line": 411, "column": 52 }, "identifierName": "dims" }, "name": "dims" }, "operator": "*", "right": { "type": "NumericLiteral", "start": 13226, "end": 13229, "loc": { "start": { "line": 411, "column": 55 }, "end": { "line": 411, "column": 58 } }, "extra": { "rawValue": 0.4, "raw": "0.4" }, "value": 0.4 } } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 13260, "end": 13307, "loc": { "start": { "line": 412, "column": 28 }, "end": { "line": 412, "column": 75 } }, "expression": { "type": "CallExpression", "start": 13260, "end": 13306, "loc": { "start": { "line": 412, "column": 28 }, "end": { "line": 412, "column": 74 } }, "callee": { "type": "MemberExpression", "start": 13260, "end": 13274, "loc": { "start": { "line": 412, "column": 28 }, "end": { "line": 412, "column": 42 } }, "object": { "type": "Identifier", "start": 13260, "end": 13267, "loc": { "start": { "line": 412, "column": 28 }, "end": { "line": 412, "column": 35 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 13268, "end": 13274, "loc": { "start": { "line": 412, "column": 36 }, "end": { "line": 412, "column": 42 }, "identifierName": "moveTo" }, "name": "moveTo" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 13275, "end": 13282, "loc": { "start": { "line": 412, "column": 43 }, "end": { "line": 412, "column": 50 }, "identifierName": "originX" }, "name": "originX" }, { "type": "BinaryExpression", "start": 13284, "end": 13305, "loc": { "start": { "line": 412, "column": 52 }, "end": { "line": 412, "column": 73 } }, "left": { "type": "Identifier", "start": 13284, "end": 13291, "loc": { "start": { "line": 412, "column": 52 }, "end": { "line": 412, "column": 59 }, "identifierName": "originY" }, "name": "originY" }, "operator": "+", "right": { "type": "Identifier", "start": 13294, "end": 13305, "loc": { "start": { "line": 412, "column": 62 }, "end": { "line": 412, "column": 73 }, "identifierName": "moveInwards" }, "name": "moveInwards" } } ] } }, { "type": "ExpressionStatement", "start": 13337, "end": 13377, "loc": { "start": { "line": 413, "column": 28 }, "end": { "line": 413, "column": 68 } }, "expression": { "type": "CallExpression", "start": 13337, "end": 13376, "loc": { "start": { "line": 413, "column": 28 }, "end": { "line": 413, "column": 67 } }, "callee": { "type": "MemberExpression", "start": 13337, "end": 13351, "loc": { "start": { "line": 413, "column": 28 }, "end": { "line": 413, "column": 42 } }, "object": { "type": "Identifier", "start": 13337, "end": 13344, "loc": { "start": { "line": 413, "column": 28 }, "end": { "line": 413, "column": 35 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 13345, "end": 13351, "loc": { "start": { "line": 413, "column": 36 }, "end": { "line": 413, "column": 42 }, "identifierName": "lineTo" }, "name": "lineTo" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 13352, "end": 13366, "loc": { "start": { "line": 413, "column": 43 }, "end": { "line": 413, "column": 57 } }, "left": { "type": "Identifier", "start": 13352, "end": 13359, "loc": { "start": { "line": 413, "column": 43 }, "end": { "line": 413, "column": 50 }, "identifierName": "originX" }, "name": "originX" }, "operator": "+", "right": { "type": "Identifier", "start": 13362, "end": 13366, "loc": { "start": { "line": 413, "column": 53 }, "end": { "line": 413, "column": 57 }, "identifierName": "dims" }, "name": "dims" } }, { "type": "Identifier", "start": 13368, "end": 13375, "loc": { "start": { "line": 413, "column": 59 }, "end": { "line": 413, "column": 66 }, "identifierName": "originY" }, "name": "originY" } ] } }, { "type": "ExpressionStatement", "start": 13407, "end": 13454, "loc": { "start": { "line": 414, "column": 28 }, "end": { "line": 414, "column": 75 } }, "expression": { "type": "CallExpression", "start": 13407, "end": 13453, "loc": { "start": { "line": 414, "column": 28 }, "end": { "line": 414, "column": 74 } }, "callee": { "type": "MemberExpression", "start": 13407, "end": 13421, "loc": { "start": { "line": 414, "column": 28 }, "end": { "line": 414, "column": 42 } }, "object": { "type": "Identifier", "start": 13407, "end": 13414, "loc": { "start": { "line": 414, "column": 28 }, "end": { "line": 414, "column": 35 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 13415, "end": 13421, "loc": { "start": { "line": 414, "column": 36 }, "end": { "line": 414, "column": 42 }, "identifierName": "lineTo" }, "name": "lineTo" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 13422, "end": 13436, "loc": { "start": { "line": 414, "column": 43 }, "end": { "line": 414, "column": 57 } }, "left": { "type": "Identifier", "start": 13422, "end": 13429, "loc": { "start": { "line": 414, "column": 43 }, "end": { "line": 414, "column": 50 }, "identifierName": "originX" }, "name": "originX" }, "operator": "+", "right": { "type": "Identifier", "start": 13432, "end": 13436, "loc": { "start": { "line": 414, "column": 53 }, "end": { "line": 414, "column": 57 }, "identifierName": "dims" }, "name": "dims" } }, { "type": "BinaryExpression", "start": 13438, "end": 13452, "loc": { "start": { "line": 414, "column": 59 }, "end": { "line": 414, "column": 73 } }, "left": { "type": "Identifier", "start": 13438, "end": 13445, "loc": { "start": { "line": 414, "column": 59 }, "end": { "line": 414, "column": 66 }, "identifierName": "originY" }, "name": "originY" }, "operator": "+", "right": { "type": "Identifier", "start": 13448, "end": 13452, "loc": { "start": { "line": 414, "column": 69 }, "end": { "line": 414, "column": 73 }, "identifierName": "dims" }, "name": "dims" } } ] } }, { "type": "ExpressionStatement", "start": 13484, "end": 13524, "loc": { "start": { "line": 415, "column": 28 }, "end": { "line": 415, "column": 68 } }, "expression": { "type": "CallExpression", "start": 13484, "end": 13523, "loc": { "start": { "line": 415, "column": 28 }, "end": { "line": 415, "column": 67 } }, "callee": { "type": "MemberExpression", "start": 13484, "end": 13498, "loc": { "start": { "line": 415, "column": 28 }, "end": { "line": 415, "column": 42 } }, "object": { "type": "Identifier", "start": 13484, "end": 13491, "loc": { "start": { "line": 415, "column": 28 }, "end": { "line": 415, "column": 35 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 13492, "end": 13498, "loc": { "start": { "line": 415, "column": 36 }, "end": { "line": 415, "column": 42 }, "identifierName": "lineTo" }, "name": "lineTo" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 13499, "end": 13506, "loc": { "start": { "line": 415, "column": 43 }, "end": { "line": 415, "column": 50 }, "identifierName": "originX" }, "name": "originX" }, { "type": "BinaryExpression", "start": 13508, "end": 13522, "loc": { "start": { "line": 415, "column": 52 }, "end": { "line": 415, "column": 66 } }, "left": { "type": "Identifier", "start": 13508, "end": 13515, "loc": { "start": { "line": 415, "column": 52 }, "end": { "line": 415, "column": 59 }, "identifierName": "originY" }, "name": "originY" }, "operator": "+", "right": { "type": "Identifier", "start": 13518, "end": 13522, "loc": { "start": { "line": 415, "column": 62 }, "end": { "line": 415, "column": 66 }, "identifierName": "dims" }, "name": "dims" } } ] } }, { "type": "ExpressionStatement", "start": 13554, "end": 13574, "loc": { "start": { "line": 416, "column": 28 }, "end": { "line": 416, "column": 48 } }, "expression": { "type": "CallExpression", "start": 13554, "end": 13573, "loc": { "start": { "line": 416, "column": 28 }, "end": { "line": 416, "column": 47 } }, "callee": { "type": "MemberExpression", "start": 13554, "end": 13571, "loc": { "start": { "line": 416, "column": 28 }, "end": { "line": 416, "column": 45 } }, "object": { "type": "Identifier", "start": 13554, "end": 13561, "loc": { "start": { "line": 416, "column": 28 }, "end": { "line": 416, "column": 35 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 13562, "end": 13571, "loc": { "start": { "line": 416, "column": 36 }, "end": { "line": 416, "column": 45 }, "identifierName": "closePath" }, "name": "closePath" }, "computed": false }, "arguments": [] } }, { "type": "BreakStatement", "start": 13604, "end": 13610, "loc": { "start": { "line": 417, "column": 28 }, "end": { "line": 417, "column": 34 } }, "label": null } ], "directives": [] } ], "test": { "type": "MemberExpression", "start": 12839, "end": 12860, "loc": { "start": { "line": 404, "column": 25 }, "end": { "line": 404, "column": 46 } }, "object": { "type": "Identifier", "start": 12839, "end": 12851, "loc": { "start": { "line": 404, "column": 25 }, "end": { "line": 404, "column": 37 }, "identifierName": "enumSubShape" }, "name": "enumSubShape" }, "property": { "type": "Identifier", "start": 12852, "end": 12860, "loc": { "start": { "line": 404, "column": 38 }, "end": { "line": 404, "column": 46 }, "identifierName": "windmill" }, "name": "windmill" }, "computed": false } }, { "type": "SwitchCase", "start": 13661, "end": 14275, "loc": { "start": { "line": 420, "column": 20 }, "end": { "line": 431, "column": 25 } }, "consequent": [ { "type": "BlockStatement", "start": 13712, "end": 14275, "loc": { "start": { "line": 421, "column": 24 }, "end": { "line": 431, "column": 25 } }, "body": [ { "type": "ExpressionStatement", "start": 13743, "end": 13763, "loc": { "start": { "line": 422, "column": 28 }, "end": { "line": 422, "column": 48 } }, "expression": { "type": "CallExpression", "start": 13743, "end": 13762, "loc": { "start": { "line": 422, "column": 28 }, "end": { "line": 422, "column": 47 } }, "callee": { "type": "MemberExpression", "start": 13743, "end": 13760, "loc": { "start": { "line": 422, "column": 28 }, "end": { "line": 422, "column": 45 } }, "object": { "type": "Identifier", "start": 13743, "end": 13750, "loc": { "start": { "line": 422, "column": 28 }, "end": { "line": 422, "column": 35 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 13751, "end": 13760, "loc": { "start": { "line": 422, "column": 36 }, "end": { "line": 422, "column": 45 }, "identifierName": "beginPath" }, "name": "beginPath" }, "computed": false }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 13793, "end": 13876, "loc": { "start": { "line": 423, "column": 28 }, "end": { "line": 423, "column": 111 } }, "expression": { "type": "CallExpression", "start": 13793, "end": 13875, "loc": { "start": { "line": 423, "column": 28 }, "end": { "line": 423, "column": 110 } }, "callee": { "type": "MemberExpression", "start": 13793, "end": 13807, "loc": { "start": { "line": 423, "column": 28 }, "end": { "line": 423, "column": 42 } }, "object": { "type": "Identifier", "start": 13793, "end": 13800, "loc": { "start": { "line": 423, "column": 28 }, "end": { "line": 423, "column": 35 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 13801, "end": 13807, "loc": { "start": { "line": 423, "column": 36 }, "end": { "line": 423, "column": 42 }, "identifierName": "moveTo" }, "name": "moveTo" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 13808, "end": 13840, "loc": { "start": { "line": 423, "column": 43 }, "end": { "line": 423, "column": 75 } }, "left": { "type": "Identifier", "start": 13808, "end": 13820, "loc": { "start": { "line": 423, "column": 43 }, "end": { "line": 423, "column": 55 }, "identifierName": "insetPadding" }, "name": "insetPadding" }, "operator": "+", "right": { "type": "UnaryExpression", "start": 13823, "end": 13840, "loc": { "start": { "line": 423, "column": 58 }, "end": { "line": 423, "column": 75 } }, "operator": "-", "prefix": true, "argument": { "type": "Identifier", "start": 13824, "end": 13840, "loc": { "start": { "line": 423, "column": 59 }, "end": { "line": 423, "column": 75 }, "identifierName": "quadrantHalfSize" }, "name": "quadrantHalfSize" }, "extra": { "parenthesizedArgument": false } } }, { "type": "BinaryExpression", "start": 13842, "end": 13874, "loc": { "start": { "line": 423, "column": 77 }, "end": { "line": 423, "column": 109 } }, "left": { "type": "UnaryExpression", "start": 13842, "end": 13855, "loc": { "start": { "line": 423, "column": 77 }, "end": { "line": 423, "column": 90 } }, "operator": "-", "prefix": true, "argument": { "type": "Identifier", "start": 13843, "end": 13855, "loc": { "start": { "line": 423, "column": 78 }, "end": { "line": 423, "column": 90 }, "identifierName": "insetPadding" }, "name": "insetPadding" }, "extra": { "parenthesizedArgument": false } }, "operator": "+", "right": { "type": "Identifier", "start": 13858, "end": 13874, "loc": { "start": { "line": 423, "column": 93 }, "end": { "line": 423, "column": 109 }, "identifierName": "quadrantHalfSize" }, "name": "quadrantHalfSize" } } ] } }, { "type": "ExpressionStatement", "start": 13906, "end": 14162, "loc": { "start": { "line": 424, "column": 28 }, "end": { "line": 428, "column": 30 } }, "expression": { "type": "CallExpression", "start": 13906, "end": 14161, "loc": { "start": { "line": 424, "column": 28 }, "end": { "line": 428, "column": 29 } }, "callee": { "type": "MemberExpression", "start": 13906, "end": 13917, "loc": { "start": { "line": 424, "column": 28 }, "end": { "line": 424, "column": 39 } }, "object": { "type": "Identifier", "start": 13906, "end": 13913, "loc": { "start": { "line": 424, "column": 28 }, "end": { "line": 424, "column": 35 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 13914, "end": 13917, "loc": { "start": { "line": 424, "column": 36 }, "end": { "line": 424, "column": 39 }, "identifierName": "arc" }, "name": "arc" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 13952, "end": 13984, "loc": { "start": { "line": 425, "column": 32 }, "end": { "line": 425, "column": 64 } }, "left": { "type": "Identifier", "start": 13952, "end": 13964, "loc": { "start": { "line": 425, "column": 32 }, "end": { "line": 425, "column": 44 }, "identifierName": "insetPadding" }, "name": "insetPadding" }, "operator": "+", "right": { "type": "UnaryExpression", "start": 13967, "end": 13984, "loc": { "start": { "line": 425, "column": 47 }, "end": { "line": 425, "column": 64 } }, "operator": "-", "prefix": true, "argument": { "type": "Identifier", "start": 13968, "end": 13984, "loc": { "start": { "line": 425, "column": 48 }, "end": { "line": 425, "column": 64 }, "identifierName": "quadrantHalfSize" }, "name": "quadrantHalfSize" }, "extra": { "parenthesizedArgument": false } } }, { "type": "BinaryExpression", "start": 13986, "end": 14018, "loc": { "start": { "line": 425, "column": 66 }, "end": { "line": 425, "column": 98 } }, "left": { "type": "UnaryExpression", "start": 13986, "end": 13999, "loc": { "start": { "line": 425, "column": 66 }, "end": { "line": 425, "column": 79 } }, "operator": "-", "prefix": true, "argument": { "type": "Identifier", "start": 13987, "end": 13999, "loc": { "start": { "line": 425, "column": 67 }, "end": { "line": 425, "column": 79 }, "identifierName": "insetPadding" }, "name": "insetPadding" }, "extra": { "parenthesizedArgument": false } }, "operator": "+", "right": { "type": "Identifier", "start": 14002, "end": 14018, "loc": { "start": { "line": 425, "column": 82 }, "end": { "line": 425, "column": 98 }, "identifierName": "quadrantHalfSize" }, "name": "quadrantHalfSize" } }, { "type": "BinaryExpression", "start": 14053, "end": 14078, "loc": { "start": { "line": 426, "column": 32 }, "end": { "line": 426, "column": 57 } }, "left": { "type": "Identifier", "start": 14053, "end": 14065, "loc": { "start": { "line": 426, "column": 32 }, "end": { "line": 426, "column": 44 }, "identifierName": "quadrantSize" }, "name": "quadrantSize" }, "operator": "*", "right": { "type": "Identifier", "start": 14068, "end": 14078, "loc": { "start": { "line": 426, "column": 47 }, "end": { "line": 426, "column": 57 }, "identifierName": "layerScale" }, "name": "layerScale" } }, { "type": "BinaryExpression", "start": 14080, "end": 14094, "loc": { "start": { "line": 426, "column": 59 }, "end": { "line": 426, "column": 73 } }, "left": { "type": "UnaryExpression", "start": 14080, "end": 14088, "loc": { "start": { "line": 426, "column": 59 }, "end": { "line": 426, "column": 67 } }, "operator": "-", "prefix": true, "argument": { "type": "MemberExpression", "start": 14081, "end": 14088, "loc": { "start": { "line": 426, "column": 60 }, "end": { "line": 426, "column": 67 } }, "object": { "type": "Identifier", "start": 14081, "end": 14085, "loc": { "start": { "line": 426, "column": 60 }, "end": { "line": 426, "column": 64 }, "identifierName": "Math" }, "name": "Math" }, "property": { "type": "Identifier", "start": 14086, "end": 14088, "loc": { "start": { "line": 426, "column": 65 }, "end": { "line": 426, "column": 67 }, "identifierName": "PI" }, "name": "PI" }, "computed": false }, "extra": { "parenthesizedArgument": false } }, "operator": "*", "right": { "type": "NumericLiteral", "start": 14091, "end": 14094, "loc": { "start": { "line": 426, "column": 70 }, "end": { "line": 426, "column": 73 } }, "extra": { "rawValue": 0.5, "raw": "0.5" }, "value": 0.5 } }, { "type": "NumericLiteral", "start": 14129, "end": 14130, "loc": { "start": { "line": 427, "column": 32 }, "end": { "line": 427, "column": 33 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } ] } }, { "type": "ExpressionStatement", "start": 14192, "end": 14212, "loc": { "start": { "line": 429, "column": 28 }, "end": { "line": 429, "column": 48 } }, "expression": { "type": "CallExpression", "start": 14192, "end": 14211, "loc": { "start": { "line": 429, "column": 28 }, "end": { "line": 429, "column": 47 } }, "callee": { "type": "MemberExpression", "start": 14192, "end": 14209, "loc": { "start": { "line": 429, "column": 28 }, "end": { "line": 429, "column": 45 } }, "object": { "type": "Identifier", "start": 14192, "end": 14199, "loc": { "start": { "line": 429, "column": 28 }, "end": { "line": 429, "column": 35 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 14200, "end": 14209, "loc": { "start": { "line": 429, "column": 36 }, "end": { "line": 429, "column": 45 }, "identifierName": "closePath" }, "name": "closePath" }, "computed": false }, "arguments": [] } }, { "type": "BreakStatement", "start": 14242, "end": 14248, "loc": { "start": { "line": 430, "column": 28 }, "end": { "line": 430, "column": 34 } }, "label": null } ], "directives": [] } ], "test": { "type": "MemberExpression", "start": 13666, "end": 13685, "loc": { "start": { "line": 420, "column": 25 }, "end": { "line": 420, "column": 44 } }, "object": { "type": "Identifier", "start": 13666, "end": 13678, "loc": { "start": { "line": 420, "column": 25 }, "end": { "line": 420, "column": 37 }, "identifierName": "enumSubShape" }, "name": "enumSubShape" }, "property": { "type": "Identifier", "start": 13679, "end": 13685, "loc": { "start": { "line": 420, "column": 38 }, "end": { "line": 420, "column": 44 }, "identifierName": "circle" }, "name": "circle" }, "computed": false } }, { "type": "SwitchCase", "start": 14299, "end": 14444, "loc": { "start": { "line": 433, "column": 20 }, "end": { "line": 436, "column": 25 } }, "consequent": [ { "type": "BlockStatement", "start": 14333, "end": 14444, "loc": { "start": { "line": 434, "column": 24 }, "end": { "line": 436, "column": 25 } }, "body": [ { "type": "ExpressionStatement", "start": 14364, "end": 14417, "loc": { "start": { "line": 435, "column": 28 }, "end": { "line": 435, "column": 81 } }, "expression": { "type": "CallExpression", "start": 14364, "end": 14416, "loc": { "start": { "line": 435, "column": 28 }, "end": { "line": 435, "column": 80 } }, "callee": { "type": "Identifier", "start": 14364, "end": 14376, "loc": { "start": { "line": 435, "column": 28 }, "end": { "line": 435, "column": 40 }, "identifierName": "assertAlways" }, "name": "assertAlways" }, "arguments": [ { "type": "BooleanLiteral", "start": 14377, "end": 14382, "loc": { "start": { "line": 435, "column": 41 }, "end": { "line": 435, "column": 46 } }, "value": false }, { "type": "BinaryExpression", "start": 14384, "end": 14415, "loc": { "start": { "line": 435, "column": 48 }, "end": { "line": 435, "column": 79 } }, "left": { "type": "StringLiteral", "start": 14384, "end": 14404, "loc": { "start": { "line": 435, "column": 48 }, "end": { "line": 435, "column": 68 } }, "extra": { "rawValue": "Unkown sub shape: ", "raw": "\"Unkown sub shape: \"" }, "value": "Unkown sub shape: " }, "operator": "+", "right": { "type": "Identifier", "start": 14407, "end": 14415, "loc": { "start": { "line": 435, "column": 71 }, "end": { "line": 435, "column": 79 }, "identifierName": "subShape" }, "name": "subShape" } } ] } } ], "directives": [] } ], "test": null } ] }, { "type": "ExpressionStatement", "start": 14483, "end": 14498, "loc": { "start": { "line": 439, "column": 16 }, "end": { "line": 439, "column": 31 } }, "expression": { "type": "CallExpression", "start": 14483, "end": 14497, "loc": { "start": { "line": 439, "column": 16 }, "end": { "line": 439, "column": 30 } }, "callee": { "type": "MemberExpression", "start": 14483, "end": 14495, "loc": { "start": { "line": 439, "column": 16 }, "end": { "line": 439, "column": 28 } }, "object": { "type": "Identifier", "start": 14483, "end": 14490, "loc": { "start": { "line": 439, "column": 16 }, "end": { "line": 439, "column": 23 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 14491, "end": 14495, "loc": { "start": { "line": 439, "column": 24 }, "end": { "line": 439, "column": 28 }, "identifierName": "fill" }, "name": "fill" }, "computed": false }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 14516, "end": 14533, "loc": { "start": { "line": 440, "column": 16 }, "end": { "line": 440, "column": 33 } }, "expression": { "type": "CallExpression", "start": 14516, "end": 14532, "loc": { "start": { "line": 440, "column": 16 }, "end": { "line": 440, "column": 32 } }, "callee": { "type": "MemberExpression", "start": 14516, "end": 14530, "loc": { "start": { "line": 440, "column": 16 }, "end": { "line": 440, "column": 30 } }, "object": { "type": "Identifier", "start": 14516, "end": 14523, "loc": { "start": { "line": 440, "column": 16 }, "end": { "line": 440, "column": 23 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 14524, "end": 14530, "loc": { "start": { "line": 440, "column": 24 }, "end": { "line": 440, "column": 30 }, "identifierName": "stroke" }, "name": "stroke" }, "computed": false }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 14553, "end": 14579, "loc": { "start": { "line": 442, "column": 16 }, "end": { "line": 442, "column": 42 } }, "expression": { "type": "CallExpression", "start": 14553, "end": 14578, "loc": { "start": { "line": 442, "column": 16 }, "end": { "line": 442, "column": 41 } }, "callee": { "type": "MemberExpression", "start": 14553, "end": 14567, "loc": { "start": { "line": 442, "column": 16 }, "end": { "line": 442, "column": 30 } }, "object": { "type": "Identifier", "start": 14553, "end": 14560, "loc": { "start": { "line": 442, "column": 16 }, "end": { "line": 442, "column": 23 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 14561, "end": 14567, "loc": { "start": { "line": 442, "column": 24 }, "end": { "line": 442, "column": 30 }, "identifierName": "rotate" }, "name": "rotate" }, "computed": false }, "arguments": [ { "type": "UnaryExpression", "start": 14568, "end": 14577, "loc": { "start": { "line": 442, "column": 31 }, "end": { "line": 442, "column": 40 } }, "operator": "-", "prefix": true, "argument": { "type": "Identifier", "start": 14569, "end": 14577, "loc": { "start": { "line": 442, "column": 32 }, "end": { "line": 442, "column": 40 }, "identifierName": "rotation" }, "name": "rotation" }, "extra": { "parenthesizedArgument": false } } ] } }, { "type": "ExpressionStatement", "start": 14597, "end": 14651, "loc": { "start": { "line": 443, "column": 16 }, "end": { "line": 443, "column": 70 } }, "expression": { "type": "CallExpression", "start": 14597, "end": 14650, "loc": { "start": { "line": 443, "column": 16 }, "end": { "line": 443, "column": 69 } }, "callee": { "type": "MemberExpression", "start": 14597, "end": 14614, "loc": { "start": { "line": 443, "column": 16 }, "end": { "line": 443, "column": 33 } }, "object": { "type": "Identifier", "start": 14597, "end": 14604, "loc": { "start": { "line": 443, "column": 16 }, "end": { "line": 443, "column": 23 }, "identifierName": "context" }, "name": "context" }, "property": { "type": "Identifier", "start": 14605, "end": 14614, "loc": { "start": { "line": 443, "column": 24 }, "end": { "line": 443, "column": 33 }, "identifierName": "translate" }, "name": "translate" }, "computed": false }, "arguments": [ { "type": "UnaryExpression", "start": 14615, "end": 14631, "loc": { "start": { "line": 443, "column": 34 }, "end": { "line": 443, "column": 50 } }, "operator": "-", "prefix": true, "argument": { "type": "Identifier", "start": 14616, "end": 14631, "loc": { "start": { "line": 443, "column": 35 }, "end": { "line": 443, "column": 50 }, "identifierName": "centerQuadrantX" }, "name": "centerQuadrantX" }, "extra": { "parenthesizedArgument": false } }, { "type": "UnaryExpression", "start": 14633, "end": 14649, "loc": { "start": { "line": 443, "column": 52 }, "end": { "line": 443, "column": 68 } }, "operator": "-", "prefix": true, "argument": { "type": "Identifier", "start": 14634, "end": 14649, "loc": { "start": { "line": 443, "column": 53 }, "end": { "line": 443, "column": 68 }, "identifierName": "centerQuadrantY" }, "name": "centerQuadrantY" }, "extra": { "parenthesizedArgument": false } } ] } } ], "directives": [] } } ], "directives": [] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {HTMLCanvasElement} canvas\r\n * @param {CanvasRenderingContext2D} context\r\n * @param {number} w\r\n * @param {number} h\r\n * @param {number} dpi\r\n ", "start": 9588, "end": 9780, "loc": { "start": { "line": 325, "column": 4 }, "end": { "line": 332, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns a definition with only the given quadrants\r\n * @param {Array} includeQuadrants\r\n * @returns {ShapeDefinition}\r\n ", "start": 14692, "end": 14846, "loc": { "start": { "line": 448, "column": 4 }, "end": { "line": 452, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 14852, "end": 15721, "loc": { "start": { "line": 453, "column": 4 }, "end": { "line": 473, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 14852, "end": 14876, "loc": { "start": { "line": 453, "column": 4 }, "end": { "line": 453, "column": 28 }, "identifierName": "cloneFilteredByQuadrants" }, "name": "cloneFilteredByQuadrants", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 14877, "end": 14893, "loc": { "start": { "line": 453, "column": 29 }, "end": { "line": 453, "column": 45 }, "identifierName": "includeQuadrants" }, "name": "includeQuadrants" } ], "body": { "type": "BlockStatement", "start": 14895, "end": 15721, "loc": { "start": { "line": 453, "column": 47 }, "end": { "line": 473, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 14906, "end": 14951, "loc": { "start": { "line": 454, "column": 8 }, "end": { "line": 454, "column": 53 } }, "declarations": [ { "type": "VariableDeclarator", "start": 14912, "end": 14950, "loc": { "start": { "line": 454, "column": 14 }, "end": { "line": 454, "column": 52 } }, "id": { "type": "Identifier", "start": 14912, "end": 14921, "loc": { "start": { "line": 454, "column": 14 }, "end": { "line": 454, "column": 23 }, "identifierName": "newLayers" }, "name": "newLayers" }, "init": { "type": "CallExpression", "start": 14924, "end": 14950, "loc": { "start": { "line": 454, "column": 26 }, "end": { "line": 454, "column": 52 } }, "callee": { "type": "MemberExpression", "start": 14924, "end": 14948, "loc": { "start": { "line": 454, "column": 26 }, "end": { "line": 454, "column": 50 } }, "object": { "type": "ThisExpression", "start": 14924, "end": 14928, "loc": { "start": { "line": 454, "column": 26 }, "end": { "line": 454, "column": 30 } } }, "property": { "type": "Identifier", "start": 14929, "end": 14948, "loc": { "start": { "line": 454, "column": 31 }, "end": { "line": 454, "column": 50 }, "identifierName": "internalCloneLayers" }, "name": "internalCloneLayers" }, "computed": false }, "arguments": [] } } ], "kind": "const" }, { "type": "ForStatement", "start": 14961, "end": 15654, "loc": { "start": { "line": 455, "column": 8 }, "end": { "line": 471, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 14966, "end": 14984, "loc": { "start": { "line": 455, "column": 13 }, "end": { "line": 455, "column": 31 } }, "declarations": [ { "type": "VariableDeclarator", "start": 14970, "end": 14984, "loc": { "start": { "line": 455, "column": 17 }, "end": { "line": 455, "column": 31 } }, "id": { "type": "Identifier", "start": 14970, "end": 14980, "loc": { "start": { "line": 455, "column": 17 }, "end": { "line": 455, "column": 27 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "init": { "type": "NumericLiteral", "start": 14983, "end": 14984, "loc": { "start": { "line": 455, "column": 30 }, "end": { "line": 455, "column": 31 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 14986, "end": 15015, "loc": { "start": { "line": 455, "column": 33 }, "end": { "line": 455, "column": 62 } }, "left": { "type": "Identifier", "start": 14986, "end": 14996, "loc": { "start": { "line": 455, "column": 33 }, "end": { "line": 455, "column": 43 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "operator": "<", "right": { "type": "MemberExpression", "start": 14999, "end": 15015, "loc": { "start": { "line": 455, "column": 46 }, "end": { "line": 455, "column": 62 } }, "object": { "type": "Identifier", "start": 14999, "end": 15008, "loc": { "start": { "line": 455, "column": 46 }, "end": { "line": 455, "column": 55 }, "identifierName": "newLayers" }, "name": "newLayers" }, "property": { "type": "Identifier", "start": 15009, "end": 15015, "loc": { "start": { "line": 455, "column": 56 }, "end": { "line": 455, "column": 62 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 15017, "end": 15029, "loc": { "start": { "line": 455, "column": 64 }, "end": { "line": 455, "column": 76 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 15019, "end": 15029, "loc": { "start": { "line": 455, "column": 66 }, "end": { "line": 455, "column": 76 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 15031, "end": 15654, "loc": { "start": { "line": 455, "column": 78 }, "end": { "line": 471, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 15046, "end": 15086, "loc": { "start": { "line": 456, "column": 12 }, "end": { "line": 456, "column": 52 } }, "declarations": [ { "type": "VariableDeclarator", "start": 15052, "end": 15085, "loc": { "start": { "line": 456, "column": 18 }, "end": { "line": 456, "column": 51 } }, "id": { "type": "Identifier", "start": 15052, "end": 15061, "loc": { "start": { "line": 456, "column": 18 }, "end": { "line": 456, "column": 27 }, "identifierName": "quadrants" }, "name": "quadrants" }, "init": { "type": "MemberExpression", "start": 15064, "end": 15085, "loc": { "start": { "line": 456, "column": 30 }, "end": { "line": 456, "column": 51 } }, "object": { "type": "Identifier", "start": 15064, "end": 15073, "loc": { "start": { "line": 456, "column": 30 }, "end": { "line": 456, "column": 39 }, "identifierName": "newLayers" }, "name": "newLayers" }, "property": { "type": "Identifier", "start": 15074, "end": 15084, "loc": { "start": { "line": 456, "column": 40 }, "end": { "line": 456, "column": 50 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "computed": true } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 15100, "end": 15124, "loc": { "start": { "line": 457, "column": 12 }, "end": { "line": 457, "column": 36 } }, "declarations": [ { "type": "VariableDeclarator", "start": 15104, "end": 15123, "loc": { "start": { "line": 457, "column": 16 }, "end": { "line": 457, "column": 35 } }, "id": { "type": "Identifier", "start": 15104, "end": 15115, "loc": { "start": { "line": 457, "column": 16 }, "end": { "line": 457, "column": 27 }, "identifierName": "anyContents" }, "name": "anyContents" }, "init": { "type": "BooleanLiteral", "start": 15118, "end": 15123, "loc": { "start": { "line": 457, "column": 30 }, "end": { "line": 457, "column": 35 } }, "value": false } } ], "kind": "let" }, { "type": "ForStatement", "start": 15138, "end": 15456, "loc": { "start": { "line": 458, "column": 12 }, "end": { "line": 464, "column": 13 } }, "init": { "type": "VariableDeclaration", "start": 15143, "end": 15164, "loc": { "start": { "line": 458, "column": 17 }, "end": { "line": 458, "column": 38 } }, "declarations": [ { "type": "VariableDeclarator", "start": 15147, "end": 15164, "loc": { "start": { "line": 458, "column": 21 }, "end": { "line": 458, "column": 38 } }, "id": { "type": "Identifier", "start": 15147, "end": 15160, "loc": { "start": { "line": 458, "column": 21 }, "end": { "line": 458, "column": 34 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "init": { "type": "NumericLiteral", "start": 15163, "end": 15164, "loc": { "start": { "line": 458, "column": 37 }, "end": { "line": 458, "column": 38 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 15166, "end": 15183, "loc": { "start": { "line": 458, "column": 40 }, "end": { "line": 458, "column": 57 } }, "left": { "type": "Identifier", "start": 15166, "end": 15179, "loc": { "start": { "line": 458, "column": 40 }, "end": { "line": 458, "column": 53 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "operator": "<", "right": { "type": "NumericLiteral", "start": 15182, "end": 15183, "loc": { "start": { "line": 458, "column": 56 }, "end": { "line": 458, "column": 57 } }, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 } }, "update": { "type": "UpdateExpression", "start": 15185, "end": 15200, "loc": { "start": { "line": 458, "column": 59 }, "end": { "line": 458, "column": 74 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 15187, "end": 15200, "loc": { "start": { "line": 458, "column": 61 }, "end": { "line": 458, "column": 74 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 15202, "end": 15456, "loc": { "start": { "line": 458, "column": 76 }, "end": { "line": 464, "column": 13 } }, "body": [ { "type": "IfStatement", "start": 15221, "end": 15441, "loc": { "start": { "line": 459, "column": 16 }, "end": { "line": 463, "column": 17 } }, "test": { "type": "BinaryExpression", "start": 15225, "end": 15268, "loc": { "start": { "line": 459, "column": 20 }, "end": { "line": 459, "column": 63 } }, "left": { "type": "CallExpression", "start": 15225, "end": 15264, "loc": { "start": { "line": 459, "column": 20 }, "end": { "line": 459, "column": 59 } }, "callee": { "type": "MemberExpression", "start": 15225, "end": 15249, "loc": { "start": { "line": 459, "column": 20 }, "end": { "line": 459, "column": 44 } }, "object": { "type": "Identifier", "start": 15225, "end": 15241, "loc": { "start": { "line": 459, "column": 20 }, "end": { "line": 459, "column": 36 }, "identifierName": "includeQuadrants" }, "name": "includeQuadrants" }, "property": { "type": "Identifier", "start": 15242, "end": 15249, "loc": { "start": { "line": 459, "column": 37 }, "end": { "line": 459, "column": 44 }, "identifierName": "indexOf" }, "name": "indexOf" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 15250, "end": 15263, "loc": { "start": { "line": 459, "column": 45 }, "end": { "line": 459, "column": 58 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" } ] }, "operator": "<", "right": { "type": "NumericLiteral", "start": 15267, "end": 15268, "loc": { "start": { "line": 459, "column": 62 }, "end": { "line": 459, "column": 63 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } }, "consequent": { "type": "BlockStatement", "start": 15270, "end": 15344, "loc": { "start": { "line": 459, "column": 65 }, "end": { "line": 461, "column": 17 } }, "body": [ { "type": "ExpressionStatement", "start": 15293, "end": 15325, "loc": { "start": { "line": 460, "column": 20 }, "end": { "line": 460, "column": 52 } }, "expression": { "type": "AssignmentExpression", "start": 15293, "end": 15324, "loc": { "start": { "line": 460, "column": 20 }, "end": { "line": 460, "column": 51 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 15293, "end": 15317, "loc": { "start": { "line": 460, "column": 20 }, "end": { "line": 460, "column": 44 } }, "object": { "type": "Identifier", "start": 15293, "end": 15302, "loc": { "start": { "line": 460, "column": 20 }, "end": { "line": 460, "column": 29 }, "identifierName": "quadrants" }, "name": "quadrants" }, "property": { "type": "Identifier", "start": 15303, "end": 15316, "loc": { "start": { "line": 460, "column": 30 }, "end": { "line": 460, "column": 43 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "computed": true }, "right": { "type": "NullLiteral", "start": 15320, "end": 15324, "loc": { "start": { "line": 460, "column": 47 }, "end": { "line": 460, "column": 51 } } } } } ], "directives": [] }, "alternate": { "type": "IfStatement", "start": 15350, "end": 15441, "loc": { "start": { "line": 461, "column": 23 }, "end": { "line": 463, "column": 17 } }, "test": { "type": "MemberExpression", "start": 15354, "end": 15378, "loc": { "start": { "line": 461, "column": 27 }, "end": { "line": 461, "column": 51 } }, "object": { "type": "Identifier", "start": 15354, "end": 15363, "loc": { "start": { "line": 461, "column": 27 }, "end": { "line": 461, "column": 36 }, "identifierName": "quadrants" }, "name": "quadrants" }, "property": { "type": "Identifier", "start": 15364, "end": 15377, "loc": { "start": { "line": 461, "column": 37 }, "end": { "line": 461, "column": 50 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "computed": true }, "consequent": { "type": "BlockStatement", "start": 15380, "end": 15441, "loc": { "start": { "line": 461, "column": 53 }, "end": { "line": 463, "column": 17 } }, "body": [ { "type": "ExpressionStatement", "start": 15403, "end": 15422, "loc": { "start": { "line": 462, "column": 20 }, "end": { "line": 462, "column": 39 } }, "expression": { "type": "AssignmentExpression", "start": 15403, "end": 15421, "loc": { "start": { "line": 462, "column": 20 }, "end": { "line": 462, "column": 38 } }, "operator": "=", "left": { "type": "Identifier", "start": 15403, "end": 15414, "loc": { "start": { "line": 462, "column": 20 }, "end": { "line": 462, "column": 31 }, "identifierName": "anyContents" }, "name": "anyContents" }, "right": { "type": "BooleanLiteral", "start": 15417, "end": 15421, "loc": { "start": { "line": 462, "column": 34 }, "end": { "line": 462, "column": 38 } }, "value": true } } } ], "directives": [] }, "alternate": null } } ], "directives": [], "trailingComments": null }, "trailingComments": [ { "type": "CommentLine", "value": " Check if the layer is entirely empty", "start": 15472, "end": 15511, "loc": { "start": { "line": 466, "column": 12 }, "end": { "line": 466, "column": 51 } } } ] }, { "type": "IfStatement", "start": 15525, "end": 15643, "loc": { "start": { "line": 467, "column": 12 }, "end": { "line": 470, "column": 13 } }, "test": { "type": "UnaryExpression", "start": 15529, "end": 15541, "loc": { "start": { "line": 467, "column": 16 }, "end": { "line": 467, "column": 28 } }, "operator": "!", "prefix": true, "argument": { "type": "Identifier", "start": 15530, "end": 15541, "loc": { "start": { "line": 467, "column": 17 }, "end": { "line": 467, "column": 28 }, "identifierName": "anyContents" }, "name": "anyContents", "leadingComments": null }, "extra": { "parenthesizedArgument": false }, "leadingComments": null }, "consequent": { "type": "BlockStatement", "start": 15543, "end": 15643, "loc": { "start": { "line": 467, "column": 30 }, "end": { "line": 470, "column": 13 } }, "body": [ { "type": "ExpressionStatement", "start": 15562, "end": 15594, "loc": { "start": { "line": 468, "column": 16 }, "end": { "line": 468, "column": 48 } }, "expression": { "type": "CallExpression", "start": 15562, "end": 15593, "loc": { "start": { "line": 468, "column": 16 }, "end": { "line": 468, "column": 47 } }, "callee": { "type": "MemberExpression", "start": 15562, "end": 15578, "loc": { "start": { "line": 468, "column": 16 }, "end": { "line": 468, "column": 32 } }, "object": { "type": "Identifier", "start": 15562, "end": 15571, "loc": { "start": { "line": 468, "column": 16 }, "end": { "line": 468, "column": 25 }, "identifierName": "newLayers" }, "name": "newLayers" }, "property": { "type": "Identifier", "start": 15572, "end": 15578, "loc": { "start": { "line": 468, "column": 26 }, "end": { "line": 468, "column": 32 }, "identifierName": "splice" }, "name": "splice" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 15579, "end": 15589, "loc": { "start": { "line": 468, "column": 33 }, "end": { "line": 468, "column": 43 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, { "type": "NumericLiteral", "start": 15591, "end": 15592, "loc": { "start": { "line": 468, "column": 45 }, "end": { "line": 468, "column": 46 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } ] } }, { "type": "ExpressionStatement", "start": 15612, "end": 15628, "loc": { "start": { "line": 469, "column": 16 }, "end": { "line": 469, "column": 32 } }, "expression": { "type": "AssignmentExpression", "start": 15612, "end": 15627, "loc": { "start": { "line": 469, "column": 16 }, "end": { "line": 469, "column": 31 } }, "operator": "-=", "left": { "type": "Identifier", "start": 15612, "end": 15622, "loc": { "start": { "line": 469, "column": 16 }, "end": { "line": 469, "column": 26 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "right": { "type": "NumericLiteral", "start": 15626, "end": 15627, "loc": { "start": { "line": 469, "column": 30 }, "end": { "line": 469, "column": 31 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } } } ], "directives": [] }, "alternate": null, "leadingComments": [ { "type": "CommentLine", "value": " Check if the layer is entirely empty", "start": 15472, "end": 15511, "loc": { "start": { "line": 466, "column": 12 }, "end": { "line": 466, "column": 51 } } } ] } ], "directives": [] } }, { "type": "ReturnStatement", "start": 15664, "end": 15714, "loc": { "start": { "line": 472, "column": 8 }, "end": { "line": 472, "column": 58 } }, "argument": { "type": "NewExpression", "start": 15671, "end": 15713, "loc": { "start": { "line": 472, "column": 15 }, "end": { "line": 472, "column": 57 } }, "callee": { "type": "Identifier", "start": 15675, "end": 15690, "loc": { "start": { "line": 472, "column": 19 }, "end": { "line": 472, "column": 34 }, "identifierName": "ShapeDefinition" }, "name": "ShapeDefinition" }, "arguments": [ { "type": "ObjectExpression", "start": 15691, "end": 15712, "loc": { "start": { "line": 472, "column": 35 }, "end": { "line": 472, "column": 56 } }, "properties": [ { "type": "ObjectProperty", "start": 15693, "end": 15710, "loc": { "start": { "line": 472, "column": 37 }, "end": { "line": 472, "column": 54 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 15693, "end": 15699, "loc": { "start": { "line": 472, "column": 37 }, "end": { "line": 472, "column": 43 }, "identifierName": "layers" }, "name": "layers" }, "value": { "type": "Identifier", "start": 15701, "end": 15710, "loc": { "start": { "line": 472, "column": 45 }, "end": { "line": 472, "column": 54 }, "identifierName": "newLayers" }, "name": "newLayers" } } ] } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns a definition with only the given quadrants\r\n * @param {Array} includeQuadrants\r\n * @returns {ShapeDefinition}\r\n ", "start": 14692, "end": 14846, "loc": { "start": { "line": 448, "column": 4 }, "end": { "line": 452, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns a definition which was rotated clockwise\r\n * @returns {ShapeDefinition}\r\n ", "start": 15729, "end": 15833, "loc": { "start": { "line": 475, "column": 4 }, "end": { "line": 478, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 15839, "end": 16200, "loc": { "start": { "line": 479, "column": 4 }, "end": { "line": 487, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 15839, "end": 15852, "loc": { "start": { "line": 479, "column": 4 }, "end": { "line": 479, "column": 17 }, "identifierName": "cloneRotateCW" }, "name": "cloneRotateCW", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 15855, "end": 16200, "loc": { "start": { "line": 479, "column": 20 }, "end": { "line": 487, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 15866, "end": 15911, "loc": { "start": { "line": 480, "column": 8 }, "end": { "line": 480, "column": 53 } }, "declarations": [ { "type": "VariableDeclarator", "start": 15872, "end": 15910, "loc": { "start": { "line": 480, "column": 14 }, "end": { "line": 480, "column": 52 } }, "id": { "type": "Identifier", "start": 15872, "end": 15881, "loc": { "start": { "line": 480, "column": 14 }, "end": { "line": 480, "column": 23 }, "identifierName": "newLayers" }, "name": "newLayers" }, "init": { "type": "CallExpression", "start": 15884, "end": 15910, "loc": { "start": { "line": 480, "column": 26 }, "end": { "line": 480, "column": 52 } }, "callee": { "type": "MemberExpression", "start": 15884, "end": 15908, "loc": { "start": { "line": 480, "column": 26 }, "end": { "line": 480, "column": 50 } }, "object": { "type": "ThisExpression", "start": 15884, "end": 15888, "loc": { "start": { "line": 480, "column": 26 }, "end": { "line": 480, "column": 30 } } }, "property": { "type": "Identifier", "start": 15889, "end": 15908, "loc": { "start": { "line": 480, "column": 31 }, "end": { "line": 480, "column": 50 }, "identifierName": "internalCloneLayers" }, "name": "internalCloneLayers" }, "computed": false }, "arguments": [] } } ], "kind": "const" }, { "type": "ForStatement", "start": 15921, "end": 16133, "loc": { "start": { "line": 481, "column": 8 }, "end": { "line": 485, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 15926, "end": 15944, "loc": { "start": { "line": 481, "column": 13 }, "end": { "line": 481, "column": 31 } }, "declarations": [ { "type": "VariableDeclarator", "start": 15930, "end": 15944, "loc": { "start": { "line": 481, "column": 17 }, "end": { "line": 481, "column": 31 } }, "id": { "type": "Identifier", "start": 15930, "end": 15940, "loc": { "start": { "line": 481, "column": 17 }, "end": { "line": 481, "column": 27 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "init": { "type": "NumericLiteral", "start": 15943, "end": 15944, "loc": { "start": { "line": 481, "column": 30 }, "end": { "line": 481, "column": 31 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 15946, "end": 15975, "loc": { "start": { "line": 481, "column": 33 }, "end": { "line": 481, "column": 62 } }, "left": { "type": "Identifier", "start": 15946, "end": 15956, "loc": { "start": { "line": 481, "column": 33 }, "end": { "line": 481, "column": 43 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "operator": "<", "right": { "type": "MemberExpression", "start": 15959, "end": 15975, "loc": { "start": { "line": 481, "column": 46 }, "end": { "line": 481, "column": 62 } }, "object": { "type": "Identifier", "start": 15959, "end": 15968, "loc": { "start": { "line": 481, "column": 46 }, "end": { "line": 481, "column": 55 }, "identifierName": "newLayers" }, "name": "newLayers" }, "property": { "type": "Identifier", "start": 15969, "end": 15975, "loc": { "start": { "line": 481, "column": 56 }, "end": { "line": 481, "column": 62 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 15977, "end": 15989, "loc": { "start": { "line": 481, "column": 64 }, "end": { "line": 481, "column": 76 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 15979, "end": 15989, "loc": { "start": { "line": 481, "column": 66 }, "end": { "line": 481, "column": 76 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 15991, "end": 16133, "loc": { "start": { "line": 481, "column": 78 }, "end": { "line": 485, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 16006, "end": 16046, "loc": { "start": { "line": 482, "column": 12 }, "end": { "line": 482, "column": 52 } }, "declarations": [ { "type": "VariableDeclarator", "start": 16012, "end": 16045, "loc": { "start": { "line": 482, "column": 18 }, "end": { "line": 482, "column": 51 } }, "id": { "type": "Identifier", "start": 16012, "end": 16021, "loc": { "start": { "line": 482, "column": 18 }, "end": { "line": 482, "column": 27 }, "identifierName": "quadrants" }, "name": "quadrants" }, "init": { "type": "MemberExpression", "start": 16024, "end": 16045, "loc": { "start": { "line": 482, "column": 30 }, "end": { "line": 482, "column": 51 } }, "object": { "type": "Identifier", "start": 16024, "end": 16033, "loc": { "start": { "line": 482, "column": 30 }, "end": { "line": 482, "column": 39 }, "identifierName": "newLayers" }, "name": "newLayers" }, "property": { "type": "Identifier", "start": 16034, "end": 16044, "loc": { "start": { "line": 482, "column": 40 }, "end": { "line": 482, "column": 50 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "computed": true } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 16060, "end": 16092, "loc": { "start": { "line": 483, "column": 12 }, "end": { "line": 483, "column": 44 } }, "expression": { "type": "CallExpression", "start": 16060, "end": 16091, "loc": { "start": { "line": 483, "column": 12 }, "end": { "line": 483, "column": 43 } }, "callee": { "type": "MemberExpression", "start": 16060, "end": 16077, "loc": { "start": { "line": 483, "column": 12 }, "end": { "line": 483, "column": 29 } }, "object": { "type": "Identifier", "start": 16060, "end": 16069, "loc": { "start": { "line": 483, "column": 12 }, "end": { "line": 483, "column": 21 }, "identifierName": "quadrants" }, "name": "quadrants" }, "property": { "type": "Identifier", "start": 16070, "end": 16077, "loc": { "start": { "line": 483, "column": 22 }, "end": { "line": 483, "column": 29 }, "identifierName": "unshift" }, "name": "unshift" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 16078, "end": 16090, "loc": { "start": { "line": 483, "column": 30 }, "end": { "line": 483, "column": 42 } }, "object": { "type": "Identifier", "start": 16078, "end": 16087, "loc": { "start": { "line": 483, "column": 30 }, "end": { "line": 483, "column": 39 }, "identifierName": "quadrants" }, "name": "quadrants" }, "property": { "type": "NumericLiteral", "start": 16088, "end": 16089, "loc": { "start": { "line": 483, "column": 40 }, "end": { "line": 483, "column": 41 } }, "extra": { "rawValue": 3, "raw": "3" }, "value": 3 }, "computed": true } ] } }, { "type": "ExpressionStatement", "start": 16106, "end": 16122, "loc": { "start": { "line": 484, "column": 12 }, "end": { "line": 484, "column": 28 } }, "expression": { "type": "CallExpression", "start": 16106, "end": 16121, "loc": { "start": { "line": 484, "column": 12 }, "end": { "line": 484, "column": 27 } }, "callee": { "type": "MemberExpression", "start": 16106, "end": 16119, "loc": { "start": { "line": 484, "column": 12 }, "end": { "line": 484, "column": 25 } }, "object": { "type": "Identifier", "start": 16106, "end": 16115, "loc": { "start": { "line": 484, "column": 12 }, "end": { "line": 484, "column": 21 }, "identifierName": "quadrants" }, "name": "quadrants" }, "property": { "type": "Identifier", "start": 16116, "end": 16119, "loc": { "start": { "line": 484, "column": 22 }, "end": { "line": 484, "column": 25 }, "identifierName": "pop" }, "name": "pop" }, "computed": false }, "arguments": [] } } ], "directives": [] } }, { "type": "ReturnStatement", "start": 16143, "end": 16193, "loc": { "start": { "line": 486, "column": 8 }, "end": { "line": 486, "column": 58 } }, "argument": { "type": "NewExpression", "start": 16150, "end": 16192, "loc": { "start": { "line": 486, "column": 15 }, "end": { "line": 486, "column": 57 } }, "callee": { "type": "Identifier", "start": 16154, "end": 16169, "loc": { "start": { "line": 486, "column": 19 }, "end": { "line": 486, "column": 34 }, "identifierName": "ShapeDefinition" }, "name": "ShapeDefinition" }, "arguments": [ { "type": "ObjectExpression", "start": 16170, "end": 16191, "loc": { "start": { "line": 486, "column": 35 }, "end": { "line": 486, "column": 56 } }, "properties": [ { "type": "ObjectProperty", "start": 16172, "end": 16189, "loc": { "start": { "line": 486, "column": 37 }, "end": { "line": 486, "column": 54 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 16172, "end": 16178, "loc": { "start": { "line": 486, "column": 37 }, "end": { "line": 486, "column": 43 }, "identifierName": "layers" }, "name": "layers" }, "value": { "type": "Identifier", "start": 16180, "end": 16189, "loc": { "start": { "line": 486, "column": 45 }, "end": { "line": 486, "column": 54 }, "identifierName": "newLayers" }, "name": "newLayers" } } ] } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns a definition which was rotated clockwise\r\n * @returns {ShapeDefinition}\r\n ", "start": 15729, "end": 15833, "loc": { "start": { "line": 475, "column": 4 }, "end": { "line": 478, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns a definition which was rotated counter clockwise\r\n * @returns {ShapeDefinition}\r\n ", "start": 16208, "end": 16320, "loc": { "start": { "line": 489, "column": 4 }, "end": { "line": 492, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 16326, "end": 16687, "loc": { "start": { "line": 493, "column": 4 }, "end": { "line": 501, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 16326, "end": 16340, "loc": { "start": { "line": 493, "column": 4 }, "end": { "line": 493, "column": 18 }, "identifierName": "cloneRotateCCW" }, "name": "cloneRotateCCW", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 16343, "end": 16687, "loc": { "start": { "line": 493, "column": 21 }, "end": { "line": 501, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 16354, "end": 16399, "loc": { "start": { "line": 494, "column": 8 }, "end": { "line": 494, "column": 53 } }, "declarations": [ { "type": "VariableDeclarator", "start": 16360, "end": 16398, "loc": { "start": { "line": 494, "column": 14 }, "end": { "line": 494, "column": 52 } }, "id": { "type": "Identifier", "start": 16360, "end": 16369, "loc": { "start": { "line": 494, "column": 14 }, "end": { "line": 494, "column": 23 }, "identifierName": "newLayers" }, "name": "newLayers" }, "init": { "type": "CallExpression", "start": 16372, "end": 16398, "loc": { "start": { "line": 494, "column": 26 }, "end": { "line": 494, "column": 52 } }, "callee": { "type": "MemberExpression", "start": 16372, "end": 16396, "loc": { "start": { "line": 494, "column": 26 }, "end": { "line": 494, "column": 50 } }, "object": { "type": "ThisExpression", "start": 16372, "end": 16376, "loc": { "start": { "line": 494, "column": 26 }, "end": { "line": 494, "column": 30 } } }, "property": { "type": "Identifier", "start": 16377, "end": 16396, "loc": { "start": { "line": 494, "column": 31 }, "end": { "line": 494, "column": 50 }, "identifierName": "internalCloneLayers" }, "name": "internalCloneLayers" }, "computed": false }, "arguments": [] } } ], "kind": "const" }, { "type": "ForStatement", "start": 16409, "end": 16620, "loc": { "start": { "line": 495, "column": 8 }, "end": { "line": 499, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 16414, "end": 16432, "loc": { "start": { "line": 495, "column": 13 }, "end": { "line": 495, "column": 31 } }, "declarations": [ { "type": "VariableDeclarator", "start": 16418, "end": 16432, "loc": { "start": { "line": 495, "column": 17 }, "end": { "line": 495, "column": 31 } }, "id": { "type": "Identifier", "start": 16418, "end": 16428, "loc": { "start": { "line": 495, "column": 17 }, "end": { "line": 495, "column": 27 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "init": { "type": "NumericLiteral", "start": 16431, "end": 16432, "loc": { "start": { "line": 495, "column": 30 }, "end": { "line": 495, "column": 31 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 16434, "end": 16463, "loc": { "start": { "line": 495, "column": 33 }, "end": { "line": 495, "column": 62 } }, "left": { "type": "Identifier", "start": 16434, "end": 16444, "loc": { "start": { "line": 495, "column": 33 }, "end": { "line": 495, "column": 43 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "operator": "<", "right": { "type": "MemberExpression", "start": 16447, "end": 16463, "loc": { "start": { "line": 495, "column": 46 }, "end": { "line": 495, "column": 62 } }, "object": { "type": "Identifier", "start": 16447, "end": 16456, "loc": { "start": { "line": 495, "column": 46 }, "end": { "line": 495, "column": 55 }, "identifierName": "newLayers" }, "name": "newLayers" }, "property": { "type": "Identifier", "start": 16457, "end": 16463, "loc": { "start": { "line": 495, "column": 56 }, "end": { "line": 495, "column": 62 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 16465, "end": 16477, "loc": { "start": { "line": 495, "column": 64 }, "end": { "line": 495, "column": 76 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 16467, "end": 16477, "loc": { "start": { "line": 495, "column": 66 }, "end": { "line": 495, "column": 76 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 16479, "end": 16620, "loc": { "start": { "line": 495, "column": 78 }, "end": { "line": 499, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 16494, "end": 16534, "loc": { "start": { "line": 496, "column": 12 }, "end": { "line": 496, "column": 52 } }, "declarations": [ { "type": "VariableDeclarator", "start": 16500, "end": 16533, "loc": { "start": { "line": 496, "column": 18 }, "end": { "line": 496, "column": 51 } }, "id": { "type": "Identifier", "start": 16500, "end": 16509, "loc": { "start": { "line": 496, "column": 18 }, "end": { "line": 496, "column": 27 }, "identifierName": "quadrants" }, "name": "quadrants" }, "init": { "type": "MemberExpression", "start": 16512, "end": 16533, "loc": { "start": { "line": 496, "column": 30 }, "end": { "line": 496, "column": 51 } }, "object": { "type": "Identifier", "start": 16512, "end": 16521, "loc": { "start": { "line": 496, "column": 30 }, "end": { "line": 496, "column": 39 }, "identifierName": "newLayers" }, "name": "newLayers" }, "property": { "type": "Identifier", "start": 16522, "end": 16532, "loc": { "start": { "line": 496, "column": 40 }, "end": { "line": 496, "column": 50 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "computed": true } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 16548, "end": 16577, "loc": { "start": { "line": 497, "column": 12 }, "end": { "line": 497, "column": 41 } }, "expression": { "type": "CallExpression", "start": 16548, "end": 16576, "loc": { "start": { "line": 497, "column": 12 }, "end": { "line": 497, "column": 40 } }, "callee": { "type": "MemberExpression", "start": 16548, "end": 16562, "loc": { "start": { "line": 497, "column": 12 }, "end": { "line": 497, "column": 26 } }, "object": { "type": "Identifier", "start": 16548, "end": 16557, "loc": { "start": { "line": 497, "column": 12 }, "end": { "line": 497, "column": 21 }, "identifierName": "quadrants" }, "name": "quadrants" }, "property": { "type": "Identifier", "start": 16558, "end": 16562, "loc": { "start": { "line": 497, "column": 22 }, "end": { "line": 497, "column": 26 }, "identifierName": "push" }, "name": "push" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 16563, "end": 16575, "loc": { "start": { "line": 497, "column": 27 }, "end": { "line": 497, "column": 39 } }, "object": { "type": "Identifier", "start": 16563, "end": 16572, "loc": { "start": { "line": 497, "column": 27 }, "end": { "line": 497, "column": 36 }, "identifierName": "quadrants" }, "name": "quadrants" }, "property": { "type": "NumericLiteral", "start": 16573, "end": 16574, "loc": { "start": { "line": 497, "column": 37 }, "end": { "line": 497, "column": 38 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, "computed": true } ] } }, { "type": "ExpressionStatement", "start": 16591, "end": 16609, "loc": { "start": { "line": 498, "column": 12 }, "end": { "line": 498, "column": 30 } }, "expression": { "type": "CallExpression", "start": 16591, "end": 16608, "loc": { "start": { "line": 498, "column": 12 }, "end": { "line": 498, "column": 29 } }, "callee": { "type": "MemberExpression", "start": 16591, "end": 16606, "loc": { "start": { "line": 498, "column": 12 }, "end": { "line": 498, "column": 27 } }, "object": { "type": "Identifier", "start": 16591, "end": 16600, "loc": { "start": { "line": 498, "column": 12 }, "end": { "line": 498, "column": 21 }, "identifierName": "quadrants" }, "name": "quadrants" }, "property": { "type": "Identifier", "start": 16601, "end": 16606, "loc": { "start": { "line": 498, "column": 22 }, "end": { "line": 498, "column": 27 }, "identifierName": "shift" }, "name": "shift" }, "computed": false }, "arguments": [] } } ], "directives": [] } }, { "type": "ReturnStatement", "start": 16630, "end": 16680, "loc": { "start": { "line": 500, "column": 8 }, "end": { "line": 500, "column": 58 } }, "argument": { "type": "NewExpression", "start": 16637, "end": 16679, "loc": { "start": { "line": 500, "column": 15 }, "end": { "line": 500, "column": 57 } }, "callee": { "type": "Identifier", "start": 16641, "end": 16656, "loc": { "start": { "line": 500, "column": 19 }, "end": { "line": 500, "column": 34 }, "identifierName": "ShapeDefinition" }, "name": "ShapeDefinition" }, "arguments": [ { "type": "ObjectExpression", "start": 16657, "end": 16678, "loc": { "start": { "line": 500, "column": 35 }, "end": { "line": 500, "column": 56 } }, "properties": [ { "type": "ObjectProperty", "start": 16659, "end": 16676, "loc": { "start": { "line": 500, "column": 37 }, "end": { "line": 500, "column": 54 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 16659, "end": 16665, "loc": { "start": { "line": 500, "column": 37 }, "end": { "line": 500, "column": 43 }, "identifierName": "layers" }, "name": "layers" }, "value": { "type": "Identifier", "start": 16667, "end": 16676, "loc": { "start": { "line": 500, "column": 45 }, "end": { "line": 500, "column": 54 }, "identifierName": "newLayers" }, "name": "newLayers" } } ] } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns a definition which was rotated counter clockwise\r\n * @returns {ShapeDefinition}\r\n ", "start": 16208, "end": 16320, "loc": { "start": { "line": 489, "column": 4 }, "end": { "line": 492, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns a definition which was rotated 180 degrees\r\n * @returns {ShapeDefinition}\r\n ", "start": 16695, "end": 16801, "loc": { "start": { "line": 503, "column": 4 }, "end": { "line": 506, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 16807, "end": 17160, "loc": { "start": { "line": 507, "column": 4 }, "end": { "line": 514, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 16807, "end": 16821, "loc": { "start": { "line": 507, "column": 4 }, "end": { "line": 507, "column": 18 }, "identifierName": "cloneRotate180" }, "name": "cloneRotate180", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 16824, "end": 17160, "loc": { "start": { "line": 507, "column": 21 }, "end": { "line": 514, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 16835, "end": 16880, "loc": { "start": { "line": 508, "column": 8 }, "end": { "line": 508, "column": 53 } }, "declarations": [ { "type": "VariableDeclarator", "start": 16841, "end": 16879, "loc": { "start": { "line": 508, "column": 14 }, "end": { "line": 508, "column": 52 } }, "id": { "type": "Identifier", "start": 16841, "end": 16850, "loc": { "start": { "line": 508, "column": 14 }, "end": { "line": 508, "column": 23 }, "identifierName": "newLayers" }, "name": "newLayers" }, "init": { "type": "CallExpression", "start": 16853, "end": 16879, "loc": { "start": { "line": 508, "column": 26 }, "end": { "line": 508, "column": 52 } }, "callee": { "type": "MemberExpression", "start": 16853, "end": 16877, "loc": { "start": { "line": 508, "column": 26 }, "end": { "line": 508, "column": 50 } }, "object": { "type": "ThisExpression", "start": 16853, "end": 16857, "loc": { "start": { "line": 508, "column": 26 }, "end": { "line": 508, "column": 30 } } }, "property": { "type": "Identifier", "start": 16858, "end": 16877, "loc": { "start": { "line": 508, "column": 31 }, "end": { "line": 508, "column": 50 }, "identifierName": "internalCloneLayers" }, "name": "internalCloneLayers" }, "computed": false }, "arguments": [] } } ], "kind": "const" }, { "type": "ForStatement", "start": 16890, "end": 17093, "loc": { "start": { "line": 509, "column": 8 }, "end": { "line": 512, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 16895, "end": 16913, "loc": { "start": { "line": 509, "column": 13 }, "end": { "line": 509, "column": 31 } }, "declarations": [ { "type": "VariableDeclarator", "start": 16899, "end": 16913, "loc": { "start": { "line": 509, "column": 17 }, "end": { "line": 509, "column": 31 } }, "id": { "type": "Identifier", "start": 16899, "end": 16909, "loc": { "start": { "line": 509, "column": 17 }, "end": { "line": 509, "column": 27 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "init": { "type": "NumericLiteral", "start": 16912, "end": 16913, "loc": { "start": { "line": 509, "column": 30 }, "end": { "line": 509, "column": 31 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 16915, "end": 16944, "loc": { "start": { "line": 509, "column": 33 }, "end": { "line": 509, "column": 62 } }, "left": { "type": "Identifier", "start": 16915, "end": 16925, "loc": { "start": { "line": 509, "column": 33 }, "end": { "line": 509, "column": 43 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "operator": "<", "right": { "type": "MemberExpression", "start": 16928, "end": 16944, "loc": { "start": { "line": 509, "column": 46 }, "end": { "line": 509, "column": 62 } }, "object": { "type": "Identifier", "start": 16928, "end": 16937, "loc": { "start": { "line": 509, "column": 46 }, "end": { "line": 509, "column": 55 }, "identifierName": "newLayers" }, "name": "newLayers" }, "property": { "type": "Identifier", "start": 16938, "end": 16944, "loc": { "start": { "line": 509, "column": 56 }, "end": { "line": 509, "column": 62 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 16946, "end": 16958, "loc": { "start": { "line": 509, "column": 64 }, "end": { "line": 509, "column": 76 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 16948, "end": 16958, "loc": { "start": { "line": 509, "column": 66 }, "end": { "line": 509, "column": 76 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 16960, "end": 17093, "loc": { "start": { "line": 509, "column": 78 }, "end": { "line": 512, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 16975, "end": 17015, "loc": { "start": { "line": 510, "column": 12 }, "end": { "line": 510, "column": 52 } }, "declarations": [ { "type": "VariableDeclarator", "start": 16981, "end": 17014, "loc": { "start": { "line": 510, "column": 18 }, "end": { "line": 510, "column": 51 } }, "id": { "type": "Identifier", "start": 16981, "end": 16990, "loc": { "start": { "line": 510, "column": 18 }, "end": { "line": 510, "column": 27 }, "identifierName": "quadrants" }, "name": "quadrants" }, "init": { "type": "MemberExpression", "start": 16993, "end": 17014, "loc": { "start": { "line": 510, "column": 30 }, "end": { "line": 510, "column": 51 } }, "object": { "type": "Identifier", "start": 16993, "end": 17002, "loc": { "start": { "line": 510, "column": 30 }, "end": { "line": 510, "column": 39 }, "identifierName": "newLayers" }, "name": "newLayers" }, "property": { "type": "Identifier", "start": 17003, "end": 17013, "loc": { "start": { "line": 510, "column": 40 }, "end": { "line": 510, "column": 50 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "computed": true } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 17029, "end": 17082, "loc": { "start": { "line": 511, "column": 12 }, "end": { "line": 511, "column": 65 } }, "expression": { "type": "CallExpression", "start": 17029, "end": 17081, "loc": { "start": { "line": 511, "column": 12 }, "end": { "line": 511, "column": 64 } }, "callee": { "type": "MemberExpression", "start": 17029, "end": 17043, "loc": { "start": { "line": 511, "column": 12 }, "end": { "line": 511, "column": 26 } }, "object": { "type": "Identifier", "start": 17029, "end": 17038, "loc": { "start": { "line": 511, "column": 12 }, "end": { "line": 511, "column": 21 }, "identifierName": "quadrants" }, "name": "quadrants" }, "property": { "type": "Identifier", "start": 17039, "end": 17043, "loc": { "start": { "line": 511, "column": 22 }, "end": { "line": 511, "column": 26 }, "identifierName": "push" }, "name": "push" }, "computed": false }, "arguments": [ { "type": "CallExpression", "start": 17044, "end": 17061, "loc": { "start": { "line": 511, "column": 27 }, "end": { "line": 511, "column": 44 } }, "callee": { "type": "MemberExpression", "start": 17044, "end": 17059, "loc": { "start": { "line": 511, "column": 27 }, "end": { "line": 511, "column": 42 } }, "object": { "type": "Identifier", "start": 17044, "end": 17053, "loc": { "start": { "line": 511, "column": 27 }, "end": { "line": 511, "column": 36 }, "identifierName": "quadrants" }, "name": "quadrants" }, "property": { "type": "Identifier", "start": 17054, "end": 17059, "loc": { "start": { "line": 511, "column": 37 }, "end": { "line": 511, "column": 42 }, "identifierName": "shift" }, "name": "shift" }, "computed": false }, "arguments": [] }, { "type": "CallExpression", "start": 17063, "end": 17080, "loc": { "start": { "line": 511, "column": 46 }, "end": { "line": 511, "column": 63 } }, "callee": { "type": "MemberExpression", "start": 17063, "end": 17078, "loc": { "start": { "line": 511, "column": 46 }, "end": { "line": 511, "column": 61 } }, "object": { "type": "Identifier", "start": 17063, "end": 17072, "loc": { "start": { "line": 511, "column": 46 }, "end": { "line": 511, "column": 55 }, "identifierName": "quadrants" }, "name": "quadrants" }, "property": { "type": "Identifier", "start": 17073, "end": 17078, "loc": { "start": { "line": 511, "column": 56 }, "end": { "line": 511, "column": 61 }, "identifierName": "shift" }, "name": "shift" }, "computed": false }, "arguments": [] } ] } } ], "directives": [] } }, { "type": "ReturnStatement", "start": 17103, "end": 17153, "loc": { "start": { "line": 513, "column": 8 }, "end": { "line": 513, "column": 58 } }, "argument": { "type": "NewExpression", "start": 17110, "end": 17152, "loc": { "start": { "line": 513, "column": 15 }, "end": { "line": 513, "column": 57 } }, "callee": { "type": "Identifier", "start": 17114, "end": 17129, "loc": { "start": { "line": 513, "column": 19 }, "end": { "line": 513, "column": 34 }, "identifierName": "ShapeDefinition" }, "name": "ShapeDefinition" }, "arguments": [ { "type": "ObjectExpression", "start": 17130, "end": 17151, "loc": { "start": { "line": 513, "column": 35 }, "end": { "line": 513, "column": 56 } }, "properties": [ { "type": "ObjectProperty", "start": 17132, "end": 17149, "loc": { "start": { "line": 513, "column": 37 }, "end": { "line": 513, "column": 54 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 17132, "end": 17138, "loc": { "start": { "line": 513, "column": 37 }, "end": { "line": 513, "column": 43 }, "identifierName": "layers" }, "name": "layers" }, "value": { "type": "Identifier", "start": 17140, "end": 17149, "loc": { "start": { "line": 513, "column": 45 }, "end": { "line": 513, "column": 54 }, "identifierName": "newLayers" }, "name": "newLayers" } } ] } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Returns a definition which was rotated 180 degrees\r\n * @returns {ShapeDefinition}\r\n ", "start": 16695, "end": 16801, "loc": { "start": { "line": 503, "column": 4 }, "end": { "line": 506, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Stacks the given shape definition on top.\r\n * @param {ShapeDefinition} definition\r\n ", "start": 17168, "end": 17274, "loc": { "start": { "line": 516, "column": 4 }, "end": { "line": 519, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 17280, "end": 20363, "loc": { "start": { "line": 520, "column": 4 }, "end": { "line": 585, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 17280, "end": 17297, "loc": { "start": { "line": 520, "column": 4 }, "end": { "line": 520, "column": 21 }, "identifierName": "cloneAndStackWith" }, "name": "cloneAndStackWith", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 17298, "end": 17308, "loc": { "start": { "line": 520, "column": 22 }, "end": { "line": 520, "column": 32 }, "identifierName": "definition" }, "name": "definition" } ], "body": { "type": "BlockStatement", "start": 17310, "end": 20363, "loc": { "start": { "line": 520, "column": 34 }, "end": { "line": 585, "column": 5 } }, "body": [ { "type": "IfStatement", "start": 17321, "end": 17464, "loc": { "start": { "line": 521, "column": 8 }, "end": { "line": 523, "column": 9 } }, "test": { "type": "LogicalExpression", "start": 17325, "end": 17379, "loc": { "start": { "line": 521, "column": 12 }, "end": { "line": 521, "column": 66 } }, "left": { "type": "CallExpression", "start": 17325, "end": 17347, "loc": { "start": { "line": 521, "column": 12 }, "end": { "line": 521, "column": 34 } }, "callee": { "type": "MemberExpression", "start": 17325, "end": 17345, "loc": { "start": { "line": 521, "column": 12 }, "end": { "line": 521, "column": 32 } }, "object": { "type": "ThisExpression", "start": 17325, "end": 17329, "loc": { "start": { "line": 521, "column": 12 }, "end": { "line": 521, "column": 16 } } }, "property": { "type": "Identifier", "start": 17330, "end": 17345, "loc": { "start": { "line": 521, "column": 17 }, "end": { "line": 521, "column": 32 }, "identifierName": "isEntirelyEmpty" }, "name": "isEntirelyEmpty" }, "computed": false }, "arguments": [] }, "operator": "||", "right": { "type": "CallExpression", "start": 17351, "end": 17379, "loc": { "start": { "line": 521, "column": 38 }, "end": { "line": 521, "column": 66 } }, "callee": { "type": "MemberExpression", "start": 17351, "end": 17377, "loc": { "start": { "line": 521, "column": 38 }, "end": { "line": 521, "column": 64 } }, "object": { "type": "Identifier", "start": 17351, "end": 17361, "loc": { "start": { "line": 521, "column": 38 }, "end": { "line": 521, "column": 48 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 17362, "end": 17377, "loc": { "start": { "line": 521, "column": 49 }, "end": { "line": 521, "column": 64 }, "identifierName": "isEntirelyEmpty" }, "name": "isEntirelyEmpty" }, "computed": false }, "arguments": [] } }, "consequent": { "type": "BlockStatement", "start": 17381, "end": 17464, "loc": { "start": { "line": 521, "column": 68 }, "end": { "line": 523, "column": 9 } }, "body": [ { "type": "ExpressionStatement", "start": 17396, "end": 17453, "loc": { "start": { "line": 522, "column": 12 }, "end": { "line": 522, "column": 69 } }, "expression": { "type": "CallExpression", "start": 17396, "end": 17452, "loc": { "start": { "line": 522, "column": 12 }, "end": { "line": 522, "column": 68 } }, "callee": { "type": "Identifier", "start": 17396, "end": 17402, "loc": { "start": { "line": 522, "column": 12 }, "end": { "line": 522, "column": 18 }, "identifierName": "assert" }, "name": "assert" }, "arguments": [ { "type": "BooleanLiteral", "start": 17403, "end": 17408, "loc": { "start": { "line": 522, "column": 19 }, "end": { "line": 522, "column": 24 } }, "value": false }, { "type": "StringLiteral", "start": 17410, "end": 17451, "loc": { "start": { "line": 522, "column": 26 }, "end": { "line": 522, "column": 67 } }, "extra": { "rawValue": "Can not stack entirely empty definition", "raw": "\"Can not stack entirely empty definition\"" }, "value": "Can not stack entirely empty definition" } ] } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 17476, "end": 17514, "loc": { "start": { "line": 525, "column": 8 }, "end": { "line": 525, "column": 46 } }, "declarations": [ { "type": "VariableDeclarator", "start": 17482, "end": 17513, "loc": { "start": { "line": 525, "column": 14 }, "end": { "line": 525, "column": 45 } }, "id": { "type": "Identifier", "start": 17482, "end": 17499, "loc": { "start": { "line": 525, "column": 14 }, "end": { "line": 525, "column": 31 }, "identifierName": "bottomShapeLayers" }, "name": "bottomShapeLayers" }, "init": { "type": "MemberExpression", "start": 17502, "end": 17513, "loc": { "start": { "line": 525, "column": 34 }, "end": { "line": 525, "column": 45 } }, "object": { "type": "ThisExpression", "start": 17502, "end": 17506, "loc": { "start": { "line": 525, "column": 34 }, "end": { "line": 525, "column": 38 } } }, "property": { "type": "Identifier", "start": 17507, "end": 17513, "loc": { "start": { "line": 525, "column": 39 }, "end": { "line": 525, "column": 45 }, "identifierName": "layers" }, "name": "layers" }, "computed": false } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 17524, "end": 17579, "loc": { "start": { "line": 526, "column": 8 }, "end": { "line": 526, "column": 63 } }, "declarations": [ { "type": "VariableDeclarator", "start": 17530, "end": 17578, "loc": { "start": { "line": 526, "column": 14 }, "end": { "line": 526, "column": 62 } }, "id": { "type": "Identifier", "start": 17530, "end": 17559, "loc": { "start": { "line": 526, "column": 14 }, "end": { "line": 526, "column": 43 }, "identifierName": "bottomShapeHighestLayerByQuad" }, "name": "bottomShapeHighestLayerByQuad" }, "init": { "type": "ArrayExpression", "start": 17562, "end": 17578, "loc": { "start": { "line": 526, "column": 46 }, "end": { "line": 526, "column": 62 } }, "elements": [ { "type": "UnaryExpression", "start": 17563, "end": 17565, "loc": { "start": { "line": 526, "column": 47 }, "end": { "line": 526, "column": 49 } }, "operator": "-", "prefix": true, "argument": { "type": "NumericLiteral", "start": 17564, "end": 17565, "loc": { "start": { "line": 526, "column": 48 }, "end": { "line": 526, "column": 49 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, "extra": { "parenthesizedArgument": false } }, { "type": "UnaryExpression", "start": 17567, "end": 17569, "loc": { "start": { "line": 526, "column": 51 }, "end": { "line": 526, "column": 53 } }, "operator": "-", "prefix": true, "argument": { "type": "NumericLiteral", "start": 17568, "end": 17569, "loc": { "start": { "line": 526, "column": 52 }, "end": { "line": 526, "column": 53 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, "extra": { "parenthesizedArgument": false } }, { "type": "UnaryExpression", "start": 17571, "end": 17573, "loc": { "start": { "line": 526, "column": 55 }, "end": { "line": 526, "column": 57 } }, "operator": "-", "prefix": true, "argument": { "type": "NumericLiteral", "start": 17572, "end": 17573, "loc": { "start": { "line": 526, "column": 56 }, "end": { "line": 526, "column": 57 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, "extra": { "parenthesizedArgument": false } }, { "type": "UnaryExpression", "start": 17575, "end": 17577, "loc": { "start": { "line": 526, "column": 59 }, "end": { "line": 526, "column": 61 } }, "operator": "-", "prefix": true, "argument": { "type": "NumericLiteral", "start": 17576, "end": 17577, "loc": { "start": { "line": 526, "column": 60 }, "end": { "line": 526, "column": 61 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, "extra": { "parenthesizedArgument": false } } ] } } ], "kind": "const" }, { "type": "ForStatement", "start": 17591, "end": 18024, "loc": { "start": { "line": 528, "column": 8 }, "end": { "line": 536, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 17596, "end": 17636, "loc": { "start": { "line": 528, "column": 13 }, "end": { "line": 528, "column": 53 } }, "declarations": [ { "type": "VariableDeclarator", "start": 17600, "end": 17636, "loc": { "start": { "line": 528, "column": 17 }, "end": { "line": 528, "column": 53 } }, "id": { "type": "Identifier", "start": 17600, "end": 17605, "loc": { "start": { "line": 528, "column": 17 }, "end": { "line": 528, "column": 22 }, "identifierName": "layer" }, "name": "layer" }, "init": { "type": "BinaryExpression", "start": 17608, "end": 17636, "loc": { "start": { "line": 528, "column": 25 }, "end": { "line": 528, "column": 53 } }, "left": { "type": "MemberExpression", "start": 17608, "end": 17632, "loc": { "start": { "line": 528, "column": 25 }, "end": { "line": 528, "column": 49 } }, "object": { "type": "Identifier", "start": 17608, "end": 17625, "loc": { "start": { "line": 528, "column": 25 }, "end": { "line": 528, "column": 42 }, "identifierName": "bottomShapeLayers" }, "name": "bottomShapeLayers" }, "property": { "type": "Identifier", "start": 17626, "end": 17632, "loc": { "start": { "line": 528, "column": 43 }, "end": { "line": 528, "column": 49 }, "identifierName": "length" }, "name": "length" }, "computed": false }, "operator": "-", "right": { "type": "NumericLiteral", "start": 17635, "end": 17636, "loc": { "start": { "line": 528, "column": 52 }, "end": { "line": 528, "column": 53 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 17638, "end": 17648, "loc": { "start": { "line": 528, "column": 55 }, "end": { "line": 528, "column": 65 } }, "left": { "type": "Identifier", "start": 17638, "end": 17643, "loc": { "start": { "line": 528, "column": 55 }, "end": { "line": 528, "column": 60 }, "identifierName": "layer" }, "name": "layer" }, "operator": ">=", "right": { "type": "NumericLiteral", "start": 17647, "end": 17648, "loc": { "start": { "line": 528, "column": 64 }, "end": { "line": 528, "column": 65 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } }, "update": { "type": "UpdateExpression", "start": 17650, "end": 17657, "loc": { "start": { "line": 528, "column": 67 }, "end": { "line": 528, "column": 74 } }, "operator": "--", "prefix": true, "argument": { "type": "Identifier", "start": 17652, "end": 17657, "loc": { "start": { "line": 528, "column": 69 }, "end": { "line": 528, "column": 74 }, "identifierName": "layer" }, "name": "layer" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 17659, "end": 18024, "loc": { "start": { "line": 528, "column": 76 }, "end": { "line": 536, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 17674, "end": 17718, "loc": { "start": { "line": 529, "column": 12 }, "end": { "line": 529, "column": 56 } }, "declarations": [ { "type": "VariableDeclarator", "start": 17680, "end": 17717, "loc": { "start": { "line": 529, "column": 18 }, "end": { "line": 529, "column": 55 } }, "id": { "type": "Identifier", "start": 17680, "end": 17690, "loc": { "start": { "line": 529, "column": 18 }, "end": { "line": 529, "column": 28 }, "identifierName": "shapeLayer" }, "name": "shapeLayer" }, "init": { "type": "MemberExpression", "start": 17693, "end": 17717, "loc": { "start": { "line": 529, "column": 31 }, "end": { "line": 529, "column": 55 } }, "object": { "type": "Identifier", "start": 17693, "end": 17710, "loc": { "start": { "line": 529, "column": 31 }, "end": { "line": 529, "column": 48 }, "identifierName": "bottomShapeLayers" }, "name": "bottomShapeLayers" }, "property": { "type": "Identifier", "start": 17711, "end": 17716, "loc": { "start": { "line": 529, "column": 49 }, "end": { "line": 529, "column": 54 }, "identifierName": "layer" }, "name": "layer" }, "computed": true } } ], "kind": "const" }, { "type": "ForStatement", "start": 17732, "end": 18013, "loc": { "start": { "line": 530, "column": 12 }, "end": { "line": 535, "column": 13 } }, "init": { "type": "VariableDeclaration", "start": 17737, "end": 17749, "loc": { "start": { "line": 530, "column": 17 }, "end": { "line": 530, "column": 29 } }, "declarations": [ { "type": "VariableDeclarator", "start": 17741, "end": 17749, "loc": { "start": { "line": 530, "column": 21 }, "end": { "line": 530, "column": 29 } }, "id": { "type": "Identifier", "start": 17741, "end": 17745, "loc": { "start": { "line": 530, "column": 21 }, "end": { "line": 530, "column": 25 }, "identifierName": "quad" }, "name": "quad" }, "init": { "type": "NumericLiteral", "start": 17748, "end": 17749, "loc": { "start": { "line": 530, "column": 28 }, "end": { "line": 530, "column": 29 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 17751, "end": 17759, "loc": { "start": { "line": 530, "column": 31 }, "end": { "line": 530, "column": 39 } }, "left": { "type": "Identifier", "start": 17751, "end": 17755, "loc": { "start": { "line": 530, "column": 31 }, "end": { "line": 530, "column": 35 }, "identifierName": "quad" }, "name": "quad" }, "operator": "<", "right": { "type": "NumericLiteral", "start": 17758, "end": 17759, "loc": { "start": { "line": 530, "column": 38 }, "end": { "line": 530, "column": 39 } }, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 } }, "update": { "type": "UpdateExpression", "start": 17761, "end": 17767, "loc": { "start": { "line": 530, "column": 41 }, "end": { "line": 530, "column": 47 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 17763, "end": 17767, "loc": { "start": { "line": 530, "column": 43 }, "end": { "line": 530, "column": 47 }, "identifierName": "quad" }, "name": "quad" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 17769, "end": 18013, "loc": { "start": { "line": 530, "column": 49 }, "end": { "line": 535, "column": 13 } }, "body": [ { "type": "VariableDeclaration", "start": 17788, "end": 17823, "loc": { "start": { "line": 531, "column": 16 }, "end": { "line": 531, "column": 51 } }, "declarations": [ { "type": "VariableDeclarator", "start": 17794, "end": 17822, "loc": { "start": { "line": 531, "column": 22 }, "end": { "line": 531, "column": 50 } }, "id": { "type": "Identifier", "start": 17794, "end": 17803, "loc": { "start": { "line": 531, "column": 22 }, "end": { "line": 531, "column": 31 }, "identifierName": "shapeQuad" }, "name": "shapeQuad" }, "init": { "type": "MemberExpression", "start": 17806, "end": 17822, "loc": { "start": { "line": 531, "column": 34 }, "end": { "line": 531, "column": 50 } }, "object": { "type": "Identifier", "start": 17806, "end": 17816, "loc": { "start": { "line": 531, "column": 34 }, "end": { "line": 531, "column": 44 }, "identifierName": "shapeLayer" }, "name": "shapeLayer" }, "property": { "type": "Identifier", "start": 17817, "end": 17821, "loc": { "start": { "line": 531, "column": 45 }, "end": { "line": 531, "column": 49 }, "identifierName": "quad" }, "name": "quad" }, "computed": true } } ], "kind": "const" }, { "type": "IfStatement", "start": 17841, "end": 17998, "loc": { "start": { "line": 532, "column": 16 }, "end": { "line": 534, "column": 17 } }, "test": { "type": "LogicalExpression", "start": 17845, "end": 17910, "loc": { "start": { "line": 532, "column": 20 }, "end": { "line": 532, "column": 85 } }, "left": { "type": "BinaryExpression", "start": 17845, "end": 17863, "loc": { "start": { "line": 532, "column": 20 }, "end": { "line": 532, "column": 38 } }, "left": { "type": "Identifier", "start": 17845, "end": 17854, "loc": { "start": { "line": 532, "column": 20 }, "end": { "line": 532, "column": 29 }, "identifierName": "shapeQuad" }, "name": "shapeQuad" }, "operator": "!==", "right": { "type": "NullLiteral", "start": 17859, "end": 17863, "loc": { "start": { "line": 532, "column": 34 }, "end": { "line": 532, "column": 38 } } } }, "operator": "&&", "right": { "type": "BinaryExpression", "start": 17867, "end": 17910, "loc": { "start": { "line": 532, "column": 42 }, "end": { "line": 532, "column": 85 } }, "left": { "type": "MemberExpression", "start": 17867, "end": 17902, "loc": { "start": { "line": 532, "column": 42 }, "end": { "line": 532, "column": 77 } }, "object": { "type": "Identifier", "start": 17867, "end": 17896, "loc": { "start": { "line": 532, "column": 42 }, "end": { "line": 532, "column": 71 }, "identifierName": "bottomShapeHighestLayerByQuad" }, "name": "bottomShapeHighestLayerByQuad" }, "property": { "type": "Identifier", "start": 17897, "end": 17901, "loc": { "start": { "line": 532, "column": 72 }, "end": { "line": 532, "column": 76 }, "identifierName": "quad" }, "name": "quad" }, "computed": true }, "operator": "<", "right": { "type": "Identifier", "start": 17905, "end": 17910, "loc": { "start": { "line": 532, "column": 80 }, "end": { "line": 532, "column": 85 }, "identifierName": "layer" }, "name": "layer" } } }, "consequent": { "type": "BlockStatement", "start": 17912, "end": 17998, "loc": { "start": { "line": 532, "column": 87 }, "end": { "line": 534, "column": 17 } }, "body": [ { "type": "ExpressionStatement", "start": 17935, "end": 17979, "loc": { "start": { "line": 533, "column": 20 }, "end": { "line": 533, "column": 64 } }, "expression": { "type": "AssignmentExpression", "start": 17935, "end": 17978, "loc": { "start": { "line": 533, "column": 20 }, "end": { "line": 533, "column": 63 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 17935, "end": 17970, "loc": { "start": { "line": 533, "column": 20 }, "end": { "line": 533, "column": 55 } }, "object": { "type": "Identifier", "start": 17935, "end": 17964, "loc": { "start": { "line": 533, "column": 20 }, "end": { "line": 533, "column": 49 }, "identifierName": "bottomShapeHighestLayerByQuad" }, "name": "bottomShapeHighestLayerByQuad" }, "property": { "type": "Identifier", "start": 17965, "end": 17969, "loc": { "start": { "line": 533, "column": 50 }, "end": { "line": 533, "column": 54 }, "identifierName": "quad" }, "name": "quad" }, "computed": true }, "right": { "type": "Identifier", "start": 17973, "end": 17978, "loc": { "start": { "line": 533, "column": 58 }, "end": { "line": 533, "column": 63 }, "identifierName": "layer" }, "name": "layer" } } } ], "directives": [] }, "alternate": null } ], "directives": [] } } ], "directives": [] } }, { "type": "VariableDeclaration", "start": 18036, "end": 18077, "loc": { "start": { "line": 538, "column": 8 }, "end": { "line": 538, "column": 49 } }, "declarations": [ { "type": "VariableDeclarator", "start": 18042, "end": 18076, "loc": { "start": { "line": 538, "column": 14 }, "end": { "line": 538, "column": 48 } }, "id": { "type": "Identifier", "start": 18042, "end": 18056, "loc": { "start": { "line": 538, "column": 14 }, "end": { "line": 538, "column": 28 }, "identifierName": "topShapeLayers" }, "name": "topShapeLayers" }, "init": { "type": "MemberExpression", "start": 18059, "end": 18076, "loc": { "start": { "line": 538, "column": 31 }, "end": { "line": 538, "column": 48 } }, "object": { "type": "Identifier", "start": 18059, "end": 18069, "loc": { "start": { "line": 538, "column": 31 }, "end": { "line": 538, "column": 41 }, "identifierName": "definition" }, "name": "definition" }, "property": { "type": "Identifier", "start": 18070, "end": 18076, "loc": { "start": { "line": 538, "column": 42 }, "end": { "line": 538, "column": 48 }, "identifierName": "layers" }, "name": "layers" }, "computed": false } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 18087, "end": 18134, "loc": { "start": { "line": 539, "column": 8 }, "end": { "line": 539, "column": 55 } }, "declarations": [ { "type": "VariableDeclarator", "start": 18093, "end": 18133, "loc": { "start": { "line": 539, "column": 14 }, "end": { "line": 539, "column": 54 } }, "id": { "type": "Identifier", "start": 18093, "end": 18118, "loc": { "start": { "line": 539, "column": 14 }, "end": { "line": 539, "column": 39 }, "identifierName": "topShapeLowestLayerByQuad" }, "name": "topShapeLowestLayerByQuad" }, "init": { "type": "ArrayExpression", "start": 18121, "end": 18133, "loc": { "start": { "line": 539, "column": 42 }, "end": { "line": 539, "column": 54 } }, "elements": [ { "type": "NumericLiteral", "start": 18122, "end": 18123, "loc": { "start": { "line": 539, "column": 43 }, "end": { "line": 539, "column": 44 } }, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 }, { "type": "NumericLiteral", "start": 18125, "end": 18126, "loc": { "start": { "line": 539, "column": 46 }, "end": { "line": 539, "column": 47 } }, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 }, { "type": "NumericLiteral", "start": 18128, "end": 18129, "loc": { "start": { "line": 539, "column": 49 }, "end": { "line": 539, "column": 50 } }, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 }, { "type": "NumericLiteral", "start": 18131, "end": 18132, "loc": { "start": { "line": 539, "column": 52 }, "end": { "line": 539, "column": 53 } }, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 } ] } } ], "kind": "const" }, { "type": "ForStatement", "start": 18146, "end": 18560, "loc": { "start": { "line": 541, "column": 8 }, "end": { "line": 549, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 18151, "end": 18164, "loc": { "start": { "line": 541, "column": 13 }, "end": { "line": 541, "column": 26 } }, "declarations": [ { "type": "VariableDeclarator", "start": 18155, "end": 18164, "loc": { "start": { "line": 541, "column": 17 }, "end": { "line": 541, "column": 26 } }, "id": { "type": "Identifier", "start": 18155, "end": 18160, "loc": { "start": { "line": 541, "column": 17 }, "end": { "line": 541, "column": 22 }, "identifierName": "layer" }, "name": "layer" }, "init": { "type": "NumericLiteral", "start": 18163, "end": 18164, "loc": { "start": { "line": 541, "column": 25 }, "end": { "line": 541, "column": 26 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 18166, "end": 18195, "loc": { "start": { "line": 541, "column": 28 }, "end": { "line": 541, "column": 57 } }, "left": { "type": "Identifier", "start": 18166, "end": 18171, "loc": { "start": { "line": 541, "column": 28 }, "end": { "line": 541, "column": 33 }, "identifierName": "layer" }, "name": "layer" }, "operator": "<", "right": { "type": "MemberExpression", "start": 18174, "end": 18195, "loc": { "start": { "line": 541, "column": 36 }, "end": { "line": 541, "column": 57 } }, "object": { "type": "Identifier", "start": 18174, "end": 18188, "loc": { "start": { "line": 541, "column": 36 }, "end": { "line": 541, "column": 50 }, "identifierName": "topShapeLayers" }, "name": "topShapeLayers" }, "property": { "type": "Identifier", "start": 18189, "end": 18195, "loc": { "start": { "line": 541, "column": 51 }, "end": { "line": 541, "column": 57 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 18197, "end": 18204, "loc": { "start": { "line": 541, "column": 59 }, "end": { "line": 541, "column": 66 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 18199, "end": 18204, "loc": { "start": { "line": 541, "column": 61 }, "end": { "line": 541, "column": 66 }, "identifierName": "layer" }, "name": "layer" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 18206, "end": 18560, "loc": { "start": { "line": 541, "column": 68 }, "end": { "line": 549, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 18221, "end": 18262, "loc": { "start": { "line": 542, "column": 12 }, "end": { "line": 542, "column": 53 } }, "declarations": [ { "type": "VariableDeclarator", "start": 18227, "end": 18261, "loc": { "start": { "line": 542, "column": 18 }, "end": { "line": 542, "column": 52 } }, "id": { "type": "Identifier", "start": 18227, "end": 18237, "loc": { "start": { "line": 542, "column": 18 }, "end": { "line": 542, "column": 28 }, "identifierName": "shapeLayer" }, "name": "shapeLayer" }, "init": { "type": "MemberExpression", "start": 18240, "end": 18261, "loc": { "start": { "line": 542, "column": 31 }, "end": { "line": 542, "column": 52 } }, "object": { "type": "Identifier", "start": 18240, "end": 18254, "loc": { "start": { "line": 542, "column": 31 }, "end": { "line": 542, "column": 45 }, "identifierName": "topShapeLayers" }, "name": "topShapeLayers" }, "property": { "type": "Identifier", "start": 18255, "end": 18260, "loc": { "start": { "line": 542, "column": 46 }, "end": { "line": 542, "column": 51 }, "identifierName": "layer" }, "name": "layer" }, "computed": true } } ], "kind": "const" }, { "type": "ForStatement", "start": 18276, "end": 18549, "loc": { "start": { "line": 543, "column": 12 }, "end": { "line": 548, "column": 13 } }, "init": { "type": "VariableDeclaration", "start": 18281, "end": 18293, "loc": { "start": { "line": 543, "column": 17 }, "end": { "line": 543, "column": 29 } }, "declarations": [ { "type": "VariableDeclarator", "start": 18285, "end": 18293, "loc": { "start": { "line": 543, "column": 21 }, "end": { "line": 543, "column": 29 } }, "id": { "type": "Identifier", "start": 18285, "end": 18289, "loc": { "start": { "line": 543, "column": 21 }, "end": { "line": 543, "column": 25 }, "identifierName": "quad" }, "name": "quad" }, "init": { "type": "NumericLiteral", "start": 18292, "end": 18293, "loc": { "start": { "line": 543, "column": 28 }, "end": { "line": 543, "column": 29 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 18295, "end": 18303, "loc": { "start": { "line": 543, "column": 31 }, "end": { "line": 543, "column": 39 } }, "left": { "type": "Identifier", "start": 18295, "end": 18299, "loc": { "start": { "line": 543, "column": 31 }, "end": { "line": 543, "column": 35 }, "identifierName": "quad" }, "name": "quad" }, "operator": "<", "right": { "type": "NumericLiteral", "start": 18302, "end": 18303, "loc": { "start": { "line": 543, "column": 38 }, "end": { "line": 543, "column": 39 } }, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 } }, "update": { "type": "UpdateExpression", "start": 18305, "end": 18311, "loc": { "start": { "line": 543, "column": 41 }, "end": { "line": 543, "column": 47 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 18307, "end": 18311, "loc": { "start": { "line": 543, "column": 43 }, "end": { "line": 543, "column": 47 }, "identifierName": "quad" }, "name": "quad" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 18313, "end": 18549, "loc": { "start": { "line": 543, "column": 49 }, "end": { "line": 548, "column": 13 } }, "body": [ { "type": "VariableDeclaration", "start": 18332, "end": 18367, "loc": { "start": { "line": 544, "column": 16 }, "end": { "line": 544, "column": 51 } }, "declarations": [ { "type": "VariableDeclarator", "start": 18338, "end": 18366, "loc": { "start": { "line": 544, "column": 22 }, "end": { "line": 544, "column": 50 } }, "id": { "type": "Identifier", "start": 18338, "end": 18347, "loc": { "start": { "line": 544, "column": 22 }, "end": { "line": 544, "column": 31 }, "identifierName": "shapeQuad" }, "name": "shapeQuad" }, "init": { "type": "MemberExpression", "start": 18350, "end": 18366, "loc": { "start": { "line": 544, "column": 34 }, "end": { "line": 544, "column": 50 } }, "object": { "type": "Identifier", "start": 18350, "end": 18360, "loc": { "start": { "line": 544, "column": 34 }, "end": { "line": 544, "column": 44 }, "identifierName": "shapeLayer" }, "name": "shapeLayer" }, "property": { "type": "Identifier", "start": 18361, "end": 18365, "loc": { "start": { "line": 544, "column": 45 }, "end": { "line": 544, "column": 49 }, "identifierName": "quad" }, "name": "quad" }, "computed": true } } ], "kind": "const" }, { "type": "IfStatement", "start": 18385, "end": 18534, "loc": { "start": { "line": 545, "column": 16 }, "end": { "line": 547, "column": 17 } }, "test": { "type": "LogicalExpression", "start": 18389, "end": 18450, "loc": { "start": { "line": 545, "column": 20 }, "end": { "line": 545, "column": 81 } }, "left": { "type": "BinaryExpression", "start": 18389, "end": 18407, "loc": { "start": { "line": 545, "column": 20 }, "end": { "line": 545, "column": 38 } }, "left": { "type": "Identifier", "start": 18389, "end": 18398, "loc": { "start": { "line": 545, "column": 20 }, "end": { "line": 545, "column": 29 }, "identifierName": "shapeQuad" }, "name": "shapeQuad" }, "operator": "!==", "right": { "type": "NullLiteral", "start": 18403, "end": 18407, "loc": { "start": { "line": 545, "column": 34 }, "end": { "line": 545, "column": 38 } } } }, "operator": "&&", "right": { "type": "BinaryExpression", "start": 18411, "end": 18450, "loc": { "start": { "line": 545, "column": 42 }, "end": { "line": 545, "column": 81 } }, "left": { "type": "MemberExpression", "start": 18411, "end": 18442, "loc": { "start": { "line": 545, "column": 42 }, "end": { "line": 545, "column": 73 } }, "object": { "type": "Identifier", "start": 18411, "end": 18436, "loc": { "start": { "line": 545, "column": 42 }, "end": { "line": 545, "column": 67 }, "identifierName": "topShapeLowestLayerByQuad" }, "name": "topShapeLowestLayerByQuad" }, "property": { "type": "Identifier", "start": 18437, "end": 18441, "loc": { "start": { "line": 545, "column": 68 }, "end": { "line": 545, "column": 72 }, "identifierName": "quad" }, "name": "quad" }, "computed": true }, "operator": ">", "right": { "type": "Identifier", "start": 18445, "end": 18450, "loc": { "start": { "line": 545, "column": 76 }, "end": { "line": 545, "column": 81 }, "identifierName": "layer" }, "name": "layer" } } }, "consequent": { "type": "BlockStatement", "start": 18452, "end": 18534, "loc": { "start": { "line": 545, "column": 83 }, "end": { "line": 547, "column": 17 } }, "body": [ { "type": "ExpressionStatement", "start": 18475, "end": 18515, "loc": { "start": { "line": 546, "column": 20 }, "end": { "line": 546, "column": 60 } }, "expression": { "type": "AssignmentExpression", "start": 18475, "end": 18514, "loc": { "start": { "line": 546, "column": 20 }, "end": { "line": 546, "column": 59 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 18475, "end": 18506, "loc": { "start": { "line": 546, "column": 20 }, "end": { "line": 546, "column": 51 } }, "object": { "type": "Identifier", "start": 18475, "end": 18500, "loc": { "start": { "line": 546, "column": 20 }, "end": { "line": 546, "column": 45 }, "identifierName": "topShapeLowestLayerByQuad" }, "name": "topShapeLowestLayerByQuad" }, "property": { "type": "Identifier", "start": 18501, "end": 18505, "loc": { "start": { "line": 546, "column": 46 }, "end": { "line": 546, "column": 50 }, "identifierName": "quad" }, "name": "quad" }, "computed": true }, "right": { "type": "Identifier", "start": 18509, "end": 18514, "loc": { "start": { "line": 546, "column": 54 }, "end": { "line": 546, "column": 59 }, "identifierName": "layer" }, "name": "layer" } } } ], "directives": [] }, "alternate": null } ], "directives": [] } } ], "directives": [], "trailingComments": null }, "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * We want to find the number `layerToMergeAt` such that when the top shape is placed at that\r\n * layer, the smallest gap between shapes is only 1. Instead of doing a guess-and-check method to\r\n * find the appropriate layer, we just calculate all the gaps assuming a merge at layer 0, even\r\n * though they go negative, and calculating the number to add to it so the minimum gap is 1 (ends\r\n * up being 1 - minimum).\r\n ", "start": 18572, "end": 19045, "loc": { "start": { "line": 551, "column": 8 }, "end": { "line": 557, "column": 11 } } } ] }, { "type": "VariableDeclaration", "start": 19055, "end": 19084, "loc": { "start": { "line": 558, "column": 8 }, "end": { "line": 558, "column": 37 } }, "declarations": [ { "type": "VariableDeclarator", "start": 19061, "end": 19083, "loc": { "start": { "line": 558, "column": 14 }, "end": { "line": 558, "column": 36 } }, "id": { "type": "Identifier", "start": 19061, "end": 19078, "loc": { "start": { "line": 558, "column": 14 }, "end": { "line": 558, "column": 31 }, "identifierName": "gapsBetweenShapes" }, "name": "gapsBetweenShapes", "leadingComments": null }, "init": { "type": "ArrayExpression", "start": 19081, "end": 19083, "loc": { "start": { "line": 558, "column": 34 }, "end": { "line": 558, "column": 36 } }, "elements": [] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * We want to find the number `layerToMergeAt` such that when the top shape is placed at that\r\n * layer, the smallest gap between shapes is only 1. Instead of doing a guess-and-check method to\r\n * find the appropriate layer, we just calculate all the gaps assuming a merge at layer 0, even\r\n * though they go negative, and calculating the number to add to it so the minimum gap is 1 (ends\r\n * up being 1 - minimum).\r\n ", "start": 18572, "end": 19045, "loc": { "start": { "line": 551, "column": 8 }, "end": { "line": 557, "column": 11 } } } ] }, { "type": "ForStatement", "start": 19094, "end": 19251, "loc": { "start": { "line": 559, "column": 8 }, "end": { "line": 561, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 19099, "end": 19111, "loc": { "start": { "line": 559, "column": 13 }, "end": { "line": 559, "column": 25 } }, "declarations": [ { "type": "VariableDeclarator", "start": 19103, "end": 19111, "loc": { "start": { "line": 559, "column": 17 }, "end": { "line": 559, "column": 25 } }, "id": { "type": "Identifier", "start": 19103, "end": 19107, "loc": { "start": { "line": 559, "column": 17 }, "end": { "line": 559, "column": 21 }, "identifierName": "quad" }, "name": "quad" }, "init": { "type": "NumericLiteral", "start": 19110, "end": 19111, "loc": { "start": { "line": 559, "column": 24 }, "end": { "line": 559, "column": 25 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 19113, "end": 19121, "loc": { "start": { "line": 559, "column": 27 }, "end": { "line": 559, "column": 35 } }, "left": { "type": "Identifier", "start": 19113, "end": 19117, "loc": { "start": { "line": 559, "column": 27 }, "end": { "line": 559, "column": 31 }, "identifierName": "quad" }, "name": "quad" }, "operator": "<", "right": { "type": "NumericLiteral", "start": 19120, "end": 19121, "loc": { "start": { "line": 559, "column": 34 }, "end": { "line": 559, "column": 35 } }, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 } }, "update": { "type": "UpdateExpression", "start": 19123, "end": 19129, "loc": { "start": { "line": 559, "column": 37 }, "end": { "line": 559, "column": 43 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 19125, "end": 19129, "loc": { "start": { "line": 559, "column": 39 }, "end": { "line": 559, "column": 43 }, "identifierName": "quad" }, "name": "quad" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 19131, "end": 19251, "loc": { "start": { "line": 559, "column": 45 }, "end": { "line": 561, "column": 9 } }, "body": [ { "type": "ExpressionStatement", "start": 19146, "end": 19240, "loc": { "start": { "line": 560, "column": 12 }, "end": { "line": 560, "column": 106 } }, "expression": { "type": "CallExpression", "start": 19146, "end": 19239, "loc": { "start": { "line": 560, "column": 12 }, "end": { "line": 560, "column": 105 } }, "callee": { "type": "MemberExpression", "start": 19146, "end": 19168, "loc": { "start": { "line": 560, "column": 12 }, "end": { "line": 560, "column": 34 } }, "object": { "type": "Identifier", "start": 19146, "end": 19163, "loc": { "start": { "line": 560, "column": 12 }, "end": { "line": 560, "column": 29 }, "identifierName": "gapsBetweenShapes" }, "name": "gapsBetweenShapes" }, "property": { "type": "Identifier", "start": 19164, "end": 19168, "loc": { "start": { "line": 560, "column": 30 }, "end": { "line": 560, "column": 34 }, "identifierName": "push" }, "name": "push" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 19169, "end": 19238, "loc": { "start": { "line": 560, "column": 35 }, "end": { "line": 560, "column": 104 } }, "left": { "type": "MemberExpression", "start": 19169, "end": 19200, "loc": { "start": { "line": 560, "column": 35 }, "end": { "line": 560, "column": 66 } }, "object": { "type": "Identifier", "start": 19169, "end": 19194, "loc": { "start": { "line": 560, "column": 35 }, "end": { "line": 560, "column": 60 }, "identifierName": "topShapeLowestLayerByQuad" }, "name": "topShapeLowestLayerByQuad" }, "property": { "type": "Identifier", "start": 19195, "end": 19199, "loc": { "start": { "line": 560, "column": 61 }, "end": { "line": 560, "column": 65 }, "identifierName": "quad" }, "name": "quad" }, "computed": true }, "operator": "-", "right": { "type": "MemberExpression", "start": 19203, "end": 19238, "loc": { "start": { "line": 560, "column": 69 }, "end": { "line": 560, "column": 104 } }, "object": { "type": "Identifier", "start": 19203, "end": 19232, "loc": { "start": { "line": 560, "column": 69 }, "end": { "line": 560, "column": 98 }, "identifierName": "bottomShapeHighestLayerByQuad" }, "name": "bottomShapeHighestLayerByQuad" }, "property": { "type": "Identifier", "start": 19233, "end": 19237, "loc": { "start": { "line": 560, "column": 99 }, "end": { "line": 560, "column": 103 }, "identifierName": "quad" }, "name": "quad" }, "computed": true } } ] } } ], "directives": [] } }, { "type": "VariableDeclaration", "start": 19261, "end": 19325, "loc": { "start": { "line": 562, "column": 8 }, "end": { "line": 562, "column": 72 } }, "declarations": [ { "type": "VariableDeclarator", "start": 19267, "end": 19324, "loc": { "start": { "line": 562, "column": 14 }, "end": { "line": 562, "column": 71 } }, "id": { "type": "Identifier", "start": 19267, "end": 19291, "loc": { "start": { "line": 562, "column": 14 }, "end": { "line": 562, "column": 38 }, "identifierName": "smallestGapBetweenShapes" }, "name": "smallestGapBetweenShapes" }, "init": { "type": "CallExpression", "start": 19294, "end": 19324, "loc": { "start": { "line": 562, "column": 41 }, "end": { "line": 562, "column": 71 } }, "callee": { "type": "MemberExpression", "start": 19294, "end": 19302, "loc": { "start": { "line": 562, "column": 41 }, "end": { "line": 562, "column": 49 } }, "object": { "type": "Identifier", "start": 19294, "end": 19298, "loc": { "start": { "line": 562, "column": 41 }, "end": { "line": 562, "column": 45 }, "identifierName": "Math" }, "name": "Math" }, "property": { "type": "Identifier", "start": 19299, "end": 19302, "loc": { "start": { "line": 562, "column": 46 }, "end": { "line": 562, "column": 49 }, "identifierName": "min" }, "name": "min" }, "computed": false }, "arguments": [ { "type": "SpreadElement", "start": 19303, "end": 19323, "loc": { "start": { "line": 562, "column": 50 }, "end": { "line": 562, "column": 70 } }, "argument": { "type": "Identifier", "start": 19306, "end": 19323, "loc": { "start": { "line": 562, "column": 53 }, "end": { "line": 562, "column": 70 }, "identifierName": "gapsBetweenShapes" }, "name": "gapsBetweenShapes" } } ] } } ], "kind": "const", "trailingComments": [ { "type": "CommentLine", "value": " Can't merge at a layer lower than 0", "start": 19335, "end": 19373, "loc": { "start": { "line": 563, "column": 8 }, "end": { "line": 563, "column": 46 } } } ] }, { "type": "VariableDeclaration", "start": 19383, "end": 19448, "loc": { "start": { "line": 564, "column": 8 }, "end": { "line": 564, "column": 73 } }, "declarations": [ { "type": "VariableDeclarator", "start": 19389, "end": 19447, "loc": { "start": { "line": 564, "column": 14 }, "end": { "line": 564, "column": 72 } }, "id": { "type": "Identifier", "start": 19389, "end": 19403, "loc": { "start": { "line": 564, "column": 14 }, "end": { "line": 564, "column": 28 }, "identifierName": "layerToMergeAt" }, "name": "layerToMergeAt", "leadingComments": null }, "init": { "type": "CallExpression", "start": 19406, "end": 19447, "loc": { "start": { "line": 564, "column": 31 }, "end": { "line": 564, "column": 72 } }, "callee": { "type": "MemberExpression", "start": 19406, "end": 19414, "loc": { "start": { "line": 564, "column": 31 }, "end": { "line": 564, "column": 39 } }, "object": { "type": "Identifier", "start": 19406, "end": 19410, "loc": { "start": { "line": 564, "column": 31 }, "end": { "line": 564, "column": 35 }, "identifierName": "Math" }, "name": "Math" }, "property": { "type": "Identifier", "start": 19411, "end": 19414, "loc": { "start": { "line": 564, "column": 36 }, "end": { "line": 564, "column": 39 }, "identifierName": "max" }, "name": "max" }, "computed": false }, "arguments": [ { "type": "BinaryExpression", "start": 19415, "end": 19443, "loc": { "start": { "line": 564, "column": 40 }, "end": { "line": 564, "column": 68 } }, "left": { "type": "NumericLiteral", "start": 19415, "end": 19416, "loc": { "start": { "line": 564, "column": 40 }, "end": { "line": 564, "column": 41 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, "operator": "-", "right": { "type": "Identifier", "start": 19419, "end": 19443, "loc": { "start": { "line": 564, "column": 44 }, "end": { "line": 564, "column": 68 }, "identifierName": "smallestGapBetweenShapes" }, "name": "smallestGapBetweenShapes" } }, { "type": "NumericLiteral", "start": 19445, "end": 19446, "loc": { "start": { "line": 564, "column": 70 }, "end": { "line": 564, "column": 71 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } ] }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": " Can't merge at a layer lower than 0", "start": 19335, "end": 19373, "loc": { "start": { "line": 563, "column": 8 }, "end": { "line": 563, "column": 46 } } } ] }, { "type": "VariableDeclaration", "start": 19460, "end": 19508, "loc": { "start": { "line": 566, "column": 8 }, "end": { "line": 566, "column": 56 } }, "declarations": [ { "type": "VariableDeclarator", "start": 19466, "end": 19507, "loc": { "start": { "line": 566, "column": 14 }, "end": { "line": 566, "column": 55 } }, "id": { "type": "Identifier", "start": 19466, "end": 19478, "loc": { "start": { "line": 566, "column": 14 }, "end": { "line": 566, "column": 26 }, "identifierName": "mergedLayers" }, "name": "mergedLayers" }, "init": { "type": "CallExpression", "start": 19481, "end": 19507, "loc": { "start": { "line": 566, "column": 29 }, "end": { "line": 566, "column": 55 } }, "callee": { "type": "MemberExpression", "start": 19481, "end": 19505, "loc": { "start": { "line": 566, "column": 29 }, "end": { "line": 566, "column": 53 } }, "object": { "type": "ThisExpression", "start": 19481, "end": 19485, "loc": { "start": { "line": 566, "column": 29 }, "end": { "line": 566, "column": 33 } } }, "property": { "type": "Identifier", "start": 19486, "end": 19505, "loc": { "start": { "line": 566, "column": 34 }, "end": { "line": 566, "column": 53 }, "identifierName": "internalCloneLayers" }, "name": "internalCloneLayers" }, "computed": false }, "arguments": [] } } ], "kind": "const" }, { "type": "ForStatement", "start": 19518, "end": 19683, "loc": { "start": { "line": 567, "column": 8 }, "end": { "line": 569, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 19523, "end": 19554, "loc": { "start": { "line": 567, "column": 13 }, "end": { "line": 567, "column": 44 } }, "declarations": [ { "type": "VariableDeclarator", "start": 19527, "end": 19554, "loc": { "start": { "line": 567, "column": 17 }, "end": { "line": 567, "column": 44 } }, "id": { "type": "Identifier", "start": 19527, "end": 19532, "loc": { "start": { "line": 567, "column": 17 }, "end": { "line": 567, "column": 22 }, "identifierName": "layer" }, "name": "layer" }, "init": { "type": "MemberExpression", "start": 19535, "end": 19554, "loc": { "start": { "line": 567, "column": 25 }, "end": { "line": 567, "column": 44 } }, "object": { "type": "Identifier", "start": 19535, "end": 19547, "loc": { "start": { "line": 567, "column": 25 }, "end": { "line": 567, "column": 37 }, "identifierName": "mergedLayers" }, "name": "mergedLayers" }, "property": { "type": "Identifier", "start": 19548, "end": 19554, "loc": { "start": { "line": 567, "column": 38 }, "end": { "line": 567, "column": 44 }, "identifierName": "length" }, "name": "length" }, "computed": false } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 19556, "end": 19602, "loc": { "start": { "line": 567, "column": 46 }, "end": { "line": 567, "column": 92 } }, "left": { "type": "Identifier", "start": 19556, "end": 19561, "loc": { "start": { "line": 567, "column": 46 }, "end": { "line": 567, "column": 51 }, "identifierName": "layer" }, "name": "layer" }, "operator": "<", "right": { "type": "BinaryExpression", "start": 19564, "end": 19602, "loc": { "start": { "line": 567, "column": 54 }, "end": { "line": 567, "column": 92 } }, "left": { "type": "Identifier", "start": 19564, "end": 19578, "loc": { "start": { "line": 567, "column": 54 }, "end": { "line": 567, "column": 68 }, "identifierName": "layerToMergeAt" }, "name": "layerToMergeAt" }, "operator": "+", "right": { "type": "MemberExpression", "start": 19581, "end": 19602, "loc": { "start": { "line": 567, "column": 71 }, "end": { "line": 567, "column": 92 } }, "object": { "type": "Identifier", "start": 19581, "end": 19595, "loc": { "start": { "line": 567, "column": 71 }, "end": { "line": 567, "column": 85 }, "identifierName": "topShapeLayers" }, "name": "topShapeLayers" }, "property": { "type": "Identifier", "start": 19596, "end": 19602, "loc": { "start": { "line": 567, "column": 86 }, "end": { "line": 567, "column": 92 }, "identifierName": "length" }, "name": "length" }, "computed": false } } }, "update": { "type": "UpdateExpression", "start": 19604, "end": 19611, "loc": { "start": { "line": 567, "column": 94 }, "end": { "line": 567, "column": 101 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 19606, "end": 19611, "loc": { "start": { "line": 567, "column": 96 }, "end": { "line": 567, "column": 101 }, "identifierName": "layer" }, "name": "layer" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 19613, "end": 19683, "loc": { "start": { "line": 567, "column": 103 }, "end": { "line": 569, "column": 9 } }, "body": [ { "type": "ExpressionStatement", "start": 19628, "end": 19672, "loc": { "start": { "line": 568, "column": 12 }, "end": { "line": 568, "column": 56 } }, "expression": { "type": "CallExpression", "start": 19628, "end": 19671, "loc": { "start": { "line": 568, "column": 12 }, "end": { "line": 568, "column": 55 } }, "callee": { "type": "MemberExpression", "start": 19628, "end": 19645, "loc": { "start": { "line": 568, "column": 12 }, "end": { "line": 568, "column": 29 } }, "object": { "type": "Identifier", "start": 19628, "end": 19640, "loc": { "start": { "line": 568, "column": 12 }, "end": { "line": 568, "column": 24 }, "identifierName": "mergedLayers" }, "name": "mergedLayers" }, "property": { "type": "Identifier", "start": 19641, "end": 19645, "loc": { "start": { "line": 568, "column": 25 }, "end": { "line": 568, "column": 29 }, "identifierName": "push" }, "name": "push" }, "computed": false }, "arguments": [ { "type": "ArrayExpression", "start": 19646, "end": 19670, "loc": { "start": { "line": 568, "column": 30 }, "end": { "line": 568, "column": 54 } }, "elements": [ { "type": "NullLiteral", "start": 19647, "end": 19651, "loc": { "start": { "line": 568, "column": 31 }, "end": { "line": 568, "column": 35 } } }, { "type": "NullLiteral", "start": 19653, "end": 19657, "loc": { "start": { "line": 568, "column": 37 }, "end": { "line": 568, "column": 41 } } }, { "type": "NullLiteral", "start": 19659, "end": 19663, "loc": { "start": { "line": 568, "column": 43 }, "end": { "line": 568, "column": 47 } } }, { "type": "NullLiteral", "start": 19665, "end": 19669, "loc": { "start": { "line": 568, "column": 49 }, "end": { "line": 568, "column": 53 } } } ] } ] } } ], "directives": [] } }, { "type": "ForStatement", "start": 19695, "end": 20219, "loc": { "start": { "line": 571, "column": 8 }, "end": { "line": 579, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 19700, "end": 19713, "loc": { "start": { "line": 571, "column": 13 }, "end": { "line": 571, "column": 26 } }, "declarations": [ { "type": "VariableDeclarator", "start": 19704, "end": 19713, "loc": { "start": { "line": 571, "column": 17 }, "end": { "line": 571, "column": 26 } }, "id": { "type": "Identifier", "start": 19704, "end": 19709, "loc": { "start": { "line": 571, "column": 17 }, "end": { "line": 571, "column": 22 }, "identifierName": "layer" }, "name": "layer" }, "init": { "type": "NumericLiteral", "start": 19712, "end": 19713, "loc": { "start": { "line": 571, "column": 25 }, "end": { "line": 571, "column": 26 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 19715, "end": 19744, "loc": { "start": { "line": 571, "column": 28 }, "end": { "line": 571, "column": 57 } }, "left": { "type": "Identifier", "start": 19715, "end": 19720, "loc": { "start": { "line": 571, "column": 28 }, "end": { "line": 571, "column": 33 }, "identifierName": "layer" }, "name": "layer" }, "operator": "<", "right": { "type": "MemberExpression", "start": 19723, "end": 19744, "loc": { "start": { "line": 571, "column": 36 }, "end": { "line": 571, "column": 57 } }, "object": { "type": "Identifier", "start": 19723, "end": 19737, "loc": { "start": { "line": 571, "column": 36 }, "end": { "line": 571, "column": 50 }, "identifierName": "topShapeLayers" }, "name": "topShapeLayers" }, "property": { "type": "Identifier", "start": 19738, "end": 19744, "loc": { "start": { "line": 571, "column": 51 }, "end": { "line": 571, "column": 57 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 19746, "end": 19753, "loc": { "start": { "line": 571, "column": 59 }, "end": { "line": 571, "column": 66 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 19748, "end": 19753, "loc": { "start": { "line": 571, "column": 61 }, "end": { "line": 571, "column": 66 }, "identifierName": "layer" }, "name": "layer" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 19755, "end": 20219, "loc": { "start": { "line": 571, "column": 68 }, "end": { "line": 579, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 19770, "end": 19816, "loc": { "start": { "line": 572, "column": 12 }, "end": { "line": 572, "column": 58 } }, "declarations": [ { "type": "VariableDeclarator", "start": 19776, "end": 19815, "loc": { "start": { "line": 572, "column": 18 }, "end": { "line": 572, "column": 57 } }, "id": { "type": "Identifier", "start": 19776, "end": 19790, "loc": { "start": { "line": 572, "column": 18 }, "end": { "line": 572, "column": 32 }, "identifierName": "layerMergingAt" }, "name": "layerMergingAt" }, "init": { "type": "BinaryExpression", "start": 19793, "end": 19815, "loc": { "start": { "line": 572, "column": 35 }, "end": { "line": 572, "column": 57 } }, "left": { "type": "Identifier", "start": 19793, "end": 19807, "loc": { "start": { "line": 572, "column": 35 }, "end": { "line": 572, "column": 49 }, "identifierName": "layerToMergeAt" }, "name": "layerToMergeAt" }, "operator": "+", "right": { "type": "Identifier", "start": 19810, "end": 19815, "loc": { "start": { "line": 572, "column": 52 }, "end": { "line": 572, "column": 57 }, "identifierName": "layer" }, "name": "layer" } } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 19830, "end": 19884, "loc": { "start": { "line": 573, "column": 12 }, "end": { "line": 573, "column": 66 } }, "declarations": [ { "type": "VariableDeclarator", "start": 19836, "end": 19883, "loc": { "start": { "line": 573, "column": 18 }, "end": { "line": 573, "column": 65 } }, "id": { "type": "Identifier", "start": 19836, "end": 19852, "loc": { "start": { "line": 573, "column": 18 }, "end": { "line": 573, "column": 34 }, "identifierName": "bottomShapeLayer" }, "name": "bottomShapeLayer" }, "init": { "type": "MemberExpression", "start": 19855, "end": 19883, "loc": { "start": { "line": 573, "column": 37 }, "end": { "line": 573, "column": 65 } }, "object": { "type": "Identifier", "start": 19855, "end": 19867, "loc": { "start": { "line": 573, "column": 37 }, "end": { "line": 573, "column": 49 }, "identifierName": "mergedLayers" }, "name": "mergedLayers" }, "property": { "type": "Identifier", "start": 19868, "end": 19882, "loc": { "start": { "line": 573, "column": 50 }, "end": { "line": 573, "column": 64 }, "identifierName": "layerMergingAt" }, "name": "layerMergingAt" }, "computed": true } } ], "kind": "const" }, { "type": "VariableDeclaration", "start": 19898, "end": 19942, "loc": { "start": { "line": 574, "column": 12 }, "end": { "line": 574, "column": 56 } }, "declarations": [ { "type": "VariableDeclarator", "start": 19904, "end": 19941, "loc": { "start": { "line": 574, "column": 18 }, "end": { "line": 574, "column": 55 } }, "id": { "type": "Identifier", "start": 19904, "end": 19917, "loc": { "start": { "line": 574, "column": 18 }, "end": { "line": 574, "column": 31 }, "identifierName": "topShapeLayer" }, "name": "topShapeLayer" }, "init": { "type": "MemberExpression", "start": 19920, "end": 19941, "loc": { "start": { "line": 574, "column": 34 }, "end": { "line": 574, "column": 55 } }, "object": { "type": "Identifier", "start": 19920, "end": 19934, "loc": { "start": { "line": 574, "column": 34 }, "end": { "line": 574, "column": 48 }, "identifierName": "topShapeLayers" }, "name": "topShapeLayers" }, "property": { "type": "Identifier", "start": 19935, "end": 19940, "loc": { "start": { "line": 574, "column": 49 }, "end": { "line": 574, "column": 54 }, "identifierName": "layer" }, "name": "layer" }, "computed": true } } ], "kind": "const" }, { "type": "ForStatement", "start": 19956, "end": 20208, "loc": { "start": { "line": 575, "column": 12 }, "end": { "line": 578, "column": 13 } }, "init": { "type": "VariableDeclaration", "start": 19961, "end": 19973, "loc": { "start": { "line": 575, "column": 17 }, "end": { "line": 575, "column": 29 } }, "declarations": [ { "type": "VariableDeclarator", "start": 19965, "end": 19973, "loc": { "start": { "line": 575, "column": 21 }, "end": { "line": 575, "column": 29 } }, "id": { "type": "Identifier", "start": 19965, "end": 19969, "loc": { "start": { "line": 575, "column": 21 }, "end": { "line": 575, "column": 25 }, "identifierName": "quad" }, "name": "quad" }, "init": { "type": "NumericLiteral", "start": 19972, "end": 19973, "loc": { "start": { "line": 575, "column": 28 }, "end": { "line": 575, "column": 29 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 19975, "end": 19983, "loc": { "start": { "line": 575, "column": 31 }, "end": { "line": 575, "column": 39 } }, "left": { "type": "Identifier", "start": 19975, "end": 19979, "loc": { "start": { "line": 575, "column": 31 }, "end": { "line": 575, "column": 35 }, "identifierName": "quad" }, "name": "quad" }, "operator": "<", "right": { "type": "NumericLiteral", "start": 19982, "end": 19983, "loc": { "start": { "line": 575, "column": 38 }, "end": { "line": 575, "column": 39 } }, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 } }, "update": { "type": "UpdateExpression", "start": 19985, "end": 19991, "loc": { "start": { "line": 575, "column": 41 }, "end": { "line": 575, "column": 47 } }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "start": 19985, "end": 19989, "loc": { "start": { "line": 575, "column": 41 }, "end": { "line": 575, "column": 45 }, "identifierName": "quad" }, "name": "quad" } }, "body": { "type": "BlockStatement", "start": 19993, "end": 20208, "loc": { "start": { "line": 575, "column": 49 }, "end": { "line": 578, "column": 13 } }, "body": [ { "type": "ExpressionStatement", "start": 20012, "end": 20104, "loc": { "start": { "line": 576, "column": 16 }, "end": { "line": 576, "column": 108 } }, "expression": { "type": "CallExpression", "start": 20012, "end": 20103, "loc": { "start": { "line": 576, "column": 16 }, "end": { "line": 576, "column": 107 } }, "callee": { "type": "Identifier", "start": 20012, "end": 20018, "loc": { "start": { "line": 576, "column": 16 }, "end": { "line": 576, "column": 22 }, "identifierName": "assert" }, "name": "assert" }, "arguments": [ { "type": "UnaryExpression", "start": 20019, "end": 20067, "loc": { "start": { "line": 576, "column": 23 }, "end": { "line": 576, "column": 71 } }, "operator": "!", "prefix": true, "argument": { "type": "LogicalExpression", "start": 20021, "end": 20066, "loc": { "start": { "line": 576, "column": 25 }, "end": { "line": 576, "column": 70 } }, "left": { "type": "MemberExpression", "start": 20021, "end": 20043, "loc": { "start": { "line": 576, "column": 25 }, "end": { "line": 576, "column": 47 } }, "object": { "type": "Identifier", "start": 20021, "end": 20037, "loc": { "start": { "line": 576, "column": 25 }, "end": { "line": 576, "column": 41 }, "identifierName": "bottomShapeLayer" }, "name": "bottomShapeLayer" }, "property": { "type": "Identifier", "start": 20038, "end": 20042, "loc": { "start": { "line": 576, "column": 42 }, "end": { "line": 576, "column": 46 }, "identifierName": "quad" }, "name": "quad" }, "computed": true }, "operator": "&&", "right": { "type": "MemberExpression", "start": 20047, "end": 20066, "loc": { "start": { "line": 576, "column": 51 }, "end": { "line": 576, "column": 70 } }, "object": { "type": "Identifier", "start": 20047, "end": 20060, "loc": { "start": { "line": 576, "column": 51 }, "end": { "line": 576, "column": 64 }, "identifierName": "topShapeLayer" }, "name": "topShapeLayer" }, "property": { "type": "Identifier", "start": 20061, "end": 20065, "loc": { "start": { "line": 576, "column": 65 }, "end": { "line": 576, "column": 69 }, "identifierName": "quad" }, "name": "quad" }, "computed": true }, "extra": { "parenthesized": true, "parenStart": 20020 } }, "extra": { "parenthesizedArgument": false } }, { "type": "StringLiteral", "start": 20069, "end": 20102, "loc": { "start": { "line": 576, "column": 73 }, "end": { "line": 576, "column": 106 } }, "extra": { "rawValue": "Shape merge: Sub shape got lost", "raw": "\"Shape merge: Sub shape got lost\"" }, "value": "Shape merge: Sub shape got lost" } ] } }, { "type": "ExpressionStatement", "start": 20122, "end": 20193, "loc": { "start": { "line": 577, "column": 16 }, "end": { "line": 577, "column": 87 } }, "expression": { "type": "AssignmentExpression", "start": 20122, "end": 20192, "loc": { "start": { "line": 577, "column": 16 }, "end": { "line": 577, "column": 86 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 20122, "end": 20144, "loc": { "start": { "line": 577, "column": 16 }, "end": { "line": 577, "column": 38 } }, "object": { "type": "Identifier", "start": 20122, "end": 20138, "loc": { "start": { "line": 577, "column": 16 }, "end": { "line": 577, "column": 32 }, "identifierName": "bottomShapeLayer" }, "name": "bottomShapeLayer" }, "property": { "type": "Identifier", "start": 20139, "end": 20143, "loc": { "start": { "line": 577, "column": 33 }, "end": { "line": 577, "column": 37 }, "identifierName": "quad" }, "name": "quad" }, "computed": true }, "right": { "type": "LogicalExpression", "start": 20147, "end": 20192, "loc": { "start": { "line": 577, "column": 41 }, "end": { "line": 577, "column": 86 } }, "left": { "type": "MemberExpression", "start": 20147, "end": 20169, "loc": { "start": { "line": 577, "column": 41 }, "end": { "line": 577, "column": 63 } }, "object": { "type": "Identifier", "start": 20147, "end": 20163, "loc": { "start": { "line": 577, "column": 41 }, "end": { "line": 577, "column": 57 }, "identifierName": "bottomShapeLayer" }, "name": "bottomShapeLayer" }, "property": { "type": "Identifier", "start": 20164, "end": 20168, "loc": { "start": { "line": 577, "column": 58 }, "end": { "line": 577, "column": 62 }, "identifierName": "quad" }, "name": "quad" }, "computed": true }, "operator": "||", "right": { "type": "MemberExpression", "start": 20173, "end": 20192, "loc": { "start": { "line": 577, "column": 67 }, "end": { "line": 577, "column": 86 } }, "object": { "type": "Identifier", "start": 20173, "end": 20186, "loc": { "start": { "line": 577, "column": 67 }, "end": { "line": 577, "column": 80 }, "identifierName": "topShapeLayer" }, "name": "topShapeLayer" }, "property": { "type": "Identifier", "start": 20187, "end": 20191, "loc": { "start": { "line": 577, "column": 81 }, "end": { "line": 577, "column": 85 }, "identifierName": "quad" }, "name": "quad" }, "computed": true } } } } ], "directives": [] } } ], "directives": [], "trailingComments": null }, "trailingComments": [ { "type": "CommentLine", "value": " Limit to 4 layers at max", "start": 20231, "end": 20258, "loc": { "start": { "line": 581, "column": 8 }, "end": { "line": 581, "column": 35 } } } ] }, { "type": "ExpressionStatement", "start": 20268, "end": 20291, "loc": { "start": { "line": 582, "column": 8 }, "end": { "line": 582, "column": 31 } }, "expression": { "type": "CallExpression", "start": 20268, "end": 20290, "loc": { "start": { "line": 582, "column": 8 }, "end": { "line": 582, "column": 30 } }, "callee": { "type": "MemberExpression", "start": 20268, "end": 20287, "loc": { "start": { "line": 582, "column": 8 }, "end": { "line": 582, "column": 27 } }, "object": { "type": "Identifier", "start": 20268, "end": 20280, "loc": { "start": { "line": 582, "column": 8 }, "end": { "line": 582, "column": 20 }, "identifierName": "mergedLayers" }, "name": "mergedLayers", "leadingComments": null }, "property": { "type": "Identifier", "start": 20281, "end": 20287, "loc": { "start": { "line": 582, "column": 21 }, "end": { "line": 582, "column": 27 }, "identifierName": "splice" }, "name": "splice" }, "computed": false, "leadingComments": null }, "arguments": [ { "type": "NumericLiteral", "start": 20288, "end": 20289, "loc": { "start": { "line": 582, "column": 28 }, "end": { "line": 582, "column": 29 } }, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 } ], "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " Limit to 4 layers at max", "start": 20231, "end": 20258, "loc": { "start": { "line": 581, "column": 8 }, "end": { "line": 581, "column": 35 } } } ] }, { "type": "ReturnStatement", "start": 20303, "end": 20356, "loc": { "start": { "line": 584, "column": 8 }, "end": { "line": 584, "column": 61 } }, "argument": { "type": "NewExpression", "start": 20310, "end": 20355, "loc": { "start": { "line": 584, "column": 15 }, "end": { "line": 584, "column": 60 } }, "callee": { "type": "Identifier", "start": 20314, "end": 20329, "loc": { "start": { "line": 584, "column": 19 }, "end": { "line": 584, "column": 34 }, "identifierName": "ShapeDefinition" }, "name": "ShapeDefinition" }, "arguments": [ { "type": "ObjectExpression", "start": 20330, "end": 20354, "loc": { "start": { "line": 584, "column": 35 }, "end": { "line": 584, "column": 59 } }, "properties": [ { "type": "ObjectProperty", "start": 20332, "end": 20352, "loc": { "start": { "line": 584, "column": 37 }, "end": { "line": 584, "column": 57 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 20332, "end": 20338, "loc": { "start": { "line": 584, "column": 37 }, "end": { "line": 584, "column": 43 }, "identifierName": "layers" }, "name": "layers" }, "value": { "type": "Identifier", "start": 20340, "end": 20352, "loc": { "start": { "line": 584, "column": 45 }, "end": { "line": 584, "column": 57 }, "identifierName": "mergedLayers" }, "name": "mergedLayers" } } ] } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Stacks the given shape definition on top.\r\n * @param {ShapeDefinition} definition\r\n ", "start": 17168, "end": 17274, "loc": { "start": { "line": 516, "column": 4 }, "end": { "line": 519, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Clones the shape and colors everything in the given color\r\n * @param {enumColors} color\r\n ", "start": 20371, "end": 20483, "loc": { "start": { "line": 587, "column": 4 }, "end": { "line": 590, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 20489, "end": 21024, "loc": { "start": { "line": 591, "column": 4 }, "end": { "line": 604, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 20489, "end": 20506, "loc": { "start": { "line": 591, "column": 4 }, "end": { "line": 591, "column": 21 }, "identifierName": "cloneAndPaintWith" }, "name": "cloneAndPaintWith", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 20507, "end": 20512, "loc": { "start": { "line": 591, "column": 22 }, "end": { "line": 591, "column": 27 }, "identifierName": "color" }, "name": "color" } ], "body": { "type": "BlockStatement", "start": 20514, "end": 21024, "loc": { "start": { "line": 591, "column": 29 }, "end": { "line": 604, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 20525, "end": 20570, "loc": { "start": { "line": 592, "column": 8 }, "end": { "line": 592, "column": 53 } }, "declarations": [ { "type": "VariableDeclarator", "start": 20531, "end": 20569, "loc": { "start": { "line": 592, "column": 14 }, "end": { "line": 592, "column": 52 } }, "id": { "type": "Identifier", "start": 20531, "end": 20540, "loc": { "start": { "line": 592, "column": 14 }, "end": { "line": 592, "column": 23 }, "identifierName": "newLayers" }, "name": "newLayers" }, "init": { "type": "CallExpression", "start": 20543, "end": 20569, "loc": { "start": { "line": 592, "column": 26 }, "end": { "line": 592, "column": 52 } }, "callee": { "type": "MemberExpression", "start": 20543, "end": 20567, "loc": { "start": { "line": 592, "column": 26 }, "end": { "line": 592, "column": 50 } }, "object": { "type": "ThisExpression", "start": 20543, "end": 20547, "loc": { "start": { "line": 592, "column": 26 }, "end": { "line": 592, "column": 30 } } }, "property": { "type": "Identifier", "start": 20548, "end": 20567, "loc": { "start": { "line": 592, "column": 31 }, "end": { "line": 592, "column": 50 }, "identifierName": "internalCloneLayers" }, "name": "internalCloneLayers" }, "computed": false }, "arguments": [] } } ], "kind": "const" }, { "type": "ForStatement", "start": 20582, "end": 20957, "loc": { "start": { "line": 594, "column": 8 }, "end": { "line": 602, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 20587, "end": 20605, "loc": { "start": { "line": 594, "column": 13 }, "end": { "line": 594, "column": 31 } }, "declarations": [ { "type": "VariableDeclarator", "start": 20591, "end": 20605, "loc": { "start": { "line": 594, "column": 17 }, "end": { "line": 594, "column": 31 } }, "id": { "type": "Identifier", "start": 20591, "end": 20601, "loc": { "start": { "line": 594, "column": 17 }, "end": { "line": 594, "column": 27 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "init": { "type": "NumericLiteral", "start": 20604, "end": 20605, "loc": { "start": { "line": 594, "column": 30 }, "end": { "line": 594, "column": 31 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 20607, "end": 20636, "loc": { "start": { "line": 594, "column": 33 }, "end": { "line": 594, "column": 62 } }, "left": { "type": "Identifier", "start": 20607, "end": 20617, "loc": { "start": { "line": 594, "column": 33 }, "end": { "line": 594, "column": 43 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "operator": "<", "right": { "type": "MemberExpression", "start": 20620, "end": 20636, "loc": { "start": { "line": 594, "column": 46 }, "end": { "line": 594, "column": 62 } }, "object": { "type": "Identifier", "start": 20620, "end": 20629, "loc": { "start": { "line": 594, "column": 46 }, "end": { "line": 594, "column": 55 }, "identifierName": "newLayers" }, "name": "newLayers" }, "property": { "type": "Identifier", "start": 20630, "end": 20636, "loc": { "start": { "line": 594, "column": 56 }, "end": { "line": 594, "column": 62 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 20638, "end": 20650, "loc": { "start": { "line": 594, "column": 64 }, "end": { "line": 594, "column": 76 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 20640, "end": 20650, "loc": { "start": { "line": 594, "column": 66 }, "end": { "line": 594, "column": 76 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 20652, "end": 20957, "loc": { "start": { "line": 594, "column": 78 }, "end": { "line": 602, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 20667, "end": 20707, "loc": { "start": { "line": 595, "column": 12 }, "end": { "line": 595, "column": 52 } }, "declarations": [ { "type": "VariableDeclarator", "start": 20673, "end": 20706, "loc": { "start": { "line": 595, "column": 18 }, "end": { "line": 595, "column": 51 } }, "id": { "type": "Identifier", "start": 20673, "end": 20682, "loc": { "start": { "line": 595, "column": 18 }, "end": { "line": 595, "column": 27 }, "identifierName": "quadrants" }, "name": "quadrants" }, "init": { "type": "MemberExpression", "start": 20685, "end": 20706, "loc": { "start": { "line": 595, "column": 30 }, "end": { "line": 595, "column": 51 } }, "object": { "type": "Identifier", "start": 20685, "end": 20694, "loc": { "start": { "line": 595, "column": 30 }, "end": { "line": 595, "column": 39 }, "identifierName": "newLayers" }, "name": "newLayers" }, "property": { "type": "Identifier", "start": 20695, "end": 20705, "loc": { "start": { "line": 595, "column": 40 }, "end": { "line": 595, "column": 50 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "computed": true } } ], "kind": "const" }, { "type": "ForStatement", "start": 20721, "end": 20946, "loc": { "start": { "line": 596, "column": 12 }, "end": { "line": 601, "column": 13 } }, "init": { "type": "VariableDeclaration", "start": 20726, "end": 20747, "loc": { "start": { "line": 596, "column": 17 }, "end": { "line": 596, "column": 38 } }, "declarations": [ { "type": "VariableDeclarator", "start": 20730, "end": 20747, "loc": { "start": { "line": 596, "column": 21 }, "end": { "line": 596, "column": 38 } }, "id": { "type": "Identifier", "start": 20730, "end": 20743, "loc": { "start": { "line": 596, "column": 21 }, "end": { "line": 596, "column": 34 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "init": { "type": "NumericLiteral", "start": 20746, "end": 20747, "loc": { "start": { "line": 596, "column": 37 }, "end": { "line": 596, "column": 38 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 20749, "end": 20766, "loc": { "start": { "line": 596, "column": 40 }, "end": { "line": 596, "column": 57 } }, "left": { "type": "Identifier", "start": 20749, "end": 20762, "loc": { "start": { "line": 596, "column": 40 }, "end": { "line": 596, "column": 53 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "operator": "<", "right": { "type": "NumericLiteral", "start": 20765, "end": 20766, "loc": { "start": { "line": 596, "column": 56 }, "end": { "line": 596, "column": 57 } }, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 } }, "update": { "type": "UpdateExpression", "start": 20768, "end": 20783, "loc": { "start": { "line": 596, "column": 59 }, "end": { "line": 596, "column": 74 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 20770, "end": 20783, "loc": { "start": { "line": 596, "column": 61 }, "end": { "line": 596, "column": 74 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 20785, "end": 20946, "loc": { "start": { "line": 596, "column": 76 }, "end": { "line": 601, "column": 13 } }, "body": [ { "type": "VariableDeclaration", "start": 20804, "end": 20842, "loc": { "start": { "line": 597, "column": 16 }, "end": { "line": 597, "column": 54 } }, "declarations": [ { "type": "VariableDeclarator", "start": 20810, "end": 20841, "loc": { "start": { "line": 597, "column": 22 }, "end": { "line": 597, "column": 53 } }, "id": { "type": "Identifier", "start": 20810, "end": 20814, "loc": { "start": { "line": 597, "column": 22 }, "end": { "line": 597, "column": 26 }, "identifierName": "item" }, "name": "item" }, "init": { "type": "MemberExpression", "start": 20817, "end": 20841, "loc": { "start": { "line": 597, "column": 29 }, "end": { "line": 597, "column": 53 } }, "object": { "type": "Identifier", "start": 20817, "end": 20826, "loc": { "start": { "line": 597, "column": 29 }, "end": { "line": 597, "column": 38 }, "identifierName": "quadrants" }, "name": "quadrants" }, "property": { "type": "Identifier", "start": 20827, "end": 20840, "loc": { "start": { "line": 597, "column": 39 }, "end": { "line": 597, "column": 52 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "computed": true } } ], "kind": "const" }, { "type": "IfStatement", "start": 20860, "end": 20931, "loc": { "start": { "line": 598, "column": 16 }, "end": { "line": 600, "column": 17 } }, "test": { "type": "Identifier", "start": 20864, "end": 20868, "loc": { "start": { "line": 598, "column": 20 }, "end": { "line": 598, "column": 24 }, "identifierName": "item" }, "name": "item" }, "consequent": { "type": "BlockStatement", "start": 20870, "end": 20931, "loc": { "start": { "line": 598, "column": 26 }, "end": { "line": 600, "column": 17 } }, "body": [ { "type": "ExpressionStatement", "start": 20893, "end": 20912, "loc": { "start": { "line": 599, "column": 20 }, "end": { "line": 599, "column": 39 } }, "expression": { "type": "AssignmentExpression", "start": 20893, "end": 20911, "loc": { "start": { "line": 599, "column": 20 }, "end": { "line": 599, "column": 38 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 20893, "end": 20903, "loc": { "start": { "line": 599, "column": 20 }, "end": { "line": 599, "column": 30 } }, "object": { "type": "Identifier", "start": 20893, "end": 20897, "loc": { "start": { "line": 599, "column": 20 }, "end": { "line": 599, "column": 24 }, "identifierName": "item" }, "name": "item" }, "property": { "type": "Identifier", "start": 20898, "end": 20903, "loc": { "start": { "line": 599, "column": 25 }, "end": { "line": 599, "column": 30 }, "identifierName": "color" }, "name": "color" }, "computed": false }, "right": { "type": "Identifier", "start": 20906, "end": 20911, "loc": { "start": { "line": 599, "column": 33 }, "end": { "line": 599, "column": 38 }, "identifierName": "color" }, "name": "color" } } } ], "directives": [] }, "alternate": null } ], "directives": [] } } ], "directives": [] } }, { "type": "ReturnStatement", "start": 20967, "end": 21017, "loc": { "start": { "line": 603, "column": 8 }, "end": { "line": 603, "column": 58 } }, "argument": { "type": "NewExpression", "start": 20974, "end": 21016, "loc": { "start": { "line": 603, "column": 15 }, "end": { "line": 603, "column": 57 } }, "callee": { "type": "Identifier", "start": 20978, "end": 20993, "loc": { "start": { "line": 603, "column": 19 }, "end": { "line": 603, "column": 34 }, "identifierName": "ShapeDefinition" }, "name": "ShapeDefinition" }, "arguments": [ { "type": "ObjectExpression", "start": 20994, "end": 21015, "loc": { "start": { "line": 603, "column": 35 }, "end": { "line": 603, "column": 56 } }, "properties": [ { "type": "ObjectProperty", "start": 20996, "end": 21013, "loc": { "start": { "line": 603, "column": 37 }, "end": { "line": 603, "column": 54 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 20996, "end": 21002, "loc": { "start": { "line": 603, "column": 37 }, "end": { "line": 603, "column": 43 }, "identifierName": "layers" }, "name": "layers" }, "value": { "type": "Identifier", "start": 21004, "end": 21013, "loc": { "start": { "line": 603, "column": 45 }, "end": { "line": 603, "column": 54 }, "identifierName": "newLayers" }, "name": "newLayers" } } ] } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Clones the shape and colors everything in the given color\r\n * @param {enumColors} color\r\n ", "start": 20371, "end": 20483, "loc": { "start": { "line": 587, "column": 4 }, "end": { "line": 590, "column": 7 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\r\n * Clones the shape and colors everything in the given colors\r\n * @param {[enumColors, enumColors, enumColors, enumColors]} colors\r\n ", "start": 21032, "end": 21184, "loc": { "start": { "line": 606, "column": 4 }, "end": { "line": 609, "column": 7 } } } ] }, { "type": "ClassMethod", "start": 21190, "end": 21763, "loc": { "start": { "line": 610, "column": 4 }, "end": { "line": 623, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 21190, "end": 21214, "loc": { "start": { "line": 610, "column": 4 }, "end": { "line": 610, "column": 28 }, "identifierName": "cloneAndPaintWith4Colors" }, "name": "cloneAndPaintWith4Colors", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 21215, "end": 21221, "loc": { "start": { "line": 610, "column": 29 }, "end": { "line": 610, "column": 35 }, "identifierName": "colors" }, "name": "colors" } ], "body": { "type": "BlockStatement", "start": 21223, "end": 21763, "loc": { "start": { "line": 610, "column": 37 }, "end": { "line": 623, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 21234, "end": 21279, "loc": { "start": { "line": 611, "column": 8 }, "end": { "line": 611, "column": 53 } }, "declarations": [ { "type": "VariableDeclarator", "start": 21240, "end": 21278, "loc": { "start": { "line": 611, "column": 14 }, "end": { "line": 611, "column": 52 } }, "id": { "type": "Identifier", "start": 21240, "end": 21249, "loc": { "start": { "line": 611, "column": 14 }, "end": { "line": 611, "column": 23 }, "identifierName": "newLayers" }, "name": "newLayers" }, "init": { "type": "CallExpression", "start": 21252, "end": 21278, "loc": { "start": { "line": 611, "column": 26 }, "end": { "line": 611, "column": 52 } }, "callee": { "type": "MemberExpression", "start": 21252, "end": 21276, "loc": { "start": { "line": 611, "column": 26 }, "end": { "line": 611, "column": 50 } }, "object": { "type": "ThisExpression", "start": 21252, "end": 21256, "loc": { "start": { "line": 611, "column": 26 }, "end": { "line": 611, "column": 30 } } }, "property": { "type": "Identifier", "start": 21257, "end": 21276, "loc": { "start": { "line": 611, "column": 31 }, "end": { "line": 611, "column": 50 }, "identifierName": "internalCloneLayers" }, "name": "internalCloneLayers" }, "computed": false }, "arguments": [] } } ], "kind": "const" }, { "type": "ForStatement", "start": 21291, "end": 21696, "loc": { "start": { "line": 613, "column": 8 }, "end": { "line": 621, "column": 9 } }, "init": { "type": "VariableDeclaration", "start": 21296, "end": 21314, "loc": { "start": { "line": 613, "column": 13 }, "end": { "line": 613, "column": 31 } }, "declarations": [ { "type": "VariableDeclarator", "start": 21300, "end": 21314, "loc": { "start": { "line": 613, "column": 17 }, "end": { "line": 613, "column": 31 } }, "id": { "type": "Identifier", "start": 21300, "end": 21310, "loc": { "start": { "line": 613, "column": 17 }, "end": { "line": 613, "column": 27 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "init": { "type": "NumericLiteral", "start": 21313, "end": 21314, "loc": { "start": { "line": 613, "column": 30 }, "end": { "line": 613, "column": 31 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 21316, "end": 21345, "loc": { "start": { "line": 613, "column": 33 }, "end": { "line": 613, "column": 62 } }, "left": { "type": "Identifier", "start": 21316, "end": 21326, "loc": { "start": { "line": 613, "column": 33 }, "end": { "line": 613, "column": 43 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "operator": "<", "right": { "type": "MemberExpression", "start": 21329, "end": 21345, "loc": { "start": { "line": 613, "column": 46 }, "end": { "line": 613, "column": 62 } }, "object": { "type": "Identifier", "start": 21329, "end": 21338, "loc": { "start": { "line": 613, "column": 46 }, "end": { "line": 613, "column": 55 }, "identifierName": "newLayers" }, "name": "newLayers" }, "property": { "type": "Identifier", "start": 21339, "end": 21345, "loc": { "start": { "line": 613, "column": 56 }, "end": { "line": 613, "column": 62 }, "identifierName": "length" }, "name": "length" }, "computed": false } }, "update": { "type": "UpdateExpression", "start": 21347, "end": 21359, "loc": { "start": { "line": 613, "column": 64 }, "end": { "line": 613, "column": 76 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 21349, "end": 21359, "loc": { "start": { "line": 613, "column": 66 }, "end": { "line": 613, "column": 76 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 21361, "end": 21696, "loc": { "start": { "line": 613, "column": 78 }, "end": { "line": 621, "column": 9 } }, "body": [ { "type": "VariableDeclaration", "start": 21376, "end": 21416, "loc": { "start": { "line": 614, "column": 12 }, "end": { "line": 614, "column": 52 } }, "declarations": [ { "type": "VariableDeclarator", "start": 21382, "end": 21415, "loc": { "start": { "line": 614, "column": 18 }, "end": { "line": 614, "column": 51 } }, "id": { "type": "Identifier", "start": 21382, "end": 21391, "loc": { "start": { "line": 614, "column": 18 }, "end": { "line": 614, "column": 27 }, "identifierName": "quadrants" }, "name": "quadrants" }, "init": { "type": "MemberExpression", "start": 21394, "end": 21415, "loc": { "start": { "line": 614, "column": 30 }, "end": { "line": 614, "column": 51 } }, "object": { "type": "Identifier", "start": 21394, "end": 21403, "loc": { "start": { "line": 614, "column": 30 }, "end": { "line": 614, "column": 39 }, "identifierName": "newLayers" }, "name": "newLayers" }, "property": { "type": "Identifier", "start": 21404, "end": 21414, "loc": { "start": { "line": 614, "column": 40 }, "end": { "line": 614, "column": 50 }, "identifierName": "layerIndex" }, "name": "layerIndex" }, "computed": true } } ], "kind": "const" }, { "type": "ForStatement", "start": 21430, "end": 21685, "loc": { "start": { "line": 615, "column": 12 }, "end": { "line": 620, "column": 13 } }, "init": { "type": "VariableDeclaration", "start": 21435, "end": 21456, "loc": { "start": { "line": 615, "column": 17 }, "end": { "line": 615, "column": 38 } }, "declarations": [ { "type": "VariableDeclarator", "start": 21439, "end": 21456, "loc": { "start": { "line": 615, "column": 21 }, "end": { "line": 615, "column": 38 } }, "id": { "type": "Identifier", "start": 21439, "end": 21452, "loc": { "start": { "line": 615, "column": 21 }, "end": { "line": 615, "column": 34 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "init": { "type": "NumericLiteral", "start": 21455, "end": 21456, "loc": { "start": { "line": 615, "column": 37 }, "end": { "line": 615, "column": 38 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 21458, "end": 21475, "loc": { "start": { "line": 615, "column": 40 }, "end": { "line": 615, "column": 57 } }, "left": { "type": "Identifier", "start": 21458, "end": 21471, "loc": { "start": { "line": 615, "column": 40 }, "end": { "line": 615, "column": 53 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "operator": "<", "right": { "type": "NumericLiteral", "start": 21474, "end": 21475, "loc": { "start": { "line": 615, "column": 56 }, "end": { "line": 615, "column": 57 } }, "extra": { "rawValue": 4, "raw": "4" }, "value": 4 } }, "update": { "type": "UpdateExpression", "start": 21477, "end": 21492, "loc": { "start": { "line": 615, "column": 59 }, "end": { "line": 615, "column": 74 } }, "operator": "++", "prefix": true, "argument": { "type": "Identifier", "start": 21479, "end": 21492, "loc": { "start": { "line": 615, "column": 61 }, "end": { "line": 615, "column": 74 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "extra": { "parenthesizedArgument": false } }, "body": { "type": "BlockStatement", "start": 21494, "end": 21685, "loc": { "start": { "line": 615, "column": 76 }, "end": { "line": 620, "column": 13 } }, "body": [ { "type": "VariableDeclaration", "start": 21513, "end": 21551, "loc": { "start": { "line": 616, "column": 16 }, "end": { "line": 616, "column": 54 } }, "declarations": [ { "type": "VariableDeclarator", "start": 21519, "end": 21550, "loc": { "start": { "line": 616, "column": 22 }, "end": { "line": 616, "column": 53 } }, "id": { "type": "Identifier", "start": 21519, "end": 21523, "loc": { "start": { "line": 616, "column": 22 }, "end": { "line": 616, "column": 26 }, "identifierName": "item" }, "name": "item" }, "init": { "type": "MemberExpression", "start": 21526, "end": 21550, "loc": { "start": { "line": 616, "column": 29 }, "end": { "line": 616, "column": 53 } }, "object": { "type": "Identifier", "start": 21526, "end": 21535, "loc": { "start": { "line": 616, "column": 29 }, "end": { "line": 616, "column": 38 }, "identifierName": "quadrants" }, "name": "quadrants" }, "property": { "type": "Identifier", "start": 21536, "end": 21549, "loc": { "start": { "line": 616, "column": 39 }, "end": { "line": 616, "column": 52 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "computed": true } } ], "kind": "const" }, { "type": "IfStatement", "start": 21569, "end": 21670, "loc": { "start": { "line": 617, "column": 16 }, "end": { "line": 619, "column": 17 } }, "test": { "type": "Identifier", "start": 21573, "end": 21577, "loc": { "start": { "line": 617, "column": 20 }, "end": { "line": 617, "column": 24 }, "identifierName": "item" }, "name": "item" }, "consequent": { "type": "BlockStatement", "start": 21579, "end": 21670, "loc": { "start": { "line": 617, "column": 26 }, "end": { "line": 619, "column": 17 } }, "body": [ { "type": "ExpressionStatement", "start": 21602, "end": 21651, "loc": { "start": { "line": 618, "column": 20 }, "end": { "line": 618, "column": 69 } }, "expression": { "type": "AssignmentExpression", "start": 21602, "end": 21650, "loc": { "start": { "line": 618, "column": 20 }, "end": { "line": 618, "column": 68 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 21602, "end": 21612, "loc": { "start": { "line": 618, "column": 20 }, "end": { "line": 618, "column": 30 } }, "object": { "type": "Identifier", "start": 21602, "end": 21606, "loc": { "start": { "line": 618, "column": 20 }, "end": { "line": 618, "column": 24 }, "identifierName": "item" }, "name": "item" }, "property": { "type": "Identifier", "start": 21607, "end": 21612, "loc": { "start": { "line": 618, "column": 25 }, "end": { "line": 618, "column": 30 }, "identifierName": "color" }, "name": "color" }, "computed": false }, "right": { "type": "LogicalExpression", "start": 21615, "end": 21650, "loc": { "start": { "line": 618, "column": 33 }, "end": { "line": 618, "column": 68 } }, "left": { "type": "MemberExpression", "start": 21615, "end": 21636, "loc": { "start": { "line": 618, "column": 33 }, "end": { "line": 618, "column": 54 } }, "object": { "type": "Identifier", "start": 21615, "end": 21621, "loc": { "start": { "line": 618, "column": 33 }, "end": { "line": 618, "column": 39 }, "identifierName": "colors" }, "name": "colors" }, "property": { "type": "Identifier", "start": 21622, "end": 21635, "loc": { "start": { "line": 618, "column": 40 }, "end": { "line": 618, "column": 53 }, "identifierName": "quadrantIndex" }, "name": "quadrantIndex" }, "computed": true }, "operator": "||", "right": { "type": "MemberExpression", "start": 21640, "end": 21650, "loc": { "start": { "line": 618, "column": 58 }, "end": { "line": 618, "column": 68 } }, "object": { "type": "Identifier", "start": 21640, "end": 21644, "loc": { "start": { "line": 618, "column": 58 }, "end": { "line": 618, "column": 62 }, "identifierName": "item" }, "name": "item" }, "property": { "type": "Identifier", "start": 21645, "end": 21650, "loc": { "start": { "line": 618, "column": 63 }, "end": { "line": 618, "column": 68 }, "identifierName": "color" }, "name": "color" }, "computed": false } } } } ], "directives": [] }, "alternate": null } ], "directives": [] } } ], "directives": [] } }, { "type": "ReturnStatement", "start": 21706, "end": 21756, "loc": { "start": { "line": 622, "column": 8 }, "end": { "line": 622, "column": 58 } }, "argument": { "type": "NewExpression", "start": 21713, "end": 21755, "loc": { "start": { "line": 622, "column": 15 }, "end": { "line": 622, "column": 57 } }, "callee": { "type": "Identifier", "start": 21717, "end": 21732, "loc": { "start": { "line": 622, "column": 19 }, "end": { "line": 622, "column": 34 }, "identifierName": "ShapeDefinition" }, "name": "ShapeDefinition" }, "arguments": [ { "type": "ObjectExpression", "start": 21733, "end": 21754, "loc": { "start": { "line": 622, "column": 35 }, "end": { "line": 622, "column": 56 } }, "properties": [ { "type": "ObjectProperty", "start": 21735, "end": 21752, "loc": { "start": { "line": 622, "column": 37 }, "end": { "line": 622, "column": 54 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 21735, "end": 21741, "loc": { "start": { "line": 622, "column": 37 }, "end": { "line": 622, "column": 43 }, "identifierName": "layers" }, "name": "layers" }, "value": { "type": "Identifier", "start": 21743, "end": 21752, "loc": { "start": { "line": 622, "column": 45 }, "end": { "line": 622, "column": 54 }, "identifierName": "newLayers" }, "name": "newLayers" } } ] } ] } } ], "directives": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\r\n * Clones the shape and colors everything in the given colors\r\n * @param {[enumColors, enumColors, enumColors, enumColors]} colors\r\n ", "start": 21032, "end": 21184, "loc": { "start": { "line": 606, "column": 4 }, "end": { "line": 609, "column": 7 } } } ] } ] }, "leadingComments": [], "trailingComments": [] } } ], "directives": [] }, "comments": [ { "type": "CommentBlock", "value": "*\r\n * @typedef {{\r\n * subShape: enumSubShape,\r\n * color: enumColors,\r\n * }} ShapeLayerItem\r\n ", "start": 480, "end": 581, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 15, "column": 3 } } }, { "type": "CommentBlock", "value": "*\r\n * Order is Q1 (tr), Q2(br), Q3(bl), Q4(tl)\r\n * @typedef {[ShapeLayerItem?, ShapeLayerItem?, ShapeLayerItem?, ShapeLayerItem?]} ShapeLayer\r\n ", "start": 585, "end": 733, "loc": { "start": { "line": 17, "column": 0 }, "end": { "line": 20, "column": 3 } } }, { "type": "CommentLine", "value": " tr", "start": 798, "end": 803, "loc": { "start": { "line": 23, "column": 23 }, "end": { "line": 23, "column": 28 } } }, { "type": "CommentLine", "value": " br", "start": 827, "end": 832, "loc": { "start": { "line": 24, "column": 22 }, "end": { "line": 24, "column": 27 } } }, { "type": "CommentLine", "value": " bl", "start": 857, "end": 862, "loc": { "start": { "line": 25, "column": 23 }, "end": { "line": 25, "column": 28 } } }, { "type": "CommentLine", "value": " tl", "start": 888, "end": 893, "loc": { "start": { "line": 26, "column": 24 }, "end": { "line": 26, "column": 29 } } }, { "type": "CommentBlock", "value": "* @enum {string} ", "start": 901, "end": 922, "loc": { "start": { "line": 29, "column": 0 }, "end": { "line": 29, "column": 21 } } }, { "type": "CommentBlock", "value": "* @enum {string} ", "start": 1049, "end": 1070, "loc": { "start": { "line": 37, "column": 0 }, "end": { "line": 37, "column": 21 } } }, { "type": "CommentBlock", "value": "* @enum {enumSubShape} ", "start": 1250, "end": 1277, "loc": { "start": { "line": 45, "column": 0 }, "end": { "line": 45, "column": 27 } } }, { "type": "CommentBlock", "value": "*\r\n * Converts the given parameters to a valid shape definition\r\n * @param {*} layers\r\n * @returns {Array}\r\n ", "start": 1440, "end": 1594, "loc": { "start": { "line": 51, "column": 0 }, "end": { "line": 55, "column": 3 } } }, { "type": "CommentBlock", "value": "*\r\n * Cache which shapes are valid short keys and which not\r\n * @type {Map}\r\n ", "start": 1858, "end": 1957, "loc": { "start": { "line": 67, "column": 0 }, "end": { "line": 70, "column": 3 } } }, { "type": "CommentBlock", "value": "* @type {Array} ", "start": 2413, "end": 2445, "loc": { "start": { "line": 88, "column": 22 }, "end": { "line": 88, "column": 54 } } }, { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {object} param0\r\n * @param {Array=} param0.layers\r\n ", "start": 2541, "end": 2642, "loc": { "start": { "line": 95, "column": 4 }, "end": { "line": 99, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * The layers from bottom to top\r\n * @type {Array}\r\n ", "start": 2708, "end": 2804, "loc": { "start": { "line": 103, "column": 8 }, "end": { "line": 106, "column": 11 } } }, { "type": "CommentBlock", "value": "* @type {string} ", "start": 2847, "end": 2868, "loc": { "start": { "line": 109, "column": 8 }, "end": { "line": 109, "column": 29 } } }, { "type": "CommentLine", "value": " Set on demand", "start": 2913, "end": 2929, "loc": { "start": { "line": 112, "column": 8 }, "end": { "line": 112, "column": 24 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates the definition from the given short key\r\n * @param {string} key\r\n * @returns {ShapeDefinition}\r\n ", "start": 2982, "end": 3115, "loc": { "start": { "line": 116, "column": 4 }, "end": { "line": 120, "column": 7 } } }, { "type": "CommentBlock", "value": "* @type {ShapeLayer} ", "start": 3410, "end": 3435, "loc": { "start": { "line": 128, "column": 12 }, "end": { "line": 128, "column": 37 } } }, { "type": "CommentLine", "value": " We know the hash so save some work", "start": 4239, "end": 4276, "loc": { "start": { "line": 148, "column": 8 }, "end": { "line": 148, "column": 45 } } }, { "type": "CommentBlock", "value": "*\r\n * Checks if a given string is a valid short key\r\n * @param {string} key\r\n * @returns {boolean}\r\n ", "start": 4357, "end": 4478, "loc": { "start": { "line": 153, "column": 4 }, "end": { "line": 157, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * INTERNAL\r\n * Checks if a given string is a valid short key\r\n * @param {string} key\r\n * @returns {boolean}\r\n ", "start": 4765, "end": 4903, "loc": { "start": { "line": 168, "column": 4 }, "end": { "line": 173, "column": 7 } } }, { "type": "CommentBlock", "value": "* @type {ShapeLayer} ", "start": 5218, "end": 5243, "loc": { "start": { "line": 183, "column": 12 }, "end": { "line": 183, "column": 37 } } }, { "type": "CommentLine", "value": " Valid shape", "start": 5648, "end": 5662, "loc": { "start": { "line": 192, "column": 16 }, "end": { "line": 192, "column": 30 } } }, { "type": "CommentLine", "value": " Invalid color", "start": 5756, "end": 5772, "loc": { "start": { "line": 195, "column": 24 }, "end": { "line": 195, "column": 40 } } }, { "type": "CommentLine", "value": " Make sure color is empty then, too", "start": 6072, "end": 6109, "loc": { "start": { "line": 204, "column": 20 }, "end": { "line": 204, "column": 57 } } }, { "type": "CommentLine", "value": " Invalid shape key", "start": 6265, "end": 6285, "loc": { "start": { "line": 209, "column": 20 }, "end": { "line": 209, "column": 40 } } }, { "type": "CommentLine", "value": " Empty layer", "start": 6405, "end": 6419, "loc": { "start": { "line": 215, "column": 16 }, "end": { "line": 215, "column": 30 } } }, { "type": "CommentBlock", "value": "*\r\n * Internal method to clone the shape definition\r\n * @returns {Array}\r\n ", "start": 6645, "end": 6748, "loc": { "start": { "line": 228, "column": 4 }, "end": { "line": 231, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns if the definition is entirely empty^\r\n * @returns {boolean}\r\n ", "start": 6849, "end": 6941, "loc": { "start": { "line": 236, "column": 4 }, "end": { "line": 239, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns a unique id for this shape\r\n * @returns {string}\r\n ", "start": 7023, "end": 7104, "loc": { "start": { "line": 244, "column": 4 }, "end": { "line": 247, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Draws the shape definition\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {DrawParameters} parameters\r\n * @param {number=} diameter\r\n ", "start": 7886, "end": 8062, "loc": { "start": { "line": 274, "column": 4 }, "end": { "line": 280, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Draws the item to a canvas\r\n * @param {CanvasRenderingContext2D} context\r\n * @param {number} size\r\n ", "start": 8831, "end": 8957, "loc": { "start": { "line": 301, "column": 4 }, "end": { "line": 305, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates this shape as a canvas\r\n * @param {number} size\r\n ", "start": 9119, "end": 9201, "loc": { "start": { "line": 310, "column": 4 }, "end": { "line": 313, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {HTMLCanvasElement} canvas\r\n * @param {CanvasRenderingContext2D} context\r\n * @param {number} w\r\n * @param {number} h\r\n * @param {number} dpi\r\n ", "start": 9588, "end": 9780, "loc": { "start": { "line": 325, "column": 4 }, "end": { "line": 332, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns a definition with only the given quadrants\r\n * @param {Array} includeQuadrants\r\n * @returns {ShapeDefinition}\r\n ", "start": 14692, "end": 14846, "loc": { "start": { "line": 448, "column": 4 }, "end": { "line": 452, "column": 7 } } }, { "type": "CommentLine", "value": " Check if the layer is entirely empty", "start": 15472, "end": 15511, "loc": { "start": { "line": 466, "column": 12 }, "end": { "line": 466, "column": 51 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns a definition which was rotated clockwise\r\n * @returns {ShapeDefinition}\r\n ", "start": 15729, "end": 15833, "loc": { "start": { "line": 475, "column": 4 }, "end": { "line": 478, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns a definition which was rotated counter clockwise\r\n * @returns {ShapeDefinition}\r\n ", "start": 16208, "end": 16320, "loc": { "start": { "line": 489, "column": 4 }, "end": { "line": 492, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns a definition which was rotated 180 degrees\r\n * @returns {ShapeDefinition}\r\n ", "start": 16695, "end": 16801, "loc": { "start": { "line": 503, "column": 4 }, "end": { "line": 506, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Stacks the given shape definition on top.\r\n * @param {ShapeDefinition} definition\r\n ", "start": 17168, "end": 17274, "loc": { "start": { "line": 516, "column": 4 }, "end": { "line": 519, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * We want to find the number `layerToMergeAt` such that when the top shape is placed at that\r\n * layer, the smallest gap between shapes is only 1. Instead of doing a guess-and-check method to\r\n * find the appropriate layer, we just calculate all the gaps assuming a merge at layer 0, even\r\n * though they go negative, and calculating the number to add to it so the minimum gap is 1 (ends\r\n * up being 1 - minimum).\r\n ", "start": 18572, "end": 19045, "loc": { "start": { "line": 551, "column": 8 }, "end": { "line": 557, "column": 11 } } }, { "type": "CommentLine", "value": " Can't merge at a layer lower than 0", "start": 19335, "end": 19373, "loc": { "start": { "line": 563, "column": 8 }, "end": { "line": 563, "column": 46 } } }, { "type": "CommentLine", "value": " Limit to 4 layers at max", "start": 20231, "end": 20258, "loc": { "start": { "line": 581, "column": 8 }, "end": { "line": 581, "column": 35 } } }, { "type": "CommentBlock", "value": "*\r\n * Clones the shape and colors everything in the given color\r\n * @param {enumColors} color\r\n ", "start": 20371, "end": 20483, "loc": { "start": { "line": 587, "column": 4 }, "end": { "line": 590, "column": 7 } } }, { "type": "CommentBlock", "value": "*\r\n * Clones the shape and colors everything in the given colors\r\n * @param {[enumColors, enumColors, enumColors, enumColors]} colors\r\n ", "start": 21032, "end": 21184, "loc": { "start": { "line": 606, "column": 4 }, "end": { "line": 609, "column": 7 } } } ], "tokens": [ { "type": { "label": "import", "keyword": "import", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "import", "start": 0, "end": 6, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7, "end": 8, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "makeOffscreenBuffer", "start": 9, "end": 28, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 28 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 29, "end": 30, "loc": { "start": { "line": 1, "column": 29 }, "end": { "line": 1, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 31, "end": 35, "loc": { "start": { "line": 1, "column": 31 }, "end": { "line": 1, "column": 35 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../core/buffer_utils", "start": 36, "end": 58, "loc": { "start": { "line": 1, "column": 36 }, "end": { "line": 1, "column": 58 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 58, "end": 59, "loc": { "start": { "line": 1, "column": 58 }, "end": { "line": 1, "column": 59 } } }, { "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": 61, "end": 67, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 68, "end": 69, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 70, "end": 82, "loc": { "start": { "line": 2, "column": 9 }, "end": { "line": 2, "column": 21 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 83, "end": 84, "loc": { "start": { "line": 2, "column": 22 }, "end": { "line": 2, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 85, "end": 89, "loc": { "start": { "line": 2, "column": 24 }, "end": { "line": 2, "column": 28 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../core/config", "start": 90, "end": 106, "loc": { "start": { "line": 2, "column": 29 }, "end": { "line": 2, "column": 45 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 106, "end": 107, "loc": { "start": { "line": 2, "column": 45 }, "end": { "line": 2, "column": 46 } } }, { "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": 109, "end": 115, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 116, "end": 117, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "smoothenDpi", "start": 118, "end": 129, "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 20 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 130, "end": 131, "loc": { "start": { "line": 3, "column": 21 }, "end": { "line": 3, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 132, "end": 136, "loc": { "start": { "line": 3, "column": 23 }, "end": { "line": 3, "column": 27 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../core/dpi_manager", "start": 137, "end": 158, "loc": { "start": { "line": 3, "column": 28 }, "end": { "line": 3, "column": 49 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 158, "end": 159, "loc": { "start": { "line": 3, "column": 49 }, "end": { "line": 3, "column": 50 } } }, { "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": 161, "end": 167, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 168, "end": 169, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "DrawParameters", "start": 170, "end": 184, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 23 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 185, "end": 186, "loc": { "start": { "line": 4, "column": 24 }, "end": { "line": 4, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 187, "end": 191, "loc": { "start": { "line": 4, "column": 26 }, "end": { "line": 4, "column": 30 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../core/draw_parameters", "start": 192, "end": 217, "loc": { "start": { "line": 4, "column": 31 }, "end": { "line": 4, "column": 56 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 217, "end": 218, "loc": { "start": { "line": 4, "column": 56 }, "end": { "line": 4, "column": 57 } } }, { "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": 220, "end": 226, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 227, "end": 228, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Vector", "start": 229, "end": 235, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 15 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 236, "end": 237, "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 238, "end": 242, "loc": { "start": { "line": 5, "column": 18 }, "end": { "line": 5, "column": 22 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../core/vector", "start": 243, "end": 259, "loc": { "start": { "line": 5, "column": 23 }, "end": { "line": 5, "column": 39 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 259, "end": 260, "loc": { "start": { "line": 5, "column": 39 }, "end": { "line": 5, "column": 40 } } }, { "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": 262, "end": 268, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 269, "end": 270, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BasicSerializableObject", "start": 271, "end": 294, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 32 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 294, "end": 295, "loc": { "start": { "line": 6, "column": 32 }, "end": { "line": 6, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "types", "start": 296, "end": 301, "loc": { "start": { "line": 6, "column": 34 }, "end": { "line": 6, "column": 39 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 302, "end": 303, "loc": { "start": { "line": 6, "column": 40 }, "end": { "line": 6, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 304, "end": 308, "loc": { "start": { "line": 6, "column": 42 }, "end": { "line": 6, "column": 46 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "../savegame/serialization", "start": 309, "end": 336, "loc": { "start": { "line": 6, "column": 47 }, "end": { "line": 6, "column": 74 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 336, "end": 337, "loc": { "start": { "line": 6, "column": 74 }, "end": { "line": 6, "column": 75 } } }, { "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": 339, "end": 345, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 346, "end": 347, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumColors", "start": 348, "end": 358, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 19 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 358, "end": 359, "loc": { "start": { "line": 7, "column": 19 }, "end": { "line": 7, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumColorsToHexCode", "start": 360, "end": 379, "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 7, "column": 40 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 379, "end": 380, "loc": { "start": { "line": 7, "column": 40 }, "end": { "line": 7, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumColorToShortcode", "start": 381, "end": 401, "loc": { "start": { "line": 7, "column": 42 }, "end": { "line": 7, "column": 62 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 401, "end": 402, "loc": { "start": { "line": 7, "column": 62 }, "end": { "line": 7, "column": 63 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumShortcodeToColor", "start": 403, "end": 423, "loc": { "start": { "line": 7, "column": 64 }, "end": { "line": 7, "column": 84 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 424, "end": 425, "loc": { "start": { "line": 7, "column": 85 }, "end": { "line": 7, "column": 86 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 426, "end": 430, "loc": { "start": { "line": 7, "column": 87 }, "end": { "line": 7, "column": 91 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./colors", "start": 431, "end": 441, "loc": { "start": { "line": 7, "column": 92 }, "end": { "line": 7, "column": 102 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 441, "end": 442, "loc": { "start": { "line": 7, "column": 102 }, "end": { "line": 7, "column": 103 } } }, { "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": 444, "end": 450, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 451, "end": 452, "loc": { "start": { "line": 8, "column": 7 }, "end": { "line": 8, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "THEME", "start": 453, "end": 458, "loc": { "start": { "line": 8, "column": 9 }, "end": { "line": 8, "column": 14 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 459, "end": 460, "loc": { "start": { "line": 8, "column": 15 }, "end": { "line": 8, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 461, "end": 465, "loc": { "start": { "line": 8, "column": 17 }, "end": { "line": 8, "column": 21 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./theme", "start": 466, "end": 475, "loc": { "start": { "line": 8, "column": 22 }, "end": { "line": 8, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 475, "end": 476, "loc": { "start": { "line": 8, "column": 31 }, "end": { "line": 8, "column": 32 } } }, { "type": "CommentBlock", "value": "*\r\n * @typedef {{\r\n * subShape: enumSubShape,\r\n * color: enumColors,\r\n * }} ShapeLayerItem\r\n ", "start": 480, "end": 581, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 15, "column": 3 } } }, { "type": "CommentBlock", "value": "*\r\n * Order is Q1 (tr), Q2(br), Q3(bl), Q4(tl)\r\n * @typedef {[ShapeLayerItem?, ShapeLayerItem?, ShapeLayerItem?, ShapeLayerItem?]} ShapeLayer\r\n ", "start": 585, "end": 733, "loc": { "start": { "line": 17, "column": 0 }, "end": { "line": 20, "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": 737, "end": 742, "loc": { "start": { "line": 22, "column": 0 }, "end": { "line": 22, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "arrayQuadrantIndexToOffset", "start": 743, "end": 769, "loc": { "start": { "line": 22, "column": 6 }, "end": { "line": 22, "column": 32 } } }, { "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": 22, "column": 33 }, "end": { "line": 22, "column": 34 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 772, "end": 773, "loc": { "start": { "line": 22, "column": 35 }, "end": { "line": 22, "column": 36 } } }, { "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": 779, "end": 782, "loc": { "start": { "line": 23, "column": 4 }, "end": { "line": 23, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Vector", "start": 783, "end": 789, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 789, "end": 790, "loc": { "start": { "line": 23, "column": 14 }, "end": { "line": 23, "column": 15 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 790, "end": 791, "loc": { "start": { "line": 23, "column": 15 }, "end": { "line": 23, "column": 16 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 791, "end": 792, "loc": { "start": { "line": 23, "column": 16 }, "end": { "line": 23, "column": 17 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 793, "end": 794, "loc": { "start": { "line": 23, "column": 18 }, "end": { "line": 23, "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": 794, "end": 795, "loc": { "start": { "line": 23, "column": 19 }, "end": { "line": 23, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 795, "end": 796, "loc": { "start": { "line": 23, "column": 20 }, "end": { "line": 23, "column": 21 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 796, "end": 797, "loc": { "start": { "line": 23, "column": 21 }, "end": { "line": 23, "column": 22 } } }, { "type": "CommentLine", "value": " tr", "start": 798, "end": 803, "loc": { "start": { "line": 23, "column": 23 }, "end": { "line": 23, "column": 28 } } }, { "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": 809, "end": 812, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Vector", "start": 813, "end": 819, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 819, "end": 820, "loc": { "start": { "line": 24, "column": 14 }, "end": { "line": 24, "column": 15 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 820, "end": 821, "loc": { "start": { "line": 24, "column": 15 }, "end": { "line": 24, "column": 16 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 821, "end": 822, "loc": { "start": { "line": 24, "column": 16 }, "end": { "line": 24, "column": 17 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 823, "end": 824, "loc": { "start": { "line": 24, "column": 18 }, "end": { "line": 24, "column": 19 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 824, "end": 825, "loc": { "start": { "line": 24, "column": 19 }, "end": { "line": 24, "column": 20 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 825, "end": 826, "loc": { "start": { "line": 24, "column": 20 }, "end": { "line": 24, "column": 21 } } }, { "type": "CommentLine", "value": " br", "start": 827, "end": 832, "loc": { "start": { "line": 24, "column": 22 }, "end": { "line": 24, "column": 27 } } }, { "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": 838, "end": 841, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Vector", "start": 842, "end": 848, "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 848, "end": 849, "loc": { "start": { "line": 25, "column": 14 }, "end": { "line": 25, "column": 15 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 849, "end": 850, "loc": { "start": { "line": 25, "column": 15 }, "end": { "line": 25, "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": 850, "end": 851, "loc": { "start": { "line": 25, "column": 16 }, "end": { "line": 25, "column": 17 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 851, "end": 852, "loc": { "start": { "line": 25, "column": 17 }, "end": { "line": 25, "column": 18 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 853, "end": 854, "loc": { "start": { "line": 25, "column": 19 }, "end": { "line": 25, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 854, "end": 855, "loc": { "start": { "line": 25, "column": 20 }, "end": { "line": 25, "column": 21 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 855, "end": 856, "loc": { "start": { "line": 25, "column": 21 }, "end": { "line": 25, "column": 22 } } }, { "type": "CommentLine", "value": " bl", "start": 857, "end": 862, "loc": { "start": { "line": 25, "column": 23 }, "end": { "line": 25, "column": 28 } } }, { "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": 868, "end": 871, "loc": { "start": { "line": 26, "column": 4 }, "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": "Vector", "start": 872, "end": 878, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 878, "end": 879, "loc": { "start": { "line": 26, "column": 14 }, "end": { "line": 26, "column": 15 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 879, "end": 880, "loc": { "start": { "line": 26, "column": 15 }, "end": { "line": 26, "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": 880, "end": 881, "loc": { "start": { "line": 26, "column": 16 }, "end": { "line": 26, "column": 17 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 881, "end": 882, "loc": { "start": { "line": 26, "column": 17 }, "end": { "line": 26, "column": 18 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 883, "end": 884, "loc": { "start": { "line": 26, "column": 19 }, "end": { "line": 26, "column": 20 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 884, "end": 885, "loc": { "start": { "line": 26, "column": 20 }, "end": { "line": 26, "column": 21 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 885, "end": 886, "loc": { "start": { "line": 26, "column": 21 }, "end": { "line": 26, "column": 22 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 886, "end": 887, "loc": { "start": { "line": 26, "column": 22 }, "end": { "line": 26, "column": 23 } } }, { "type": "CommentLine", "value": " tl", "start": 888, "end": 893, "loc": { "start": { "line": 26, "column": 24 }, "end": { "line": 26, "column": 29 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 895, "end": 896, "loc": { "start": { "line": 27, "column": 0 }, "end": { "line": 27, "column": 1 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 896, "end": 897, "loc": { "start": { "line": 27, "column": 1 }, "end": { "line": 27, "column": 2 } } }, { "type": "CommentBlock", "value": "* @enum {string} ", "start": 901, "end": 922, "loc": { "start": { "line": 29, "column": 0 }, "end": { "line": 29, "column": 21 } } }, { "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": 924, "end": 930, "loc": { "start": { "line": 30, "column": 0 }, "end": { "line": 30, "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": 931, "end": 936, "loc": { "start": { "line": 30, "column": 7 }, "end": { "line": 30, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumSubShape", "start": 937, "end": 949, "loc": { "start": { "line": 30, "column": 13 }, "end": { "line": 30, "column": 25 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 950, "end": 951, "loc": { "start": { "line": 30, "column": 26 }, "end": { "line": 30, "column": 27 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 952, "end": 953, "loc": { "start": { "line": 30, "column": 28 }, "end": { "line": 30, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rect", "start": 959, "end": 963, "loc": { "start": { "line": 31, "column": 4 }, "end": { "line": 31, "column": 8 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 963, "end": 964, "loc": { "start": { "line": 31, "column": 8 }, "end": { "line": 31, "column": 9 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "rect", "start": 965, "end": 971, "loc": { "start": { "line": 31, "column": 10 }, "end": { "line": 31, "column": 16 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 971, "end": 972, "loc": { "start": { "line": 31, "column": 16 }, "end": { "line": 31, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "circle", "start": 978, "end": 984, "loc": { "start": { "line": 32, "column": 4 }, "end": { "line": 32, "column": 10 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 984, "end": 985, "loc": { "start": { "line": 32, "column": 10 }, "end": { "line": 32, "column": 11 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "circle", "start": 986, "end": 994, "loc": { "start": { "line": 32, "column": 12 }, "end": { "line": 32, "column": 20 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 994, "end": 995, "loc": { "start": { "line": 32, "column": 20 }, "end": { "line": 32, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "star", "start": 1001, "end": 1005, "loc": { "start": { "line": 33, "column": 4 }, "end": { "line": 33, "column": 8 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1005, "end": 1006, "loc": { "start": { "line": 33, "column": 8 }, "end": { "line": 33, "column": 9 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "star", "start": 1007, "end": 1013, "loc": { "start": { "line": 33, "column": 10 }, "end": { "line": 33, "column": 16 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1013, "end": 1014, "loc": { "start": { "line": 33, "column": 16 }, "end": { "line": 33, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "windmill", "start": 1020, "end": 1028, "loc": { "start": { "line": 34, "column": 4 }, "end": { "line": 34, "column": 12 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1028, "end": 1029, "loc": { "start": { "line": 34, "column": 12 }, "end": { "line": 34, "column": 13 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "windmill", "start": 1030, "end": 1040, "loc": { "start": { "line": 34, "column": 14 }, "end": { "line": 34, "column": 24 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1040, "end": 1041, "loc": { "start": { "line": 34, "column": 24 }, "end": { "line": 34, "column": 25 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1043, "end": 1044, "loc": { "start": { "line": 35, "column": 0 }, "end": { "line": 35, "column": 1 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1044, "end": 1045, "loc": { "start": { "line": 35, "column": 1 }, "end": { "line": 35, "column": 2 } } }, { "type": "CommentBlock", "value": "* @enum {string} ", "start": 1049, "end": 1070, "loc": { "start": { "line": 37, "column": 0 }, "end": { "line": 37, "column": 21 } } }, { "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": 1072, "end": 1078, "loc": { "start": { "line": 38, "column": 0 }, "end": { "line": 38, "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": 1079, "end": 1084, "loc": { "start": { "line": 38, "column": 7 }, "end": { "line": 38, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumSubShapeToShortcode", "start": 1085, "end": 1108, "loc": { "start": { "line": 38, "column": 13 }, "end": { "line": 38, "column": 36 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1109, "end": 1110, "loc": { "start": { "line": 38, "column": 37 }, "end": { "line": 38, "column": 38 } } }, { "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": 38, "column": 39 }, "end": { "line": 38, "column": 40 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1118, "end": 1119, "loc": { "start": { "line": 39, "column": 4 }, "end": { "line": 39, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumSubShape", "start": 1119, "end": 1131, "loc": { "start": { "line": 39, "column": 5 }, "end": { "line": 39, "column": 17 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1131, "end": 1132, "loc": { "start": { "line": 39, "column": 17 }, "end": { "line": 39, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rect", "start": 1132, "end": 1136, "loc": { "start": { "line": 39, "column": 18 }, "end": { "line": 39, "column": 22 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1136, "end": 1137, "loc": { "start": { "line": 39, "column": 22 }, "end": { "line": 39, "column": 23 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1137, "end": 1138, "loc": { "start": { "line": 39, "column": 23 }, "end": { "line": 39, "column": 24 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "R", "start": 1139, "end": 1142, "loc": { "start": { "line": 39, "column": 25 }, "end": { "line": 39, "column": 28 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1142, "end": 1143, "loc": { "start": { "line": 39, "column": 28 }, "end": { "line": 39, "column": 29 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1149, "end": 1150, "loc": { "start": { "line": 40, "column": 4 }, "end": { "line": 40, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumSubShape", "start": 1150, "end": 1162, "loc": { "start": { "line": 40, "column": 5 }, "end": { "line": 40, "column": 17 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1162, "end": 1163, "loc": { "start": { "line": 40, "column": 17 }, "end": { "line": 40, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "circle", "start": 1163, "end": 1169, "loc": { "start": { "line": 40, "column": 18 }, "end": { "line": 40, "column": 24 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1169, "end": 1170, "loc": { "start": { "line": 40, "column": 24 }, "end": { "line": 40, "column": 25 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1170, "end": 1171, "loc": { "start": { "line": 40, "column": 25 }, "end": { "line": 40, "column": 26 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "C", "start": 1172, "end": 1175, "loc": { "start": { "line": 40, "column": 27 }, "end": { "line": 40, "column": 30 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1175, "end": 1176, "loc": { "start": { "line": 40, "column": 30 }, "end": { "line": 40, "column": 31 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1182, "end": 1183, "loc": { "start": { "line": 41, "column": 4 }, "end": { "line": 41, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumSubShape", "start": 1183, "end": 1195, "loc": { "start": { "line": 41, "column": 5 }, "end": { "line": 41, "column": 17 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1195, "end": 1196, "loc": { "start": { "line": 41, "column": 17 }, "end": { "line": 41, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "star", "start": 1196, "end": 1200, "loc": { "start": { "line": 41, "column": 18 }, "end": { "line": 41, "column": 22 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1200, "end": 1201, "loc": { "start": { "line": 41, "column": 22 }, "end": { "line": 41, "column": 23 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1201, "end": 1202, "loc": { "start": { "line": 41, "column": 23 }, "end": { "line": 41, "column": 24 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "S", "start": 1203, "end": 1206, "loc": { "start": { "line": 41, "column": 25 }, "end": { "line": 41, "column": 28 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1206, "end": 1207, "loc": { "start": { "line": 41, "column": 28 }, "end": { "line": 41, "column": 29 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1213, "end": 1214, "loc": { "start": { "line": 42, "column": 4 }, "end": { "line": 42, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumSubShape", "start": 1214, "end": 1226, "loc": { "start": { "line": 42, "column": 5 }, "end": { "line": 42, "column": 17 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1226, "end": 1227, "loc": { "start": { "line": 42, "column": 17 }, "end": { "line": 42, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "windmill", "start": 1227, "end": 1235, "loc": { "start": { "line": 42, "column": 18 }, "end": { "line": 42, "column": 26 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1235, "end": 1236, "loc": { "start": { "line": 42, "column": 26 }, "end": { "line": 42, "column": 27 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1236, "end": 1237, "loc": { "start": { "line": 42, "column": 27 }, "end": { "line": 42, "column": 28 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "W", "start": 1238, "end": 1241, "loc": { "start": { "line": 42, "column": 29 }, "end": { "line": 42, "column": 32 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1241, "end": 1242, "loc": { "start": { "line": 42, "column": 32 }, "end": { "line": 42, "column": 33 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1244, "end": 1245, "loc": { "start": { "line": 43, "column": 0 }, "end": { "line": 43, "column": 1 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1245, "end": 1246, "loc": { "start": { "line": 43, "column": 1 }, "end": { "line": 43, "column": 2 } } }, { "type": "CommentBlock", "value": "* @enum {enumSubShape} ", "start": 1250, "end": 1277, "loc": { "start": { "line": 45, "column": 0 }, "end": { "line": 45, "column": 27 } } }, { "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": 1279, "end": 1285, "loc": { "start": { "line": 46, "column": 0 }, "end": { "line": 46, "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": 1286, "end": 1291, "loc": { "start": { "line": 46, "column": 7 }, "end": { "line": 46, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumShortcodeToSubShape", "start": 1292, "end": 1315, "loc": { "start": { "line": 46, "column": 13 }, "end": { "line": 46, "column": 36 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1316, "end": 1317, "loc": { "start": { "line": 46, "column": 37 }, "end": { "line": 46, "column": 38 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1318, "end": 1319, "loc": { "start": { "line": 46, "column": 39 }, "end": { "line": 46, "column": 40 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1319, "end": 1320, "loc": { "start": { "line": 46, "column": 40 }, "end": { "line": 46, "column": 41 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1320, "end": 1321, "loc": { "start": { "line": 46, "column": 41 }, "end": { "line": 46, "column": 42 } } }, { "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": 1323, "end": 1326, "loc": { "start": { "line": 47, "column": 0 }, "end": { "line": 47, "column": 3 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1327, "end": 1328, "loc": { "start": { "line": 47, "column": 4 }, "end": { "line": 47, "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": 1328, "end": 1333, "loc": { "start": { "line": 47, "column": 5 }, "end": { "line": 47, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 1334, "end": 1337, "loc": { "start": { "line": 47, "column": 11 }, "end": { "line": 47, "column": 14 } } }, { "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": 1338, "end": 1340, "loc": { "start": { "line": 47, "column": 15 }, "end": { "line": 47, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumSubShapeToShortcode", "start": 1341, "end": 1364, "loc": { "start": { "line": 47, "column": 18 }, "end": { "line": 47, "column": 41 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1364, "end": 1365, "loc": { "start": { "line": 47, "column": 41 }, "end": { "line": 47, "column": 42 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1366, "end": 1367, "loc": { "start": { "line": 47, "column": 43 }, "end": { "line": 47, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumShortcodeToSubShape", "start": 1373, "end": 1396, "loc": { "start": { "line": 48, "column": 4 }, "end": { "line": 48, "column": 27 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1396, "end": 1397, "loc": { "start": { "line": 48, "column": 27 }, "end": { "line": 48, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumSubShapeToShortcode", "start": 1397, "end": 1420, "loc": { "start": { "line": 48, "column": 28 }, "end": { "line": 48, "column": 51 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1420, "end": 1421, "loc": { "start": { "line": 48, "column": 51 }, "end": { "line": 48, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 1421, "end": 1424, "loc": { "start": { "line": 48, "column": 52 }, "end": { "line": 48, "column": 55 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1424, "end": 1425, "loc": { "start": { "line": 48, "column": 55 }, "end": { "line": 48, "column": 56 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1425, "end": 1426, "loc": { "start": { "line": 48, "column": 56 }, "end": { "line": 48, "column": 57 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1427, "end": 1428, "loc": { "start": { "line": 48, "column": 58 }, "end": { "line": 48, "column": 59 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 1429, "end": 1432, "loc": { "start": { "line": 48, "column": 60 }, "end": { "line": 48, "column": 63 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1432, "end": 1433, "loc": { "start": { "line": 48, "column": 63 }, "end": { "line": 48, "column": 64 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1435, "end": 1436, "loc": { "start": { "line": 49, "column": 0 }, "end": { "line": 49, "column": 1 } } }, { "type": "CommentBlock", "value": "*\r\n * Converts the given parameters to a valid shape definition\r\n * @param {*} layers\r\n * @returns {Array}\r\n ", "start": 1440, "end": 1594, "loc": { "start": { "line": 51, "column": 0 }, "end": { "line": 55, "column": 3 } } }, { "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": 1596, "end": 1602, "loc": { "start": { "line": 56, "column": 0 }, "end": { "line": 56, "column": 6 } } }, { "type": { "label": "function", "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "function", "start": 1603, "end": 1611, "loc": { "start": { "line": 56, "column": 7 }, "end": { "line": 56, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "createSimpleShape", "start": 1612, "end": 1629, "loc": { "start": { "line": 56, "column": 16 }, "end": { "line": 56, "column": 33 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1629, "end": 1630, "loc": { "start": { "line": 56, "column": 33 }, "end": { "line": 56, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 1630, "end": 1636, "loc": { "start": { "line": 56, "column": 34 }, "end": { "line": 56, "column": 40 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1636, "end": 1637, "loc": { "start": { "line": 56, "column": 40 }, "end": { "line": 56, "column": 41 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1638, "end": 1639, "loc": { "start": { "line": 56, "column": 42 }, "end": { "line": 56, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 1645, "end": 1651, "loc": { "start": { "line": 57, "column": 4 }, "end": { "line": 57, "column": 10 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1651, "end": 1652, "loc": { "start": { "line": 57, "column": 10 }, "end": { "line": 57, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "forEach", "start": 1652, "end": 1659, "loc": { "start": { "line": 57, "column": 11 }, "end": { "line": 57, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1659, "end": 1660, "loc": { "start": { "line": 57, "column": 18 }, "end": { "line": 57, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 1660, "end": 1665, "loc": { "start": { "line": 57, "column": 19 }, "end": { "line": 57, "column": 24 } } }, { "type": { "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1666, "end": 1668, "loc": { "start": { "line": 57, "column": 25 }, "end": { "line": 57, "column": 27 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1669, "end": 1670, "loc": { "start": { "line": 57, "column": 28 }, "end": { "line": 57, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 1680, "end": 1685, "loc": { "start": { "line": 58, "column": 8 }, "end": { "line": 58, "column": 13 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1685, "end": 1686, "loc": { "start": { "line": 58, "column": 13 }, "end": { "line": 58, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "forEach", "start": 1686, "end": 1693, "loc": { "start": { "line": 58, "column": 14 }, "end": { "line": 58, "column": 21 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1693, "end": 1694, "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": "item", "start": 1694, "end": 1698, "loc": { "start": { "line": 58, "column": 22 }, "end": { "line": 58, "column": 26 } } }, { "type": { "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1699, "end": 1701, "loc": { "start": { "line": 58, "column": 27 }, "end": { "line": 58, "column": 29 } } }, { "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": 58, "column": 30 }, "end": { "line": 58, "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": 1717, "end": 1719, "loc": { "start": { "line": 59, "column": 12 }, "end": { "line": 59, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1720, "end": 1721, "loc": { "start": { "line": 59, "column": 15 }, "end": { "line": 59, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "item", "start": 1721, "end": 1725, "loc": { "start": { "line": 59, "column": 16 }, "end": { "line": 59, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1725, "end": 1726, "loc": { "start": { "line": 59, "column": 20 }, "end": { "line": 59, "column": 21 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1727, "end": 1728, "loc": { "start": { "line": 59, "column": 22 }, "end": { "line": 59, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "item", "start": 1746, "end": 1750, "loc": { "start": { "line": 60, "column": 16 }, "end": { "line": 60, "column": 20 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1750, "end": 1751, "loc": { "start": { "line": 60, "column": 20 }, "end": { "line": 60, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 1751, "end": 1756, "loc": { "start": { "line": 60, "column": 21 }, "end": { "line": 60, "column": 26 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1757, "end": 1758, "loc": { "start": { "line": 60, "column": 27 }, "end": { "line": 60, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "item", "start": 1759, "end": 1763, "loc": { "start": { "line": 60, "column": 29 }, "end": { "line": 60, "column": 33 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1763, "end": 1764, "loc": { "start": { "line": 60, "column": 33 }, "end": { "line": 60, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 1764, "end": 1769, "loc": { "start": { "line": 60, "column": 34 }, "end": { "line": 60, "column": 39 } } }, { "type": { "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 1, "updateContext": null }, "value": "||", "start": 1770, "end": 1772, "loc": { "start": { "line": 60, "column": 40 }, "end": { "line": 60, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumColors", "start": 1773, "end": 1783, "loc": { "start": { "line": 60, "column": 43 }, "end": { "line": 60, "column": 53 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1783, "end": 1784, "loc": { "start": { "line": 60, "column": 53 }, "end": { "line": 60, "column": 54 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "uncolored", "start": 1784, "end": 1793, "loc": { "start": { "line": 60, "column": 54 }, "end": { "line": 60, "column": 63 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1793, "end": 1794, "loc": { "start": { "line": 60, "column": 63 }, "end": { "line": 60, "column": 64 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1808, "end": 1809, "loc": { "start": { "line": 61, "column": 12 }, "end": { "line": 61, "column": 13 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1819, "end": 1820, "loc": { "start": { "line": 62, "column": 8 }, "end": { "line": 62, "column": 9 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1820, "end": 1821, "loc": { "start": { "line": 62, "column": 9 }, "end": { "line": 62, "column": 10 } } }, { "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": 62, "column": 10 }, "end": { "line": 62, "column": 11 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1828, "end": 1829, "loc": { "start": { "line": 63, "column": 4 }, "end": { "line": 63, "column": 5 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1829, "end": 1830, "loc": { "start": { "line": 63, "column": 5 }, "end": { "line": 63, "column": 6 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1830, "end": 1831, "loc": { "start": { "line": 63, "column": 6 }, "end": { "line": 63, "column": 7 } } }, { "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": 1837, "end": 1843, "loc": { "start": { "line": 64, "column": 4 }, "end": { "line": 64, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 1844, "end": 1850, "loc": { "start": { "line": 64, "column": 11 }, "end": { "line": 64, "column": 17 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1850, "end": 1851, "loc": { "start": { "line": 64, "column": 17 }, "end": { "line": 64, "column": 18 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1853, "end": 1854, "loc": { "start": { "line": 65, "column": 0 }, "end": { "line": 65, "column": 1 } } }, { "type": "CommentBlock", "value": "*\r\n * Cache which shapes are valid short keys and which not\r\n * @type {Map}\r\n ", "start": 1858, "end": 1957, "loc": { "start": { "line": 67, "column": 0 }, "end": { "line": 70, "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": 1959, "end": 1964, "loc": { "start": { "line": 71, "column": 0 }, "end": { "line": 71, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "SHORT_KEY_CACHE", "start": 1965, "end": 1980, "loc": { "start": { "line": 71, "column": 6 }, "end": { "line": 71, "column": 21 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1981, "end": 1982, "loc": { "start": { "line": 71, "column": 22 }, "end": { "line": 71, "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": 1983, "end": 1986, "loc": { "start": { "line": 71, "column": 24 }, "end": { "line": 71, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Map", "start": 1987, "end": 1990, "loc": { "start": { "line": 71, "column": 28 }, "end": { "line": 71, "column": 31 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1990, "end": 1991, "loc": { "start": { "line": 71, "column": 31 }, "end": { "line": 71, "column": 32 } } }, { "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": 71, "column": 32 }, "end": { "line": 71, "column": 33 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1992, "end": 1993, "loc": { "start": { "line": 71, "column": 33 }, "end": { "line": 71, "column": 34 } } }, { "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": 1997, "end": 2003, "loc": { "start": { "line": 73, "column": 0 }, "end": { "line": 73, "column": 6 } } }, { "type": { "label": "class", "keyword": "class", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "class", "start": 2004, "end": 2009, "loc": { "start": { "line": 73, "column": 7 }, "end": { "line": 73, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ShapeDefinition", "start": 2010, "end": 2025, "loc": { "start": { "line": 73, "column": 13 }, "end": { "line": 73, "column": 28 } } }, { "type": { "label": "extends", "keyword": "extends", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "extends", "start": 2026, "end": 2033, "loc": { "start": { "line": 73, "column": 29 }, "end": { "line": 73, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BasicSerializableObject", "start": 2034, "end": 2057, "loc": { "start": { "line": 73, "column": 37 }, "end": { "line": 73, "column": 60 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2058, "end": 2059, "loc": { "start": { "line": 73, "column": 61 }, "end": { "line": 73, "column": 62 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "static", "start": 2065, "end": 2071, "loc": { "start": { "line": 74, "column": 4 }, "end": { "line": 74, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getId", "start": 2072, "end": 2077, "loc": { "start": { "line": 74, "column": 11 }, "end": { "line": 74, "column": 16 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2077, "end": 2078, "loc": { "start": { "line": 74, "column": 16 }, "end": { "line": 74, "column": 17 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2078, "end": 2079, "loc": { "start": { "line": 74, "column": 17 }, "end": { "line": 74, "column": 18 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2080, "end": 2081, "loc": { "start": { "line": 74, "column": 19 }, "end": { "line": 74, "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": 2091, "end": 2097, "loc": { "start": { "line": 75, "column": 8 }, "end": { "line": 75, "column": 14 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "ShapeDefinition", "start": 2098, "end": 2115, "loc": { "start": { "line": 75, "column": 15 }, "end": { "line": 75, "column": 32 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2115, "end": 2116, "loc": { "start": { "line": 75, "column": 32 }, "end": { "line": 75, "column": 33 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2122, "end": 2123, "loc": { "start": { "line": 76, "column": 4 }, "end": { "line": 76, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "static", "start": 2131, "end": 2137, "loc": { "start": { "line": 78, "column": 4 }, "end": { "line": 78, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getSchema", "start": 2138, "end": 2147, "loc": { "start": { "line": 78, "column": 11 }, "end": { "line": 78, "column": 20 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2147, "end": 2148, "loc": { "start": { "line": 78, "column": 20 }, "end": { "line": 78, "column": 21 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2148, "end": 2149, "loc": { "start": { "line": 78, "column": 21 }, "end": { "line": 78, "column": 22 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2150, "end": 2151, "loc": { "start": { "line": 78, "column": 23 }, "end": { "line": 78, "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": 2161, "end": 2167, "loc": { "start": { "line": 79, "column": 8 }, "end": { "line": 79, "column": 14 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2168, "end": 2169, "loc": { "start": { "line": 79, "column": 15 }, "end": { "line": 79, "column": 16 } } }, { "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": 79, "column": 16 }, "end": { "line": 79, "column": 17 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2170, "end": 2171, "loc": { "start": { "line": 79, "column": 17 }, "end": { "line": 79, "column": 18 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2177, "end": 2178, "loc": { "start": { "line": 80, "column": 4 }, "end": { "line": 80, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "deserialize", "start": 2186, "end": 2197, "loc": { "start": { "line": 82, "column": 4 }, "end": { "line": 82, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2197, "end": 2198, "loc": { "start": { "line": 82, "column": 15 }, "end": { "line": 82, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 2198, "end": 2202, "loc": { "start": { "line": 82, "column": 16 }, "end": { "line": 82, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2202, "end": 2203, "loc": { "start": { "line": 82, "column": 20 }, "end": { "line": 82, "column": 21 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2204, "end": 2205, "loc": { "start": { "line": 82, "column": 22 }, "end": { "line": 82, "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": 2215, "end": 2220, "loc": { "start": { "line": 83, "column": 8 }, "end": { "line": 83, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "errorCode", "start": 2221, "end": 2230, "loc": { "start": { "line": 83, "column": 14 }, "end": { "line": 83, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2231, "end": 2232, "loc": { "start": { "line": 83, "column": 24 }, "end": { "line": 83, "column": 25 } } }, { "type": { "label": "super", "keyword": "super", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "super", "start": 2233, "end": 2238, "loc": { "start": { "line": 83, "column": 26 }, "end": { "line": 83, "column": 31 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2238, "end": 2239, "loc": { "start": { "line": 83, "column": 31 }, "end": { "line": 83, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "deserialize", "start": 2239, "end": 2250, "loc": { "start": { "line": 83, "column": 32 }, "end": { "line": 83, "column": 43 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2250, "end": 2251, "loc": { "start": { "line": 83, "column": 43 }, "end": { "line": 83, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 2251, "end": 2255, "loc": { "start": { "line": 83, "column": 44 }, "end": { "line": 83, "column": 48 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2255, "end": 2256, "loc": { "start": { "line": 83, "column": 48 }, "end": { "line": 83, "column": 49 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2256, "end": 2257, "loc": { "start": { "line": 83, "column": 49 }, "end": { "line": 83, "column": 50 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 2267, "end": 2269, "loc": { "start": { "line": 84, "column": 8 }, "end": { "line": 84, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2270, "end": 2271, "loc": { "start": { "line": 84, "column": 11 }, "end": { "line": 84, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "errorCode", "start": 2271, "end": 2280, "loc": { "start": { "line": 84, "column": 12 }, "end": { "line": 84, "column": 21 } } }, { "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": 84, "column": 21 }, "end": { "line": 84, "column": 22 } } }, { "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": 84, "column": 23 }, "end": { "line": 84, "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": 2297, "end": 2303, "loc": { "start": { "line": 85, "column": 12 }, "end": { "line": 85, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "errorCode", "start": 2304, "end": 2313, "loc": { "start": { "line": 85, "column": 19 }, "end": { "line": 85, "column": 28 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2313, "end": 2314, "loc": { "start": { "line": 85, "column": 28 }, "end": { "line": 85, "column": 29 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2324, "end": 2325, "loc": { "start": { "line": 86, "column": 8 }, "end": { "line": 86, "column": 9 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 2335, "end": 2340, "loc": { "start": { "line": 87, "column": 8 }, "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": "definition", "start": 2341, "end": 2351, "loc": { "start": { "line": 87, "column": 14 }, "end": { "line": 87, "column": 24 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2352, "end": 2353, "loc": { "start": { "line": 87, "column": 25 }, "end": { "line": 87, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ShapeDefinition", "start": 2354, "end": 2369, "loc": { "start": { "line": 87, "column": 27 }, "end": { "line": 87, "column": 42 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2369, "end": 2370, "loc": { "start": { "line": 87, "column": 42 }, "end": { "line": 87, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "fromShortKey", "start": 2370, "end": 2382, "loc": { "start": { "line": 87, "column": 43 }, "end": { "line": 87, "column": 55 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2382, "end": 2383, "loc": { "start": { "line": 87, "column": 55 }, "end": { "line": 87, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "data", "start": 2383, "end": 2387, "loc": { "start": { "line": 87, "column": 56 }, "end": { "line": 87, "column": 60 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2387, "end": 2388, "loc": { "start": { "line": 87, "column": 60 }, "end": { "line": 87, "column": 61 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2388, "end": 2389, "loc": { "start": { "line": 87, "column": 61 }, "end": { "line": 87, "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": 2399, "end": 2403, "loc": { "start": { "line": 88, "column": 8 }, "end": { "line": 88, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2403, "end": 2404, "loc": { "start": { "line": 88, "column": 12 }, "end": { "line": 88, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 2404, "end": 2410, "loc": { "start": { "line": 88, "column": 13 }, "end": { "line": 88, "column": 19 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2411, "end": 2412, "loc": { "start": { "line": 88, "column": 20 }, "end": { "line": 88, "column": 21 } } }, { "type": "CommentBlock", "value": "* @type {Array} ", "start": 2413, "end": 2445, "loc": { "start": { "line": 88, "column": 22 }, "end": { "line": 88, "column": 54 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2446, "end": 2447, "loc": { "start": { "line": 88, "column": 55 }, "end": { "line": 88, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 2447, "end": 2457, "loc": { "start": { "line": 88, "column": 56 }, "end": { "line": 88, "column": 66 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2457, "end": 2458, "loc": { "start": { "line": 88, "column": 66 }, "end": { "line": 88, "column": 67 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 2458, "end": 2464, "loc": { "start": { "line": 88, "column": 67 }, "end": { "line": 88, "column": 73 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2464, "end": 2465, "loc": { "start": { "line": 88, "column": 73 }, "end": { "line": 88, "column": 74 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2465, "end": 2466, "loc": { "start": { "line": 88, "column": 74 }, "end": { "line": 88, "column": 75 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2472, "end": 2473, "loc": { "start": { "line": 89, "column": 4 }, "end": { "line": 89, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "serialize", "start": 2481, "end": 2490, "loc": { "start": { "line": 91, "column": 4 }, "end": { "line": 91, "column": 13 } } }, { "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": 91, "column": 13 }, "end": { "line": 91, "column": 14 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2491, "end": 2492, "loc": { "start": { "line": 91, "column": 14 }, "end": { "line": 91, "column": 15 } } }, { "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": 91, "column": 16 }, "end": { "line": 91, "column": 17 } } }, { "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": 2504, "end": 2510, "loc": { "start": { "line": 92, "column": 8 }, "end": { "line": 92, "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": 2511, "end": 2515, "loc": { "start": { "line": 92, "column": 15 }, "end": { "line": 92, "column": 19 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2515, "end": 2516, "loc": { "start": { "line": 92, "column": 19 }, "end": { "line": 92, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getHash", "start": 2516, "end": 2523, "loc": { "start": { "line": 92, "column": 20 }, "end": { "line": 92, "column": 27 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2523, "end": 2524, "loc": { "start": { "line": 92, "column": 27 }, "end": { "line": 92, "column": 28 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2524, "end": 2525, "loc": { "start": { "line": 92, "column": 28 }, "end": { "line": 92, "column": 29 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2525, "end": 2526, "loc": { "start": { "line": 92, "column": 29 }, "end": { "line": 92, "column": 30 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2532, "end": 2533, "loc": { "start": { "line": 93, "column": 4 }, "end": { "line": 93, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {object} param0\r\n * @param {Array=} param0.layers\r\n ", "start": 2541, "end": 2642, "loc": { "start": { "line": 95, "column": 4 }, "end": { "line": 99, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "constructor", "start": 2648, "end": 2659, "loc": { "start": { "line": 100, "column": 4 }, "end": { "line": 100, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2659, "end": 2660, "loc": { "start": { "line": 100, "column": 15 }, "end": { "line": 100, "column": 16 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2660, "end": 2661, "loc": { "start": { "line": 100, "column": 16 }, "end": { "line": 100, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 2662, "end": 2668, "loc": { "start": { "line": 100, "column": 18 }, "end": { "line": 100, "column": 24 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2669, "end": 2670, "loc": { "start": { "line": 100, "column": 25 }, "end": { "line": 100, "column": 26 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2671, "end": 2672, "loc": { "start": { "line": 100, "column": 27 }, "end": { "line": 100, "column": 28 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2672, "end": 2673, "loc": { "start": { "line": 100, "column": 28 }, "end": { "line": 100, "column": 29 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2674, "end": 2675, "loc": { "start": { "line": 100, "column": 30 }, "end": { "line": 100, "column": 31 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2675, "end": 2676, "loc": { "start": { "line": 100, "column": 31 }, "end": { "line": 100, "column": 32 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2677, "end": 2678, "loc": { "start": { "line": 100, "column": 33 }, "end": { "line": 100, "column": 34 } } }, { "type": { "label": "super", "keyword": "super", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "super", "start": 2688, "end": 2693, "loc": { "start": { "line": 101, "column": 8 }, "end": { "line": 101, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2693, "end": 2694, "loc": { "start": { "line": 101, "column": 13 }, "end": { "line": 101, "column": 14 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2694, "end": 2695, "loc": { "start": { "line": 101, "column": 14 }, "end": { "line": 101, "column": 15 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2695, "end": 2696, "loc": { "start": { "line": 101, "column": 15 }, "end": { "line": 101, "column": 16 } } }, { "type": "CommentBlock", "value": "*\r\n * The layers from bottom to top\r\n * @type {Array}\r\n ", "start": 2708, "end": 2804, "loc": { "start": { "line": 103, "column": 8 }, "end": { "line": 106, "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": 2814, "end": 2818, "loc": { "start": { "line": 107, "column": 8 }, "end": { "line": 107, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2818, "end": 2819, "loc": { "start": { "line": 107, "column": 12 }, "end": { "line": 107, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 2819, "end": 2825, "loc": { "start": { "line": 107, "column": 13 }, "end": { "line": 107, "column": 19 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2826, "end": 2827, "loc": { "start": { "line": 107, "column": 20 }, "end": { "line": 107, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 2828, "end": 2834, "loc": { "start": { "line": 107, "column": 22 }, "end": { "line": 107, "column": 28 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2834, "end": 2835, "loc": { "start": { "line": 107, "column": 28 }, "end": { "line": 107, "column": 29 } } }, { "type": "CommentBlock", "value": "* @type {string} ", "start": 2847, "end": 2868, "loc": { "start": { "line": 109, "column": 8 }, "end": { "line": 109, "column": 29 } } }, { "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": 2878, "end": 2882, "loc": { "start": { "line": 110, "column": 8 }, "end": { "line": 110, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2882, "end": 2883, "loc": { "start": { "line": 110, "column": 12 }, "end": { "line": 110, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cachedHash", "start": 2883, "end": 2893, "loc": { "start": { "line": 110, "column": 13 }, "end": { "line": 110, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2894, "end": 2895, "loc": { "start": { "line": 110, "column": 24 }, "end": { "line": 110, "column": 25 } } }, { "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": 2896, "end": 2900, "loc": { "start": { "line": 110, "column": 26 }, "end": { "line": 110, "column": 30 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2900, "end": 2901, "loc": { "start": { "line": 110, "column": 30 }, "end": { "line": 110, "column": 31 } } }, { "type": "CommentLine", "value": " Set on demand", "start": 2913, "end": 2929, "loc": { "start": { "line": 112, "column": 8 }, "end": { "line": 112, "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": 2939, "end": 2943, "loc": { "start": { "line": 113, "column": 8 }, "end": { "line": 113, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2943, "end": 2944, "loc": { "start": { "line": 113, "column": 12 }, "end": { "line": 113, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bufferGenerator", "start": 2944, "end": 2959, "loc": { "start": { "line": 113, "column": 13 }, "end": { "line": 113, "column": 28 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2960, "end": 2961, "loc": { "start": { "line": 113, "column": 29 }, "end": { "line": 113, "column": 30 } } }, { "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": 2962, "end": 2966, "loc": { "start": { "line": 113, "column": 31 }, "end": { "line": 113, "column": 35 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2966, "end": 2967, "loc": { "start": { "line": 113, "column": 35 }, "end": { "line": 113, "column": 36 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2973, "end": 2974, "loc": { "start": { "line": 114, "column": 4 }, "end": { "line": 114, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates the definition from the given short key\r\n * @param {string} key\r\n * @returns {ShapeDefinition}\r\n ", "start": 2982, "end": 3115, "loc": { "start": { "line": 116, "column": 4 }, "end": { "line": 120, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "static", "start": 3121, "end": 3127, "loc": { "start": { "line": 121, "column": 4 }, "end": { "line": 121, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "fromShortKey", "start": 3128, "end": 3140, "loc": { "start": { "line": 121, "column": 11 }, "end": { "line": 121, "column": 23 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3140, "end": 3141, "loc": { "start": { "line": 121, "column": 23 }, "end": { "line": 121, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 3141, "end": 3144, "loc": { "start": { "line": 121, "column": 24 }, "end": { "line": 121, "column": 27 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3144, "end": 3145, "loc": { "start": { "line": 121, "column": 27 }, "end": { "line": 121, "column": 28 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3146, "end": 3147, "loc": { "start": { "line": 121, "column": 29 }, "end": { "line": 121, "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": 3157, "end": 3162, "loc": { "start": { "line": 122, "column": 8 }, "end": { "line": 122, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "sourceLayers", "start": 3163, "end": 3175, "loc": { "start": { "line": 122, "column": 14 }, "end": { "line": 122, "column": 26 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3176, "end": 3177, "loc": { "start": { "line": 122, "column": 27 }, "end": { "line": 122, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 3178, "end": 3181, "loc": { "start": { "line": 122, "column": 29 }, "end": { "line": 122, "column": 32 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3181, "end": 3182, "loc": { "start": { "line": 122, "column": 32 }, "end": { "line": 122, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "split", "start": 3182, "end": 3187, "loc": { "start": { "line": 122, "column": 33 }, "end": { "line": 122, "column": 38 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3187, "end": 3188, "loc": { "start": { "line": 122, "column": 38 }, "end": { "line": 122, "column": 39 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": ":", "start": 3188, "end": 3191, "loc": { "start": { "line": 122, "column": 39 }, "end": { "line": 122, "column": 42 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3191, "end": 3192, "loc": { "start": { "line": 122, "column": 42 }, "end": { "line": 122, "column": 43 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3192, "end": 3193, "loc": { "start": { "line": 122, "column": 43 }, "end": { "line": 122, "column": 44 } } }, { "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": 3203, "end": 3206, "loc": { "start": { "line": 123, "column": 8 }, "end": { "line": 123, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 3207, "end": 3213, "loc": { "start": { "line": 123, "column": 12 }, "end": { "line": 123, "column": 18 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3214, "end": 3215, "loc": { "start": { "line": 123, "column": 19 }, "end": { "line": 123, "column": 20 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3216, "end": 3217, "loc": { "start": { "line": 123, "column": 21 }, "end": { "line": 123, "column": 22 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3217, "end": 3218, "loc": { "start": { "line": 123, "column": 22 }, "end": { "line": 123, "column": 23 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3218, "end": 3219, "loc": { "start": { "line": 123, "column": 23 }, "end": { "line": 123, "column": 24 } } }, { "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": 3229, "end": 3232, "loc": { "start": { "line": 124, "column": 8 }, "end": { "line": 124, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3233, "end": 3234, "loc": { "start": { "line": 124, "column": 12 }, "end": { "line": 124, "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": 3234, "end": 3237, "loc": { "start": { "line": 124, "column": 13 }, "end": { "line": 124, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 3238, "end": 3239, "loc": { "start": { "line": 124, "column": 17 }, "end": { "line": 124, "column": 18 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3240, "end": 3241, "loc": { "start": { "line": 124, "column": 19 }, "end": { "line": 124, "column": 20 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 3242, "end": 3243, "loc": { "start": { "line": 124, "column": 21 }, "end": { "line": 124, "column": 22 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3243, "end": 3244, "loc": { "start": { "line": 124, "column": 22 }, "end": { "line": 124, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 3245, "end": 3246, "loc": { "start": { "line": 124, "column": 24 }, "end": { "line": 124, "column": 25 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 3247, "end": 3248, "loc": { "start": { "line": 124, "column": 26 }, "end": { "line": 124, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "sourceLayers", "start": 3249, "end": 3261, "loc": { "start": { "line": 124, "column": 28 }, "end": { "line": 124, "column": 40 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3261, "end": 3262, "loc": { "start": { "line": 124, "column": 40 }, "end": { "line": 124, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 3262, "end": 3268, "loc": { "start": { "line": 124, "column": 41 }, "end": { "line": 124, "column": 47 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3268, "end": 3269, "loc": { "start": { "line": 124, "column": 47 }, "end": { "line": 124, "column": 48 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 3270, "end": 3272, "loc": { "start": { "line": 124, "column": 49 }, "end": { "line": 124, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 3272, "end": 3273, "loc": { "start": { "line": 124, "column": 51 }, "end": { "line": 124, "column": 52 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3273, "end": 3274, "loc": { "start": { "line": 124, "column": 52 }, "end": { "line": 124, "column": 53 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3275, "end": 3276, "loc": { "start": { "line": 124, "column": 54 }, "end": { "line": 124, "column": 55 } } }, { "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": 3290, "end": 3295, "loc": { "start": { "line": 125, "column": 12 }, "end": { "line": 125, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "text", "start": 3296, "end": 3300, "loc": { "start": { "line": 125, "column": 18 }, "end": { "line": 125, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3301, "end": 3302, "loc": { "start": { "line": 125, "column": 23 }, "end": { "line": 125, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "sourceLayers", "start": 3303, "end": 3315, "loc": { "start": { "line": 125, "column": 25 }, "end": { "line": 125, "column": 37 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3315, "end": 3316, "loc": { "start": { "line": 125, "column": 37 }, "end": { "line": 125, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 3316, "end": 3317, "loc": { "start": { "line": 125, "column": 38 }, "end": { "line": 125, "column": 39 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3317, "end": 3318, "loc": { "start": { "line": 125, "column": 39 }, "end": { "line": 125, "column": 40 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3318, "end": 3319, "loc": { "start": { "line": 125, "column": 40 }, "end": { "line": 125, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "assert", "start": 3333, "end": 3339, "loc": { "start": { "line": 126, "column": 12 }, "end": { "line": 126, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3339, "end": 3340, "loc": { "start": { "line": 126, "column": 18 }, "end": { "line": 126, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "text", "start": 3340, "end": 3344, "loc": { "start": { "line": 126, "column": 19 }, "end": { "line": 126, "column": 23 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3344, "end": 3345, "loc": { "start": { "line": 126, "column": 23 }, "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": "length", "start": 3345, "end": 3351, "loc": { "start": { "line": 126, "column": 24 }, "end": { "line": 126, "column": 30 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "===", "start": 3352, "end": 3355, "loc": { "start": { "line": 126, "column": 31 }, "end": { "line": 126, "column": 34 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 8, "start": 3356, "end": 3357, "loc": { "start": { "line": 126, "column": 35 }, "end": { "line": 126, "column": 36 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3357, "end": 3358, "loc": { "start": { "line": 126, "column": 36 }, "end": { "line": 126, "column": 37 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Invalid shape short key: ", "start": 3359, "end": 3386, "loc": { "start": { "line": 126, "column": 38 }, "end": { "line": 126, "column": 65 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 3387, "end": 3388, "loc": { "start": { "line": 126, "column": 66 }, "end": { "line": 126, "column": 67 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 3389, "end": 3392, "loc": { "start": { "line": 126, "column": 68 }, "end": { "line": 126, "column": 71 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3392, "end": 3393, "loc": { "start": { "line": 126, "column": 71 }, "end": { "line": 126, "column": 72 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3393, "end": 3394, "loc": { "start": { "line": 126, "column": 72 }, "end": { "line": 126, "column": 73 } } }, { "type": "CommentBlock", "value": "* @type {ShapeLayer} ", "start": 3410, "end": 3435, "loc": { "start": { "line": 128, "column": 12 }, "end": { "line": 128, "column": 37 } } }, { "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": 3449, "end": 3454, "loc": { "start": { "line": 129, "column": 12 }, "end": { "line": 129, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quads", "start": 3455, "end": 3460, "loc": { "start": { "line": 129, "column": 18 }, "end": { "line": 129, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3461, "end": 3462, "loc": { "start": { "line": 129, "column": 24 }, "end": { "line": 129, "column": 25 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3463, "end": 3464, "loc": { "start": { "line": 129, "column": 26 }, "end": { "line": 129, "column": 27 } } }, { "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": 3464, "end": 3468, "loc": { "start": { "line": 129, "column": 27 }, "end": { "line": 129, "column": 31 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3468, "end": 3469, "loc": { "start": { "line": 129, "column": 31 }, "end": { "line": 129, "column": 32 } } }, { "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": 3470, "end": 3474, "loc": { "start": { "line": 129, "column": 33 }, "end": { "line": 129, "column": 37 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3474, "end": 3475, "loc": { "start": { "line": 129, "column": 37 }, "end": { "line": 129, "column": 38 } } }, { "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": 3476, "end": 3480, "loc": { "start": { "line": 129, "column": 39 }, "end": { "line": 129, "column": 43 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3480, "end": 3481, "loc": { "start": { "line": 129, "column": 43 }, "end": { "line": 129, "column": 44 } } }, { "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": 3482, "end": 3486, "loc": { "start": { "line": 129, "column": 45 }, "end": { "line": 129, "column": 49 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3486, "end": 3487, "loc": { "start": { "line": 129, "column": 49 }, "end": { "line": 129, "column": 50 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3487, "end": 3488, "loc": { "start": { "line": 129, "column": 50 }, "end": { "line": 129, "column": 51 } } }, { "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": 3502, "end": 3505, "loc": { "start": { "line": 130, "column": 12 }, "end": { "line": 130, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3506, "end": 3507, "loc": { "start": { "line": 130, "column": 16 }, "end": { "line": 130, "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": 3507, "end": 3510, "loc": { "start": { "line": 130, "column": 17 }, "end": { "line": 130, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 3511, "end": 3515, "loc": { "start": { "line": 130, "column": 21 }, "end": { "line": 130, "column": 25 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3516, "end": 3517, "loc": { "start": { "line": 130, "column": 26 }, "end": { "line": 130, "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": 3518, "end": 3519, "loc": { "start": { "line": 130, "column": 28 }, "end": { "line": 130, "column": 29 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3519, "end": 3520, "loc": { "start": { "line": 130, "column": 29 }, "end": { "line": 130, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 3521, "end": 3525, "loc": { "start": { "line": 130, "column": 31 }, "end": { "line": 130, "column": 35 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 3526, "end": 3527, "loc": { "start": { "line": 130, "column": 36 }, "end": { "line": 130, "column": 37 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 4, "start": 3528, "end": 3529, "loc": { "start": { "line": 130, "column": 38 }, "end": { "line": 130, "column": 39 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3529, "end": 3530, "loc": { "start": { "line": 130, "column": 39 }, "end": { "line": 130, "column": 40 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 3531, "end": 3533, "loc": { "start": { "line": 130, "column": 41 }, "end": { "line": 130, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 3533, "end": 3537, "loc": { "start": { "line": 130, "column": 43 }, "end": { "line": 130, "column": 47 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3537, "end": 3538, "loc": { "start": { "line": 130, "column": 47 }, "end": { "line": 130, "column": 48 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3539, "end": 3540, "loc": { "start": { "line": 130, "column": 49 }, "end": { "line": 130, "column": 50 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 3558, "end": 3563, "loc": { "start": { "line": 131, "column": 16 }, "end": { "line": 131, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeText", "start": 3564, "end": 3573, "loc": { "start": { "line": 131, "column": 22 }, "end": { "line": 131, "column": 31 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3574, "end": 3575, "loc": { "start": { "line": 131, "column": 32 }, "end": { "line": 131, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "text", "start": 3576, "end": 3580, "loc": { "start": { "line": 131, "column": 34 }, "end": { "line": 131, "column": 38 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3580, "end": 3581, "loc": { "start": { "line": 131, "column": 38 }, "end": { "line": 131, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 3581, "end": 3585, "loc": { "start": { "line": 131, "column": 39 }, "end": { "line": 131, "column": 43 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 3586, "end": 3587, "loc": { "start": { "line": 131, "column": 44 }, "end": { "line": 131, "column": 45 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 2, "start": 3588, "end": 3589, "loc": { "start": { "line": 131, "column": 46 }, "end": { "line": 131, "column": 47 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 3590, "end": 3591, "loc": { "start": { "line": 131, "column": 48 }, "end": { "line": 131, "column": 49 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 3592, "end": 3593, "loc": { "start": { "line": 131, "column": 50 }, "end": { "line": 131, "column": 51 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3593, "end": 3594, "loc": { "start": { "line": 131, "column": 51 }, "end": { "line": 131, "column": 52 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3594, "end": 3595, "loc": { "start": { "line": 131, "column": 52 }, "end": { "line": 131, "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": 3613, "end": 3618, "loc": { "start": { "line": 132, "column": 16 }, "end": { "line": 132, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "subShape", "start": 3619, "end": 3627, "loc": { "start": { "line": 132, "column": 22 }, "end": { "line": 132, "column": 30 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3628, "end": 3629, "loc": { "start": { "line": 132, "column": 31 }, "end": { "line": 132, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumShortcodeToSubShape", "start": 3630, "end": 3653, "loc": { "start": { "line": 132, "column": 33 }, "end": { "line": 132, "column": 56 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3653, "end": 3654, "loc": { "start": { "line": 132, "column": 56 }, "end": { "line": 132, "column": 57 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeText", "start": 3654, "end": 3663, "loc": { "start": { "line": 132, "column": 57 }, "end": { "line": 132, "column": 66 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3663, "end": 3664, "loc": { "start": { "line": 132, "column": 66 }, "end": { "line": 132, "column": 67 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3664, "end": 3665, "loc": { "start": { "line": 132, "column": 67 }, "end": { "line": 132, "column": 68 } } }, { "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": 3683, "end": 3688, "loc": { "start": { "line": 133, "column": 16 }, "end": { "line": 133, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 3689, "end": 3694, "loc": { "start": { "line": 133, "column": 22 }, "end": { "line": 133, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3695, "end": 3696, "loc": { "start": { "line": 133, "column": 28 }, "end": { "line": 133, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumShortcodeToColor", "start": 3697, "end": 3717, "loc": { "start": { "line": 133, "column": 30 }, "end": { "line": 133, "column": 50 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3717, "end": 3718, "loc": { "start": { "line": 133, "column": 50 }, "end": { "line": 133, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "text", "start": 3718, "end": 3722, "loc": { "start": { "line": 133, "column": 51 }, "end": { "line": 133, "column": 55 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3722, "end": 3723, "loc": { "start": { "line": 133, "column": 55 }, "end": { "line": 133, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 3723, "end": 3727, "loc": { "start": { "line": 133, "column": 56 }, "end": { "line": 133, "column": 60 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 3728, "end": 3729, "loc": { "start": { "line": 133, "column": 61 }, "end": { "line": 133, "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": 3730, "end": 3731, "loc": { "start": { "line": 133, "column": 63 }, "end": { "line": 133, "column": 64 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 3732, "end": 3733, "loc": { "start": { "line": 133, "column": 65 }, "end": { "line": 133, "column": 66 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 3734, "end": 3735, "loc": { "start": { "line": 133, "column": 67 }, "end": { "line": 133, "column": 68 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3735, "end": 3736, "loc": { "start": { "line": 133, "column": 68 }, "end": { "line": 133, "column": 69 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3736, "end": 3737, "loc": { "start": { "line": 133, "column": 69 }, "end": { "line": 133, "column": 70 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3737, "end": 3738, "loc": { "start": { "line": 133, "column": 70 }, "end": { "line": 133, "column": 71 } } }, { "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": 3756, "end": 3758, "loc": { "start": { "line": 134, "column": 16 }, "end": { "line": 134, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3759, "end": 3760, "loc": { "start": { "line": 134, "column": 19 }, "end": { "line": 134, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "subShape", "start": 3760, "end": 3768, "loc": { "start": { "line": 134, "column": 20 }, "end": { "line": 134, "column": 28 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3768, "end": 3769, "loc": { "start": { "line": 134, "column": 28 }, "end": { "line": 134, "column": 29 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3770, "end": 3771, "loc": { "start": { "line": 134, "column": 30 }, "end": { "line": 134, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "assert", "start": 3793, "end": 3799, "loc": { "start": { "line": 135, "column": 20 }, "end": { "line": 135, "column": 26 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3799, "end": 3800, "loc": { "start": { "line": 135, "column": 26 }, "end": { "line": 135, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 3800, "end": 3805, "loc": { "start": { "line": 135, "column": 27 }, "end": { "line": 135, "column": 32 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3805, "end": 3806, "loc": { "start": { "line": 135, "column": 32 }, "end": { "line": 135, "column": 33 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Invalid shape short key:", "start": 3807, "end": 3833, "loc": { "start": { "line": 135, "column": 34 }, "end": { "line": 135, "column": 60 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3833, "end": 3834, "loc": { "start": { "line": 135, "column": 60 }, "end": { "line": 135, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 3835, "end": 3838, "loc": { "start": { "line": 135, "column": 62 }, "end": { "line": 135, "column": 65 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3838, "end": 3839, "loc": { "start": { "line": 135, "column": 65 }, "end": { "line": 135, "column": 66 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3839, "end": 3840, "loc": { "start": { "line": 135, "column": 66 }, "end": { "line": 135, "column": 67 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quads", "start": 3862, "end": 3867, "loc": { "start": { "line": 136, "column": 20 }, "end": { "line": 136, "column": 25 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3867, "end": 3868, "loc": { "start": { "line": 136, "column": 25 }, "end": { "line": 136, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 3868, "end": 3872, "loc": { "start": { "line": 136, "column": 26 }, "end": { "line": 136, "column": 30 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3872, "end": 3873, "loc": { "start": { "line": 136, "column": 30 }, "end": { "line": 136, "column": 31 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 3874, "end": 3875, "loc": { "start": { "line": 136, "column": 32 }, "end": { "line": 136, "column": 33 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3876, "end": 3877, "loc": { "start": { "line": 136, "column": 34 }, "end": { "line": 136, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "subShape", "start": 3903, "end": 3911, "loc": { "start": { "line": 137, "column": 24 }, "end": { "line": 137, "column": 32 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3911, "end": 3912, "loc": { "start": { "line": 137, "column": 32 }, "end": { "line": 137, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 3938, "end": 3943, "loc": { "start": { "line": 138, "column": 24 }, "end": { "line": 138, "column": 29 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3943, "end": 3944, "loc": { "start": { "line": 138, "column": 29 }, "end": { "line": 138, "column": 30 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3966, "end": 3967, "loc": { "start": { "line": 139, "column": 20 }, "end": { "line": 139, "column": 21 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 3967, "end": 3968, "loc": { "start": { "line": 139, "column": 21 }, "end": { "line": 139, "column": 22 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3986, "end": 3987, "loc": { "start": { "line": 140, "column": 16 }, "end": { "line": 140, "column": 17 } } }, { "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": 3988, "end": 3992, "loc": { "start": { "line": 140, "column": 18 }, "end": { "line": 140, "column": 22 } } }, { "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": 3993, "end": 3995, "loc": { "start": { "line": 140, "column": 23 }, "end": { "line": 140, "column": 25 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 3996, "end": 3997, "loc": { "start": { "line": 140, "column": 26 }, "end": { "line": 140, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeText", "start": 3997, "end": 4006, "loc": { "start": { "line": 140, "column": 27 }, "end": { "line": 140, "column": 36 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "!==", "start": 4007, "end": 4010, "loc": { "start": { "line": 140, "column": 37 }, "end": { "line": 140, "column": 40 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "-", "start": 4011, "end": 4014, "loc": { "start": { "line": 140, "column": 41 }, "end": { "line": 140, "column": 44 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4014, "end": 4015, "loc": { "start": { "line": 140, "column": 44 }, "end": { "line": 140, "column": 45 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4016, "end": 4017, "loc": { "start": { "line": 140, "column": 46 }, "end": { "line": 140, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "assert", "start": 4039, "end": 4045, "loc": { "start": { "line": 141, "column": 20 }, "end": { "line": 141, "column": 26 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4045, "end": 4046, "loc": { "start": { "line": 141, "column": 26 }, "end": { "line": 141, "column": 27 } } }, { "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": 4046, "end": 4051, "loc": { "start": { "line": 141, "column": 27 }, "end": { "line": 141, "column": 32 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4051, "end": 4052, "loc": { "start": { "line": 141, "column": 32 }, "end": { "line": 141, "column": 33 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Invalid shape key: ", "start": 4053, "end": 4074, "loc": { "start": { "line": 141, "column": 34 }, "end": { "line": 141, "column": 55 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 4075, "end": 4076, "loc": { "start": { "line": 141, "column": 56 }, "end": { "line": 141, "column": 57 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeText", "start": 4077, "end": 4086, "loc": { "start": { "line": 141, "column": 58 }, "end": { "line": 141, "column": 67 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4086, "end": 4087, "loc": { "start": { "line": 141, "column": 67 }, "end": { "line": 141, "column": 68 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4087, "end": 4088, "loc": { "start": { "line": 141, "column": 68 }, "end": { "line": 141, "column": 69 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4106, "end": 4107, "loc": { "start": { "line": 142, "column": 16 }, "end": { "line": 142, "column": 17 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4121, "end": 4122, "loc": { "start": { "line": 143, "column": 12 }, "end": { "line": 143, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 4136, "end": 4142, "loc": { "start": { "line": 144, "column": 12 }, "end": { "line": 144, "column": 18 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4142, "end": 4143, "loc": { "start": { "line": 144, "column": 18 }, "end": { "line": 144, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "push", "start": 4143, "end": 4147, "loc": { "start": { "line": 144, "column": 19 }, "end": { "line": 144, "column": 23 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4147, "end": 4148, "loc": { "start": { "line": 144, "column": 23 }, "end": { "line": 144, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quads", "start": 4148, "end": 4153, "loc": { "start": { "line": 144, "column": 24 }, "end": { "line": 144, "column": 29 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4153, "end": 4154, "loc": { "start": { "line": 144, "column": 29 }, "end": { "line": 144, "column": 30 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4154, "end": 4155, "loc": { "start": { "line": 144, "column": 30 }, "end": { "line": 144, "column": 31 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4165, "end": 4166, "loc": { "start": { "line": 145, "column": 8 }, "end": { "line": 145, "column": 9 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 4178, "end": 4183, "loc": { "start": { "line": 147, "column": 8 }, "end": { "line": 147, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 4184, "end": 4194, "loc": { "start": { "line": 147, "column": 14 }, "end": { "line": 147, "column": 24 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 4195, "end": 4196, "loc": { "start": { "line": 147, "column": 25 }, "end": { "line": 147, "column": 26 } } }, { "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": 4197, "end": 4200, "loc": { "start": { "line": 147, "column": 27 }, "end": { "line": 147, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ShapeDefinition", "start": 4201, "end": 4216, "loc": { "start": { "line": 147, "column": 31 }, "end": { "line": 147, "column": 46 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4216, "end": 4217, "loc": { "start": { "line": 147, "column": 46 }, "end": { "line": 147, "column": 47 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4217, "end": 4218, "loc": { "start": { "line": 147, "column": 47 }, "end": { "line": 147, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 4219, "end": 4225, "loc": { "start": { "line": 147, "column": 49 }, "end": { "line": 147, "column": 55 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4226, "end": 4227, "loc": { "start": { "line": 147, "column": 56 }, "end": { "line": 147, "column": 57 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4227, "end": 4228, "loc": { "start": { "line": 147, "column": 57 }, "end": { "line": 147, "column": 58 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4228, "end": 4229, "loc": { "start": { "line": 147, "column": 58 }, "end": { "line": 147, "column": 59 } } }, { "type": "CommentLine", "value": " We know the hash so save some work", "start": 4239, "end": 4276, "loc": { "start": { "line": 148, "column": 8 }, "end": { "line": 148, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 4286, "end": 4296, "loc": { "start": { "line": 149, "column": 8 }, "end": { "line": 149, "column": 18 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4296, "end": 4297, "loc": { "start": { "line": 149, "column": 18 }, "end": { "line": 149, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cachedHash", "start": 4297, "end": 4307, "loc": { "start": { "line": 149, "column": 19 }, "end": { "line": 149, "column": 29 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 4308, "end": 4309, "loc": { "start": { "line": 149, "column": 30 }, "end": { "line": 149, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 4310, "end": 4313, "loc": { "start": { "line": 149, "column": 32 }, "end": { "line": 149, "column": 35 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4313, "end": 4314, "loc": { "start": { "line": 149, "column": 35 }, "end": { "line": 149, "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": 4324, "end": 4330, "loc": { "start": { "line": 150, "column": 8 }, "end": { "line": 150, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 4331, "end": 4341, "loc": { "start": { "line": 150, "column": 15 }, "end": { "line": 150, "column": 25 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4341, "end": 4342, "loc": { "start": { "line": 150, "column": 25 }, "end": { "line": 150, "column": 26 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4348, "end": 4349, "loc": { "start": { "line": 151, "column": 4 }, "end": { "line": 151, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Checks if a given string is a valid short key\r\n * @param {string} key\r\n * @returns {boolean}\r\n ", "start": 4357, "end": 4478, "loc": { "start": { "line": 153, "column": 4 }, "end": { "line": 157, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "static", "start": 4484, "end": 4490, "loc": { "start": { "line": 158, "column": 4 }, "end": { "line": 158, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "isValidShortKey", "start": 4491, "end": 4506, "loc": { "start": { "line": 158, "column": 11 }, "end": { "line": 158, "column": 26 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4506, "end": 4507, "loc": { "start": { "line": 158, "column": 26 }, "end": { "line": 158, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 4507, "end": 4510, "loc": { "start": { "line": 158, "column": 27 }, "end": { "line": 158, "column": 30 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4510, "end": 4511, "loc": { "start": { "line": 158, "column": 30 }, "end": { "line": 158, "column": 31 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4512, "end": 4513, "loc": { "start": { "line": 158, "column": 32 }, "end": { "line": 158, "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": 4523, "end": 4525, "loc": { "start": { "line": 159, "column": 8 }, "end": { "line": 159, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4526, "end": 4527, "loc": { "start": { "line": 159, "column": 11 }, "end": { "line": 159, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "SHORT_KEY_CACHE", "start": 4527, "end": 4542, "loc": { "start": { "line": 159, "column": 12 }, "end": { "line": 159, "column": 27 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4542, "end": 4543, "loc": { "start": { "line": 159, "column": 27 }, "end": { "line": 159, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "has", "start": 4543, "end": 4546, "loc": { "start": { "line": 159, "column": 28 }, "end": { "line": 159, "column": 31 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4546, "end": 4547, "loc": { "start": { "line": 159, "column": 31 }, "end": { "line": 159, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 4547, "end": 4550, "loc": { "start": { "line": 159, "column": 32 }, "end": { "line": 159, "column": 35 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4550, "end": 4551, "loc": { "start": { "line": 159, "column": 35 }, "end": { "line": 159, "column": 36 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4551, "end": 4552, "loc": { "start": { "line": 159, "column": 36 }, "end": { "line": 159, "column": 37 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4553, "end": 4554, "loc": { "start": { "line": 159, "column": 38 }, "end": { "line": 159, "column": 39 } } }, { "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": 4568, "end": 4574, "loc": { "start": { "line": 160, "column": 12 }, "end": { "line": 160, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "SHORT_KEY_CACHE", "start": 4575, "end": 4590, "loc": { "start": { "line": 160, "column": 19 }, "end": { "line": 160, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4590, "end": 4591, "loc": { "start": { "line": 160, "column": 34 }, "end": { "line": 160, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "get", "start": 4591, "end": 4594, "loc": { "start": { "line": 160, "column": 35 }, "end": { "line": 160, "column": 38 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4594, "end": 4595, "loc": { "start": { "line": 160, "column": 38 }, "end": { "line": 160, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 4595, "end": 4598, "loc": { "start": { "line": 160, "column": 39 }, "end": { "line": 160, "column": 42 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4598, "end": 4599, "loc": { "start": { "line": 160, "column": 42 }, "end": { "line": 160, "column": 43 } } }, { "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": 160, "column": 43 }, "end": { "line": 160, "column": 44 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4610, "end": 4611, "loc": { "start": { "line": 161, "column": 8 }, "end": { "line": 161, "column": 9 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 4623, "end": 4628, "loc": { "start": { "line": 163, "column": 8 }, "end": { "line": 163, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "result", "start": 4629, "end": 4635, "loc": { "start": { "line": 163, "column": 14 }, "end": { "line": 163, "column": 20 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 4636, "end": 4637, "loc": { "start": { "line": 163, "column": 21 }, "end": { "line": 163, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ShapeDefinition", "start": 4638, "end": 4653, "loc": { "start": { "line": 163, "column": 23 }, "end": { "line": 163, "column": 38 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4653, "end": 4654, "loc": { "start": { "line": 163, "column": 38 }, "end": { "line": 163, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "isValidShortKeyInternal", "start": 4654, "end": 4677, "loc": { "start": { "line": 163, "column": 39 }, "end": { "line": 163, "column": 62 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4677, "end": 4678, "loc": { "start": { "line": 163, "column": 62 }, "end": { "line": 163, "column": 63 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 4678, "end": 4681, "loc": { "start": { "line": 163, "column": 63 }, "end": { "line": 163, "column": 66 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4681, "end": 4682, "loc": { "start": { "line": 163, "column": 66 }, "end": { "line": 163, "column": 67 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4682, "end": 4683, "loc": { "start": { "line": 163, "column": 67 }, "end": { "line": 163, "column": 68 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "SHORT_KEY_CACHE", "start": 4693, "end": 4708, "loc": { "start": { "line": 164, "column": 8 }, "end": { "line": 164, "column": 23 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4708, "end": 4709, "loc": { "start": { "line": 164, "column": 23 }, "end": { "line": 164, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "set", "start": 4709, "end": 4712, "loc": { "start": { "line": 164, "column": 24 }, "end": { "line": 164, "column": 27 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4712, "end": 4713, "loc": { "start": { "line": 164, "column": 27 }, "end": { "line": 164, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 4713, "end": 4716, "loc": { "start": { "line": 164, "column": 28 }, "end": { "line": 164, "column": 31 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4716, "end": 4717, "loc": { "start": { "line": 164, "column": 31 }, "end": { "line": 164, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "result", "start": 4718, "end": 4724, "loc": { "start": { "line": 164, "column": 33 }, "end": { "line": 164, "column": 39 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4724, "end": 4725, "loc": { "start": { "line": 164, "column": 39 }, "end": { "line": 164, "column": 40 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4725, "end": 4726, "loc": { "start": { "line": 164, "column": 40 }, "end": { "line": 164, "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": 4736, "end": 4742, "loc": { "start": { "line": 165, "column": 8 }, "end": { "line": 165, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "result", "start": 4743, "end": 4749, "loc": { "start": { "line": 165, "column": 15 }, "end": { "line": 165, "column": 21 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4749, "end": 4750, "loc": { "start": { "line": 165, "column": 21 }, "end": { "line": 165, "column": 22 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4756, "end": 4757, "loc": { "start": { "line": 166, "column": 4 }, "end": { "line": 166, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * INTERNAL\r\n * Checks if a given string is a valid short key\r\n * @param {string} key\r\n * @returns {boolean}\r\n ", "start": 4765, "end": 4903, "loc": { "start": { "line": 168, "column": 4 }, "end": { "line": 173, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "static", "start": 4909, "end": 4915, "loc": { "start": { "line": 174, "column": 4 }, "end": { "line": 174, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "isValidShortKeyInternal", "start": 4916, "end": 4939, "loc": { "start": { "line": 174, "column": 11 }, "end": { "line": 174, "column": 34 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4939, "end": 4940, "loc": { "start": { "line": 174, "column": 34 }, "end": { "line": 174, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 4940, "end": 4943, "loc": { "start": { "line": 174, "column": 35 }, "end": { "line": 174, "column": 38 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4943, "end": 4944, "loc": { "start": { "line": 174, "column": 38 }, "end": { "line": 174, "column": 39 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4945, "end": 4946, "loc": { "start": { "line": 174, "column": 40 }, "end": { "line": 174, "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": 4956, "end": 4961, "loc": { "start": { "line": 175, "column": 8 }, "end": { "line": 175, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "sourceLayers", "start": 4962, "end": 4974, "loc": { "start": { "line": 175, "column": 14 }, "end": { "line": 175, "column": 26 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 4975, "end": 4976, "loc": { "start": { "line": 175, "column": 27 }, "end": { "line": 175, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 4977, "end": 4980, "loc": { "start": { "line": 175, "column": 29 }, "end": { "line": 175, "column": 32 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4980, "end": 4981, "loc": { "start": { "line": 175, "column": 32 }, "end": { "line": 175, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "split", "start": 4981, "end": 4986, "loc": { "start": { "line": 175, "column": 33 }, "end": { "line": 175, "column": 38 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4986, "end": 4987, "loc": { "start": { "line": 175, "column": 38 }, "end": { "line": 175, "column": 39 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": ":", "start": 4987, "end": 4990, "loc": { "start": { "line": 175, "column": 39 }, "end": { "line": 175, "column": 42 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 4990, "end": 4991, "loc": { "start": { "line": 175, "column": 42 }, "end": { "line": 175, "column": 43 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 4991, "end": 4992, "loc": { "start": { "line": 175, "column": 43 }, "end": { "line": 175, "column": 44 } } }, { "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": 5002, "end": 5005, "loc": { "start": { "line": 176, "column": 8 }, "end": { "line": 176, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 5006, "end": 5012, "loc": { "start": { "line": 176, "column": 12 }, "end": { "line": 176, "column": 18 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5013, "end": 5014, "loc": { "start": { "line": 176, "column": 19 }, "end": { "line": 176, "column": 20 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5015, "end": 5016, "loc": { "start": { "line": 176, "column": 21 }, "end": { "line": 176, "column": 22 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5016, "end": 5017, "loc": { "start": { "line": 176, "column": 22 }, "end": { "line": 176, "column": 23 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5017, "end": 5018, "loc": { "start": { "line": 176, "column": 23 }, "end": { "line": 176, "column": 24 } } }, { "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": 5028, "end": 5031, "loc": { "start": { "line": 177, "column": 8 }, "end": { "line": 177, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5032, "end": 5033, "loc": { "start": { "line": 177, "column": 12 }, "end": { "line": 177, "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": 5033, "end": 5036, "loc": { "start": { "line": 177, "column": 13 }, "end": { "line": 177, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 5037, "end": 5038, "loc": { "start": { "line": 177, "column": 17 }, "end": { "line": 177, "column": 18 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5039, "end": 5040, "loc": { "start": { "line": 177, "column": 19 }, "end": { "line": 177, "column": 20 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 5041, "end": 5042, "loc": { "start": { "line": 177, "column": 21 }, "end": { "line": 177, "column": 22 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5042, "end": 5043, "loc": { "start": { "line": 177, "column": 22 }, "end": { "line": 177, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 5044, "end": 5045, "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": 7, "updateContext": null }, "value": "<", "start": 5046, "end": 5047, "loc": { "start": { "line": 177, "column": 26 }, "end": { "line": 177, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "sourceLayers", "start": 5048, "end": 5060, "loc": { "start": { "line": 177, "column": 28 }, "end": { "line": 177, "column": 40 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5060, "end": 5061, "loc": { "start": { "line": 177, "column": 40 }, "end": { "line": 177, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 5061, "end": 5067, "loc": { "start": { "line": 177, "column": 41 }, "end": { "line": 177, "column": 47 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5067, "end": 5068, "loc": { "start": { "line": 177, "column": 47 }, "end": { "line": 177, "column": 48 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 5069, "end": 5071, "loc": { "start": { "line": 177, "column": 49 }, "end": { "line": 177, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 5071, "end": 5072, "loc": { "start": { "line": 177, "column": 51 }, "end": { "line": 177, "column": 52 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5072, "end": 5073, "loc": { "start": { "line": 177, "column": 52 }, "end": { "line": 177, "column": 53 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5074, "end": 5075, "loc": { "start": { "line": 177, "column": 54 }, "end": { "line": 177, "column": 55 } } }, { "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": 5089, "end": 5094, "loc": { "start": { "line": 178, "column": 12 }, "end": { "line": 178, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "text", "start": 5095, "end": 5099, "loc": { "start": { "line": 178, "column": 18 }, "end": { "line": 178, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5100, "end": 5101, "loc": { "start": { "line": 178, "column": 23 }, "end": { "line": 178, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "sourceLayers", "start": 5102, "end": 5114, "loc": { "start": { "line": 178, "column": 25 }, "end": { "line": 178, "column": 37 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5114, "end": 5115, "loc": { "start": { "line": 178, "column": 37 }, "end": { "line": 178, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "i", "start": 5115, "end": 5116, "loc": { "start": { "line": 178, "column": 38 }, "end": { "line": 178, "column": 39 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5116, "end": 5117, "loc": { "start": { "line": 178, "column": 39 }, "end": { "line": 178, "column": 40 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5117, "end": 5118, "loc": { "start": { "line": 178, "column": 40 }, "end": { "line": 178, "column": 41 } } }, { "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": 5132, "end": 5134, "loc": { "start": { "line": 179, "column": 12 }, "end": { "line": 179, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5135, "end": 5136, "loc": { "start": { "line": 179, "column": 15 }, "end": { "line": 179, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "text", "start": 5136, "end": 5140, "loc": { "start": { "line": 179, "column": 16 }, "end": { "line": 179, "column": 20 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5140, "end": 5141, "loc": { "start": { "line": 179, "column": 20 }, "end": { "line": 179, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 5141, "end": 5147, "loc": { "start": { "line": 179, "column": 21 }, "end": { "line": 179, "column": 27 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "!==", "start": 5148, "end": 5151, "loc": { "start": { "line": 179, "column": 28 }, "end": { "line": 179, "column": 31 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 8, "start": 5152, "end": 5153, "loc": { "start": { "line": 179, "column": 32 }, "end": { "line": 179, "column": 33 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5153, "end": 5154, "loc": { "start": { "line": 179, "column": 33 }, "end": { "line": 179, "column": 34 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5155, "end": 5156, "loc": { "start": { "line": 179, "column": 35 }, "end": { "line": 179, "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": 5174, "end": 5180, "loc": { "start": { "line": 180, "column": 16 }, "end": { "line": 180, "column": 22 } } }, { "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": 5181, "end": 5186, "loc": { "start": { "line": 180, "column": 23 }, "end": { "line": 180, "column": 28 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5186, "end": 5187, "loc": { "start": { "line": 180, "column": 28 }, "end": { "line": 180, "column": 29 } } }, { "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": 181, "column": 12 }, "end": { "line": 181, "column": 13 } } }, { "type": "CommentBlock", "value": "* @type {ShapeLayer} ", "start": 5218, "end": 5243, "loc": { "start": { "line": 183, "column": 12 }, "end": { "line": 183, "column": 37 } } }, { "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": 5257, "end": 5262, "loc": { "start": { "line": 184, "column": 12 }, "end": { "line": 184, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quads", "start": 5263, "end": 5268, "loc": { "start": { "line": 184, "column": 18 }, "end": { "line": 184, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5269, "end": 5270, "loc": { "start": { "line": 184, "column": 24 }, "end": { "line": 184, "column": 25 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5271, "end": 5272, "loc": { "start": { "line": 184, "column": 26 }, "end": { "line": 184, "column": 27 } } }, { "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": 5272, "end": 5276, "loc": { "start": { "line": 184, "column": 27 }, "end": { "line": 184, "column": 31 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5276, "end": 5277, "loc": { "start": { "line": 184, "column": 31 }, "end": { "line": 184, "column": 32 } } }, { "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": 5278, "end": 5282, "loc": { "start": { "line": 184, "column": 33 }, "end": { "line": 184, "column": 37 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5282, "end": 5283, "loc": { "start": { "line": 184, "column": 37 }, "end": { "line": 184, "column": 38 } } }, { "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": 5284, "end": 5288, "loc": { "start": { "line": 184, "column": 39 }, "end": { "line": 184, "column": 43 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5288, "end": 5289, "loc": { "start": { "line": 184, "column": 43 }, "end": { "line": 184, "column": 44 } } }, { "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": 5290, "end": 5294, "loc": { "start": { "line": 184, "column": 45 }, "end": { "line": 184, "column": 49 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5294, "end": 5295, "loc": { "start": { "line": 184, "column": 49 }, "end": { "line": 184, "column": 50 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5295, "end": 5296, "loc": { "start": { "line": 184, "column": 50 }, "end": { "line": 184, "column": 51 } } }, { "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": 5310, "end": 5313, "loc": { "start": { "line": 185, "column": 12 }, "end": { "line": 185, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "anyFilled", "start": 5314, "end": 5323, "loc": { "start": { "line": 185, "column": 16 }, "end": { "line": 185, "column": 25 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5324, "end": 5325, "loc": { "start": { "line": 185, "column": 26 }, "end": { "line": 185, "column": 27 } } }, { "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": 5326, "end": 5331, "loc": { "start": { "line": 185, "column": 28 }, "end": { "line": 185, "column": 33 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5331, "end": 5332, "loc": { "start": { "line": 185, "column": 33 }, "end": { "line": 185, "column": 34 } } }, { "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": 5346, "end": 5349, "loc": { "start": { "line": 186, "column": 12 }, "end": { "line": 186, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5350, "end": 5351, "loc": { "start": { "line": 186, "column": 16 }, "end": { "line": 186, "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": 5351, "end": 5354, "loc": { "start": { "line": 186, "column": 17 }, "end": { "line": 186, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 5355, "end": 5359, "loc": { "start": { "line": 186, "column": 21 }, "end": { "line": 186, "column": 25 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5360, "end": 5361, "loc": { "start": { "line": 186, "column": 26 }, "end": { "line": 186, "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": 5362, "end": 5363, "loc": { "start": { "line": 186, "column": 28 }, "end": { "line": 186, "column": 29 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5363, "end": 5364, "loc": { "start": { "line": 186, "column": 29 }, "end": { "line": 186, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 5365, "end": 5369, "loc": { "start": { "line": 186, "column": 31 }, "end": { "line": 186, "column": 35 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 5370, "end": 5371, "loc": { "start": { "line": 186, "column": 36 }, "end": { "line": 186, "column": 37 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 4, "start": 5372, "end": 5373, "loc": { "start": { "line": 186, "column": 38 }, "end": { "line": 186, "column": 39 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5373, "end": 5374, "loc": { "start": { "line": 186, "column": 39 }, "end": { "line": 186, "column": 40 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 5375, "end": 5377, "loc": { "start": { "line": 186, "column": 41 }, "end": { "line": 186, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 5377, "end": 5381, "loc": { "start": { "line": 186, "column": 43 }, "end": { "line": 186, "column": 47 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5381, "end": 5382, "loc": { "start": { "line": 186, "column": 47 }, "end": { "line": 186, "column": 48 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5383, "end": 5384, "loc": { "start": { "line": 186, "column": 49 }, "end": { "line": 186, "column": 50 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 5402, "end": 5407, "loc": { "start": { "line": 187, "column": 16 }, "end": { "line": 187, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeText", "start": 5408, "end": 5417, "loc": { "start": { "line": 187, "column": 22 }, "end": { "line": 187, "column": 31 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5418, "end": 5419, "loc": { "start": { "line": 187, "column": 32 }, "end": { "line": 187, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "text", "start": 5420, "end": 5424, "loc": { "start": { "line": 187, "column": 34 }, "end": { "line": 187, "column": 38 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5424, "end": 5425, "loc": { "start": { "line": 187, "column": 38 }, "end": { "line": 187, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 5425, "end": 5429, "loc": { "start": { "line": 187, "column": 39 }, "end": { "line": 187, "column": 43 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 5430, "end": 5431, "loc": { "start": { "line": 187, "column": 44 }, "end": { "line": 187, "column": 45 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 2, "start": 5432, "end": 5433, "loc": { "start": { "line": 187, "column": 46 }, "end": { "line": 187, "column": 47 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 5434, "end": 5435, "loc": { "start": { "line": 187, "column": 48 }, "end": { "line": 187, "column": 49 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 5436, "end": 5437, "loc": { "start": { "line": 187, "column": 50 }, "end": { "line": 187, "column": 51 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5437, "end": 5438, "loc": { "start": { "line": 187, "column": 51 }, "end": { "line": 187, "column": 52 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5438, "end": 5439, "loc": { "start": { "line": 187, "column": 52 }, "end": { "line": 187, "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": 5457, "end": 5462, "loc": { "start": { "line": 188, "column": 16 }, "end": { "line": 188, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "colorText", "start": 5463, "end": 5472, "loc": { "start": { "line": 188, "column": 22 }, "end": { "line": 188, "column": 31 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5473, "end": 5474, "loc": { "start": { "line": 188, "column": 32 }, "end": { "line": 188, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "text", "start": 5475, "end": 5479, "loc": { "start": { "line": 188, "column": 34 }, "end": { "line": 188, "column": 38 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5479, "end": 5480, "loc": { "start": { "line": 188, "column": 38 }, "end": { "line": 188, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 5480, "end": 5484, "loc": { "start": { "line": 188, "column": 39 }, "end": { "line": 188, "column": 43 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 5485, "end": 5486, "loc": { "start": { "line": 188, "column": 44 }, "end": { "line": 188, "column": 45 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 2, "start": 5487, "end": 5488, "loc": { "start": { "line": 188, "column": 46 }, "end": { "line": 188, "column": 47 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 5489, "end": 5490, "loc": { "start": { "line": 188, "column": 48 }, "end": { "line": 188, "column": 49 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 5491, "end": 5492, "loc": { "start": { "line": 188, "column": 50 }, "end": { "line": 188, "column": 51 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5492, "end": 5493, "loc": { "start": { "line": 188, "column": 51 }, "end": { "line": 188, "column": 52 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5493, "end": 5494, "loc": { "start": { "line": 188, "column": 52 }, "end": { "line": 188, "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": 5512, "end": 5517, "loc": { "start": { "line": 189, "column": 16 }, "end": { "line": 189, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "subShape", "start": 5518, "end": 5526, "loc": { "start": { "line": 189, "column": 22 }, "end": { "line": 189, "column": 30 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5527, "end": 5528, "loc": { "start": { "line": 189, "column": 31 }, "end": { "line": 189, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumShortcodeToSubShape", "start": 5529, "end": 5552, "loc": { "start": { "line": 189, "column": 33 }, "end": { "line": 189, "column": 56 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5552, "end": 5553, "loc": { "start": { "line": 189, "column": 56 }, "end": { "line": 189, "column": 57 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeText", "start": 5553, "end": 5562, "loc": { "start": { "line": 189, "column": 57 }, "end": { "line": 189, "column": 66 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5562, "end": 5563, "loc": { "start": { "line": 189, "column": 66 }, "end": { "line": 189, "column": 67 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5563, "end": 5564, "loc": { "start": { "line": 189, "column": 67 }, "end": { "line": 189, "column": 68 } } }, { "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": 5582, "end": 5587, "loc": { "start": { "line": 190, "column": 16 }, "end": { "line": 190, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 5588, "end": 5593, "loc": { "start": { "line": 190, "column": 22 }, "end": { "line": 190, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5594, "end": 5595, "loc": { "start": { "line": 190, "column": 28 }, "end": { "line": 190, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumShortcodeToColor", "start": 5596, "end": 5616, "loc": { "start": { "line": 190, "column": 30 }, "end": { "line": 190, "column": 50 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5616, "end": 5617, "loc": { "start": { "line": 190, "column": 50 }, "end": { "line": 190, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "colorText", "start": 5617, "end": 5626, "loc": { "start": { "line": 190, "column": 51 }, "end": { "line": 190, "column": 60 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5626, "end": 5627, "loc": { "start": { "line": 190, "column": 60 }, "end": { "line": 190, "column": 61 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5627, "end": 5628, "loc": { "start": { "line": 190, "column": 61 }, "end": { "line": 190, "column": 62 } } }, { "type": "CommentLine", "value": " Valid shape", "start": 5648, "end": 5662, "loc": { "start": { "line": 192, "column": 16 }, "end": { "line": 192, "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": 5680, "end": 5682, "loc": { "start": { "line": 193, "column": 16 }, "end": { "line": 193, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5683, "end": 5684, "loc": { "start": { "line": 193, "column": 19 }, "end": { "line": 193, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "subShape", "start": 5684, "end": 5692, "loc": { "start": { "line": 193, "column": 20 }, "end": { "line": 193, "column": 28 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5692, "end": 5693, "loc": { "start": { "line": 193, "column": 28 }, "end": { "line": 193, "column": 29 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5694, "end": 5695, "loc": { "start": { "line": 193, "column": 30 }, "end": { "line": 193, "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": 5717, "end": 5719, "loc": { "start": { "line": 194, "column": 20 }, "end": { "line": 194, "column": 22 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5720, "end": 5721, "loc": { "start": { "line": 194, "column": 23 }, "end": { "line": 194, "column": 24 } } }, { "type": { "label": "prefix", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": null, "updateContext": null }, "value": "!", "start": 5721, "end": 5722, "loc": { "start": { "line": 194, "column": 24 }, "end": { "line": 194, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 5722, "end": 5727, "loc": { "start": { "line": 194, "column": 25 }, "end": { "line": 194, "column": 30 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5727, "end": 5728, "loc": { "start": { "line": 194, "column": 30 }, "end": { "line": 194, "column": 31 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5729, "end": 5730, "loc": { "start": { "line": 194, "column": 32 }, "end": { "line": 194, "column": 33 } } }, { "type": "CommentLine", "value": " Invalid color", "start": 5756, "end": 5772, "loc": { "start": { "line": 195, "column": 24 }, "end": { "line": 195, "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": 5798, "end": 5804, "loc": { "start": { "line": 196, "column": 24 }, "end": { "line": 196, "column": 30 } } }, { "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": 5805, "end": 5810, "loc": { "start": { "line": 196, "column": 31 }, "end": { "line": 196, "column": 36 } } }, { "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": 196, "column": 36 }, "end": { "line": 196, "column": 37 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5833, "end": 5834, "loc": { "start": { "line": 197, "column": 20 }, "end": { "line": 197, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quads", "start": 5856, "end": 5861, "loc": { "start": { "line": 198, "column": 20 }, "end": { "line": 198, "column": 25 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5861, "end": 5862, "loc": { "start": { "line": 198, "column": 25 }, "end": { "line": 198, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 5862, "end": 5866, "loc": { "start": { "line": 198, "column": 26 }, "end": { "line": 198, "column": 30 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5866, "end": 5867, "loc": { "start": { "line": 198, "column": 30 }, "end": { "line": 198, "column": 31 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5868, "end": 5869, "loc": { "start": { "line": 198, "column": 32 }, "end": { "line": 198, "column": 33 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5870, "end": 5871, "loc": { "start": { "line": 198, "column": 34 }, "end": { "line": 198, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "subShape", "start": 5897, "end": 5905, "loc": { "start": { "line": 199, "column": 24 }, "end": { "line": 199, "column": 32 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5905, "end": 5906, "loc": { "start": { "line": 199, "column": 32 }, "end": { "line": 199, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 5932, "end": 5937, "loc": { "start": { "line": 200, "column": 24 }, "end": { "line": 200, "column": 29 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5937, "end": 5938, "loc": { "start": { "line": 200, "column": 29 }, "end": { "line": 200, "column": 30 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 5960, "end": 5961, "loc": { "start": { "line": 201, "column": 20 }, "end": { "line": 201, "column": 21 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 5961, "end": 5962, "loc": { "start": { "line": 201, "column": 21 }, "end": { "line": 201, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "anyFilled", "start": 5984, "end": 5993, "loc": { "start": { "line": 202, "column": 20 }, "end": { "line": 202, "column": 29 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 5994, "end": 5995, "loc": { "start": { "line": 202, "column": 30 }, "end": { "line": 202, "column": 31 } } }, { "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": 5996, "end": 6000, "loc": { "start": { "line": 202, "column": 32 }, "end": { "line": 202, "column": 36 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6000, "end": 6001, "loc": { "start": { "line": 202, "column": 36 }, "end": { "line": 202, "column": 37 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6019, "end": 6020, "loc": { "start": { "line": 203, "column": 16 }, "end": { "line": 203, "column": 17 } } }, { "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": 6021, "end": 6025, "loc": { "start": { "line": 203, "column": 18 }, "end": { "line": 203, "column": 22 } } }, { "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": 6026, "end": 6028, "loc": { "start": { "line": 203, "column": 23 }, "end": { "line": 203, "column": 25 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6029, "end": 6030, "loc": { "start": { "line": 203, "column": 26 }, "end": { "line": 203, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeText", "start": 6030, "end": 6039, "loc": { "start": { "line": 203, "column": 27 }, "end": { "line": 203, "column": 36 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "===", "start": 6040, "end": 6043, "loc": { "start": { "line": 203, "column": 37 }, "end": { "line": 203, "column": 40 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "-", "start": 6044, "end": 6047, "loc": { "start": { "line": 203, "column": 41 }, "end": { "line": 203, "column": 44 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6047, "end": 6048, "loc": { "start": { "line": 203, "column": 44 }, "end": { "line": 203, "column": 45 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6049, "end": 6050, "loc": { "start": { "line": 203, "column": 46 }, "end": { "line": 203, "column": 47 } } }, { "type": "CommentLine", "value": " Make sure color is empty then, too", "start": 6072, "end": 6109, "loc": { "start": { "line": 204, "column": 20 }, "end": { "line": 204, "column": 57 } } }, { "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": 6131, "end": 6133, "loc": { "start": { "line": 205, "column": 20 }, "end": { "line": 205, "column": 22 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6134, "end": 6135, "loc": { "start": { "line": 205, "column": 23 }, "end": { "line": 205, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "colorText", "start": 6135, "end": 6144, "loc": { "start": { "line": 205, "column": 24 }, "end": { "line": 205, "column": 33 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "!==", "start": 6145, "end": 6148, "loc": { "start": { "line": 205, "column": 34 }, "end": { "line": 205, "column": 37 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "-", "start": 6149, "end": 6152, "loc": { "start": { "line": 205, "column": 38 }, "end": { "line": 205, "column": 41 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6152, "end": 6153, "loc": { "start": { "line": 205, "column": 41 }, "end": { "line": 205, "column": 42 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6154, "end": 6155, "loc": { "start": { "line": 205, "column": 43 }, "end": { "line": 205, "column": 44 } } }, { "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": 6181, "end": 6187, "loc": { "start": { "line": 206, "column": 24 }, "end": { "line": 206, "column": 30 } } }, { "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": 6188, "end": 6193, "loc": { "start": { "line": 206, "column": 31 }, "end": { "line": 206, "column": 36 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6193, "end": 6194, "loc": { "start": { "line": 206, "column": 36 }, "end": { "line": 206, "column": 37 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6216, "end": 6217, "loc": { "start": { "line": 207, "column": 20 }, "end": { "line": 207, "column": 21 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6235, "end": 6236, "loc": { "start": { "line": 208, "column": 16 }, "end": { "line": 208, "column": 17 } } }, { "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": 6237, "end": 6241, "loc": { "start": { "line": 208, "column": 18 }, "end": { "line": 208, "column": 22 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6242, "end": 6243, "loc": { "start": { "line": 208, "column": 23 }, "end": { "line": 208, "column": 24 } } }, { "type": "CommentLine", "value": " Invalid shape key", "start": 6265, "end": 6285, "loc": { "start": { "line": 209, "column": 20 }, "end": { "line": 209, "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": 6307, "end": 6313, "loc": { "start": { "line": 210, "column": 20 }, "end": { "line": 210, "column": 26 } } }, { "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": 6314, "end": 6319, "loc": { "start": { "line": 210, "column": 27 }, "end": { "line": 210, "column": 32 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6319, "end": 6320, "loc": { "start": { "line": 210, "column": 32 }, "end": { "line": 210, "column": 33 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6338, "end": 6339, "loc": { "start": { "line": 211, "column": 16 }, "end": { "line": 211, "column": 17 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6353, "end": 6354, "loc": { "start": { "line": 212, "column": 12 }, "end": { "line": 212, "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": 6370, "end": 6372, "loc": { "start": { "line": 214, "column": 12 }, "end": { "line": 214, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6373, "end": 6374, "loc": { "start": { "line": 214, "column": 15 }, "end": { "line": 214, "column": 16 } } }, { "type": { "label": "prefix", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": null, "updateContext": null }, "value": "!", "start": 6374, "end": 6375, "loc": { "start": { "line": 214, "column": 16 }, "end": { "line": 214, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "anyFilled", "start": 6375, "end": 6384, "loc": { "start": { "line": 214, "column": 17 }, "end": { "line": 214, "column": 26 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6384, "end": 6385, "loc": { "start": { "line": 214, "column": 26 }, "end": { "line": 214, "column": 27 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6386, "end": 6387, "loc": { "start": { "line": 214, "column": 28 }, "end": { "line": 214, "column": 29 } } }, { "type": "CommentLine", "value": " Empty layer", "start": 6405, "end": 6419, "loc": { "start": { "line": 215, "column": 16 }, "end": { "line": 215, "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": 6437, "end": 6443, "loc": { "start": { "line": 216, "column": 16 }, "end": { "line": 216, "column": 22 } } }, { "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": 6444, "end": 6449, "loc": { "start": { "line": 216, "column": 23 }, "end": { "line": 216, "column": 28 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6449, "end": 6450, "loc": { "start": { "line": 216, "column": 28 }, "end": { "line": 216, "column": 29 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6464, "end": 6465, "loc": { "start": { "line": 217, "column": 12 }, "end": { "line": 217, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 6479, "end": 6485, "loc": { "start": { "line": 218, "column": 12 }, "end": { "line": 218, "column": 18 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6485, "end": 6486, "loc": { "start": { "line": 218, "column": 18 }, "end": { "line": 218, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "push", "start": 6486, "end": 6490, "loc": { "start": { "line": 218, "column": 19 }, "end": { "line": 218, "column": 23 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6490, "end": 6491, "loc": { "start": { "line": 218, "column": 23 }, "end": { "line": 218, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quads", "start": 6491, "end": 6496, "loc": { "start": { "line": 218, "column": 24 }, "end": { "line": 218, "column": 29 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6496, "end": 6497, "loc": { "start": { "line": 218, "column": 29 }, "end": { "line": 218, "column": 30 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6497, "end": 6498, "loc": { "start": { "line": 218, "column": 30 }, "end": { "line": 218, "column": 31 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6508, "end": 6509, "loc": { "start": { "line": 219, "column": 8 }, "end": { "line": 219, "column": 9 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 6521, "end": 6523, "loc": { "start": { "line": 221, "column": 8 }, "end": { "line": 221, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6524, "end": 6525, "loc": { "start": { "line": 221, "column": 11 }, "end": { "line": 221, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 6525, "end": 6531, "loc": { "start": { "line": 221, "column": 12 }, "end": { "line": 221, "column": 18 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6531, "end": 6532, "loc": { "start": { "line": 221, "column": 18 }, "end": { "line": 221, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 6532, "end": 6538, "loc": { "start": { "line": 221, "column": 19 }, "end": { "line": 221, "column": 25 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "===", "start": 6539, "end": 6542, "loc": { "start": { "line": 221, "column": 26 }, "end": { "line": 221, "column": 29 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 6543, "end": 6544, "loc": { "start": { "line": 221, "column": 30 }, "end": { "line": 221, "column": 31 } } }, { "type": { "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 1, "updateContext": null }, "value": "||", "start": 6545, "end": 6547, "loc": { "start": { "line": 221, "column": 32 }, "end": { "line": 221, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 6548, "end": 6554, "loc": { "start": { "line": 221, "column": 35 }, "end": { "line": 221, "column": 41 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6554, "end": 6555, "loc": { "start": { "line": 221, "column": 41 }, "end": { "line": 221, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 6555, "end": 6561, "loc": { "start": { "line": 221, "column": 42 }, "end": { "line": 221, "column": 48 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": ">", "start": 6562, "end": 6563, "loc": { "start": { "line": 221, "column": 49 }, "end": { "line": 221, "column": 50 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 4, "start": 6564, "end": 6565, "loc": { "start": { "line": 221, "column": 51 }, "end": { "line": 221, "column": 52 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6565, "end": 6566, "loc": { "start": { "line": 221, "column": 52 }, "end": { "line": 221, "column": 53 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6567, "end": 6568, "loc": { "start": { "line": 221, "column": 54 }, "end": { "line": 221, "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": 6582, "end": 6588, "loc": { "start": { "line": 222, "column": 12 }, "end": { "line": 222, "column": 18 } } }, { "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": 6589, "end": 6594, "loc": { "start": { "line": 222, "column": 19 }, "end": { "line": 222, "column": 24 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6594, "end": 6595, "loc": { "start": { "line": 222, "column": 24 }, "end": { "line": 222, "column": 25 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6605, "end": 6606, "loc": { "start": { "line": 223, "column": 8 }, "end": { "line": 223, "column": 9 } } }, { "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": 6618, "end": 6624, "loc": { "start": { "line": 225, "column": 8 }, "end": { "line": 225, "column": 14 } } }, { "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": 6625, "end": 6629, "loc": { "start": { "line": 225, "column": 15 }, "end": { "line": 225, "column": 19 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6629, "end": 6630, "loc": { "start": { "line": 225, "column": 19 }, "end": { "line": 225, "column": 20 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6636, "end": 6637, "loc": { "start": { "line": 226, "column": 4 }, "end": { "line": 226, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Internal method to clone the shape definition\r\n * @returns {Array}\r\n ", "start": 6645, "end": 6748, "loc": { "start": { "line": 228, "column": 4 }, "end": { "line": 231, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "internalCloneLayers", "start": 6754, "end": 6773, "loc": { "start": { "line": 232, "column": 4 }, "end": { "line": 232, "column": 23 } } }, { "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": 232, "column": 23 }, "end": { "line": 232, "column": 24 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6774, "end": 6775, "loc": { "start": { "line": 232, "column": 24 }, "end": { "line": 232, "column": 25 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6776, "end": 6777, "loc": { "start": { "line": 232, "column": 26 }, "end": { "line": 232, "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": 6787, "end": 6793, "loc": { "start": { "line": 233, "column": 8 }, "end": { "line": 233, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "JSON", "start": 6794, "end": 6798, "loc": { "start": { "line": 233, "column": 15 }, "end": { "line": 233, "column": 19 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6798, "end": 6799, "loc": { "start": { "line": 233, "column": 19 }, "end": { "line": 233, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "parse", "start": 6799, "end": 6804, "loc": { "start": { "line": 233, "column": 20 }, "end": { "line": 233, "column": 25 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6804, "end": 6805, "loc": { "start": { "line": 233, "column": 25 }, "end": { "line": 233, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "JSON", "start": 6805, "end": 6809, "loc": { "start": { "line": 233, "column": 26 }, "end": { "line": 233, "column": 30 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6809, "end": 6810, "loc": { "start": { "line": 233, "column": 30 }, "end": { "line": 233, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "stringify", "start": 6810, "end": 6819, "loc": { "start": { "line": 233, "column": 31 }, "end": { "line": 233, "column": 40 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6819, "end": 6820, "loc": { "start": { "line": 233, "column": 40 }, "end": { "line": 233, "column": 41 } } }, { "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": 6820, "end": 6824, "loc": { "start": { "line": 233, "column": 41 }, "end": { "line": 233, "column": 45 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6824, "end": 6825, "loc": { "start": { "line": 233, "column": 45 }, "end": { "line": 233, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 6825, "end": 6831, "loc": { "start": { "line": 233, "column": 46 }, "end": { "line": 233, "column": 52 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6831, "end": 6832, "loc": { "start": { "line": 233, "column": 52 }, "end": { "line": 233, "column": 53 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6832, "end": 6833, "loc": { "start": { "line": 233, "column": 53 }, "end": { "line": 233, "column": 54 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6833, "end": 6834, "loc": { "start": { "line": 233, "column": 54 }, "end": { "line": 233, "column": 55 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6840, "end": 6841, "loc": { "start": { "line": 234, "column": 4 }, "end": { "line": 234, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns if the definition is entirely empty^\r\n * @returns {boolean}\r\n ", "start": 6849, "end": 6941, "loc": { "start": { "line": 236, "column": 4 }, "end": { "line": 239, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "isEntirelyEmpty", "start": 6947, "end": 6962, "loc": { "start": { "line": 240, "column": 4 }, "end": { "line": 240, "column": 19 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6962, "end": 6963, "loc": { "start": { "line": 240, "column": 19 }, "end": { "line": 240, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6963, "end": 6964, "loc": { "start": { "line": 240, "column": 20 }, "end": { "line": 240, "column": 21 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 6965, "end": 6966, "loc": { "start": { "line": 240, "column": 22 }, "end": { "line": 240, "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": 6976, "end": 6982, "loc": { "start": { "line": 241, "column": 8 }, "end": { "line": 241, "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": 6983, "end": 6987, "loc": { "start": { "line": 241, "column": 15 }, "end": { "line": 241, "column": 19 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 6987, "end": 6988, "loc": { "start": { "line": 241, "column": 19 }, "end": { "line": 241, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 6988, "end": 6994, "loc": { "start": { "line": 241, "column": 20 }, "end": { "line": 241, "column": 26 } } }, { "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": 241, "column": 26 }, "end": { "line": 241, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 6995, "end": 7001, "loc": { "start": { "line": 241, "column": 27 }, "end": { "line": 241, "column": 33 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "===", "start": 7002, "end": 7005, "loc": { "start": { "line": 241, "column": 34 }, "end": { "line": 241, "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": 7006, "end": 7007, "loc": { "start": { "line": 241, "column": 38 }, "end": { "line": 241, "column": 39 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7007, "end": 7008, "loc": { "start": { "line": 241, "column": 39 }, "end": { "line": 241, "column": 40 } } }, { "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": 242, "column": 4 }, "end": { "line": 242, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns a unique id for this shape\r\n * @returns {string}\r\n ", "start": 7023, "end": 7104, "loc": { "start": { "line": 244, "column": 4 }, "end": { "line": 247, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getHash", "start": 7110, "end": 7117, "loc": { "start": { "line": 248, "column": 4 }, "end": { "line": 248, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7117, "end": 7118, "loc": { "start": { "line": 248, "column": 11 }, "end": { "line": 248, "column": 12 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7118, "end": 7119, "loc": { "start": { "line": 248, "column": 12 }, "end": { "line": 248, "column": 13 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7120, "end": 7121, "loc": { "start": { "line": 248, "column": 14 }, "end": { "line": 248, "column": 15 } } }, { "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": 7131, "end": 7133, "loc": { "start": { "line": 249, "column": 8 }, "end": { "line": 249, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7134, "end": 7135, "loc": { "start": { "line": 249, "column": 11 }, "end": { "line": 249, "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": 7135, "end": 7139, "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": 7139, "end": 7140, "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": "cachedHash", "start": 7140, "end": 7150, "loc": { "start": { "line": 249, "column": 17 }, "end": { "line": 249, "column": 27 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7150, "end": 7151, "loc": { "start": { "line": 249, "column": 27 }, "end": { "line": 249, "column": 28 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7152, "end": 7153, "loc": { "start": { "line": 249, "column": 29 }, "end": { "line": 249, "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": 7167, "end": 7173, "loc": { "start": { "line": 250, "column": 12 }, "end": { "line": 250, "column": 18 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 7174, "end": 7178, "loc": { "start": { "line": 250, "column": 19 }, "end": { "line": 250, "column": 23 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7178, "end": 7179, "loc": { "start": { "line": 250, "column": 23 }, "end": { "line": 250, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cachedHash", "start": 7179, "end": 7189, "loc": { "start": { "line": 250, "column": 24 }, "end": { "line": 250, "column": 34 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7189, "end": 7190, "loc": { "start": { "line": 250, "column": 34 }, "end": { "line": 250, "column": 35 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7200, "end": 7201, "loc": { "start": { "line": 251, "column": 8 }, "end": { "line": 251, "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": 7213, "end": 7216, "loc": { "start": { "line": 253, "column": 8 }, "end": { "line": 253, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 7217, "end": 7219, "loc": { "start": { "line": 253, "column": 12 }, "end": { "line": 253, "column": 14 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 7220, "end": 7221, "loc": { "start": { "line": 253, "column": 15 }, "end": { "line": 253, "column": 16 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "", "start": 7222, "end": 7224, "loc": { "start": { "line": 253, "column": 17 }, "end": { "line": 253, "column": 19 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7224, "end": 7225, "loc": { "start": { "line": 253, "column": 19 }, "end": { "line": 253, "column": 20 } } }, { "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": 7235, "end": 7238, "loc": { "start": { "line": 254, "column": 8 }, "end": { "line": 254, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7239, "end": 7240, "loc": { "start": { "line": 254, "column": 12 }, "end": { "line": 254, "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": 7240, "end": 7243, "loc": { "start": { "line": 254, "column": 13 }, "end": { "line": 254, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 7244, "end": 7254, "loc": { "start": { "line": 254, "column": 17 }, "end": { "line": 254, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 7255, "end": 7256, "loc": { "start": { "line": 254, "column": 28 }, "end": { "line": 254, "column": 29 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 7257, "end": 7258, "loc": { "start": { "line": 254, "column": 30 }, "end": { "line": 254, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7258, "end": 7259, "loc": { "start": { "line": 254, "column": 31 }, "end": { "line": 254, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 7260, "end": 7270, "loc": { "start": { "line": 254, "column": 33 }, "end": { "line": 254, "column": 43 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 7271, "end": 7272, "loc": { "start": { "line": 254, "column": 44 }, "end": { "line": 254, "column": 45 } } }, { "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": 7273, "end": 7277, "loc": { "start": { "line": 254, "column": 46 }, "end": { "line": 254, "column": 50 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7277, "end": 7278, "loc": { "start": { "line": 254, "column": 50 }, "end": { "line": 254, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 7278, "end": 7284, "loc": { "start": { "line": 254, "column": 51 }, "end": { "line": 254, "column": 57 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7284, "end": 7285, "loc": { "start": { "line": 254, "column": 57 }, "end": { "line": 254, "column": 58 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 7285, "end": 7291, "loc": { "start": { "line": 254, "column": 58 }, "end": { "line": 254, "column": 64 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7291, "end": 7292, "loc": { "start": { "line": 254, "column": 64 }, "end": { "line": 254, "column": 65 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 7293, "end": 7295, "loc": { "start": { "line": 254, "column": 66 }, "end": { "line": 254, "column": 68 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 7295, "end": 7305, "loc": { "start": { "line": 254, "column": 68 }, "end": { "line": 254, "column": 78 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7305, "end": 7306, "loc": { "start": { "line": 254, "column": 78 }, "end": { "line": 254, "column": 79 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7307, "end": 7308, "loc": { "start": { "line": 254, "column": 80 }, "end": { "line": 254, "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": 7322, "end": 7327, "loc": { "start": { "line": 255, "column": 12 }, "end": { "line": 255, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 7328, "end": 7333, "loc": { "start": { "line": 255, "column": 18 }, "end": { "line": 255, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 7334, "end": 7335, "loc": { "start": { "line": 255, "column": 24 }, "end": { "line": 255, "column": 25 } } }, { "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": 7336, "end": 7340, "loc": { "start": { "line": 255, "column": 26 }, "end": { "line": 255, "column": 30 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7340, "end": 7341, "loc": { "start": { "line": 255, "column": 30 }, "end": { "line": 255, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 7341, "end": 7347, "loc": { "start": { "line": 255, "column": 31 }, "end": { "line": 255, "column": 37 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7347, "end": 7348, "loc": { "start": { "line": 255, "column": 37 }, "end": { "line": 255, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 7348, "end": 7358, "loc": { "start": { "line": 255, "column": 38 }, "end": { "line": 255, "column": 48 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7358, "end": 7359, "loc": { "start": { "line": 255, "column": 48 }, "end": { "line": 255, "column": 49 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7359, "end": 7360, "loc": { "start": { "line": 255, "column": 49 }, "end": { "line": 255, "column": 50 } } }, { "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": 7376, "end": 7379, "loc": { "start": { "line": 257, "column": 12 }, "end": { "line": 257, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7380, "end": 7381, "loc": { "start": { "line": 257, "column": 16 }, "end": { "line": 257, "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": 7381, "end": 7384, "loc": { "start": { "line": 257, "column": 17 }, "end": { "line": 257, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrant", "start": 7385, "end": 7393, "loc": { "start": { "line": 257, "column": 21 }, "end": { "line": 257, "column": 29 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 7394, "end": 7395, "loc": { "start": { "line": 257, "column": 30 }, "end": { "line": 257, "column": 31 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 7396, "end": 7397, "loc": { "start": { "line": 257, "column": 32 }, "end": { "line": 257, "column": 33 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7397, "end": 7398, "loc": { "start": { "line": 257, "column": 33 }, "end": { "line": 257, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrant", "start": 7399, "end": 7407, "loc": { "start": { "line": 257, "column": 35 }, "end": { "line": 257, "column": 43 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 7408, "end": 7409, "loc": { "start": { "line": 257, "column": 44 }, "end": { "line": 257, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 7410, "end": 7415, "loc": { "start": { "line": 257, "column": 46 }, "end": { "line": 257, "column": 51 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7415, "end": 7416, "loc": { "start": { "line": 257, "column": 51 }, "end": { "line": 257, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 7416, "end": 7422, "loc": { "start": { "line": 257, "column": 52 }, "end": { "line": 257, "column": 58 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7422, "end": 7423, "loc": { "start": { "line": 257, "column": 58 }, "end": { "line": 257, "column": 59 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 7424, "end": 7426, "loc": { "start": { "line": 257, "column": 60 }, "end": { "line": 257, "column": 62 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrant", "start": 7426, "end": 7434, "loc": { "start": { "line": 257, "column": 62 }, "end": { "line": 257, "column": 70 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7434, "end": 7435, "loc": { "start": { "line": 257, "column": 70 }, "end": { "line": 257, "column": 71 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7436, "end": 7437, "loc": { "start": { "line": 257, "column": 72 }, "end": { "line": 257, "column": 73 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 7455, "end": 7460, "loc": { "start": { "line": 258, "column": 16 }, "end": { "line": 258, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "item", "start": 7461, "end": 7465, "loc": { "start": { "line": 258, "column": 22 }, "end": { "line": 258, "column": 26 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 7466, "end": 7467, "loc": { "start": { "line": 258, "column": 27 }, "end": { "line": 258, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 7468, "end": 7473, "loc": { "start": { "line": 258, "column": 29 }, "end": { "line": 258, "column": 34 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7473, "end": 7474, "loc": { "start": { "line": 258, "column": 34 }, "end": { "line": 258, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrant", "start": 7474, "end": 7482, "loc": { "start": { "line": 258, "column": 35 }, "end": { "line": 258, "column": 43 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7482, "end": 7483, "loc": { "start": { "line": 258, "column": 43 }, "end": { "line": 258, "column": 44 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7483, "end": 7484, "loc": { "start": { "line": 258, "column": 44 }, "end": { "line": 258, "column": 45 } } }, { "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": 7502, "end": 7504, "loc": { "start": { "line": 259, "column": 16 }, "end": { "line": 259, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7505, "end": 7506, "loc": { "start": { "line": 259, "column": 19 }, "end": { "line": 259, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "item", "start": 7506, "end": 7510, "loc": { "start": { "line": 259, "column": 20 }, "end": { "line": 259, "column": 24 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7510, "end": 7511, "loc": { "start": { "line": 259, "column": 24 }, "end": { "line": 259, "column": 25 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7512, "end": 7513, "loc": { "start": { "line": 259, "column": 26 }, "end": { "line": 259, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 7535, "end": 7537, "loc": { "start": { "line": 260, "column": 20 }, "end": { "line": 260, "column": 22 } } }, { "type": { "label": "_=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "+=", "start": 7538, "end": 7540, "loc": { "start": { "line": 260, "column": 23 }, "end": { "line": 260, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumSubShapeToShortcode", "start": 7541, "end": 7564, "loc": { "start": { "line": 260, "column": 26 }, "end": { "line": 260, "column": 49 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7564, "end": 7565, "loc": { "start": { "line": 260, "column": 49 }, "end": { "line": 260, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "item", "start": 7565, "end": 7569, "loc": { "start": { "line": 260, "column": 50 }, "end": { "line": 260, "column": 54 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7569, "end": 7570, "loc": { "start": { "line": 260, "column": 54 }, "end": { "line": 260, "column": 55 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "subShape", "start": 7570, "end": 7578, "loc": { "start": { "line": 260, "column": 55 }, "end": { "line": 260, "column": 63 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7578, "end": 7579, "loc": { "start": { "line": 260, "column": 63 }, "end": { "line": 260, "column": 64 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 7580, "end": 7581, "loc": { "start": { "line": 260, "column": 65 }, "end": { "line": 260, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumColorToShortcode", "start": 7582, "end": 7602, "loc": { "start": { "line": 260, "column": 67 }, "end": { "line": 260, "column": 87 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7602, "end": 7603, "loc": { "start": { "line": 260, "column": 87 }, "end": { "line": 260, "column": 88 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "item", "start": 7603, "end": 7607, "loc": { "start": { "line": 260, "column": 88 }, "end": { "line": 260, "column": 92 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7607, "end": 7608, "loc": { "start": { "line": 260, "column": 92 }, "end": { "line": 260, "column": 93 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 7608, "end": 7613, "loc": { "start": { "line": 260, "column": 93 }, "end": { "line": 260, "column": 98 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7613, "end": 7614, "loc": { "start": { "line": 260, "column": 98 }, "end": { "line": 260, "column": 99 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7614, "end": 7615, "loc": { "start": { "line": 260, "column": 99 }, "end": { "line": 260, "column": 100 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7633, "end": 7634, "loc": { "start": { "line": 261, "column": 16 }, "end": { "line": 261, "column": 17 } } }, { "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": 7635, "end": 7639, "loc": { "start": { "line": 261, "column": 18 }, "end": { "line": 261, "column": 22 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7640, "end": 7641, "loc": { "start": { "line": 261, "column": 23 }, "end": { "line": 261, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 7663, "end": 7665, "loc": { "start": { "line": 262, "column": 20 }, "end": { "line": 262, "column": 22 } } }, { "type": { "label": "_=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "+=", "start": 7666, "end": 7668, "loc": { "start": { "line": 262, "column": 23 }, "end": { "line": 262, "column": 25 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "--", "start": 7669, "end": 7673, "loc": { "start": { "line": 262, "column": 26 }, "end": { "line": 262, "column": 30 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7673, "end": 7674, "loc": { "start": { "line": 262, "column": 30 }, "end": { "line": 262, "column": 31 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7692, "end": 7693, "loc": { "start": { "line": 263, "column": 16 }, "end": { "line": 263, "column": 17 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7707, "end": 7708, "loc": { "start": { "line": 264, "column": 12 }, "end": { "line": 264, "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": 7724, "end": 7726, "loc": { "start": { "line": 266, "column": 12 }, "end": { "line": 266, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7727, "end": 7728, "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": "layerIndex", "start": 7728, "end": 7738, "loc": { "start": { "line": 266, "column": 16 }, "end": { "line": 266, "column": 26 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 7739, "end": 7740, "loc": { "start": { "line": 266, "column": 27 }, "end": { "line": 266, "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": 7741, "end": 7745, "loc": { "start": { "line": 266, "column": 29 }, "end": { "line": 266, "column": 33 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7745, "end": 7746, "loc": { "start": { "line": 266, "column": 33 }, "end": { "line": 266, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 7746, "end": 7752, "loc": { "start": { "line": 266, "column": 34 }, "end": { "line": 266, "column": 40 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7752, "end": 7753, "loc": { "start": { "line": 266, "column": 40 }, "end": { "line": 266, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 7753, "end": 7759, "loc": { "start": { "line": 266, "column": 41 }, "end": { "line": 266, "column": 47 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 7760, "end": 7761, "loc": { "start": { "line": 266, "column": 48 }, "end": { "line": 266, "column": 49 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 7762, "end": 7763, "loc": { "start": { "line": 266, "column": 50 }, "end": { "line": 266, "column": 51 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7763, "end": 7764, "loc": { "start": { "line": 266, "column": 51 }, "end": { "line": 266, "column": 52 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7765, "end": 7766, "loc": { "start": { "line": 266, "column": 53 }, "end": { "line": 266, "column": 54 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 7784, "end": 7786, "loc": { "start": { "line": 267, "column": 16 }, "end": { "line": 267, "column": 18 } } }, { "type": { "label": "_=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "+=", "start": 7787, "end": 7789, "loc": { "start": { "line": 267, "column": 19 }, "end": { "line": 267, "column": 21 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": ":", "start": 7790, "end": 7793, "loc": { "start": { "line": 267, "column": 22 }, "end": { "line": 267, "column": 25 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7793, "end": 7794, "loc": { "start": { "line": 267, "column": 25 }, "end": { "line": 267, "column": 26 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7808, "end": 7809, "loc": { "start": { "line": 268, "column": 12 }, "end": { "line": 268, "column": 13 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 7819, "end": 7820, "loc": { "start": { "line": 269, "column": 8 }, "end": { "line": 269, "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": 7830, "end": 7834, "loc": { "start": { "line": 270, "column": 8 }, "end": { "line": 270, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7834, "end": 7835, "loc": { "start": { "line": 270, "column": 12 }, "end": { "line": 270, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cachedHash", "start": 7835, "end": 7845, "loc": { "start": { "line": 270, "column": 13 }, "end": { "line": 270, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 7846, "end": 7847, "loc": { "start": { "line": 270, "column": 24 }, "end": { "line": 270, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 7848, "end": 7850, "loc": { "start": { "line": 270, "column": 26 }, "end": { "line": 270, "column": 28 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7850, "end": 7851, "loc": { "start": { "line": 270, "column": 28 }, "end": { "line": 270, "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": 7861, "end": 7867, "loc": { "start": { "line": 271, "column": 8 }, "end": { "line": 271, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "id", "start": 7868, "end": 7870, "loc": { "start": { "line": 271, "column": 15 }, "end": { "line": 271, "column": 17 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 7870, "end": 7871, "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": 7877, "end": 7878, "loc": { "start": { "line": 272, "column": 4 }, "end": { "line": 272, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Draws the shape definition\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {DrawParameters} parameters\r\n * @param {number=} diameter\r\n ", "start": 7886, "end": 8062, "loc": { "start": { "line": 274, "column": 4 }, "end": { "line": 280, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "drawCentered", "start": 8068, "end": 8080, "loc": { "start": { "line": 281, "column": 4 }, "end": { "line": 281, "column": 16 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8080, "end": 8081, "loc": { "start": { "line": 281, "column": 16 }, "end": { "line": 281, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 8081, "end": 8082, "loc": { "start": { "line": 281, "column": 17 }, "end": { "line": 281, "column": 18 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8082, "end": 8083, "loc": { "start": { "line": 281, "column": 18 }, "end": { "line": 281, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 8084, "end": 8085, "loc": { "start": { "line": 281, "column": 20 }, "end": { "line": 281, "column": 21 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8085, "end": 8086, "loc": { "start": { "line": 281, "column": 21 }, "end": { "line": 281, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "parameters", "start": 8087, "end": 8097, "loc": { "start": { "line": 281, "column": 23 }, "end": { "line": 281, "column": 33 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8097, "end": 8098, "loc": { "start": { "line": 281, "column": 33 }, "end": { "line": 281, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "diameter", "start": 8099, "end": 8107, "loc": { "start": { "line": 281, "column": 35 }, "end": { "line": 281, "column": 43 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8108, "end": 8109, "loc": { "start": { "line": 281, "column": 44 }, "end": { "line": 281, "column": 45 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 20, "start": 8110, "end": 8112, "loc": { "start": { "line": 281, "column": 46 }, "end": { "line": 281, "column": 48 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8112, "end": 8113, "loc": { "start": { "line": 281, "column": 48 }, "end": { "line": 281, "column": 49 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "background", "start": 8114, "end": 8124, "loc": { "start": { "line": 281, "column": 50 }, "end": { "line": 281, "column": 60 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8125, "end": 8126, "loc": { "start": { "line": 281, "column": 61 }, "end": { "line": 281, "column": 62 } } }, { "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": 8127, "end": 8131, "loc": { "start": { "line": 281, "column": 63 }, "end": { "line": 281, "column": 67 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8131, "end": 8132, "loc": { "start": { "line": 281, "column": 67 }, "end": { "line": 281, "column": 68 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8133, "end": 8134, "loc": { "start": { "line": 281, "column": 69 }, "end": { "line": 281, "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": 8144, "end": 8149, "loc": { "start": { "line": 282, "column": 8 }, "end": { "line": 282, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dpi", "start": 8150, "end": 8153, "loc": { "start": { "line": 282, "column": 14 }, "end": { "line": 282, "column": 17 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8154, "end": 8155, "loc": { "start": { "line": 282, "column": 18 }, "end": { "line": 282, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "smoothenDpi", "start": 8156, "end": 8167, "loc": { "start": { "line": 282, "column": 20 }, "end": { "line": 282, "column": 31 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8167, "end": 8168, "loc": { "start": { "line": 282, "column": 31 }, "end": { "line": 282, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "globalConfig", "start": 8168, "end": 8180, "loc": { "start": { "line": 282, "column": 32 }, "end": { "line": 282, "column": 44 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8180, "end": 8181, "loc": { "start": { "line": 282, "column": 44 }, "end": { "line": 282, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapesSharpness", "start": 8181, "end": 8196, "loc": { "start": { "line": 282, "column": 45 }, "end": { "line": 282, "column": 60 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 8197, "end": 8198, "loc": { "start": { "line": 282, "column": 61 }, "end": { "line": 282, "column": 62 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "parameters", "start": 8199, "end": 8209, "loc": { "start": { "line": 282, "column": 63 }, "end": { "line": 282, "column": 73 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8209, "end": 8210, "loc": { "start": { "line": 282, "column": 73 }, "end": { "line": 282, "column": 74 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "zoomLevel", "start": 8210, "end": 8219, "loc": { "start": { "line": 282, "column": 74 }, "end": { "line": 282, "column": 83 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8219, "end": 8220, "loc": { "start": { "line": 282, "column": 83 }, "end": { "line": 282, "column": 84 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8220, "end": 8221, "loc": { "start": { "line": 282, "column": 84 }, "end": { "line": 282, "column": 85 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 8233, "end": 8235, "loc": { "start": { "line": 284, "column": 8 }, "end": { "line": 284, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8236, "end": 8237, "loc": { "start": { "line": 284, "column": 11 }, "end": { "line": 284, "column": 12 } } }, { "type": { "label": "prefix", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": null, "updateContext": null }, "value": "!", "start": 8237, "end": 8238, "loc": { "start": { "line": 284, "column": 12 }, "end": { "line": 284, "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": 8238, "end": 8242, "loc": { "start": { "line": 284, "column": 13 }, "end": { "line": 284, "column": 17 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8242, "end": 8243, "loc": { "start": { "line": 284, "column": 17 }, "end": { "line": 284, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bufferGenerator", "start": 8243, "end": 8258, "loc": { "start": { "line": 284, "column": 18 }, "end": { "line": 284, "column": 33 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8258, "end": 8259, "loc": { "start": { "line": 284, "column": 33 }, "end": { "line": 284, "column": 34 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8260, "end": 8261, "loc": { "start": { "line": 284, "column": 35 }, "end": { "line": 284, "column": 36 } } }, { "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": 8275, "end": 8279, "loc": { "start": { "line": 285, "column": 12 }, "end": { "line": 285, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8279, "end": 8280, "loc": { "start": { "line": 285, "column": 16 }, "end": { "line": 285, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bufferGenerator", "start": 8280, "end": 8295, "loc": { "start": { "line": 285, "column": 17 }, "end": { "line": 285, "column": 32 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8296, "end": 8297, "loc": { "start": { "line": 285, "column": 33 }, "end": { "line": 285, "column": 34 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 8298, "end": 8302, "loc": { "start": { "line": 285, "column": 35 }, "end": { "line": 285, "column": 39 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8302, "end": 8303, "loc": { "start": { "line": 285, "column": 39 }, "end": { "line": 285, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "internalGenerateShapeBuffer", "start": 8303, "end": 8330, "loc": { "start": { "line": 285, "column": 40 }, "end": { "line": 285, "column": 67 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8330, "end": 8331, "loc": { "start": { "line": 285, "column": 67 }, "end": { "line": 285, "column": 68 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bind", "start": 8331, "end": 8335, "loc": { "start": { "line": 285, "column": 68 }, "end": { "line": 285, "column": 72 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8335, "end": 8336, "loc": { "start": { "line": 285, "column": 72 }, "end": { "line": 285, "column": 73 } } }, { "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": 8336, "end": 8340, "loc": { "start": { "line": 285, "column": 73 }, "end": { "line": 285, "column": 77 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8340, "end": 8341, "loc": { "start": { "line": 285, "column": 77 }, "end": { "line": 285, "column": 78 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8341, "end": 8342, "loc": { "start": { "line": 285, "column": 78 }, "end": { "line": 285, "column": 79 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8352, "end": 8353, "loc": { "start": { "line": 286, "column": 8 }, "end": { "line": 286, "column": 9 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 8365, "end": 8370, "loc": { "start": { "line": 288, "column": 8 }, "end": { "line": 288, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 8371, "end": 8374, "loc": { "start": { "line": 288, "column": 14 }, "end": { "line": 288, "column": 17 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8375, "end": 8376, "loc": { "start": { "line": 288, "column": 18 }, "end": { "line": 288, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "diameter", "start": 8377, "end": 8385, "loc": { "start": { "line": 288, "column": 20 }, "end": { "line": 288, "column": 28 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 8386, "end": 8387, "loc": { "start": { "line": 288, "column": 29 }, "end": { "line": 288, "column": 30 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "/", "start": 8388, "end": 8391, "loc": { "start": { "line": 288, "column": 31 }, "end": { "line": 288, "column": 34 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 8392, "end": 8393, "loc": { "start": { "line": 288, "column": 35 }, "end": { "line": 288, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dpi", "start": 8394, "end": 8397, "loc": { "start": { "line": 288, "column": 37 }, "end": { "line": 288, "column": 40 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 8398, "end": 8399, "loc": { "start": { "line": 288, "column": 41 }, "end": { "line": 288, "column": 42 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "/", "start": 8400, "end": 8403, "loc": { "start": { "line": 288, "column": 43 }, "end": { "line": 288, "column": 46 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 8404, "end": 8405, "loc": { "start": { "line": 288, "column": 47 }, "end": { "line": 288, "column": 48 } } }, { "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": 8406, "end": 8410, "loc": { "start": { "line": 288, "column": 49 }, "end": { "line": 288, "column": 53 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8410, "end": 8411, "loc": { "start": { "line": 288, "column": 53 }, "end": { "line": 288, "column": 54 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cachedHash", "start": 8411, "end": 8421, "loc": { "start": { "line": 288, "column": 54 }, "end": { "line": 288, "column": 64 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8421, "end": 8422, "loc": { "start": { "line": 288, "column": 64 }, "end": { "line": 288, "column": 65 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 8432, "end": 8437, "loc": { "start": { "line": 289, "column": 8 }, "end": { "line": 289, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "canvas", "start": 8438, "end": 8444, "loc": { "start": { "line": 289, "column": 14 }, "end": { "line": 289, "column": 20 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 8445, "end": 8446, "loc": { "start": { "line": 289, "column": 21 }, "end": { "line": 289, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "parameters", "start": 8447, "end": 8457, "loc": { "start": { "line": 289, "column": 23 }, "end": { "line": 289, "column": 33 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8457, "end": 8458, "loc": { "start": { "line": 289, "column": 33 }, "end": { "line": 289, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "root", "start": 8458, "end": 8462, "loc": { "start": { "line": 289, "column": 34 }, "end": { "line": 289, "column": 38 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8462, "end": 8463, "loc": { "start": { "line": 289, "column": 38 }, "end": { "line": 289, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "buffers", "start": 8463, "end": 8470, "loc": { "start": { "line": 289, "column": 39 }, "end": { "line": 289, "column": 46 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8470, "end": 8471, "loc": { "start": { "line": 289, "column": 46 }, "end": { "line": 289, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getForKey", "start": 8471, "end": 8480, "loc": { "start": { "line": 289, "column": 47 }, "end": { "line": 289, "column": 56 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8480, "end": 8481, "loc": { "start": { "line": 289, "column": 56 }, "end": { "line": 289, "column": 57 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8481, "end": 8482, "loc": { "start": { "line": 289, "column": 57 }, "end": { "line": 289, "column": 58 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 8496, "end": 8499, "loc": { "start": { "line": 290, "column": 12 }, "end": { "line": 290, "column": 15 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8499, "end": 8500, "loc": { "start": { "line": 290, "column": 15 }, "end": { "line": 290, "column": 16 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "shapedef", "start": 8501, "end": 8511, "loc": { "start": { "line": 290, "column": 17 }, "end": { "line": 290, "column": 27 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8511, "end": 8512, "loc": { "start": { "line": 290, "column": 27 }, "end": { "line": 290, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "subKey", "start": 8526, "end": 8532, "loc": { "start": { "line": 291, "column": 12 }, "end": { "line": 291, "column": 18 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8532, "end": 8533, "loc": { "start": { "line": 291, "column": 18 }, "end": { "line": 291, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "key", "start": 8534, "end": 8537, "loc": { "start": { "line": 291, "column": 20 }, "end": { "line": 291, "column": 23 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8537, "end": 8538, "loc": { "start": { "line": 291, "column": 23 }, "end": { "line": 291, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "w", "start": 8552, "end": 8553, "loc": { "start": { "line": 292, "column": 12 }, "end": { "line": 292, "column": 13 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8553, "end": 8554, "loc": { "start": { "line": 292, "column": 13 }, "end": { "line": 292, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "diameter", "start": 8555, "end": 8563, "loc": { "start": { "line": 292, "column": 15 }, "end": { "line": 292, "column": 23 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8563, "end": 8564, "loc": { "start": { "line": 292, "column": 23 }, "end": { "line": 292, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "h", "start": 8578, "end": 8579, "loc": { "start": { "line": 293, "column": 12 }, "end": { "line": 293, "column": 13 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8579, "end": 8580, "loc": { "start": { "line": 293, "column": 13 }, "end": { "line": 293, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "diameter", "start": 8581, "end": 8589, "loc": { "start": { "line": 293, "column": 15 }, "end": { "line": 293, "column": 23 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8589, "end": 8590, "loc": { "start": { "line": 293, "column": 23 }, "end": { "line": 293, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dpi", "start": 8604, "end": 8607, "loc": { "start": { "line": 294, "column": 12 }, "end": { "line": 294, "column": 15 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8607, "end": 8608, "loc": { "start": { "line": 294, "column": 15 }, "end": { "line": 294, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "redrawMethod", "start": 8622, "end": 8634, "loc": { "start": { "line": 295, "column": 12 }, "end": { "line": 295, "column": 24 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8634, "end": 8635, "loc": { "start": { "line": 295, "column": 24 }, "end": { "line": 295, "column": 25 } } }, { "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": 8636, "end": 8640, "loc": { "start": { "line": 295, "column": 26 }, "end": { "line": 295, "column": 30 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8640, "end": 8641, "loc": { "start": { "line": 295, "column": 30 }, "end": { "line": 295, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bufferGenerator", "start": 8641, "end": 8656, "loc": { "start": { "line": 295, "column": 31 }, "end": { "line": 295, "column": 46 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8656, "end": 8657, "loc": { "start": { "line": 295, "column": 46 }, "end": { "line": 295, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "additionalParams", "start": 8671, "end": 8687, "loc": { "start": { "line": 296, "column": 12 }, "end": { "line": 296, "column": 28 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8687, "end": 8688, "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": "background", "start": 8689, "end": 8699, "loc": { "start": { "line": 296, "column": 30 }, "end": { "line": 296, "column": 40 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8699, "end": 8700, "loc": { "start": { "line": 296, "column": 40 }, "end": { "line": 296, "column": 41 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8710, "end": 8711, "loc": { "start": { "line": 297, "column": 8 }, "end": { "line": 297, "column": 9 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8711, "end": 8712, "loc": { "start": { "line": 297, "column": 9 }, "end": { "line": 297, "column": 10 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8712, "end": 8713, "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": "parameters", "start": 8723, "end": 8733, "loc": { "start": { "line": 298, "column": 8 }, "end": { "line": 298, "column": 18 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8733, "end": 8734, "loc": { "start": { "line": 298, "column": 18 }, "end": { "line": 298, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 8734, "end": 8741, "loc": { "start": { "line": 298, "column": 19 }, "end": { "line": 298, "column": 26 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8741, "end": 8742, "loc": { "start": { "line": 298, "column": 26 }, "end": { "line": 298, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "drawImage", "start": 8742, "end": 8751, "loc": { "start": { "line": 298, "column": 27 }, "end": { "line": 298, "column": 36 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8751, "end": 8752, "loc": { "start": { "line": 298, "column": 36 }, "end": { "line": 298, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "canvas", "start": 8752, "end": 8758, "loc": { "start": { "line": 298, "column": 37 }, "end": { "line": 298, "column": 43 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8758, "end": 8759, "loc": { "start": { "line": 298, "column": 43 }, "end": { "line": 298, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 8760, "end": 8761, "loc": { "start": { "line": 298, "column": 45 }, "end": { "line": 298, "column": 46 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 8762, "end": 8763, "loc": { "start": { "line": 298, "column": 47 }, "end": { "line": 298, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "diameter", "start": 8764, "end": 8772, "loc": { "start": { "line": 298, "column": 49 }, "end": { "line": 298, "column": 57 } } }, { "type": { "label": "/", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "/", "start": 8773, "end": 8774, "loc": { "start": { "line": 298, "column": 58 }, "end": { "line": 298, "column": 59 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 2, "start": 8775, "end": 8776, "loc": { "start": { "line": 298, "column": 60 }, "end": { "line": 298, "column": 61 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8776, "end": 8777, "loc": { "start": { "line": 298, "column": 61 }, "end": { "line": 298, "column": 62 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 8778, "end": 8779, "loc": { "start": { "line": 298, "column": 63 }, "end": { "line": 298, "column": 64 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 8780, "end": 8781, "loc": { "start": { "line": 298, "column": 65 }, "end": { "line": 298, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "diameter", "start": 8782, "end": 8790, "loc": { "start": { "line": 298, "column": 67 }, "end": { "line": 298, "column": 75 } } }, { "type": { "label": "/", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "/", "start": 8791, "end": 8792, "loc": { "start": { "line": 298, "column": 76 }, "end": { "line": 298, "column": 77 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 2, "start": 8793, "end": 8794, "loc": { "start": { "line": 298, "column": 78 }, "end": { "line": 298, "column": 79 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8794, "end": 8795, "loc": { "start": { "line": 298, "column": 79 }, "end": { "line": 298, "column": 80 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "diameter", "start": 8796, "end": 8804, "loc": { "start": { "line": 298, "column": 81 }, "end": { "line": 298, "column": 89 } } }, { "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": 298, "column": 89 }, "end": { "line": 298, "column": 90 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "diameter", "start": 8806, "end": 8814, "loc": { "start": { "line": 298, "column": 91 }, "end": { "line": 298, "column": 99 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8814, "end": 8815, "loc": { "start": { "line": 298, "column": 99 }, "end": { "line": 298, "column": 100 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8815, "end": 8816, "loc": { "start": { "line": 298, "column": 100 }, "end": { "line": 298, "column": 101 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8822, "end": 8823, "loc": { "start": { "line": 299, "column": 4 }, "end": { "line": 299, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Draws the item to a canvas\r\n * @param {CanvasRenderingContext2D} context\r\n * @param {number} size\r\n ", "start": 8831, "end": 8957, "loc": { "start": { "line": 301, "column": 4 }, "end": { "line": 305, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "drawFullSizeOnCanvas", "start": 8963, "end": 8983, "loc": { "start": { "line": 306, "column": 4 }, "end": { "line": 306, "column": 24 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 8983, "end": 8984, "loc": { "start": { "line": 306, "column": 24 }, "end": { "line": 306, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 8984, "end": 8991, "loc": { "start": { "line": 306, "column": 25 }, "end": { "line": 306, "column": 32 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8991, "end": 8992, "loc": { "start": { "line": 306, "column": 32 }, "end": { "line": 306, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "size", "start": 8993, "end": 8997, "loc": { "start": { "line": 306, "column": 34 }, "end": { "line": 306, "column": 38 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 8997, "end": 8998, "loc": { "start": { "line": 306, "column": 38 }, "end": { "line": 306, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "background", "start": 8999, "end": 9009, "loc": { "start": { "line": 306, "column": 40 }, "end": { "line": 306, "column": 50 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 9010, "end": 9011, "loc": { "start": { "line": 306, "column": 51 }, "end": { "line": 306, "column": 52 } } }, { "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": 9012, "end": 9016, "loc": { "start": { "line": 306, "column": 53 }, "end": { "line": 306, "column": 57 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9016, "end": 9017, "loc": { "start": { "line": 306, "column": 57 }, "end": { "line": 306, "column": 58 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9018, "end": 9019, "loc": { "start": { "line": 306, "column": 59 }, "end": { "line": 306, "column": 60 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 9029, "end": 9033, "loc": { "start": { "line": 307, "column": 8 }, "end": { "line": 307, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9033, "end": 9034, "loc": { "start": { "line": 307, "column": 12 }, "end": { "line": 307, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "internalGenerateShapeBuffer", "start": 9034, "end": 9061, "loc": { "start": { "line": 307, "column": 13 }, "end": { "line": 307, "column": 40 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9061, "end": 9062, "loc": { "start": { "line": 307, "column": 40 }, "end": { "line": 307, "column": 41 } } }, { "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": 9062, "end": 9066, "loc": { "start": { "line": 307, "column": 41 }, "end": { "line": 307, "column": 45 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9066, "end": 9067, "loc": { "start": { "line": 307, "column": 45 }, "end": { "line": 307, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 9068, "end": 9075, "loc": { "start": { "line": 307, "column": 47 }, "end": { "line": 307, "column": 54 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9075, "end": 9076, "loc": { "start": { "line": 307, "column": 54 }, "end": { "line": 307, "column": 55 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "size", "start": 9077, "end": 9081, "loc": { "start": { "line": 307, "column": 56 }, "end": { "line": 307, "column": 60 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9081, "end": 9082, "loc": { "start": { "line": 307, "column": 60 }, "end": { "line": 307, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "size", "start": 9083, "end": 9087, "loc": { "start": { "line": 307, "column": 62 }, "end": { "line": 307, "column": 66 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9087, "end": 9088, "loc": { "start": { "line": 307, "column": 66 }, "end": { "line": 307, "column": 67 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 9089, "end": 9090, "loc": { "start": { "line": 307, "column": 68 }, "end": { "line": 307, "column": 69 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9090, "end": 9091, "loc": { "start": { "line": 307, "column": 69 }, "end": { "line": 307, "column": 70 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "background", "start": 9092, "end": 9102, "loc": { "start": { "line": 307, "column": 71 }, "end": { "line": 307, "column": 81 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9102, "end": 9103, "loc": { "start": { "line": 307, "column": 81 }, "end": { "line": 307, "column": 82 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9103, "end": 9104, "loc": { "start": { "line": 307, "column": 82 }, "end": { "line": 307, "column": 83 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9110, "end": 9111, "loc": { "start": { "line": 308, "column": 4 }, "end": { "line": 308, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Generates this shape as a canvas\r\n * @param {number} size\r\n ", "start": 9119, "end": 9201, "loc": { "start": { "line": 310, "column": 4 }, "end": { "line": 313, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "generateAsCanvas", "start": 9207, "end": 9223, "loc": { "start": { "line": 314, "column": 4 }, "end": { "line": 314, "column": 20 } } }, { "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": 314, "column": 20 }, "end": { "line": 314, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "size", "start": 9224, "end": 9228, "loc": { "start": { "line": 314, "column": 21 }, "end": { "line": 314, "column": 25 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 9229, "end": 9230, "loc": { "start": { "line": 314, "column": 26 }, "end": { "line": 314, "column": 27 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 120, "start": 9231, "end": 9234, "loc": { "start": { "line": 314, "column": 28 }, "end": { "line": 314, "column": 31 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9234, "end": 9235, "loc": { "start": { "line": 314, "column": 31 }, "end": { "line": 314, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "background", "start": 9236, "end": 9246, "loc": { "start": { "line": 314, "column": 33 }, "end": { "line": 314, "column": 43 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 9247, "end": 9248, "loc": { "start": { "line": 314, "column": 44 }, "end": { "line": 314, "column": 45 } } }, { "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": 9249, "end": 9253, "loc": { "start": { "line": 314, "column": 46 }, "end": { "line": 314, "column": 50 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9253, "end": 9254, "loc": { "start": { "line": 314, "column": 50 }, "end": { "line": 314, "column": 51 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9255, "end": 9256, "loc": { "start": { "line": 314, "column": 52 }, "end": { "line": 314, "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": 9266, "end": 9271, "loc": { "start": { "line": 315, "column": 8 }, "end": { "line": 315, "column": 13 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9272, "end": 9273, "loc": { "start": { "line": 315, "column": 14 }, "end": { "line": 315, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "canvas", "start": 9273, "end": 9279, "loc": { "start": { "line": 315, "column": 15 }, "end": { "line": 315, "column": 21 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9279, "end": 9280, "loc": { "start": { "line": 315, "column": 21 }, "end": { "line": 315, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 9281, "end": 9288, "loc": { "start": { "line": 315, "column": 23 }, "end": { "line": 315, "column": 30 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9288, "end": 9289, "loc": { "start": { "line": 315, "column": 30 }, "end": { "line": 315, "column": 31 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 9290, "end": 9291, "loc": { "start": { "line": 315, "column": 32 }, "end": { "line": 315, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "makeOffscreenBuffer", "start": 9292, "end": 9311, "loc": { "start": { "line": 315, "column": 34 }, "end": { "line": 315, "column": 53 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9311, "end": 9312, "loc": { "start": { "line": 315, "column": 53 }, "end": { "line": 315, "column": 54 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "size", "start": 9312, "end": 9316, "loc": { "start": { "line": 315, "column": 54 }, "end": { "line": 315, "column": 58 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9316, "end": 9317, "loc": { "start": { "line": 315, "column": 58 }, "end": { "line": 315, "column": 59 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "size", "start": 9318, "end": 9322, "loc": { "start": { "line": 315, "column": 60 }, "end": { "line": 315, "column": 64 } } }, { "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": 315, "column": 64 }, "end": { "line": 315, "column": 65 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9324, "end": 9325, "loc": { "start": { "line": 315, "column": 66 }, "end": { "line": 315, "column": 67 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "smooth", "start": 9339, "end": 9345, "loc": { "start": { "line": 316, "column": 12 }, "end": { "line": 316, "column": 18 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9345, "end": 9346, "loc": { "start": { "line": 316, "column": 18 }, "end": { "line": 316, "column": 19 } } }, { "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": 9347, "end": 9351, "loc": { "start": { "line": 316, "column": 20 }, "end": { "line": 316, "column": 24 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9351, "end": 9352, "loc": { "start": { "line": 316, "column": 24 }, "end": { "line": 316, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "label", "start": 9366, "end": 9371, "loc": { "start": { "line": 317, "column": 12 }, "end": { "line": 317, "column": 17 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9371, "end": 9372, "loc": { "start": { "line": 317, "column": 17 }, "end": { "line": 317, "column": 18 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "definition-canvas-cache-", "start": 9373, "end": 9399, "loc": { "start": { "line": 317, "column": 19 }, "end": { "line": 317, "column": 45 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 9400, "end": 9401, "loc": { "start": { "line": 317, "column": 46 }, "end": { "line": 317, "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": 9402, "end": 9406, "loc": { "start": { "line": 317, "column": 48 }, "end": { "line": 317, "column": 52 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9406, "end": 9407, "loc": { "start": { "line": 317, "column": 52 }, "end": { "line": 317, "column": 53 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "getHash", "start": 9407, "end": 9414, "loc": { "start": { "line": 317, "column": 53 }, "end": { "line": 317, "column": 60 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9414, "end": 9415, "loc": { "start": { "line": 317, "column": 60 }, "end": { "line": 317, "column": 61 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9415, "end": 9416, "loc": { "start": { "line": 317, "column": 61 }, "end": { "line": 317, "column": 62 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9416, "end": 9417, "loc": { "start": { "line": 317, "column": 62 }, "end": { "line": 317, "column": 63 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "reusable", "start": 9431, "end": 9439, "loc": { "start": { "line": 318, "column": 12 }, "end": { "line": 318, "column": 20 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9439, "end": 9440, "loc": { "start": { "line": 318, "column": 20 }, "end": { "line": 318, "column": 21 } } }, { "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": 9441, "end": 9446, "loc": { "start": { "line": 318, "column": 22 }, "end": { "line": 318, "column": 27 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9446, "end": 9447, "loc": { "start": { "line": 318, "column": 27 }, "end": { "line": 318, "column": 28 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9457, "end": 9458, "loc": { "start": { "line": 319, "column": 8 }, "end": { "line": 319, "column": 9 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9458, "end": 9459, "loc": { "start": { "line": 319, "column": 9 }, "end": { "line": 319, "column": 10 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9459, "end": 9460, "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": 9472, "end": 9476, "loc": { "start": { "line": 321, "column": 8 }, "end": { "line": 321, "column": 12 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9476, "end": 9477, "loc": { "start": { "line": 321, "column": 12 }, "end": { "line": 321, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "internalGenerateShapeBuffer", "start": 9477, "end": 9504, "loc": { "start": { "line": 321, "column": 13 }, "end": { "line": 321, "column": 40 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9504, "end": 9505, "loc": { "start": { "line": 321, "column": 40 }, "end": { "line": 321, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "canvas", "start": 9505, "end": 9511, "loc": { "start": { "line": 321, "column": 41 }, "end": { "line": 321, "column": 47 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9511, "end": 9512, "loc": { "start": { "line": 321, "column": 47 }, "end": { "line": 321, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 9513, "end": 9520, "loc": { "start": { "line": 321, "column": 49 }, "end": { "line": 321, "column": 56 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9520, "end": 9521, "loc": { "start": { "line": 321, "column": 56 }, "end": { "line": 321, "column": 57 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "size", "start": 9522, "end": 9526, "loc": { "start": { "line": 321, "column": 58 }, "end": { "line": 321, "column": 62 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9526, "end": 9527, "loc": { "start": { "line": 321, "column": 62 }, "end": { "line": 321, "column": 63 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "size", "start": 9528, "end": 9532, "loc": { "start": { "line": 321, "column": 64 }, "end": { "line": 321, "column": 68 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9532, "end": 9533, "loc": { "start": { "line": 321, "column": 68 }, "end": { "line": 321, "column": 69 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 9534, "end": 9535, "loc": { "start": { "line": 321, "column": 70 }, "end": { "line": 321, "column": 71 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9535, "end": 9536, "loc": { "start": { "line": 321, "column": 71 }, "end": { "line": 321, "column": 72 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "background", "start": 9537, "end": 9547, "loc": { "start": { "line": 321, "column": 73 }, "end": { "line": 321, "column": 83 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9547, "end": 9548, "loc": { "start": { "line": 321, "column": 83 }, "end": { "line": 321, "column": 84 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9548, "end": 9549, "loc": { "start": { "line": 321, "column": 84 }, "end": { "line": 321, "column": 85 } } }, { "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": 9559, "end": 9565, "loc": { "start": { "line": 322, "column": 8 }, "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": "canvas", "start": 9566, "end": 9572, "loc": { "start": { "line": 322, "column": 15 }, "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": 9572, "end": 9573, "loc": { "start": { "line": 322, "column": 21 }, "end": { "line": 322, "column": 22 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9579, "end": 9580, "loc": { "start": { "line": 323, "column": 4 }, "end": { "line": 323, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n *\r\n * @param {HTMLCanvasElement} canvas\r\n * @param {CanvasRenderingContext2D} context\r\n * @param {number} w\r\n * @param {number} h\r\n * @param {number} dpi\r\n ", "start": 9588, "end": 9780, "loc": { "start": { "line": 325, "column": 4 }, "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": "internalGenerateShapeBuffer", "start": 9786, "end": 9813, "loc": { "start": { "line": 333, "column": 4 }, "end": { "line": 333, "column": 31 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9813, "end": 9814, "loc": { "start": { "line": 333, "column": 31 }, "end": { "line": 333, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "canvas", "start": 9814, "end": 9820, "loc": { "start": { "line": 333, "column": 32 }, "end": { "line": 333, "column": 38 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9820, "end": 9821, "loc": { "start": { "line": 333, "column": 38 }, "end": { "line": 333, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 9822, "end": 9829, "loc": { "start": { "line": 333, "column": 40 }, "end": { "line": 333, "column": 47 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9829, "end": 9830, "loc": { "start": { "line": 333, "column": 47 }, "end": { "line": 333, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "w", "start": 9831, "end": 9832, "loc": { "start": { "line": 333, "column": 49 }, "end": { "line": 333, "column": 50 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9832, "end": 9833, "loc": { "start": { "line": 333, "column": 50 }, "end": { "line": 333, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "h", "start": 9834, "end": 9835, "loc": { "start": { "line": 333, "column": 52 }, "end": { "line": 333, "column": 53 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9835, "end": 9836, "loc": { "start": { "line": 333, "column": 53 }, "end": { "line": 333, "column": 54 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dpi", "start": 9837, "end": 9840, "loc": { "start": { "line": 333, "column": 55 }, "end": { "line": 333, "column": 58 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9840, "end": 9841, "loc": { "start": { "line": 333, "column": 58 }, "end": { "line": 333, "column": 59 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "background", "start": 9842, "end": 9852, "loc": { "start": { "line": 333, "column": 60 }, "end": { "line": 333, "column": 70 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 9853, "end": 9854, "loc": { "start": { "line": 333, "column": 71 }, "end": { "line": 333, "column": 72 } } }, { "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": 9855, "end": 9859, "loc": { "start": { "line": 333, "column": 73 }, "end": { "line": 333, "column": 77 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9859, "end": 9860, "loc": { "start": { "line": 333, "column": 77 }, "end": { "line": 333, "column": 78 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9861, "end": 9862, "loc": { "start": { "line": 333, "column": 79 }, "end": { "line": 333, "column": 80 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 9872, "end": 9879, "loc": { "start": { "line": 334, "column": 8 }, "end": { "line": 334, "column": 15 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9879, "end": 9880, "loc": { "start": { "line": 334, "column": 15 }, "end": { "line": 334, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "translate", "start": 9880, "end": 9889, "loc": { "start": { "line": 334, "column": 16 }, "end": { "line": 334, "column": 25 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9889, "end": 9890, "loc": { "start": { "line": 334, "column": 25 }, "end": { "line": 334, "column": 26 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9890, "end": 9891, "loc": { "start": { "line": 334, "column": 26 }, "end": { "line": 334, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "w", "start": 9891, "end": 9892, "loc": { "start": { "line": 334, "column": 27 }, "end": { "line": 334, "column": 28 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 9893, "end": 9894, "loc": { "start": { "line": 334, "column": 29 }, "end": { "line": 334, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dpi", "start": 9895, "end": 9898, "loc": { "start": { "line": 334, "column": 31 }, "end": { "line": 334, "column": 34 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9898, "end": 9899, "loc": { "start": { "line": 334, "column": 34 }, "end": { "line": 334, "column": 35 } } }, { "type": { "label": "/", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "/", "start": 9900, "end": 9901, "loc": { "start": { "line": 334, "column": 36 }, "end": { "line": 334, "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": 9902, "end": 9903, "loc": { "start": { "line": 334, "column": 38 }, "end": { "line": 334, "column": 39 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9903, "end": 9904, "loc": { "start": { "line": 334, "column": 39 }, "end": { "line": 334, "column": 40 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9905, "end": 9906, "loc": { "start": { "line": 334, "column": 41 }, "end": { "line": 334, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "h", "start": 9906, "end": 9907, "loc": { "start": { "line": 334, "column": 42 }, "end": { "line": 334, "column": 43 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 9908, "end": 9909, "loc": { "start": { "line": 334, "column": 44 }, "end": { "line": 334, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dpi", "start": 9910, "end": 9913, "loc": { "start": { "line": 334, "column": 46 }, "end": { "line": 334, "column": 49 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9913, "end": 9914, "loc": { "start": { "line": 334, "column": 49 }, "end": { "line": 334, "column": 50 } } }, { "type": { "label": "/", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "/", "start": 9915, "end": 9916, "loc": { "start": { "line": 334, "column": 51 }, "end": { "line": 334, "column": 52 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 2, "start": 9917, "end": 9918, "loc": { "start": { "line": 334, "column": 53 }, "end": { "line": 334, "column": 54 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9918, "end": 9919, "loc": { "start": { "line": 334, "column": 54 }, "end": { "line": 334, "column": 55 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9919, "end": 9920, "loc": { "start": { "line": 334, "column": 55 }, "end": { "line": 334, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 9930, "end": 9937, "loc": { "start": { "line": 335, "column": 8 }, "end": { "line": 335, "column": 15 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9937, "end": 9938, "loc": { "start": { "line": 335, "column": 15 }, "end": { "line": 335, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "scale", "start": 9938, "end": 9943, "loc": { "start": { "line": 335, "column": 16 }, "end": { "line": 335, "column": 21 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9943, "end": 9944, "loc": { "start": { "line": 335, "column": 21 }, "end": { "line": 335, "column": 22 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9944, "end": 9945, "loc": { "start": { "line": 335, "column": 22 }, "end": { "line": 335, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dpi", "start": 9945, "end": 9948, "loc": { "start": { "line": 335, "column": 23 }, "end": { "line": 335, "column": 26 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 9949, "end": 9950, "loc": { "start": { "line": 335, "column": 27 }, "end": { "line": 335, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "w", "start": 9951, "end": 9952, "loc": { "start": { "line": 335, "column": 29 }, "end": { "line": 335, "column": 30 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9952, "end": 9953, "loc": { "start": { "line": 335, "column": 30 }, "end": { "line": 335, "column": 31 } } }, { "type": { "label": "/", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "/", "start": 9954, "end": 9955, "loc": { "start": { "line": 335, "column": 32 }, "end": { "line": 335, "column": 33 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 23, "start": 9956, "end": 9958, "loc": { "start": { "line": 335, "column": 34 }, "end": { "line": 335, "column": 36 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9958, "end": 9959, "loc": { "start": { "line": 335, "column": 36 }, "end": { "line": 335, "column": 37 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9960, "end": 9961, "loc": { "start": { "line": 335, "column": 38 }, "end": { "line": 335, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dpi", "start": 9961, "end": 9964, "loc": { "start": { "line": 335, "column": 39 }, "end": { "line": 335, "column": 42 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 9965, "end": 9966, "loc": { "start": { "line": 335, "column": 43 }, "end": { "line": 335, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "h", "start": 9967, "end": 9968, "loc": { "start": { "line": 335, "column": 45 }, "end": { "line": 335, "column": 46 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9968, "end": 9969, "loc": { "start": { "line": 335, "column": 46 }, "end": { "line": 335, "column": 47 } } }, { "type": { "label": "/", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "/", "start": 9970, "end": 9971, "loc": { "start": { "line": 335, "column": 48 }, "end": { "line": 335, "column": 49 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 23, "start": 9972, "end": 9974, "loc": { "start": { "line": 335, "column": 50 }, "end": { "line": 335, "column": 52 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 9974, "end": 9975, "loc": { "start": { "line": 335, "column": 52 }, "end": { "line": 335, "column": 53 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9975, "end": 9976, "loc": { "start": { "line": 335, "column": 53 }, "end": { "line": 335, "column": 54 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 9988, "end": 9995, "loc": { "start": { "line": 337, "column": 8 }, "end": { "line": 337, "column": 15 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 9995, "end": 9996, "loc": { "start": { "line": 337, "column": 15 }, "end": { "line": 337, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "fillStyle", "start": 9996, "end": 10005, "loc": { "start": { "line": 337, "column": 16 }, "end": { "line": 337, "column": 25 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 10006, "end": 10007, "loc": { "start": { "line": 337, "column": 26 }, "end": { "line": 337, "column": 27 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "#e9ecf7", "start": 10008, "end": 10017, "loc": { "start": { "line": 337, "column": 28 }, "end": { "line": 337, "column": 37 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10017, "end": 10018, "loc": { "start": { "line": 337, "column": 37 }, "end": { "line": 337, "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": 10030, "end": 10035, "loc": { "start": { "line": 339, "column": 8 }, "end": { "line": 339, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantSize", "start": 10036, "end": 10048, "loc": { "start": { "line": 339, "column": 14 }, "end": { "line": 339, "column": 26 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 10049, "end": 10050, "loc": { "start": { "line": 339, "column": 27 }, "end": { "line": 339, "column": 28 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 10, "start": 10051, "end": 10053, "loc": { "start": { "line": 339, "column": 29 }, "end": { "line": 339, "column": 31 } } }, { "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": 339, "column": 31 }, "end": { "line": 339, "column": 32 } } }, { "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": 10064, "end": 10069, "loc": { "start": { "line": 340, "column": 8 }, "end": { "line": 340, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantHalfSize", "start": 10070, "end": 10086, "loc": { "start": { "line": 340, "column": 14 }, "end": { "line": 340, "column": 30 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 10087, "end": 10088, "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": "quadrantSize", "start": 10089, "end": 10101, "loc": { "start": { "line": 340, "column": 33 }, "end": { "line": 340, "column": 45 } } }, { "type": { "label": "/", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "/", "start": 10102, "end": 10103, "loc": { "start": { "line": 340, "column": 46 }, "end": { "line": 340, "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": 10104, "end": 10105, "loc": { "start": { "line": 340, "column": 48 }, "end": { "line": 340, "column": 49 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10105, "end": 10106, "loc": { "start": { "line": 340, "column": 49 }, "end": { "line": 340, "column": 50 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 10118, "end": 10120, "loc": { "start": { "line": 342, "column": 8 }, "end": { "line": 342, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10121, "end": 10122, "loc": { "start": { "line": 342, "column": 11 }, "end": { "line": 342, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "background", "start": 10122, "end": 10132, "loc": { "start": { "line": 342, "column": 12 }, "end": { "line": 342, "column": 22 } } }, { "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": 342, "column": 22 }, "end": { "line": 342, "column": 23 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10134, "end": 10135, "loc": { "start": { "line": 342, "column": 24 }, "end": { "line": 342, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 10149, "end": 10156, "loc": { "start": { "line": 343, "column": 12 }, "end": { "line": 343, "column": 19 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10156, "end": 10157, "loc": { "start": { "line": 343, "column": 19 }, "end": { "line": 343, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "fillStyle", "start": 10157, "end": 10166, "loc": { "start": { "line": 343, "column": 20 }, "end": { "line": 343, "column": 29 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 10167, "end": 10168, "loc": { "start": { "line": 343, "column": 30 }, "end": { "line": 343, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "THEME", "start": 10169, "end": 10174, "loc": { "start": { "line": 343, "column": 32 }, "end": { "line": 343, "column": 37 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10174, "end": 10175, "loc": { "start": { "line": 343, "column": 37 }, "end": { "line": 343, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "items", "start": 10175, "end": 10180, "loc": { "start": { "line": 343, "column": 38 }, "end": { "line": 343, "column": 43 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10180, "end": 10181, "loc": { "start": { "line": 343, "column": 43 }, "end": { "line": 343, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "circleBackground", "start": 10181, "end": 10197, "loc": { "start": { "line": 343, "column": 44 }, "end": { "line": 343, "column": 60 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10197, "end": 10198, "loc": { "start": { "line": 343, "column": 60 }, "end": { "line": 343, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 10212, "end": 10219, "loc": { "start": { "line": 344, "column": 12 }, "end": { "line": 344, "column": 19 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10219, "end": 10220, "loc": { "start": { "line": 344, "column": 19 }, "end": { "line": 344, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "beginCircle", "start": 10220, "end": 10231, "loc": { "start": { "line": 344, "column": 20 }, "end": { "line": 344, "column": 31 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10231, "end": 10232, "loc": { "start": { "line": 344, "column": 31 }, "end": { "line": 344, "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": 10232, "end": 10233, "loc": { "start": { "line": 344, "column": 32 }, "end": { "line": 344, "column": 33 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10233, "end": 10234, "loc": { "start": { "line": 344, "column": 33 }, "end": { "line": 344, "column": 34 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 10235, "end": 10236, "loc": { "start": { "line": 344, "column": 35 }, "end": { "line": 344, "column": 36 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10236, "end": 10237, "loc": { "start": { "line": 344, "column": 36 }, "end": { "line": 344, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantSize", "start": 10238, "end": 10250, "loc": { "start": { "line": 344, "column": 38 }, "end": { "line": 344, "column": 50 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 10251, "end": 10252, "loc": { "start": { "line": 344, "column": 51 }, "end": { "line": 344, "column": 52 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1.15, "start": 10253, "end": 10257, "loc": { "start": { "line": 344, "column": 53 }, "end": { "line": 344, "column": 57 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10257, "end": 10258, "loc": { "start": { "line": 344, "column": 57 }, "end": { "line": 344, "column": 58 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10258, "end": 10259, "loc": { "start": { "line": 344, "column": 58 }, "end": { "line": 344, "column": 59 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 10273, "end": 10280, "loc": { "start": { "line": 345, "column": 12 }, "end": { "line": 345, "column": 19 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10280, "end": 10281, "loc": { "start": { "line": 345, "column": 19 }, "end": { "line": 345, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "fill", "start": 10281, "end": 10285, "loc": { "start": { "line": 345, "column": 20 }, "end": { "line": 345, "column": 24 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10285, "end": 10286, "loc": { "start": { "line": 345, "column": 24 }, "end": { "line": 345, "column": 25 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10286, "end": 10287, "loc": { "start": { "line": 345, "column": 25 }, "end": { "line": 345, "column": 26 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10287, "end": 10288, "loc": { "start": { "line": 345, "column": 26 }, "end": { "line": 345, "column": 27 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10298, "end": 10299, "loc": { "start": { "line": 346, "column": 8 }, "end": { "line": 346, "column": 9 } } }, { "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": 10311, "end": 10314, "loc": { "start": { "line": 348, "column": 8 }, "end": { "line": 348, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10315, "end": 10316, "loc": { "start": { "line": 348, "column": 12 }, "end": { "line": 348, "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": 10316, "end": 10319, "loc": { "start": { "line": 348, "column": 13 }, "end": { "line": 348, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 10320, "end": 10330, "loc": { "start": { "line": 348, "column": 17 }, "end": { "line": 348, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 10331, "end": 10332, "loc": { "start": { "line": 348, "column": 28 }, "end": { "line": 348, "column": 29 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 10333, "end": 10334, "loc": { "start": { "line": 348, "column": 30 }, "end": { "line": 348, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10334, "end": 10335, "loc": { "start": { "line": 348, "column": 31 }, "end": { "line": 348, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 10336, "end": 10346, "loc": { "start": { "line": 348, "column": 33 }, "end": { "line": 348, "column": 43 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 10347, "end": 10348, "loc": { "start": { "line": 348, "column": 44 }, "end": { "line": 348, "column": 45 } } }, { "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": 10349, "end": 10353, "loc": { "start": { "line": 348, "column": 46 }, "end": { "line": 348, "column": 50 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10353, "end": 10354, "loc": { "start": { "line": 348, "column": 50 }, "end": { "line": 348, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 10354, "end": 10360, "loc": { "start": { "line": 348, "column": 51 }, "end": { "line": 348, "column": 57 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10360, "end": 10361, "loc": { "start": { "line": 348, "column": 57 }, "end": { "line": 348, "column": 58 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 10361, "end": 10367, "loc": { "start": { "line": 348, "column": 58 }, "end": { "line": 348, "column": 64 } } }, { "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": 348, "column": 64 }, "end": { "line": 348, "column": 65 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 10369, "end": 10371, "loc": { "start": { "line": 348, "column": 66 }, "end": { "line": 348, "column": 68 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 10371, "end": 10381, "loc": { "start": { "line": 348, "column": 68 }, "end": { "line": 348, "column": 78 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10381, "end": 10382, "loc": { "start": { "line": 348, "column": 78 }, "end": { "line": 348, "column": 79 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10383, "end": 10384, "loc": { "start": { "line": 348, "column": 80 }, "end": { "line": 348, "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": 10398, "end": 10403, "loc": { "start": { "line": 349, "column": 12 }, "end": { "line": 349, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 10404, "end": 10413, "loc": { "start": { "line": 349, "column": 18 }, "end": { "line": 349, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 10414, "end": 10415, "loc": { "start": { "line": 349, "column": 28 }, "end": { "line": 349, "column": 29 } } }, { "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": 10416, "end": 10420, "loc": { "start": { "line": 349, "column": 30 }, "end": { "line": 349, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10420, "end": 10421, "loc": { "start": { "line": 349, "column": 34 }, "end": { "line": 349, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 10421, "end": 10427, "loc": { "start": { "line": 349, "column": 35 }, "end": { "line": 349, "column": 41 } } }, { "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": 349, "column": 41 }, "end": { "line": 349, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 10428, "end": 10438, "loc": { "start": { "line": 349, "column": 42 }, "end": { "line": 349, "column": 52 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10438, "end": 10439, "loc": { "start": { "line": 349, "column": 52 }, "end": { "line": 349, "column": 53 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10439, "end": 10440, "loc": { "start": { "line": 349, "column": 53 }, "end": { "line": 349, "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": 10456, "end": 10461, "loc": { "start": { "line": 351, "column": 12 }, "end": { "line": 351, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerScale", "start": 10462, "end": 10472, "loc": { "start": { "line": 351, "column": 18 }, "end": { "line": 351, "column": 28 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 10473, "end": 10474, "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": "Math", "start": 10475, "end": 10479, "loc": { "start": { "line": 351, "column": 31 }, "end": { "line": 351, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10479, "end": 10480, "loc": { "start": { "line": 351, "column": 35 }, "end": { "line": 351, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "max", "start": 10480, "end": 10483, "loc": { "start": { "line": 351, "column": 36 }, "end": { "line": 351, "column": 39 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10483, "end": 10484, "loc": { "start": { "line": 351, "column": 39 }, "end": { "line": 351, "column": 40 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0.1, "start": 10484, "end": 10487, "loc": { "start": { "line": 351, "column": 40 }, "end": { "line": 351, "column": 43 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10487, "end": 10488, "loc": { "start": { "line": 351, "column": 43 }, "end": { "line": 351, "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.9, "start": 10489, "end": 10492, "loc": { "start": { "line": 351, "column": 45 }, "end": { "line": 351, "column": 48 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 10493, "end": 10494, "loc": { "start": { "line": 351, "column": 49 }, "end": { "line": 351, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 10495, "end": 10505, "loc": { "start": { "line": 351, "column": 51 }, "end": { "line": 351, "column": 61 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 10506, "end": 10507, "loc": { "start": { "line": 351, "column": 62 }, "end": { "line": 351, "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.22, "start": 10508, "end": 10512, "loc": { "start": { "line": 351, "column": 64 }, "end": { "line": 351, "column": 68 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10512, "end": 10513, "loc": { "start": { "line": 351, "column": 68 }, "end": { "line": 351, "column": 69 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10513, "end": 10514, "loc": { "start": { "line": 351, "column": 69 }, "end": { "line": 351, "column": 70 } } }, { "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": 10530, "end": 10533, "loc": { "start": { "line": 353, "column": 12 }, "end": { "line": 353, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10534, "end": 10535, "loc": { "start": { "line": 353, "column": 16 }, "end": { "line": 353, "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": 10535, "end": 10538, "loc": { "start": { "line": 353, "column": 17 }, "end": { "line": 353, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 10539, "end": 10552, "loc": { "start": { "line": 353, "column": 21 }, "end": { "line": 353, "column": 34 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 10553, "end": 10554, "loc": { "start": { "line": 353, "column": 35 }, "end": { "line": 353, "column": 36 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 10555, "end": 10556, "loc": { "start": { "line": 353, "column": 37 }, "end": { "line": 353, "column": 38 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10556, "end": 10557, "loc": { "start": { "line": 353, "column": 38 }, "end": { "line": 353, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 10558, "end": 10571, "loc": { "start": { "line": 353, "column": 40 }, "end": { "line": 353, "column": 53 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 10572, "end": 10573, "loc": { "start": { "line": 353, "column": 54 }, "end": { "line": 353, "column": 55 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 4, "start": 10574, "end": 10575, "loc": { "start": { "line": 353, "column": 56 }, "end": { "line": 353, "column": 57 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10575, "end": 10576, "loc": { "start": { "line": 353, "column": 57 }, "end": { "line": 353, "column": 58 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 10577, "end": 10579, "loc": { "start": { "line": 353, "column": 59 }, "end": { "line": 353, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 10579, "end": 10592, "loc": { "start": { "line": 353, "column": 61 }, "end": { "line": 353, "column": 74 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10592, "end": 10593, "loc": { "start": { "line": 353, "column": 74 }, "end": { "line": 353, "column": 75 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10594, "end": 10595, "loc": { "start": { "line": 353, "column": 76 }, "end": { "line": 353, "column": 77 } } }, { "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": 10613, "end": 10615, "loc": { "start": { "line": 354, "column": 16 }, "end": { "line": 354, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10616, "end": 10617, "loc": { "start": { "line": 354, "column": 19 }, "end": { "line": 354, "column": 20 } } }, { "type": { "label": "prefix", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": null, "updateContext": null }, "value": "!", "start": 10617, "end": 10618, "loc": { "start": { "line": 354, "column": 20 }, "end": { "line": 354, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 10618, "end": 10627, "loc": { "start": { "line": 354, "column": 21 }, "end": { "line": 354, "column": 30 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10627, "end": 10628, "loc": { "start": { "line": 354, "column": 30 }, "end": { "line": 354, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 10628, "end": 10641, "loc": { "start": { "line": 354, "column": 31 }, "end": { "line": 354, "column": 44 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10641, "end": 10642, "loc": { "start": { "line": 354, "column": 44 }, "end": { "line": 354, "column": 45 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10642, "end": 10643, "loc": { "start": { "line": 354, "column": 45 }, "end": { "line": 354, "column": 46 } } }, { "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": 354, "column": 47 }, "end": { "line": 354, "column": 48 } } }, { "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": 10667, "end": 10675, "loc": { "start": { "line": 355, "column": 20 }, "end": { "line": 355, "column": 28 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10675, "end": 10676, "loc": { "start": { "line": 355, "column": 28 }, "end": { "line": 355, "column": 29 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10694, "end": 10695, "loc": { "start": { "line": 356, "column": 16 }, "end": { "line": 356, "column": 17 } } }, { "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": 10713, "end": 10718, "loc": { "start": { "line": 357, "column": 16 }, "end": { "line": 357, "column": 21 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10719, "end": 10720, "loc": { "start": { "line": 357, "column": 22 }, "end": { "line": 357, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "subShape", "start": 10721, "end": 10729, "loc": { "start": { "line": 357, "column": 24 }, "end": { "line": 357, "column": 32 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10729, "end": 10730, "loc": { "start": { "line": 357, "column": 32 }, "end": { "line": 357, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 10731, "end": 10736, "loc": { "start": { "line": 357, "column": 34 }, "end": { "line": 357, "column": 39 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 10737, "end": 10738, "loc": { "start": { "line": 357, "column": 40 }, "end": { "line": 357, "column": 41 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 10739, "end": 10740, "loc": { "start": { "line": 357, "column": 42 }, "end": { "line": 357, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 10741, "end": 10750, "loc": { "start": { "line": 357, "column": 44 }, "end": { "line": 357, "column": 53 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10750, "end": 10751, "loc": { "start": { "line": 357, "column": 53 }, "end": { "line": 357, "column": 54 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 10751, "end": 10764, "loc": { "start": { "line": 357, "column": 54 }, "end": { "line": 357, "column": 67 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10764, "end": 10765, "loc": { "start": { "line": 357, "column": 67 }, "end": { "line": 357, "column": 68 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10765, "end": 10766, "loc": { "start": { "line": 357, "column": 68 }, "end": { "line": 357, "column": 69 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 10786, "end": 10791, "loc": { "start": { "line": 359, "column": 16 }, "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": "quadrantPos", "start": 10792, "end": 10803, "loc": { "start": { "line": 359, "column": 22 }, "end": { "line": 359, "column": 33 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 10804, "end": 10805, "loc": { "start": { "line": 359, "column": 34 }, "end": { "line": 359, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "arrayQuadrantIndexToOffset", "start": 10806, "end": 10832, "loc": { "start": { "line": 359, "column": 36 }, "end": { "line": 359, "column": 62 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10832, "end": 10833, "loc": { "start": { "line": 359, "column": 62 }, "end": { "line": 359, "column": 63 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 10833, "end": 10846, "loc": { "start": { "line": 359, "column": 63 }, "end": { "line": 359, "column": 76 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10846, "end": 10847, "loc": { "start": { "line": 359, "column": 76 }, "end": { "line": 359, "column": 77 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10847, "end": 10848, "loc": { "start": { "line": 359, "column": 77 }, "end": { "line": 359, "column": 78 } } }, { "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": 10866, "end": 10871, "loc": { "start": { "line": 360, "column": 16 }, "end": { "line": 360, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "centerQuadrantX", "start": 10872, "end": 10887, "loc": { "start": { "line": 360, "column": 22 }, "end": { "line": 360, "column": 37 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 10888, "end": 10889, "loc": { "start": { "line": 360, "column": 38 }, "end": { "line": 360, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantPos", "start": 10890, "end": 10901, "loc": { "start": { "line": 360, "column": 40 }, "end": { "line": 360, "column": 51 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10901, "end": 10902, "loc": { "start": { "line": 360, "column": 51 }, "end": { "line": 360, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "x", "start": 10902, "end": 10903, "loc": { "start": { "line": 360, "column": 52 }, "end": { "line": 360, "column": 53 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 10904, "end": 10905, "loc": { "start": { "line": 360, "column": 54 }, "end": { "line": 360, "column": 55 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantHalfSize", "start": 10906, "end": 10922, "loc": { "start": { "line": 360, "column": 56 }, "end": { "line": 360, "column": 72 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10922, "end": 10923, "loc": { "start": { "line": 360, "column": 72 }, "end": { "line": 360, "column": 73 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 10941, "end": 10946, "loc": { "start": { "line": 361, "column": 16 }, "end": { "line": 361, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "centerQuadrantY", "start": 10947, "end": 10962, "loc": { "start": { "line": 361, "column": 22 }, "end": { "line": 361, "column": 37 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 10963, "end": 10964, "loc": { "start": { "line": 361, "column": 38 }, "end": { "line": 361, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantPos", "start": 10965, "end": 10976, "loc": { "start": { "line": 361, "column": 40 }, "end": { "line": 361, "column": 51 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10976, "end": 10977, "loc": { "start": { "line": 361, "column": 51 }, "end": { "line": 361, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "y", "start": 10977, "end": 10978, "loc": { "start": { "line": 361, "column": 52 }, "end": { "line": 361, "column": 53 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 10979, "end": 10980, "loc": { "start": { "line": 361, "column": 54 }, "end": { "line": 361, "column": 55 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantHalfSize", "start": 10981, "end": 10997, "loc": { "start": { "line": 361, "column": 56 }, "end": { "line": 361, "column": 72 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 10997, "end": 10998, "loc": { "start": { "line": 361, "column": 72 }, "end": { "line": 361, "column": 73 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 11018, "end": 11023, "loc": { "start": { "line": 363, "column": 16 }, "end": { "line": 363, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rotation", "start": 11024, "end": 11032, "loc": { "start": { "line": 363, "column": 22 }, "end": { "line": 363, "column": 30 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 11033, "end": 11034, "loc": { "start": { "line": 363, "column": 31 }, "end": { "line": 363, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Math", "start": 11035, "end": 11039, "loc": { "start": { "line": 363, "column": 33 }, "end": { "line": 363, "column": 37 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11039, "end": 11040, "loc": { "start": { "line": 363, "column": 37 }, "end": { "line": 363, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "radians", "start": 11040, "end": 11047, "loc": { "start": { "line": 363, "column": 38 }, "end": { "line": 363, "column": 45 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11047, "end": 11048, "loc": { "start": { "line": 363, "column": 45 }, "end": { "line": 363, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 11048, "end": 11061, "loc": { "start": { "line": 363, "column": 46 }, "end": { "line": 363, "column": 59 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 11062, "end": 11063, "loc": { "start": { "line": 363, "column": 60 }, "end": { "line": 363, "column": 61 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 90, "start": 11064, "end": 11066, "loc": { "start": { "line": 363, "column": 62 }, "end": { "line": 363, "column": 64 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11066, "end": 11067, "loc": { "start": { "line": 363, "column": 64 }, "end": { "line": 363, "column": 65 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11067, "end": 11068, "loc": { "start": { "line": 363, "column": 65 }, "end": { "line": 363, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 11088, "end": 11095, "loc": { "start": { "line": 365, "column": 16 }, "end": { "line": 365, "column": 23 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11095, "end": 11096, "loc": { "start": { "line": 365, "column": 23 }, "end": { "line": 365, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "translate", "start": 11096, "end": 11105, "loc": { "start": { "line": 365, "column": 24 }, "end": { "line": 365, "column": 33 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11105, "end": 11106, "loc": { "start": { "line": 365, "column": 33 }, "end": { "line": 365, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "centerQuadrantX", "start": 11106, "end": 11121, "loc": { "start": { "line": 365, "column": 34 }, "end": { "line": 365, "column": 49 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11121, "end": 11122, "loc": { "start": { "line": 365, "column": 49 }, "end": { "line": 365, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "centerQuadrantY", "start": 11123, "end": 11138, "loc": { "start": { "line": 365, "column": 51 }, "end": { "line": 365, "column": 66 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11138, "end": 11139, "loc": { "start": { "line": 365, "column": 66 }, "end": { "line": 365, "column": 67 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11139, "end": 11140, "loc": { "start": { "line": 365, "column": 67 }, "end": { "line": 365, "column": 68 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 11158, "end": 11165, "loc": { "start": { "line": 366, "column": 16 }, "end": { "line": 366, "column": 23 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11165, "end": 11166, "loc": { "start": { "line": 366, "column": 23 }, "end": { "line": 366, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rotate", "start": 11166, "end": 11172, "loc": { "start": { "line": 366, "column": 24 }, "end": { "line": 366, "column": 30 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11172, "end": 11173, "loc": { "start": { "line": 366, "column": 30 }, "end": { "line": 366, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rotation", "start": 11173, "end": 11181, "loc": { "start": { "line": 366, "column": 31 }, "end": { "line": 366, "column": 39 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11181, "end": 11182, "loc": { "start": { "line": 366, "column": 39 }, "end": { "line": 366, "column": 40 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11182, "end": 11183, "loc": { "start": { "line": 366, "column": 40 }, "end": { "line": 366, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 11203, "end": 11210, "loc": { "start": { "line": 368, "column": 16 }, "end": { "line": 368, "column": 23 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11210, "end": 11211, "loc": { "start": { "line": 368, "column": 23 }, "end": { "line": 368, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "fillStyle", "start": 11211, "end": 11220, "loc": { "start": { "line": 368, "column": 24 }, "end": { "line": 368, "column": 33 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 11221, "end": 11222, "loc": { "start": { "line": 368, "column": 34 }, "end": { "line": 368, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumColorsToHexCode", "start": 11223, "end": 11242, "loc": { "start": { "line": 368, "column": 36 }, "end": { "line": 368, "column": 55 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11242, "end": 11243, "loc": { "start": { "line": 368, "column": 55 }, "end": { "line": 368, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 11243, "end": 11248, "loc": { "start": { "line": 368, "column": 56 }, "end": { "line": 368, "column": 61 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11248, "end": 11249, "loc": { "start": { "line": 368, "column": 61 }, "end": { "line": 368, "column": 62 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11249, "end": 11250, "loc": { "start": { "line": 368, "column": 62 }, "end": { "line": 368, "column": 63 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 11268, "end": 11275, "loc": { "start": { "line": 369, "column": 16 }, "end": { "line": 369, "column": 23 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11275, "end": 11276, "loc": { "start": { "line": 369, "column": 23 }, "end": { "line": 369, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "strokeStyle", "start": 11276, "end": 11287, "loc": { "start": { "line": 369, "column": 24 }, "end": { "line": 369, "column": 35 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 11288, "end": 11289, "loc": { "start": { "line": 369, "column": 36 }, "end": { "line": 369, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "THEME", "start": 11290, "end": 11295, "loc": { "start": { "line": 369, "column": 38 }, "end": { "line": 369, "column": 43 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11295, "end": 11296, "loc": { "start": { "line": 369, "column": 43 }, "end": { "line": 369, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "items", "start": 11296, "end": 11301, "loc": { "start": { "line": 369, "column": 44 }, "end": { "line": 369, "column": 49 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11301, "end": 11302, "loc": { "start": { "line": 369, "column": 49 }, "end": { "line": 369, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "outline", "start": 11302, "end": 11309, "loc": { "start": { "line": 369, "column": 50 }, "end": { "line": 369, "column": 57 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11309, "end": 11310, "loc": { "start": { "line": 369, "column": 57 }, "end": { "line": 369, "column": 58 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 11328, "end": 11335, "loc": { "start": { "line": 370, "column": 16 }, "end": { "line": 370, "column": 23 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11335, "end": 11336, "loc": { "start": { "line": 370, "column": 23 }, "end": { "line": 370, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "lineWidth", "start": 11336, "end": 11345, "loc": { "start": { "line": 370, "column": 24 }, "end": { "line": 370, "column": 33 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 11346, "end": 11347, "loc": { "start": { "line": 370, "column": 34 }, "end": { "line": 370, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "THEME", "start": 11348, "end": 11353, "loc": { "start": { "line": 370, "column": 36 }, "end": { "line": 370, "column": 41 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11353, "end": 11354, "loc": { "start": { "line": 370, "column": 41 }, "end": { "line": 370, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "items", "start": 11354, "end": 11359, "loc": { "start": { "line": 370, "column": 42 }, "end": { "line": 370, "column": 47 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11359, "end": 11360, "loc": { "start": { "line": 370, "column": 47 }, "end": { "line": 370, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "outlineWidth", "start": 11360, "end": 11372, "loc": { "start": { "line": 370, "column": 48 }, "end": { "line": 370, "column": 60 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11372, "end": 11373, "loc": { "start": { "line": 370, "column": 60 }, "end": { "line": 370, "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": 11393, "end": 11398, "loc": { "start": { "line": 372, "column": 16 }, "end": { "line": 372, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "insetPadding", "start": 11399, "end": 11411, "loc": { "start": { "line": 372, "column": 22 }, "end": { "line": 372, "column": 34 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 11412, "end": 11413, "loc": { "start": { "line": 372, "column": 35 }, "end": { "line": 372, "column": 36 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 11414, "end": 11417, "loc": { "start": { "line": 372, "column": 37 }, "end": { "line": 372, "column": 40 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11417, "end": 11418, "loc": { "start": { "line": 372, "column": 40 }, "end": { "line": 372, "column": 41 } } }, { "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": 11438, "end": 11444, "loc": { "start": { "line": 374, "column": 16 }, "end": { "line": 374, "column": 22 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11445, "end": 11446, "loc": { "start": { "line": 374, "column": 23 }, "end": { "line": 374, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "subShape", "start": 11446, "end": 11454, "loc": { "start": { "line": 374, "column": 24 }, "end": { "line": 374, "column": 32 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11454, "end": 11455, "loc": { "start": { "line": 374, "column": 32 }, "end": { "line": 374, "column": 33 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11456, "end": 11457, "loc": { "start": { "line": 374, "column": 34 }, "end": { "line": 374, "column": 35 } } }, { "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": 11479, "end": 11483, "loc": { "start": { "line": 375, "column": 20 }, "end": { "line": 375, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumSubShape", "start": 11484, "end": 11496, "loc": { "start": { "line": 375, "column": 25 }, "end": { "line": 375, "column": 37 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11496, "end": 11497, "loc": { "start": { "line": 375, "column": 37 }, "end": { "line": 375, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rect", "start": 11497, "end": 11501, "loc": { "start": { "line": 375, "column": 38 }, "end": { "line": 375, "column": 42 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11501, "end": 11502, "loc": { "start": { "line": 375, "column": 42 }, "end": { "line": 375, "column": 43 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11528, "end": 11529, "loc": { "start": { "line": 376, "column": 24 }, "end": { "line": 376, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 11559, "end": 11566, "loc": { "start": { "line": 377, "column": 28 }, "end": { "line": 377, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11566, "end": 11567, "loc": { "start": { "line": 377, "column": 35 }, "end": { "line": 377, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "beginPath", "start": 11567, "end": 11576, "loc": { "start": { "line": 377, "column": 36 }, "end": { "line": 377, "column": 45 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11576, "end": 11577, "loc": { "start": { "line": 377, "column": 45 }, "end": { "line": 377, "column": 46 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11577, "end": 11578, "loc": { "start": { "line": 377, "column": 46 }, "end": { "line": 377, "column": 47 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11578, "end": 11579, "loc": { "start": { "line": 377, "column": 47 }, "end": { "line": 377, "column": 48 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 11609, "end": 11614, "loc": { "start": { "line": 378, "column": 28 }, "end": { "line": 378, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dims", "start": 11615, "end": 11619, "loc": { "start": { "line": 378, "column": 34 }, "end": { "line": 378, "column": 38 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 11620, "end": 11621, "loc": { "start": { "line": 378, "column": 39 }, "end": { "line": 378, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantSize", "start": 11622, "end": 11634, "loc": { "start": { "line": 378, "column": 41 }, "end": { "line": 378, "column": 53 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 11635, "end": 11636, "loc": { "start": { "line": 378, "column": 54 }, "end": { "line": 378, "column": 55 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerScale", "start": 11637, "end": 11647, "loc": { "start": { "line": 378, "column": 56 }, "end": { "line": 378, "column": 66 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11647, "end": 11648, "loc": { "start": { "line": 378, "column": 66 }, "end": { "line": 378, "column": 67 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 11678, "end": 11685, "loc": { "start": { "line": 379, "column": 28 }, "end": { "line": 379, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11685, "end": 11686, "loc": { "start": { "line": 379, "column": 35 }, "end": { "line": 379, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rect", "start": 11686, "end": 11690, "loc": { "start": { "line": 379, "column": 36 }, "end": { "line": 379, "column": 40 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11690, "end": 11691, "loc": { "start": { "line": 379, "column": 40 }, "end": { "line": 379, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "insetPadding", "start": 11725, "end": 11737, "loc": { "start": { "line": 380, "column": 32 }, "end": { "line": 380, "column": 44 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 11738, "end": 11739, "loc": { "start": { "line": 380, "column": 45 }, "end": { "line": 380, "column": 46 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 11740, "end": 11741, "loc": { "start": { "line": 380, "column": 47 }, "end": { "line": 380, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantHalfSize", "start": 11741, "end": 11757, "loc": { "start": { "line": 380, "column": 48 }, "end": { "line": 380, "column": 64 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11757, "end": 11758, "loc": { "start": { "line": 380, "column": 64 }, "end": { "line": 380, "column": 65 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 11759, "end": 11760, "loc": { "start": { "line": 380, "column": 66 }, "end": { "line": 380, "column": 67 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "insetPadding", "start": 11760, "end": 11772, "loc": { "start": { "line": 380, "column": 67 }, "end": { "line": 380, "column": 79 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 11773, "end": 11774, "loc": { "start": { "line": 380, "column": 80 }, "end": { "line": 380, "column": 81 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantHalfSize", "start": 11775, "end": 11791, "loc": { "start": { "line": 380, "column": 82 }, "end": { "line": 380, "column": 98 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 11792, "end": 11793, "loc": { "start": { "line": 380, "column": 99 }, "end": { "line": 380, "column": 100 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dims", "start": 11794, "end": 11798, "loc": { "start": { "line": 380, "column": 101 }, "end": { "line": 380, "column": 105 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11798, "end": 11799, "loc": { "start": { "line": 380, "column": 105 }, "end": { "line": 380, "column": 106 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dims", "start": 11833, "end": 11837, "loc": { "start": { "line": 381, "column": 32 }, "end": { "line": 381, "column": 36 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11837, "end": 11838, "loc": { "start": { "line": 381, "column": 36 }, "end": { "line": 381, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dims", "start": 11872, "end": 11876, "loc": { "start": { "line": 382, "column": 32 }, "end": { "line": 382, "column": 36 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11906, "end": 11907, "loc": { "start": { "line": 383, "column": 28 }, "end": { "line": 383, "column": 29 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11907, "end": 11908, "loc": { "start": { "line": 383, "column": 29 }, "end": { "line": 383, "column": 30 } } }, { "type": { "label": "break", "keyword": "break", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "break", "start": 11940, "end": 11945, "loc": { "start": { "line": 385, "column": 28 }, "end": { "line": 385, "column": 33 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 11945, "end": 11946, "loc": { "start": { "line": 385, "column": 33 }, "end": { "line": 385, "column": 34 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 11972, "end": 11973, "loc": { "start": { "line": 386, "column": 24 }, "end": { "line": 386, "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": 11995, "end": 11999, "loc": { "start": { "line": 387, "column": 20 }, "end": { "line": 387, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumSubShape", "start": 12000, "end": 12012, "loc": { "start": { "line": 387, "column": 25 }, "end": { "line": 387, "column": 37 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12012, "end": 12013, "loc": { "start": { "line": 387, "column": 37 }, "end": { "line": 387, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "star", "start": 12013, "end": 12017, "loc": { "start": { "line": 387, "column": 38 }, "end": { "line": 387, "column": 42 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12017, "end": 12018, "loc": { "start": { "line": 387, "column": 42 }, "end": { "line": 387, "column": 43 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 12044, "end": 12045, "loc": { "start": { "line": 388, "column": 24 }, "end": { "line": 388, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 12075, "end": 12082, "loc": { "start": { "line": 389, "column": 28 }, "end": { "line": 389, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12082, "end": 12083, "loc": { "start": { "line": 389, "column": 35 }, "end": { "line": 389, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "beginPath", "start": 12083, "end": 12092, "loc": { "start": { "line": 389, "column": 36 }, "end": { "line": 389, "column": 45 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 12092, "end": 12093, "loc": { "start": { "line": 389, "column": 45 }, "end": { "line": 389, "column": 46 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 12093, "end": 12094, "loc": { "start": { "line": 389, "column": 46 }, "end": { "line": 389, "column": 47 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12094, "end": 12095, "loc": { "start": { "line": 389, "column": 47 }, "end": { "line": 389, "column": 48 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 12125, "end": 12130, "loc": { "start": { "line": 390, "column": 28 }, "end": { "line": 390, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dims", "start": 12131, "end": 12135, "loc": { "start": { "line": 390, "column": 34 }, "end": { "line": 390, "column": 38 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 12136, "end": 12137, "loc": { "start": { "line": 390, "column": 39 }, "end": { "line": 390, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantSize", "start": 12138, "end": 12150, "loc": { "start": { "line": 390, "column": 41 }, "end": { "line": 390, "column": 53 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 12151, "end": 12152, "loc": { "start": { "line": 390, "column": 54 }, "end": { "line": 390, "column": 55 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerScale", "start": 12153, "end": 12163, "loc": { "start": { "line": 390, "column": 56 }, "end": { "line": 390, "column": 66 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12163, "end": 12164, "loc": { "start": { "line": 390, "column": 66 }, "end": { "line": 390, "column": 67 } } }, { "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": 12196, "end": 12199, "loc": { "start": { "line": 392, "column": 28 }, "end": { "line": 392, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originX", "start": 12200, "end": 12207, "loc": { "start": { "line": 392, "column": 32 }, "end": { "line": 392, "column": 39 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 12208, "end": 12209, "loc": { "start": { "line": 392, "column": 40 }, "end": { "line": 392, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "insetPadding", "start": 12210, "end": 12222, "loc": { "start": { "line": 392, "column": 42 }, "end": { "line": 392, "column": 54 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 12223, "end": 12224, "loc": { "start": { "line": 392, "column": 55 }, "end": { "line": 392, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantHalfSize", "start": 12225, "end": 12241, "loc": { "start": { "line": 392, "column": 57 }, "end": { "line": 392, "column": 73 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12241, "end": 12242, "loc": { "start": { "line": 392, "column": 73 }, "end": { "line": 392, "column": 74 } } }, { "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": 12272, "end": 12275, "loc": { "start": { "line": 393, "column": 28 }, "end": { "line": 393, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originY", "start": 12276, "end": 12283, "loc": { "start": { "line": 393, "column": 32 }, "end": { "line": 393, "column": 39 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 12284, "end": 12285, "loc": { "start": { "line": 393, "column": 40 }, "end": { "line": 393, "column": 41 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 12286, "end": 12287, "loc": { "start": { "line": 393, "column": 42 }, "end": { "line": 393, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "insetPadding", "start": 12287, "end": 12299, "loc": { "start": { "line": 393, "column": 43 }, "end": { "line": 393, "column": 55 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 12300, "end": 12301, "loc": { "start": { "line": 393, "column": 56 }, "end": { "line": 393, "column": 57 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantHalfSize", "start": 12302, "end": 12318, "loc": { "start": { "line": 393, "column": 58 }, "end": { "line": 393, "column": 74 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 12319, "end": 12320, "loc": { "start": { "line": 393, "column": 75 }, "end": { "line": 393, "column": 76 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dims", "start": 12321, "end": 12325, "loc": { "start": { "line": 393, "column": 77 }, "end": { "line": 393, "column": 81 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12325, "end": 12326, "loc": { "start": { "line": 393, "column": 81 }, "end": { "line": 393, "column": 82 } } }, { "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": 12358, "end": 12363, "loc": { "start": { "line": 395, "column": 28 }, "end": { "line": 395, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "moveInwards", "start": 12364, "end": 12375, "loc": { "start": { "line": 395, "column": 34 }, "end": { "line": 395, "column": 45 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 12376, "end": 12377, "loc": { "start": { "line": 395, "column": 46 }, "end": { "line": 395, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dims", "start": 12378, "end": 12382, "loc": { "start": { "line": 395, "column": 48 }, "end": { "line": 395, "column": 52 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 12383, "end": 12384, "loc": { "start": { "line": 395, "column": 53 }, "end": { "line": 395, "column": 54 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0.4, "start": 12385, "end": 12388, "loc": { "start": { "line": 395, "column": 55 }, "end": { "line": 395, "column": 58 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12388, "end": 12389, "loc": { "start": { "line": 395, "column": 58 }, "end": { "line": 395, "column": 59 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 12419, "end": 12426, "loc": { "start": { "line": 396, "column": 28 }, "end": { "line": 396, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12426, "end": 12427, "loc": { "start": { "line": 396, "column": 35 }, "end": { "line": 396, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "moveTo", "start": 12427, "end": 12433, "loc": { "start": { "line": 396, "column": 36 }, "end": { "line": 396, "column": 42 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 12433, "end": 12434, "loc": { "start": { "line": 396, "column": 42 }, "end": { "line": 396, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originX", "start": 12434, "end": 12441, "loc": { "start": { "line": 396, "column": 43 }, "end": { "line": 396, "column": 50 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12441, "end": 12442, "loc": { "start": { "line": 396, "column": 50 }, "end": { "line": 396, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originY", "start": 12443, "end": 12450, "loc": { "start": { "line": 396, "column": 52 }, "end": { "line": 396, "column": 59 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 12451, "end": 12452, "loc": { "start": { "line": 396, "column": 60 }, "end": { "line": 396, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "moveInwards", "start": 12453, "end": 12464, "loc": { "start": { "line": 396, "column": 62 }, "end": { "line": 396, "column": 73 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 12464, "end": 12465, "loc": { "start": { "line": 396, "column": 73 }, "end": { "line": 396, "column": 74 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12465, "end": 12466, "loc": { "start": { "line": 396, "column": 74 }, "end": { "line": 396, "column": 75 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 12496, "end": 12503, "loc": { "start": { "line": 397, "column": 28 }, "end": { "line": 397, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12503, "end": 12504, "loc": { "start": { "line": 397, "column": 35 }, "end": { "line": 397, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "lineTo", "start": 12504, "end": 12510, "loc": { "start": { "line": 397, "column": 36 }, "end": { "line": 397, "column": 42 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 12510, "end": 12511, "loc": { "start": { "line": 397, "column": 42 }, "end": { "line": 397, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originX", "start": 12511, "end": 12518, "loc": { "start": { "line": 397, "column": 43 }, "end": { "line": 397, "column": 50 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 12519, "end": 12520, "loc": { "start": { "line": 397, "column": 51 }, "end": { "line": 397, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dims", "start": 12521, "end": 12525, "loc": { "start": { "line": 397, "column": 53 }, "end": { "line": 397, "column": 57 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12525, "end": 12526, "loc": { "start": { "line": 397, "column": 57 }, "end": { "line": 397, "column": 58 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originY", "start": 12527, "end": 12534, "loc": { "start": { "line": 397, "column": 59 }, "end": { "line": 397, "column": 66 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 12534, "end": 12535, "loc": { "start": { "line": 397, "column": 66 }, "end": { "line": 397, "column": 67 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12535, "end": 12536, "loc": { "start": { "line": 397, "column": 67 }, "end": { "line": 397, "column": 68 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 12566, "end": 12573, "loc": { "start": { "line": 398, "column": 28 }, "end": { "line": 398, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12573, "end": 12574, "loc": { "start": { "line": 398, "column": 35 }, "end": { "line": 398, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "lineTo", "start": 12574, "end": 12580, "loc": { "start": { "line": 398, "column": 36 }, "end": { "line": 398, "column": 42 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 12580, "end": 12581, "loc": { "start": { "line": 398, "column": 42 }, "end": { "line": 398, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originX", "start": 12581, "end": 12588, "loc": { "start": { "line": 398, "column": 43 }, "end": { "line": 398, "column": 50 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 12589, "end": 12590, "loc": { "start": { "line": 398, "column": 51 }, "end": { "line": 398, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dims", "start": 12591, "end": 12595, "loc": { "start": { "line": 398, "column": 53 }, "end": { "line": 398, "column": 57 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 12596, "end": 12597, "loc": { "start": { "line": 398, "column": 58 }, "end": { "line": 398, "column": 59 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "moveInwards", "start": 12598, "end": 12609, "loc": { "start": { "line": 398, "column": 60 }, "end": { "line": 398, "column": 71 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12609, "end": 12610, "loc": { "start": { "line": 398, "column": 71 }, "end": { "line": 398, "column": 72 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originY", "start": 12611, "end": 12618, "loc": { "start": { "line": 398, "column": 73 }, "end": { "line": 398, "column": 80 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 12619, "end": 12620, "loc": { "start": { "line": 398, "column": 81 }, "end": { "line": 398, "column": 82 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dims", "start": 12621, "end": 12625, "loc": { "start": { "line": 398, "column": 83 }, "end": { "line": 398, "column": 87 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 12625, "end": 12626, "loc": { "start": { "line": 398, "column": 87 }, "end": { "line": 398, "column": 88 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12626, "end": 12627, "loc": { "start": { "line": 398, "column": 88 }, "end": { "line": 398, "column": 89 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 12657, "end": 12664, "loc": { "start": { "line": 399, "column": 28 }, "end": { "line": 399, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12664, "end": 12665, "loc": { "start": { "line": 399, "column": 35 }, "end": { "line": 399, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "lineTo", "start": 12665, "end": 12671, "loc": { "start": { "line": 399, "column": 36 }, "end": { "line": 399, "column": 42 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 12671, "end": 12672, "loc": { "start": { "line": 399, "column": 42 }, "end": { "line": 399, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originX", "start": 12672, "end": 12679, "loc": { "start": { "line": 399, "column": 43 }, "end": { "line": 399, "column": 50 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12679, "end": 12680, "loc": { "start": { "line": 399, "column": 50 }, "end": { "line": 399, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originY", "start": 12681, "end": 12688, "loc": { "start": { "line": 399, "column": 52 }, "end": { "line": 399, "column": 59 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 12689, "end": 12690, "loc": { "start": { "line": 399, "column": 60 }, "end": { "line": 399, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dims", "start": 12691, "end": 12695, "loc": { "start": { "line": 399, "column": 62 }, "end": { "line": 399, "column": 66 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 12695, "end": 12696, "loc": { "start": { "line": 399, "column": 66 }, "end": { "line": 399, "column": 67 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12696, "end": 12697, "loc": { "start": { "line": 399, "column": 67 }, "end": { "line": 399, "column": 68 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 12727, "end": 12734, "loc": { "start": { "line": 400, "column": 28 }, "end": { "line": 400, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12734, "end": 12735, "loc": { "start": { "line": 400, "column": 35 }, "end": { "line": 400, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "closePath", "start": 12735, "end": 12744, "loc": { "start": { "line": 400, "column": 36 }, "end": { "line": 400, "column": 45 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 12744, "end": 12745, "loc": { "start": { "line": 400, "column": 45 }, "end": { "line": 400, "column": 46 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 12745, "end": 12746, "loc": { "start": { "line": 400, "column": 46 }, "end": { "line": 400, "column": 47 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12746, "end": 12747, "loc": { "start": { "line": 400, "column": 47 }, "end": { "line": 400, "column": 48 } } }, { "type": { "label": "break", "keyword": "break", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "break", "start": 12777, "end": 12782, "loc": { "start": { "line": 401, "column": 28 }, "end": { "line": 401, "column": 33 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12782, "end": 12783, "loc": { "start": { "line": 401, "column": 33 }, "end": { "line": 401, "column": 34 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 12809, "end": 12810, "loc": { "start": { "line": 402, "column": 24 }, "end": { "line": 402, "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": 12834, "end": 12838, "loc": { "start": { "line": 404, "column": 20 }, "end": { "line": 404, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumSubShape", "start": 12839, "end": 12851, "loc": { "start": { "line": 404, "column": 25 }, "end": { "line": 404, "column": 37 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12851, "end": 12852, "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": "windmill", "start": 12852, "end": 12860, "loc": { "start": { "line": 404, "column": 38 }, "end": { "line": 404, "column": 46 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12860, "end": 12861, "loc": { "start": { "line": 404, "column": 46 }, "end": { "line": 404, "column": 47 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 12887, "end": 12888, "loc": { "start": { "line": 405, "column": 24 }, "end": { "line": 405, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 12918, "end": 12925, "loc": { "start": { "line": 406, "column": 28 }, "end": { "line": 406, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12925, "end": 12926, "loc": { "start": { "line": 406, "column": 35 }, "end": { "line": 406, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "beginPath", "start": 12926, "end": 12935, "loc": { "start": { "line": 406, "column": 36 }, "end": { "line": 406, "column": 45 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 12935, "end": 12936, "loc": { "start": { "line": 406, "column": 45 }, "end": { "line": 406, "column": 46 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 12936, "end": 12937, "loc": { "start": { "line": 406, "column": 46 }, "end": { "line": 406, "column": 47 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 12937, "end": 12938, "loc": { "start": { "line": 406, "column": 47 }, "end": { "line": 406, "column": 48 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 12968, "end": 12973, "loc": { "start": { "line": 407, "column": 28 }, "end": { "line": 407, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dims", "start": 12974, "end": 12978, "loc": { "start": { "line": 407, "column": 34 }, "end": { "line": 407, "column": 38 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 12979, "end": 12980, "loc": { "start": { "line": 407, "column": 39 }, "end": { "line": 407, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantSize", "start": 12981, "end": 12993, "loc": { "start": { "line": 407, "column": 41 }, "end": { "line": 407, "column": 53 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 12994, "end": 12995, "loc": { "start": { "line": 407, "column": 54 }, "end": { "line": 407, "column": 55 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerScale", "start": 12996, "end": 13006, "loc": { "start": { "line": 407, "column": 56 }, "end": { "line": 407, "column": 66 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13006, "end": 13007, "loc": { "start": { "line": 407, "column": 66 }, "end": { "line": 407, "column": 67 } } }, { "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": 13039, "end": 13042, "loc": { "start": { "line": 409, "column": 28 }, "end": { "line": 409, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originX", "start": 13043, "end": 13050, "loc": { "start": { "line": 409, "column": 32 }, "end": { "line": 409, "column": 39 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 13051, "end": 13052, "loc": { "start": { "line": 409, "column": 40 }, "end": { "line": 409, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "insetPadding", "start": 13053, "end": 13065, "loc": { "start": { "line": 409, "column": 42 }, "end": { "line": 409, "column": 54 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 13066, "end": 13067, "loc": { "start": { "line": 409, "column": 55 }, "end": { "line": 409, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantHalfSize", "start": 13068, "end": 13084, "loc": { "start": { "line": 409, "column": 57 }, "end": { "line": 409, "column": 73 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13084, "end": 13085, "loc": { "start": { "line": 409, "column": 73 }, "end": { "line": 409, "column": 74 } } }, { "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": 13115, "end": 13118, "loc": { "start": { "line": 410, "column": 28 }, "end": { "line": 410, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originY", "start": 13119, "end": 13126, "loc": { "start": { "line": 410, "column": 32 }, "end": { "line": 410, "column": 39 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 13127, "end": 13128, "loc": { "start": { "line": 410, "column": 40 }, "end": { "line": 410, "column": 41 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 13129, "end": 13130, "loc": { "start": { "line": 410, "column": 42 }, "end": { "line": 410, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "insetPadding", "start": 13130, "end": 13142, "loc": { "start": { "line": 410, "column": 43 }, "end": { "line": 410, "column": 55 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 13143, "end": 13144, "loc": { "start": { "line": 410, "column": 56 }, "end": { "line": 410, "column": 57 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantHalfSize", "start": 13145, "end": 13161, "loc": { "start": { "line": 410, "column": 58 }, "end": { "line": 410, "column": 74 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 13162, "end": 13163, "loc": { "start": { "line": 410, "column": 75 }, "end": { "line": 410, "column": 76 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dims", "start": 13164, "end": 13168, "loc": { "start": { "line": 410, "column": 77 }, "end": { "line": 410, "column": 81 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13168, "end": 13169, "loc": { "start": { "line": 410, "column": 81 }, "end": { "line": 410, "column": 82 } } }, { "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": 13199, "end": 13204, "loc": { "start": { "line": 411, "column": 28 }, "end": { "line": 411, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "moveInwards", "start": 13205, "end": 13216, "loc": { "start": { "line": 411, "column": 34 }, "end": { "line": 411, "column": 45 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 13217, "end": 13218, "loc": { "start": { "line": 411, "column": 46 }, "end": { "line": 411, "column": 47 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dims", "start": 13219, "end": 13223, "loc": { "start": { "line": 411, "column": 48 }, "end": { "line": 411, "column": 52 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 13224, "end": 13225, "loc": { "start": { "line": 411, "column": 53 }, "end": { "line": 411, "column": 54 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0.4, "start": 13226, "end": 13229, "loc": { "start": { "line": 411, "column": 55 }, "end": { "line": 411, "column": 58 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13229, "end": 13230, "loc": { "start": { "line": 411, "column": 58 }, "end": { "line": 411, "column": 59 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 13260, "end": 13267, "loc": { "start": { "line": 412, "column": 28 }, "end": { "line": 412, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13267, "end": 13268, "loc": { "start": { "line": 412, "column": 35 }, "end": { "line": 412, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "moveTo", "start": 13268, "end": 13274, "loc": { "start": { "line": 412, "column": 36 }, "end": { "line": 412, "column": 42 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 13274, "end": 13275, "loc": { "start": { "line": 412, "column": 42 }, "end": { "line": 412, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originX", "start": 13275, "end": 13282, "loc": { "start": { "line": 412, "column": 43 }, "end": { "line": 412, "column": 50 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13282, "end": 13283, "loc": { "start": { "line": 412, "column": 50 }, "end": { "line": 412, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originY", "start": 13284, "end": 13291, "loc": { "start": { "line": 412, "column": 52 }, "end": { "line": 412, "column": 59 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 13292, "end": 13293, "loc": { "start": { "line": 412, "column": 60 }, "end": { "line": 412, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "moveInwards", "start": 13294, "end": 13305, "loc": { "start": { "line": 412, "column": 62 }, "end": { "line": 412, "column": 73 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 13305, "end": 13306, "loc": { "start": { "line": 412, "column": 73 }, "end": { "line": 412, "column": 74 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13306, "end": 13307, "loc": { "start": { "line": 412, "column": 74 }, "end": { "line": 412, "column": 75 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 13337, "end": 13344, "loc": { "start": { "line": 413, "column": 28 }, "end": { "line": 413, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13344, "end": 13345, "loc": { "start": { "line": 413, "column": 35 }, "end": { "line": 413, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "lineTo", "start": 13345, "end": 13351, "loc": { "start": { "line": 413, "column": 36 }, "end": { "line": 413, "column": 42 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 13351, "end": 13352, "loc": { "start": { "line": 413, "column": 42 }, "end": { "line": 413, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originX", "start": 13352, "end": 13359, "loc": { "start": { "line": 413, "column": 43 }, "end": { "line": 413, "column": 50 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 13360, "end": 13361, "loc": { "start": { "line": 413, "column": 51 }, "end": { "line": 413, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dims", "start": 13362, "end": 13366, "loc": { "start": { "line": 413, "column": 53 }, "end": { "line": 413, "column": 57 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13366, "end": 13367, "loc": { "start": { "line": 413, "column": 57 }, "end": { "line": 413, "column": 58 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originY", "start": 13368, "end": 13375, "loc": { "start": { "line": 413, "column": 59 }, "end": { "line": 413, "column": 66 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 13375, "end": 13376, "loc": { "start": { "line": 413, "column": 66 }, "end": { "line": 413, "column": 67 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13376, "end": 13377, "loc": { "start": { "line": 413, "column": 67 }, "end": { "line": 413, "column": 68 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 13407, "end": 13414, "loc": { "start": { "line": 414, "column": 28 }, "end": { "line": 414, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13414, "end": 13415, "loc": { "start": { "line": 414, "column": 35 }, "end": { "line": 414, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "lineTo", "start": 13415, "end": 13421, "loc": { "start": { "line": 414, "column": 36 }, "end": { "line": 414, "column": 42 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 13421, "end": 13422, "loc": { "start": { "line": 414, "column": 42 }, "end": { "line": 414, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originX", "start": 13422, "end": 13429, "loc": { "start": { "line": 414, "column": 43 }, "end": { "line": 414, "column": 50 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 13430, "end": 13431, "loc": { "start": { "line": 414, "column": 51 }, "end": { "line": 414, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dims", "start": 13432, "end": 13436, "loc": { "start": { "line": 414, "column": 53 }, "end": { "line": 414, "column": 57 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13436, "end": 13437, "loc": { "start": { "line": 414, "column": 57 }, "end": { "line": 414, "column": 58 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originY", "start": 13438, "end": 13445, "loc": { "start": { "line": 414, "column": 59 }, "end": { "line": 414, "column": 66 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 13446, "end": 13447, "loc": { "start": { "line": 414, "column": 67 }, "end": { "line": 414, "column": 68 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dims", "start": 13448, "end": 13452, "loc": { "start": { "line": 414, "column": 69 }, "end": { "line": 414, "column": 73 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 13452, "end": 13453, "loc": { "start": { "line": 414, "column": 73 }, "end": { "line": 414, "column": 74 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13453, "end": 13454, "loc": { "start": { "line": 414, "column": 74 }, "end": { "line": 414, "column": 75 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 13484, "end": 13491, "loc": { "start": { "line": 415, "column": 28 }, "end": { "line": 415, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13491, "end": 13492, "loc": { "start": { "line": 415, "column": 35 }, "end": { "line": 415, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "lineTo", "start": 13492, "end": 13498, "loc": { "start": { "line": 415, "column": 36 }, "end": { "line": 415, "column": 42 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 13498, "end": 13499, "loc": { "start": { "line": 415, "column": 42 }, "end": { "line": 415, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originX", "start": 13499, "end": 13506, "loc": { "start": { "line": 415, "column": 43 }, "end": { "line": 415, "column": 50 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13506, "end": 13507, "loc": { "start": { "line": 415, "column": 50 }, "end": { "line": 415, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "originY", "start": 13508, "end": 13515, "loc": { "start": { "line": 415, "column": 52 }, "end": { "line": 415, "column": 59 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 13516, "end": 13517, "loc": { "start": { "line": 415, "column": 60 }, "end": { "line": 415, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "dims", "start": 13518, "end": 13522, "loc": { "start": { "line": 415, "column": 62 }, "end": { "line": 415, "column": 66 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 13522, "end": 13523, "loc": { "start": { "line": 415, "column": 66 }, "end": { "line": 415, "column": 67 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13523, "end": 13524, "loc": { "start": { "line": 415, "column": 67 }, "end": { "line": 415, "column": 68 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 13554, "end": 13561, "loc": { "start": { "line": 416, "column": 28 }, "end": { "line": 416, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13561, "end": 13562, "loc": { "start": { "line": 416, "column": 35 }, "end": { "line": 416, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "closePath", "start": 13562, "end": 13571, "loc": { "start": { "line": 416, "column": 36 }, "end": { "line": 416, "column": 45 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 13571, "end": 13572, "loc": { "start": { "line": 416, "column": 45 }, "end": { "line": 416, "column": 46 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 13572, "end": 13573, "loc": { "start": { "line": 416, "column": 46 }, "end": { "line": 416, "column": 47 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13573, "end": 13574, "loc": { "start": { "line": 416, "column": 47 }, "end": { "line": 416, "column": 48 } } }, { "type": { "label": "break", "keyword": "break", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "break", "start": 13604, "end": 13609, "loc": { "start": { "line": 417, "column": 28 }, "end": { "line": 417, "column": 33 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13609, "end": 13610, "loc": { "start": { "line": 417, "column": 33 }, "end": { "line": 417, "column": 34 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 13636, "end": 13637, "loc": { "start": { "line": 418, "column": 24 }, "end": { "line": 418, "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": 13661, "end": 13665, "loc": { "start": { "line": 420, "column": 20 }, "end": { "line": 420, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "enumSubShape", "start": 13666, "end": 13678, "loc": { "start": { "line": 420, "column": 25 }, "end": { "line": 420, "column": 37 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13678, "end": 13679, "loc": { "start": { "line": 420, "column": 37 }, "end": { "line": 420, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "circle", "start": 13679, "end": 13685, "loc": { "start": { "line": 420, "column": 38 }, "end": { "line": 420, "column": 44 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13685, "end": 13686, "loc": { "start": { "line": 420, "column": 44 }, "end": { "line": 420, "column": 45 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 13712, "end": 13713, "loc": { "start": { "line": 421, "column": 24 }, "end": { "line": 421, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 13743, "end": 13750, "loc": { "start": { "line": 422, "column": 28 }, "end": { "line": 422, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13750, "end": 13751, "loc": { "start": { "line": 422, "column": 35 }, "end": { "line": 422, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "beginPath", "start": 13751, "end": 13760, "loc": { "start": { "line": 422, "column": 36 }, "end": { "line": 422, "column": 45 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 13760, "end": 13761, "loc": { "start": { "line": 422, "column": 45 }, "end": { "line": 422, "column": 46 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 13761, "end": 13762, "loc": { "start": { "line": 422, "column": 46 }, "end": { "line": 422, "column": 47 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13762, "end": 13763, "loc": { "start": { "line": 422, "column": 47 }, "end": { "line": 422, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 13793, "end": 13800, "loc": { "start": { "line": 423, "column": 28 }, "end": { "line": 423, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13800, "end": 13801, "loc": { "start": { "line": 423, "column": 35 }, "end": { "line": 423, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "moveTo", "start": 13801, "end": 13807, "loc": { "start": { "line": 423, "column": 36 }, "end": { "line": 423, "column": 42 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 13807, "end": 13808, "loc": { "start": { "line": 423, "column": 42 }, "end": { "line": 423, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "insetPadding", "start": 13808, "end": 13820, "loc": { "start": { "line": 423, "column": 43 }, "end": { "line": 423, "column": 55 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 13821, "end": 13822, "loc": { "start": { "line": 423, "column": 56 }, "end": { "line": 423, "column": 57 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 13823, "end": 13824, "loc": { "start": { "line": 423, "column": 58 }, "end": { "line": 423, "column": 59 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantHalfSize", "start": 13824, "end": 13840, "loc": { "start": { "line": 423, "column": 59 }, "end": { "line": 423, "column": 75 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13840, "end": 13841, "loc": { "start": { "line": 423, "column": 75 }, "end": { "line": 423, "column": 76 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 13842, "end": 13843, "loc": { "start": { "line": 423, "column": 77 }, "end": { "line": 423, "column": 78 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "insetPadding", "start": 13843, "end": 13855, "loc": { "start": { "line": 423, "column": 78 }, "end": { "line": 423, "column": 90 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 13856, "end": 13857, "loc": { "start": { "line": 423, "column": 91 }, "end": { "line": 423, "column": 92 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantHalfSize", "start": 13858, "end": 13874, "loc": { "start": { "line": 423, "column": 93 }, "end": { "line": 423, "column": 109 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 13874, "end": 13875, "loc": { "start": { "line": 423, "column": 109 }, "end": { "line": 423, "column": 110 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13875, "end": 13876, "loc": { "start": { "line": 423, "column": 110 }, "end": { "line": 423, "column": 111 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 13906, "end": 13913, "loc": { "start": { "line": 424, "column": 28 }, "end": { "line": 424, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13913, "end": 13914, "loc": { "start": { "line": 424, "column": 35 }, "end": { "line": 424, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "arc", "start": 13914, "end": 13917, "loc": { "start": { "line": 424, "column": 36 }, "end": { "line": 424, "column": 39 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 13917, "end": 13918, "loc": { "start": { "line": 424, "column": 39 }, "end": { "line": 424, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "insetPadding", "start": 13952, "end": 13964, "loc": { "start": { "line": 425, "column": 32 }, "end": { "line": 425, "column": 44 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 13965, "end": 13966, "loc": { "start": { "line": 425, "column": 45 }, "end": { "line": 425, "column": 46 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 13967, "end": 13968, "loc": { "start": { "line": 425, "column": 47 }, "end": { "line": 425, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantHalfSize", "start": 13968, "end": 13984, "loc": { "start": { "line": 425, "column": 48 }, "end": { "line": 425, "column": 64 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 13984, "end": 13985, "loc": { "start": { "line": 425, "column": 64 }, "end": { "line": 425, "column": 65 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 13986, "end": 13987, "loc": { "start": { "line": 425, "column": 66 }, "end": { "line": 425, "column": 67 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "insetPadding", "start": 13987, "end": 13999, "loc": { "start": { "line": 425, "column": 67 }, "end": { "line": 425, "column": 79 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 14000, "end": 14001, "loc": { "start": { "line": 425, "column": 80 }, "end": { "line": 425, "column": 81 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantHalfSize", "start": 14002, "end": 14018, "loc": { "start": { "line": 425, "column": 82 }, "end": { "line": 425, "column": 98 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14018, "end": 14019, "loc": { "start": { "line": 425, "column": 98 }, "end": { "line": 425, "column": 99 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantSize", "start": 14053, "end": 14065, "loc": { "start": { "line": 426, "column": 32 }, "end": { "line": 426, "column": 44 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 14066, "end": 14067, "loc": { "start": { "line": 426, "column": 45 }, "end": { "line": 426, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerScale", "start": 14068, "end": 14078, "loc": { "start": { "line": 426, "column": 47 }, "end": { "line": 426, "column": 57 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14078, "end": 14079, "loc": { "start": { "line": 426, "column": 57 }, "end": { "line": 426, "column": 58 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 14080, "end": 14081, "loc": { "start": { "line": 426, "column": 59 }, "end": { "line": 426, "column": 60 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Math", "start": 14081, "end": 14085, "loc": { "start": { "line": 426, "column": 60 }, "end": { "line": 426, "column": 64 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14085, "end": 14086, "loc": { "start": { "line": 426, "column": 64 }, "end": { "line": 426, "column": 65 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "PI", "start": 14086, "end": 14088, "loc": { "start": { "line": 426, "column": 65 }, "end": { "line": 426, "column": 67 } } }, { "type": { "label": "*", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 10, "updateContext": null }, "value": "*", "start": 14089, "end": 14090, "loc": { "start": { "line": 426, "column": 68 }, "end": { "line": 426, "column": 69 } } }, { "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": 14091, "end": 14094, "loc": { "start": { "line": 426, "column": 70 }, "end": { "line": 426, "column": 73 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14094, "end": 14095, "loc": { "start": { "line": 426, "column": 73 }, "end": { "line": 426, "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, "start": 14129, "end": 14130, "loc": { "start": { "line": 427, "column": 32 }, "end": { "line": 427, "column": 33 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14160, "end": 14161, "loc": { "start": { "line": 428, "column": 28 }, "end": { "line": 428, "column": 29 } } }, { "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": 428, "column": 29 }, "end": { "line": 428, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 14192, "end": 14199, "loc": { "start": { "line": 429, "column": 28 }, "end": { "line": 429, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14199, "end": 14200, "loc": { "start": { "line": 429, "column": 35 }, "end": { "line": 429, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "closePath", "start": 14200, "end": 14209, "loc": { "start": { "line": 429, "column": 36 }, "end": { "line": 429, "column": 45 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14209, "end": 14210, "loc": { "start": { "line": 429, "column": 45 }, "end": { "line": 429, "column": 46 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14210, "end": 14211, "loc": { "start": { "line": 429, "column": 46 }, "end": { "line": 429, "column": 47 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14211, "end": 14212, "loc": { "start": { "line": 429, "column": 47 }, "end": { "line": 429, "column": 48 } } }, { "type": { "label": "break", "keyword": "break", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "break", "start": 14242, "end": 14247, "loc": { "start": { "line": 430, "column": 28 }, "end": { "line": 430, "column": 33 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14247, "end": 14248, "loc": { "start": { "line": 430, "column": 33 }, "end": { "line": 430, "column": 34 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14274, "end": 14275, "loc": { "start": { "line": 431, "column": 24 }, "end": { "line": 431, "column": 25 } } }, { "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": 14299, "end": 14306, "loc": { "start": { "line": 433, "column": 20 }, "end": { "line": 433, "column": 27 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14306, "end": 14307, "loc": { "start": { "line": 433, "column": 27 }, "end": { "line": 433, "column": 28 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14333, "end": 14334, "loc": { "start": { "line": 434, "column": 24 }, "end": { "line": 434, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "assertAlways", "start": 14364, "end": 14376, "loc": { "start": { "line": 435, "column": 28 }, "end": { "line": 435, "column": 40 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14376, "end": 14377, "loc": { "start": { "line": 435, "column": 40 }, "end": { "line": 435, "column": 41 } } }, { "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": 14377, "end": 14382, "loc": { "start": { "line": 435, "column": 41 }, "end": { "line": 435, "column": 46 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14382, "end": 14383, "loc": { "start": { "line": 435, "column": 46 }, "end": { "line": 435, "column": 47 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Unkown sub shape: ", "start": 14384, "end": 14404, "loc": { "start": { "line": 435, "column": 48 }, "end": { "line": 435, "column": 68 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 14405, "end": 14406, "loc": { "start": { "line": 435, "column": 69 }, "end": { "line": 435, "column": 70 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "subShape", "start": 14407, "end": 14415, "loc": { "start": { "line": 435, "column": 71 }, "end": { "line": 435, "column": 79 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14415, "end": 14416, "loc": { "start": { "line": 435, "column": 79 }, "end": { "line": 435, "column": 80 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14416, "end": 14417, "loc": { "start": { "line": 435, "column": 80 }, "end": { "line": 435, "column": 81 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14443, "end": 14444, "loc": { "start": { "line": 436, "column": 24 }, "end": { "line": 436, "column": 25 } } }, { "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": 437, "column": 16 }, "end": { "line": 437, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 14483, "end": 14490, "loc": { "start": { "line": 439, "column": 16 }, "end": { "line": 439, "column": 23 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14490, "end": 14491, "loc": { "start": { "line": 439, "column": 23 }, "end": { "line": 439, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "fill", "start": 14491, "end": 14495, "loc": { "start": { "line": 439, "column": 24 }, "end": { "line": 439, "column": 28 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14495, "end": 14496, "loc": { "start": { "line": 439, "column": 28 }, "end": { "line": 439, "column": 29 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14496, "end": 14497, "loc": { "start": { "line": 439, "column": 29 }, "end": { "line": 439, "column": 30 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14497, "end": 14498, "loc": { "start": { "line": 439, "column": 30 }, "end": { "line": 439, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 14516, "end": 14523, "loc": { "start": { "line": 440, "column": 16 }, "end": { "line": 440, "column": 23 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14523, "end": 14524, "loc": { "start": { "line": 440, "column": 23 }, "end": { "line": 440, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "stroke", "start": 14524, "end": 14530, "loc": { "start": { "line": 440, "column": 24 }, "end": { "line": 440, "column": 30 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14530, "end": 14531, "loc": { "start": { "line": 440, "column": 30 }, "end": { "line": 440, "column": 31 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14531, "end": 14532, "loc": { "start": { "line": 440, "column": 31 }, "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": 14532, "end": 14533, "loc": { "start": { "line": 440, "column": 32 }, "end": { "line": 440, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 14553, "end": 14560, "loc": { "start": { "line": 442, "column": 16 }, "end": { "line": 442, "column": 23 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14560, "end": 14561, "loc": { "start": { "line": 442, "column": 23 }, "end": { "line": 442, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rotate", "start": 14561, "end": 14567, "loc": { "start": { "line": 442, "column": 24 }, "end": { "line": 442, "column": 30 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14567, "end": 14568, "loc": { "start": { "line": 442, "column": 30 }, "end": { "line": 442, "column": 31 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 14568, "end": 14569, "loc": { "start": { "line": 442, "column": 31 }, "end": { "line": 442, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "rotation", "start": 14569, "end": 14577, "loc": { "start": { "line": 442, "column": 32 }, "end": { "line": 442, "column": 40 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14577, "end": 14578, "loc": { "start": { "line": 442, "column": 40 }, "end": { "line": 442, "column": 41 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14578, "end": 14579, "loc": { "start": { "line": 442, "column": 41 }, "end": { "line": 442, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "context", "start": 14597, "end": 14604, "loc": { "start": { "line": 443, "column": 16 }, "end": { "line": 443, "column": 23 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14604, "end": 14605, "loc": { "start": { "line": 443, "column": 23 }, "end": { "line": 443, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "translate", "start": 14605, "end": 14614, "loc": { "start": { "line": 443, "column": 24 }, "end": { "line": 443, "column": 33 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14614, "end": 14615, "loc": { "start": { "line": 443, "column": 33 }, "end": { "line": 443, "column": 34 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 14615, "end": 14616, "loc": { "start": { "line": 443, "column": 34 }, "end": { "line": 443, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "centerQuadrantX", "start": 14616, "end": 14631, "loc": { "start": { "line": 443, "column": 35 }, "end": { "line": 443, "column": 50 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14631, "end": 14632, "loc": { "start": { "line": 443, "column": 50 }, "end": { "line": 443, "column": 51 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 14633, "end": 14634, "loc": { "start": { "line": 443, "column": 52 }, "end": { "line": 443, "column": 53 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "centerQuadrantY", "start": 14634, "end": 14649, "loc": { "start": { "line": 443, "column": 53 }, "end": { "line": 443, "column": 68 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14649, "end": 14650, "loc": { "start": { "line": 443, "column": 68 }, "end": { "line": 443, "column": 69 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14650, "end": 14651, "loc": { "start": { "line": 443, "column": 69 }, "end": { "line": 443, "column": 70 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14665, "end": 14666, "loc": { "start": { "line": 444, "column": 12 }, "end": { "line": 444, "column": 13 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14676, "end": 14677, "loc": { "start": { "line": 445, "column": 8 }, "end": { "line": 445, "column": 9 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14683, "end": 14684, "loc": { "start": { "line": 446, "column": 4 }, "end": { "line": 446, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns a definition with only the given quadrants\r\n * @param {Array} includeQuadrants\r\n * @returns {ShapeDefinition}\r\n ", "start": 14692, "end": 14846, "loc": { "start": { "line": 448, "column": 4 }, "end": { "line": 452, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cloneFilteredByQuadrants", "start": 14852, "end": 14876, "loc": { "start": { "line": 453, "column": 4 }, "end": { "line": 453, "column": 28 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14876, "end": 14877, "loc": { "start": { "line": 453, "column": 28 }, "end": { "line": 453, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "includeQuadrants", "start": 14877, "end": 14893, "loc": { "start": { "line": 453, "column": 29 }, "end": { "line": 453, "column": 45 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14893, "end": 14894, "loc": { "start": { "line": 453, "column": 45 }, "end": { "line": 453, "column": 46 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14895, "end": 14896, "loc": { "start": { "line": 453, "column": 47 }, "end": { "line": 453, "column": 48 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 14906, "end": 14911, "loc": { "start": { "line": 454, "column": 8 }, "end": { "line": 454, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 14912, "end": 14921, "loc": { "start": { "line": 454, "column": 14 }, "end": { "line": 454, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 14922, "end": 14923, "loc": { "start": { "line": 454, "column": 24 }, "end": { "line": 454, "column": 25 } } }, { "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": 14924, "end": 14928, "loc": { "start": { "line": 454, "column": 26 }, "end": { "line": 454, "column": 30 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14928, "end": 14929, "loc": { "start": { "line": 454, "column": 30 }, "end": { "line": 454, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "internalCloneLayers", "start": 14929, "end": 14948, "loc": { "start": { "line": 454, "column": 31 }, "end": { "line": 454, "column": 50 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14948, "end": 14949, "loc": { "start": { "line": 454, "column": 50 }, "end": { "line": 454, "column": 51 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14949, "end": 14950, "loc": { "start": { "line": 454, "column": 51 }, "end": { "line": 454, "column": 52 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 14950, "end": 14951, "loc": { "start": { "line": 454, "column": 52 }, "end": { "line": 454, "column": 53 } } }, { "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": 14961, "end": 14964, "loc": { "start": { "line": 455, "column": 8 }, "end": { "line": 455, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 14965, "end": 14966, "loc": { "start": { "line": 455, "column": 12 }, "end": { "line": 455, "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": 14966, "end": 14969, "loc": { "start": { "line": 455, "column": 13 }, "end": { "line": 455, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 14970, "end": 14980, "loc": { "start": { "line": 455, "column": 17 }, "end": { "line": 455, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 14981, "end": 14982, "loc": { "start": { "line": 455, "column": 28 }, "end": { "line": 455, "column": 29 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 14983, "end": 14984, "loc": { "start": { "line": 455, "column": 30 }, "end": { "line": 455, "column": 31 } } }, { "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": 455, "column": 31 }, "end": { "line": 455, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 14986, "end": 14996, "loc": { "start": { "line": 455, "column": 33 }, "end": { "line": 455, "column": 43 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 14997, "end": 14998, "loc": { "start": { "line": 455, "column": 44 }, "end": { "line": 455, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 14999, "end": 15008, "loc": { "start": { "line": 455, "column": 46 }, "end": { "line": 455, "column": 55 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15008, "end": 15009, "loc": { "start": { "line": 455, "column": 55 }, "end": { "line": 455, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 15009, "end": 15015, "loc": { "start": { "line": 455, "column": 56 }, "end": { "line": 455, "column": 62 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15015, "end": 15016, "loc": { "start": { "line": 455, "column": 62 }, "end": { "line": 455, "column": 63 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 15017, "end": 15019, "loc": { "start": { "line": 455, "column": 64 }, "end": { "line": 455, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 15019, "end": 15029, "loc": { "start": { "line": 455, "column": 66 }, "end": { "line": 455, "column": 76 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15029, "end": 15030, "loc": { "start": { "line": 455, "column": 76 }, "end": { "line": 455, "column": 77 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15031, "end": 15032, "loc": { "start": { "line": 455, "column": 78 }, "end": { "line": 455, "column": 79 } } }, { "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": 15046, "end": 15051, "loc": { "start": { "line": 456, "column": 12 }, "end": { "line": 456, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 15052, "end": 15061, "loc": { "start": { "line": 456, "column": 18 }, "end": { "line": 456, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 15062, "end": 15063, "loc": { "start": { "line": 456, "column": 28 }, "end": { "line": 456, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 15064, "end": 15073, "loc": { "start": { "line": 456, "column": 30 }, "end": { "line": 456, "column": 39 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15073, "end": 15074, "loc": { "start": { "line": 456, "column": 39 }, "end": { "line": 456, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 15074, "end": 15084, "loc": { "start": { "line": 456, "column": 40 }, "end": { "line": 456, "column": 50 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15084, "end": 15085, "loc": { "start": { "line": 456, "column": 50 }, "end": { "line": 456, "column": 51 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15085, "end": 15086, "loc": { "start": { "line": 456, "column": 51 }, "end": { "line": 456, "column": 52 } } }, { "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": 15100, "end": 15103, "loc": { "start": { "line": 457, "column": 12 }, "end": { "line": 457, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "anyContents", "start": 15104, "end": 15115, "loc": { "start": { "line": 457, "column": 16 }, "end": { "line": 457, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 15116, "end": 15117, "loc": { "start": { "line": 457, "column": 28 }, "end": { "line": 457, "column": 29 } } }, { "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": 15118, "end": 15123, "loc": { "start": { "line": 457, "column": 30 }, "end": { "line": 457, "column": 35 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15123, "end": 15124, "loc": { "start": { "line": 457, "column": 35 }, "end": { "line": 457, "column": 36 } } }, { "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": 15138, "end": 15141, "loc": { "start": { "line": 458, "column": 12 }, "end": { "line": 458, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15142, "end": 15143, "loc": { "start": { "line": 458, "column": 16 }, "end": { "line": 458, "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": 15143, "end": 15146, "loc": { "start": { "line": 458, "column": 17 }, "end": { "line": 458, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 15147, "end": 15160, "loc": { "start": { "line": 458, "column": 21 }, "end": { "line": 458, "column": 34 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 15161, "end": 15162, "loc": { "start": { "line": 458, "column": 35 }, "end": { "line": 458, "column": 36 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 15163, "end": 15164, "loc": { "start": { "line": 458, "column": 37 }, "end": { "line": 458, "column": 38 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15164, "end": 15165, "loc": { "start": { "line": 458, "column": 38 }, "end": { "line": 458, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 15166, "end": 15179, "loc": { "start": { "line": 458, "column": 40 }, "end": { "line": 458, "column": 53 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 15180, "end": 15181, "loc": { "start": { "line": 458, "column": 54 }, "end": { "line": 458, "column": 55 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 4, "start": 15182, "end": 15183, "loc": { "start": { "line": 458, "column": 56 }, "end": { "line": 458, "column": 57 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15183, "end": 15184, "loc": { "start": { "line": 458, "column": 57 }, "end": { "line": 458, "column": 58 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 15185, "end": 15187, "loc": { "start": { "line": 458, "column": 59 }, "end": { "line": 458, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 15187, "end": 15200, "loc": { "start": { "line": 458, "column": 61 }, "end": { "line": 458, "column": 74 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15200, "end": 15201, "loc": { "start": { "line": 458, "column": 74 }, "end": { "line": 458, "column": 75 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15202, "end": 15203, "loc": { "start": { "line": 458, "column": 76 }, "end": { "line": 458, "column": 77 } } }, { "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": 15221, "end": 15223, "loc": { "start": { "line": 459, "column": 16 }, "end": { "line": 459, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15224, "end": 15225, "loc": { "start": { "line": 459, "column": 19 }, "end": { "line": 459, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "includeQuadrants", "start": 15225, "end": 15241, "loc": { "start": { "line": 459, "column": 20 }, "end": { "line": 459, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15241, "end": 15242, "loc": { "start": { "line": 459, "column": 36 }, "end": { "line": 459, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "indexOf", "start": 15242, "end": 15249, "loc": { "start": { "line": 459, "column": 37 }, "end": { "line": 459, "column": 44 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15249, "end": 15250, "loc": { "start": { "line": 459, "column": 44 }, "end": { "line": 459, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 15250, "end": 15263, "loc": { "start": { "line": 459, "column": 45 }, "end": { "line": 459, "column": 58 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15263, "end": 15264, "loc": { "start": { "line": 459, "column": 58 }, "end": { "line": 459, "column": 59 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 15265, "end": 15266, "loc": { "start": { "line": 459, "column": 60 }, "end": { "line": 459, "column": 61 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 15267, "end": 15268, "loc": { "start": { "line": 459, "column": 62 }, "end": { "line": 459, "column": 63 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15268, "end": 15269, "loc": { "start": { "line": 459, "column": 63 }, "end": { "line": 459, "column": 64 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15270, "end": 15271, "loc": { "start": { "line": 459, "column": 65 }, "end": { "line": 459, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 15293, "end": 15302, "loc": { "start": { "line": 460, "column": 20 }, "end": { "line": 460, "column": 29 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15302, "end": 15303, "loc": { "start": { "line": 460, "column": 29 }, "end": { "line": 460, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 15303, "end": 15316, "loc": { "start": { "line": 460, "column": 30 }, "end": { "line": 460, "column": 43 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15316, "end": 15317, "loc": { "start": { "line": 460, "column": 43 }, "end": { "line": 460, "column": 44 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 15318, "end": 15319, "loc": { "start": { "line": 460, "column": 45 }, "end": { "line": 460, "column": 46 } } }, { "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": 15320, "end": 15324, "loc": { "start": { "line": 460, "column": 47 }, "end": { "line": 460, "column": 51 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15324, "end": 15325, "loc": { "start": { "line": 460, "column": 51 }, "end": { "line": 460, "column": 52 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15343, "end": 15344, "loc": { "start": { "line": 461, "column": 16 }, "end": { "line": 461, "column": 17 } } }, { "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": 15345, "end": 15349, "loc": { "start": { "line": 461, "column": 18 }, "end": { "line": 461, "column": 22 } } }, { "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": 15350, "end": 15352, "loc": { "start": { "line": 461, "column": 23 }, "end": { "line": 461, "column": 25 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15353, "end": 15354, "loc": { "start": { "line": 461, "column": 26 }, "end": { "line": 461, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 15354, "end": 15363, "loc": { "start": { "line": 461, "column": 27 }, "end": { "line": 461, "column": 36 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15363, "end": 15364, "loc": { "start": { "line": 461, "column": 36 }, "end": { "line": 461, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 15364, "end": 15377, "loc": { "start": { "line": 461, "column": 37 }, "end": { "line": 461, "column": 50 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15377, "end": 15378, "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 }, "start": 15378, "end": 15379, "loc": { "start": { "line": 461, "column": 51 }, "end": { "line": 461, "column": 52 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15380, "end": 15381, "loc": { "start": { "line": 461, "column": 53 }, "end": { "line": 461, "column": 54 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "anyContents", "start": 15403, "end": 15414, "loc": { "start": { "line": 462, "column": 20 }, "end": { "line": 462, "column": 31 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 15415, "end": 15416, "loc": { "start": { "line": 462, "column": 32 }, "end": { "line": 462, "column": 33 } } }, { "type": { "label": "true", "keyword": "true", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "true", "start": 15417, "end": 15421, "loc": { "start": { "line": 462, "column": 34 }, "end": { "line": 462, "column": 38 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15421, "end": 15422, "loc": { "start": { "line": 462, "column": 38 }, "end": { "line": 462, "column": 39 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15440, "end": 15441, "loc": { "start": { "line": 463, "column": 16 }, "end": { "line": 463, "column": 17 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15455, "end": 15456, "loc": { "start": { "line": 464, "column": 12 }, "end": { "line": 464, "column": 13 } } }, { "type": "CommentLine", "value": " Check if the layer is entirely empty", "start": 15472, "end": 15511, "loc": { "start": { "line": 466, "column": 12 }, "end": { "line": 466, "column": 51 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 15525, "end": 15527, "loc": { "start": { "line": 467, "column": 12 }, "end": { "line": 467, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15528, "end": 15529, "loc": { "start": { "line": 467, "column": 15 }, "end": { "line": 467, "column": 16 } } }, { "type": { "label": "prefix", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": null, "updateContext": null }, "value": "!", "start": 15529, "end": 15530, "loc": { "start": { "line": 467, "column": 16 }, "end": { "line": 467, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "anyContents", "start": 15530, "end": 15541, "loc": { "start": { "line": 467, "column": 17 }, "end": { "line": 467, "column": 28 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15541, "end": 15542, "loc": { "start": { "line": 467, "column": 28 }, "end": { "line": 467, "column": 29 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15543, "end": 15544, "loc": { "start": { "line": 467, "column": 30 }, "end": { "line": 467, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 15562, "end": 15571, "loc": { "start": { "line": 468, "column": 16 }, "end": { "line": 468, "column": 25 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15571, "end": 15572, "loc": { "start": { "line": 468, "column": 25 }, "end": { "line": 468, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "splice", "start": 15572, "end": 15578, "loc": { "start": { "line": 468, "column": 26 }, "end": { "line": 468, "column": 32 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15578, "end": 15579, "loc": { "start": { "line": 468, "column": 32 }, "end": { "line": 468, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 15579, "end": 15589, "loc": { "start": { "line": 468, "column": 33 }, "end": { "line": 468, "column": 43 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15589, "end": 15590, "loc": { "start": { "line": 468, "column": 43 }, "end": { "line": 468, "column": 44 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 15591, "end": 15592, "loc": { "start": { "line": 468, "column": 45 }, "end": { "line": 468, "column": 46 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15592, "end": 15593, "loc": { "start": { "line": 468, "column": 46 }, "end": { "line": 468, "column": 47 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15593, "end": 15594, "loc": { "start": { "line": 468, "column": 47 }, "end": { "line": 468, "column": 48 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 15612, "end": 15622, "loc": { "start": { "line": 469, "column": 16 }, "end": { "line": 469, "column": 26 } } }, { "type": { "label": "_=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "-=", "start": 15623, "end": 15625, "loc": { "start": { "line": 469, "column": 27 }, "end": { "line": 469, "column": 29 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 15626, "end": 15627, "loc": { "start": { "line": 469, "column": 30 }, "end": { "line": 469, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15627, "end": 15628, "loc": { "start": { "line": 469, "column": 31 }, "end": { "line": 469, "column": 32 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15642, "end": 15643, "loc": { "start": { "line": 470, "column": 12 }, "end": { "line": 470, "column": 13 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15653, "end": 15654, "loc": { "start": { "line": 471, "column": 8 }, "end": { "line": 471, "column": 9 } } }, { "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": 15664, "end": 15670, "loc": { "start": { "line": 472, "column": 8 }, "end": { "line": 472, "column": 14 } } }, { "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": 15671, "end": 15674, "loc": { "start": { "line": 472, "column": 15 }, "end": { "line": 472, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ShapeDefinition", "start": 15675, "end": 15690, "loc": { "start": { "line": 472, "column": 19 }, "end": { "line": 472, "column": 34 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15690, "end": 15691, "loc": { "start": { "line": 472, "column": 34 }, "end": { "line": 472, "column": 35 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15691, "end": 15692, "loc": { "start": { "line": 472, "column": 35 }, "end": { "line": 472, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 15693, "end": 15699, "loc": { "start": { "line": 472, "column": 37 }, "end": { "line": 472, "column": 43 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15699, "end": 15700, "loc": { "start": { "line": 472, "column": 43 }, "end": { "line": 472, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 15701, "end": 15710, "loc": { "start": { "line": 472, "column": 45 }, "end": { "line": 472, "column": 54 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15711, "end": 15712, "loc": { "start": { "line": 472, "column": 55 }, "end": { "line": 472, "column": 56 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15712, "end": 15713, "loc": { "start": { "line": 472, "column": 56 }, "end": { "line": 472, "column": 57 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15713, "end": 15714, "loc": { "start": { "line": 472, "column": 57 }, "end": { "line": 472, "column": 58 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15720, "end": 15721, "loc": { "start": { "line": 473, "column": 4 }, "end": { "line": 473, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns a definition which was rotated clockwise\r\n * @returns {ShapeDefinition}\r\n ", "start": 15729, "end": 15833, "loc": { "start": { "line": 475, "column": 4 }, "end": { "line": 478, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cloneRotateCW", "start": 15839, "end": 15852, "loc": { "start": { "line": 479, "column": 4 }, "end": { "line": 479, "column": 17 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15852, "end": 15853, "loc": { "start": { "line": 479, "column": 17 }, "end": { "line": 479, "column": 18 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15853, "end": 15854, "loc": { "start": { "line": 479, "column": 18 }, "end": { "line": 479, "column": 19 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15855, "end": 15856, "loc": { "start": { "line": 479, "column": 20 }, "end": { "line": 479, "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": 15866, "end": 15871, "loc": { "start": { "line": 480, "column": 8 }, "end": { "line": 480, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 15872, "end": 15881, "loc": { "start": { "line": 480, "column": 14 }, "end": { "line": 480, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 15882, "end": 15883, "loc": { "start": { "line": 480, "column": 24 }, "end": { "line": 480, "column": 25 } } }, { "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": 15884, "end": 15888, "loc": { "start": { "line": 480, "column": 26 }, "end": { "line": 480, "column": 30 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15888, "end": 15889, "loc": { "start": { "line": 480, "column": 30 }, "end": { "line": 480, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "internalCloneLayers", "start": 15889, "end": 15908, "loc": { "start": { "line": 480, "column": 31 }, "end": { "line": 480, "column": 50 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15908, "end": 15909, "loc": { "start": { "line": 480, "column": 50 }, "end": { "line": 480, "column": 51 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15909, "end": 15910, "loc": { "start": { "line": 480, "column": 51 }, "end": { "line": 480, "column": 52 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15910, "end": 15911, "loc": { "start": { "line": 480, "column": 52 }, "end": { "line": 480, "column": 53 } } }, { "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": 15921, "end": 15924, "loc": { "start": { "line": 481, "column": 8 }, "end": { "line": 481, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15925, "end": 15926, "loc": { "start": { "line": 481, "column": 12 }, "end": { "line": 481, "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": 15926, "end": 15929, "loc": { "start": { "line": 481, "column": 13 }, "end": { "line": 481, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 15930, "end": 15940, "loc": { "start": { "line": 481, "column": 17 }, "end": { "line": 481, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 15941, "end": 15942, "loc": { "start": { "line": 481, "column": 28 }, "end": { "line": 481, "column": 29 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 15943, "end": 15944, "loc": { "start": { "line": 481, "column": 30 }, "end": { "line": 481, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15944, "end": 15945, "loc": { "start": { "line": 481, "column": 31 }, "end": { "line": 481, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 15946, "end": 15956, "loc": { "start": { "line": 481, "column": 33 }, "end": { "line": 481, "column": 43 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 15957, "end": 15958, "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": "newLayers", "start": 15959, "end": 15968, "loc": { "start": { "line": 481, "column": 46 }, "end": { "line": 481, "column": 55 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15968, "end": 15969, "loc": { "start": { "line": 481, "column": 55 }, "end": { "line": 481, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 15969, "end": 15975, "loc": { "start": { "line": 481, "column": 56 }, "end": { "line": 481, "column": 62 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 15975, "end": 15976, "loc": { "start": { "line": 481, "column": 62 }, "end": { "line": 481, "column": 63 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 15977, "end": 15979, "loc": { "start": { "line": 481, "column": 64 }, "end": { "line": 481, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 15979, "end": 15989, "loc": { "start": { "line": 481, "column": 66 }, "end": { "line": 481, "column": 76 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15989, "end": 15990, "loc": { "start": { "line": 481, "column": 76 }, "end": { "line": 481, "column": 77 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 15991, "end": 15992, "loc": { "start": { "line": 481, "column": 78 }, "end": { "line": 481, "column": 79 } } }, { "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": 16006, "end": 16011, "loc": { "start": { "line": 482, "column": 12 }, "end": { "line": 482, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 16012, "end": 16021, "loc": { "start": { "line": 482, "column": 18 }, "end": { "line": 482, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 16022, "end": 16023, "loc": { "start": { "line": 482, "column": 28 }, "end": { "line": 482, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 16024, "end": 16033, "loc": { "start": { "line": 482, "column": 30 }, "end": { "line": 482, "column": 39 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16033, "end": 16034, "loc": { "start": { "line": 482, "column": 39 }, "end": { "line": 482, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 16034, "end": 16044, "loc": { "start": { "line": 482, "column": 40 }, "end": { "line": 482, "column": 50 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16044, "end": 16045, "loc": { "start": { "line": 482, "column": 50 }, "end": { "line": 482, "column": 51 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16045, "end": 16046, "loc": { "start": { "line": 482, "column": 51 }, "end": { "line": 482, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 16060, "end": 16069, "loc": { "start": { "line": 483, "column": 12 }, "end": { "line": 483, "column": 21 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16069, "end": 16070, "loc": { "start": { "line": 483, "column": 21 }, "end": { "line": 483, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "unshift", "start": 16070, "end": 16077, "loc": { "start": { "line": 483, "column": 22 }, "end": { "line": 483, "column": 29 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16077, "end": 16078, "loc": { "start": { "line": 483, "column": 29 }, "end": { "line": 483, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 16078, "end": 16087, "loc": { "start": { "line": 483, "column": 30 }, "end": { "line": 483, "column": 39 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16087, "end": 16088, "loc": { "start": { "line": 483, "column": 39 }, "end": { "line": 483, "column": 40 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 3, "start": 16088, "end": 16089, "loc": { "start": { "line": 483, "column": 40 }, "end": { "line": 483, "column": 41 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16089, "end": 16090, "loc": { "start": { "line": 483, "column": 41 }, "end": { "line": 483, "column": 42 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16090, "end": 16091, "loc": { "start": { "line": 483, "column": 42 }, "end": { "line": 483, "column": 43 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16091, "end": 16092, "loc": { "start": { "line": 483, "column": 43 }, "end": { "line": 483, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 16106, "end": 16115, "loc": { "start": { "line": 484, "column": 12 }, "end": { "line": 484, "column": 21 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16115, "end": 16116, "loc": { "start": { "line": 484, "column": 21 }, "end": { "line": 484, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "pop", "start": 16116, "end": 16119, "loc": { "start": { "line": 484, "column": 22 }, "end": { "line": 484, "column": 25 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16119, "end": 16120, "loc": { "start": { "line": 484, "column": 25 }, "end": { "line": 484, "column": 26 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16120, "end": 16121, "loc": { "start": { "line": 484, "column": 26 }, "end": { "line": 484, "column": 27 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16121, "end": 16122, "loc": { "start": { "line": 484, "column": 27 }, "end": { "line": 484, "column": 28 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16132, "end": 16133, "loc": { "start": { "line": 485, "column": 8 }, "end": { "line": 485, "column": 9 } } }, { "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": 16143, "end": 16149, "loc": { "start": { "line": 486, "column": 8 }, "end": { "line": 486, "column": 14 } } }, { "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": 16150, "end": 16153, "loc": { "start": { "line": 486, "column": 15 }, "end": { "line": 486, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ShapeDefinition", "start": 16154, "end": 16169, "loc": { "start": { "line": 486, "column": 19 }, "end": { "line": 486, "column": 34 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16169, "end": 16170, "loc": { "start": { "line": 486, "column": 34 }, "end": { "line": 486, "column": 35 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16170, "end": 16171, "loc": { "start": { "line": 486, "column": 35 }, "end": { "line": 486, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 16172, "end": 16178, "loc": { "start": { "line": 486, "column": 37 }, "end": { "line": 486, "column": 43 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16178, "end": 16179, "loc": { "start": { "line": 486, "column": 43 }, "end": { "line": 486, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 16180, "end": 16189, "loc": { "start": { "line": 486, "column": 45 }, "end": { "line": 486, "column": 54 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16190, "end": 16191, "loc": { "start": { "line": 486, "column": 55 }, "end": { "line": 486, "column": 56 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16191, "end": 16192, "loc": { "start": { "line": 486, "column": 56 }, "end": { "line": 486, "column": 57 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16192, "end": 16193, "loc": { "start": { "line": 486, "column": 57 }, "end": { "line": 486, "column": 58 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16199, "end": 16200, "loc": { "start": { "line": 487, "column": 4 }, "end": { "line": 487, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns a definition which was rotated counter clockwise\r\n * @returns {ShapeDefinition}\r\n ", "start": 16208, "end": 16320, "loc": { "start": { "line": 489, "column": 4 }, "end": { "line": 492, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cloneRotateCCW", "start": 16326, "end": 16340, "loc": { "start": { "line": 493, "column": 4 }, "end": { "line": 493, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16340, "end": 16341, "loc": { "start": { "line": 493, "column": 18 }, "end": { "line": 493, "column": 19 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16341, "end": 16342, "loc": { "start": { "line": 493, "column": 19 }, "end": { "line": 493, "column": 20 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16343, "end": 16344, "loc": { "start": { "line": 493, "column": 21 }, "end": { "line": 493, "column": 22 } } }, { "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": 16354, "end": 16359, "loc": { "start": { "line": 494, "column": 8 }, "end": { "line": 494, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 16360, "end": 16369, "loc": { "start": { "line": 494, "column": 14 }, "end": { "line": 494, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 16370, "end": 16371, "loc": { "start": { "line": 494, "column": 24 }, "end": { "line": 494, "column": 25 } } }, { "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": 16372, "end": 16376, "loc": { "start": { "line": 494, "column": 26 }, "end": { "line": 494, "column": 30 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16376, "end": 16377, "loc": { "start": { "line": 494, "column": 30 }, "end": { "line": 494, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "internalCloneLayers", "start": 16377, "end": 16396, "loc": { "start": { "line": 494, "column": 31 }, "end": { "line": 494, "column": 50 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16396, "end": 16397, "loc": { "start": { "line": 494, "column": 50 }, "end": { "line": 494, "column": 51 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16397, "end": 16398, "loc": { "start": { "line": 494, "column": 51 }, "end": { "line": 494, "column": 52 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16398, "end": 16399, "loc": { "start": { "line": 494, "column": 52 }, "end": { "line": 494, "column": 53 } } }, { "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": 16409, "end": 16412, "loc": { "start": { "line": 495, "column": 8 }, "end": { "line": 495, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16413, "end": 16414, "loc": { "start": { "line": 495, "column": 12 }, "end": { "line": 495, "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": 16414, "end": 16417, "loc": { "start": { "line": 495, "column": 13 }, "end": { "line": 495, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 16418, "end": 16428, "loc": { "start": { "line": 495, "column": 17 }, "end": { "line": 495, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 16429, "end": 16430, "loc": { "start": { "line": 495, "column": 28 }, "end": { "line": 495, "column": 29 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 16431, "end": 16432, "loc": { "start": { "line": 495, "column": 30 }, "end": { "line": 495, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16432, "end": 16433, "loc": { "start": { "line": 495, "column": 31 }, "end": { "line": 495, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 16434, "end": 16444, "loc": { "start": { "line": 495, "column": 33 }, "end": { "line": 495, "column": 43 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 16445, "end": 16446, "loc": { "start": { "line": 495, "column": 44 }, "end": { "line": 495, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 16447, "end": 16456, "loc": { "start": { "line": 495, "column": 46 }, "end": { "line": 495, "column": 55 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16456, "end": 16457, "loc": { "start": { "line": 495, "column": 55 }, "end": { "line": 495, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 16457, "end": 16463, "loc": { "start": { "line": 495, "column": 56 }, "end": { "line": 495, "column": 62 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16463, "end": 16464, "loc": { "start": { "line": 495, "column": 62 }, "end": { "line": 495, "column": 63 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 16465, "end": 16467, "loc": { "start": { "line": 495, "column": 64 }, "end": { "line": 495, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 16467, "end": 16477, "loc": { "start": { "line": 495, "column": 66 }, "end": { "line": 495, "column": 76 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16477, "end": 16478, "loc": { "start": { "line": 495, "column": 76 }, "end": { "line": 495, "column": 77 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16479, "end": 16480, "loc": { "start": { "line": 495, "column": 78 }, "end": { "line": 495, "column": 79 } } }, { "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": 16494, "end": 16499, "loc": { "start": { "line": 496, "column": 12 }, "end": { "line": 496, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 16500, "end": 16509, "loc": { "start": { "line": 496, "column": 18 }, "end": { "line": 496, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 16510, "end": 16511, "loc": { "start": { "line": 496, "column": 28 }, "end": { "line": 496, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 16512, "end": 16521, "loc": { "start": { "line": 496, "column": 30 }, "end": { "line": 496, "column": 39 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16521, "end": 16522, "loc": { "start": { "line": 496, "column": 39 }, "end": { "line": 496, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 16522, "end": 16532, "loc": { "start": { "line": 496, "column": 40 }, "end": { "line": 496, "column": 50 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16532, "end": 16533, "loc": { "start": { "line": 496, "column": 50 }, "end": { "line": 496, "column": 51 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16533, "end": 16534, "loc": { "start": { "line": 496, "column": 51 }, "end": { "line": 496, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 16548, "end": 16557, "loc": { "start": { "line": 497, "column": 12 }, "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": 16557, "end": 16558, "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": "push", "start": 16558, "end": 16562, "loc": { "start": { "line": 497, "column": 22 }, "end": { "line": 497, "column": 26 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16562, "end": 16563, "loc": { "start": { "line": 497, "column": 26 }, "end": { "line": 497, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 16563, "end": 16572, "loc": { "start": { "line": 497, "column": 27 }, "end": { "line": 497, "column": 36 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16572, "end": 16573, "loc": { "start": { "line": 497, "column": 36 }, "end": { "line": 497, "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": 16573, "end": 16574, "loc": { "start": { "line": 497, "column": 37 }, "end": { "line": 497, "column": 38 } } }, { "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": 497, "column": 38 }, "end": { "line": 497, "column": 39 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16575, "end": 16576, "loc": { "start": { "line": 497, "column": 39 }, "end": { "line": 497, "column": 40 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16576, "end": 16577, "loc": { "start": { "line": 497, "column": 40 }, "end": { "line": 497, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 16591, "end": 16600, "loc": { "start": { "line": 498, "column": 12 }, "end": { "line": 498, "column": 21 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16600, "end": 16601, "loc": { "start": { "line": 498, "column": 21 }, "end": { "line": 498, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shift", "start": 16601, "end": 16606, "loc": { "start": { "line": 498, "column": 22 }, "end": { "line": 498, "column": 27 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16606, "end": 16607, "loc": { "start": { "line": 498, "column": 27 }, "end": { "line": 498, "column": 28 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16607, "end": 16608, "loc": { "start": { "line": 498, "column": 28 }, "end": { "line": 498, "column": 29 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16608, "end": 16609, "loc": { "start": { "line": 498, "column": 29 }, "end": { "line": 498, "column": 30 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16619, "end": 16620, "loc": { "start": { "line": 499, "column": 8 }, "end": { "line": 499, "column": 9 } } }, { "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": 16630, "end": 16636, "loc": { "start": { "line": 500, "column": 8 }, "end": { "line": 500, "column": 14 } } }, { "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": 16637, "end": 16640, "loc": { "start": { "line": 500, "column": 15 }, "end": { "line": 500, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ShapeDefinition", "start": 16641, "end": 16656, "loc": { "start": { "line": 500, "column": 19 }, "end": { "line": 500, "column": 34 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16656, "end": 16657, "loc": { "start": { "line": 500, "column": 34 }, "end": { "line": 500, "column": 35 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16657, "end": 16658, "loc": { "start": { "line": 500, "column": 35 }, "end": { "line": 500, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 16659, "end": 16665, "loc": { "start": { "line": 500, "column": 37 }, "end": { "line": 500, "column": 43 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16665, "end": 16666, "loc": { "start": { "line": 500, "column": 43 }, "end": { "line": 500, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 16667, "end": 16676, "loc": { "start": { "line": 500, "column": 45 }, "end": { "line": 500, "column": 54 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16677, "end": 16678, "loc": { "start": { "line": 500, "column": 55 }, "end": { "line": 500, "column": 56 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16678, "end": 16679, "loc": { "start": { "line": 500, "column": 56 }, "end": { "line": 500, "column": 57 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16679, "end": 16680, "loc": { "start": { "line": 500, "column": 57 }, "end": { "line": 500, "column": 58 } } }, { "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": 501, "column": 4 }, "end": { "line": 501, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Returns a definition which was rotated 180 degrees\r\n * @returns {ShapeDefinition}\r\n ", "start": 16695, "end": 16801, "loc": { "start": { "line": 503, "column": 4 }, "end": { "line": 506, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cloneRotate180", "start": 16807, "end": 16821, "loc": { "start": { "line": 507, "column": 4 }, "end": { "line": 507, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16821, "end": 16822, "loc": { "start": { "line": 507, "column": 18 }, "end": { "line": 507, "column": 19 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16822, "end": 16823, "loc": { "start": { "line": 507, "column": 19 }, "end": { "line": 507, "column": 20 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16824, "end": 16825, "loc": { "start": { "line": 507, "column": 21 }, "end": { "line": 507, "column": 22 } } }, { "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": 16835, "end": 16840, "loc": { "start": { "line": 508, "column": 8 }, "end": { "line": 508, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 16841, "end": 16850, "loc": { "start": { "line": 508, "column": 14 }, "end": { "line": 508, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 16851, "end": 16852, "loc": { "start": { "line": 508, "column": 24 }, "end": { "line": 508, "column": 25 } } }, { "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": 16853, "end": 16857, "loc": { "start": { "line": 508, "column": 26 }, "end": { "line": 508, "column": 30 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16857, "end": 16858, "loc": { "start": { "line": 508, "column": 30 }, "end": { "line": 508, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "internalCloneLayers", "start": 16858, "end": 16877, "loc": { "start": { "line": 508, "column": 31 }, "end": { "line": 508, "column": 50 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16877, "end": 16878, "loc": { "start": { "line": 508, "column": 50 }, "end": { "line": 508, "column": 51 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16878, "end": 16879, "loc": { "start": { "line": 508, "column": 51 }, "end": { "line": 508, "column": 52 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16879, "end": 16880, "loc": { "start": { "line": 508, "column": 52 }, "end": { "line": 508, "column": 53 } } }, { "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": 16890, "end": 16893, "loc": { "start": { "line": 509, "column": 8 }, "end": { "line": 509, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16894, "end": 16895, "loc": { "start": { "line": 509, "column": 12 }, "end": { "line": 509, "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": 16895, "end": 16898, "loc": { "start": { "line": 509, "column": 13 }, "end": { "line": 509, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 16899, "end": 16909, "loc": { "start": { "line": 509, "column": 17 }, "end": { "line": 509, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 16910, "end": 16911, "loc": { "start": { "line": 509, "column": 28 }, "end": { "line": 509, "column": 29 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 16912, "end": 16913, "loc": { "start": { "line": 509, "column": 30 }, "end": { "line": 509, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16913, "end": 16914, "loc": { "start": { "line": 509, "column": 31 }, "end": { "line": 509, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 16915, "end": 16925, "loc": { "start": { "line": 509, "column": 33 }, "end": { "line": 509, "column": 43 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 16926, "end": 16927, "loc": { "start": { "line": 509, "column": 44 }, "end": { "line": 509, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 16928, "end": 16937, "loc": { "start": { "line": 509, "column": 46 }, "end": { "line": 509, "column": 55 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16937, "end": 16938, "loc": { "start": { "line": 509, "column": 55 }, "end": { "line": 509, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 16938, "end": 16944, "loc": { "start": { "line": 509, "column": 56 }, "end": { "line": 509, "column": 62 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 16944, "end": 16945, "loc": { "start": { "line": 509, "column": 62 }, "end": { "line": 509, "column": 63 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 16946, "end": 16948, "loc": { "start": { "line": 509, "column": 64 }, "end": { "line": 509, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 16948, "end": 16958, "loc": { "start": { "line": 509, "column": 66 }, "end": { "line": 509, "column": 76 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16958, "end": 16959, "loc": { "start": { "line": 509, "column": 76 }, "end": { "line": 509, "column": 77 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 16960, "end": 16961, "loc": { "start": { "line": 509, "column": 78 }, "end": { "line": 509, "column": 79 } } }, { "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": 16975, "end": 16980, "loc": { "start": { "line": 510, "column": 12 }, "end": { "line": 510, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 16981, "end": 16990, "loc": { "start": { "line": 510, "column": 18 }, "end": { "line": 510, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 16991, "end": 16992, "loc": { "start": { "line": 510, "column": 28 }, "end": { "line": 510, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 16993, "end": 17002, "loc": { "start": { "line": 510, "column": 30 }, "end": { "line": 510, "column": 39 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17002, "end": 17003, "loc": { "start": { "line": 510, "column": 39 }, "end": { "line": 510, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 17003, "end": 17013, "loc": { "start": { "line": 510, "column": 40 }, "end": { "line": 510, "column": 50 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17013, "end": 17014, "loc": { "start": { "line": 510, "column": 50 }, "end": { "line": 510, "column": 51 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17014, "end": 17015, "loc": { "start": { "line": 510, "column": 51 }, "end": { "line": 510, "column": 52 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 17029, "end": 17038, "loc": { "start": { "line": 511, "column": 12 }, "end": { "line": 511, "column": 21 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17038, "end": 17039, "loc": { "start": { "line": 511, "column": 21 }, "end": { "line": 511, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "push", "start": 17039, "end": 17043, "loc": { "start": { "line": 511, "column": 22 }, "end": { "line": 511, "column": 26 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17043, "end": 17044, "loc": { "start": { "line": 511, "column": 26 }, "end": { "line": 511, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 17044, "end": 17053, "loc": { "start": { "line": 511, "column": 27 }, "end": { "line": 511, "column": 36 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17053, "end": 17054, "loc": { "start": { "line": 511, "column": 36 }, "end": { "line": 511, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shift", "start": 17054, "end": 17059, "loc": { "start": { "line": 511, "column": 37 }, "end": { "line": 511, "column": 42 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17059, "end": 17060, "loc": { "start": { "line": 511, "column": 42 }, "end": { "line": 511, "column": 43 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17060, "end": 17061, "loc": { "start": { "line": 511, "column": 43 }, "end": { "line": 511, "column": 44 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17061, "end": 17062, "loc": { "start": { "line": 511, "column": 44 }, "end": { "line": 511, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 17063, "end": 17072, "loc": { "start": { "line": 511, "column": 46 }, "end": { "line": 511, "column": 55 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17072, "end": 17073, "loc": { "start": { "line": 511, "column": 55 }, "end": { "line": 511, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shift", "start": 17073, "end": 17078, "loc": { "start": { "line": 511, "column": 56 }, "end": { "line": 511, "column": 61 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17078, "end": 17079, "loc": { "start": { "line": 511, "column": 61 }, "end": { "line": 511, "column": 62 } } }, { "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": 511, "column": 62 }, "end": { "line": 511, "column": 63 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17080, "end": 17081, "loc": { "start": { "line": 511, "column": 63 }, "end": { "line": 511, "column": 64 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17081, "end": 17082, "loc": { "start": { "line": 511, "column": 64 }, "end": { "line": 511, "column": 65 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17092, "end": 17093, "loc": { "start": { "line": 512, "column": 8 }, "end": { "line": 512, "column": 9 } } }, { "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": 17103, "end": 17109, "loc": { "start": { "line": 513, "column": 8 }, "end": { "line": 513, "column": 14 } } }, { "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": 17110, "end": 17113, "loc": { "start": { "line": 513, "column": 15 }, "end": { "line": 513, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ShapeDefinition", "start": 17114, "end": 17129, "loc": { "start": { "line": 513, "column": 19 }, "end": { "line": 513, "column": 34 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17129, "end": 17130, "loc": { "start": { "line": 513, "column": 34 }, "end": { "line": 513, "column": 35 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17130, "end": 17131, "loc": { "start": { "line": 513, "column": 35 }, "end": { "line": 513, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 17132, "end": 17138, "loc": { "start": { "line": 513, "column": 37 }, "end": { "line": 513, "column": 43 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17138, "end": 17139, "loc": { "start": { "line": 513, "column": 43 }, "end": { "line": 513, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 17140, "end": 17149, "loc": { "start": { "line": 513, "column": 45 }, "end": { "line": 513, "column": 54 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17150, "end": 17151, "loc": { "start": { "line": 513, "column": 55 }, "end": { "line": 513, "column": 56 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17151, "end": 17152, "loc": { "start": { "line": 513, "column": 56 }, "end": { "line": 513, "column": 57 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17152, "end": 17153, "loc": { "start": { "line": 513, "column": 57 }, "end": { "line": 513, "column": 58 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17159, "end": 17160, "loc": { "start": { "line": 514, "column": 4 }, "end": { "line": 514, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Stacks the given shape definition on top.\r\n * @param {ShapeDefinition} definition\r\n ", "start": 17168, "end": 17274, "loc": { "start": { "line": 516, "column": 4 }, "end": { "line": 519, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cloneAndStackWith", "start": 17280, "end": 17297, "loc": { "start": { "line": 520, "column": 4 }, "end": { "line": 520, "column": 21 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17297, "end": 17298, "loc": { "start": { "line": 520, "column": 21 }, "end": { "line": 520, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 17298, "end": 17308, "loc": { "start": { "line": 520, "column": 22 }, "end": { "line": 520, "column": 32 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17308, "end": 17309, "loc": { "start": { "line": 520, "column": 32 }, "end": { "line": 520, "column": 33 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17310, "end": 17311, "loc": { "start": { "line": 520, "column": 34 }, "end": { "line": 520, "column": 35 } } }, { "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": 17321, "end": 17323, "loc": { "start": { "line": 521, "column": 8 }, "end": { "line": 521, "column": 10 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17324, "end": 17325, "loc": { "start": { "line": 521, "column": 11 }, "end": { "line": 521, "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": 17325, "end": 17329, "loc": { "start": { "line": 521, "column": 12 }, "end": { "line": 521, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17329, "end": 17330, "loc": { "start": { "line": 521, "column": 16 }, "end": { "line": 521, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "isEntirelyEmpty", "start": 17330, "end": 17345, "loc": { "start": { "line": 521, "column": 17 }, "end": { "line": 521, "column": 32 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17345, "end": 17346, "loc": { "start": { "line": 521, "column": 32 }, "end": { "line": 521, "column": 33 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17346, "end": 17347, "loc": { "start": { "line": 521, "column": 33 }, "end": { "line": 521, "column": 34 } } }, { "type": { "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 1, "updateContext": null }, "value": "||", "start": 17348, "end": 17350, "loc": { "start": { "line": 521, "column": 35 }, "end": { "line": 521, "column": 37 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 17351, "end": 17361, "loc": { "start": { "line": 521, "column": 38 }, "end": { "line": 521, "column": 48 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17361, "end": 17362, "loc": { "start": { "line": 521, "column": 48 }, "end": { "line": 521, "column": 49 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "isEntirelyEmpty", "start": 17362, "end": 17377, "loc": { "start": { "line": 521, "column": 49 }, "end": { "line": 521, "column": 64 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17377, "end": 17378, "loc": { "start": { "line": 521, "column": 64 }, "end": { "line": 521, "column": 65 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17378, "end": 17379, "loc": { "start": { "line": 521, "column": 65 }, "end": { "line": 521, "column": 66 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17379, "end": 17380, "loc": { "start": { "line": 521, "column": 66 }, "end": { "line": 521, "column": 67 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17381, "end": 17382, "loc": { "start": { "line": 521, "column": 68 }, "end": { "line": 521, "column": 69 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "assert", "start": 17396, "end": 17402, "loc": { "start": { "line": 522, "column": 12 }, "end": { "line": 522, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17402, "end": 17403, "loc": { "start": { "line": 522, "column": 18 }, "end": { "line": 522, "column": 19 } } }, { "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": 17403, "end": 17408, "loc": { "start": { "line": 522, "column": 19 }, "end": { "line": 522, "column": 24 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17408, "end": 17409, "loc": { "start": { "line": 522, "column": 24 }, "end": { "line": 522, "column": 25 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Can not stack entirely empty definition", "start": 17410, "end": 17451, "loc": { "start": { "line": 522, "column": 26 }, "end": { "line": 522, "column": 67 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17451, "end": 17452, "loc": { "start": { "line": 522, "column": 67 }, "end": { "line": 522, "column": 68 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17452, "end": 17453, "loc": { "start": { "line": 522, "column": 68 }, "end": { "line": 522, "column": 69 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17463, "end": 17464, "loc": { "start": { "line": 523, "column": 8 }, "end": { "line": 523, "column": 9 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 17476, "end": 17481, "loc": { "start": { "line": 525, "column": 8 }, "end": { "line": 525, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bottomShapeLayers", "start": 17482, "end": 17499, "loc": { "start": { "line": 525, "column": 14 }, "end": { "line": 525, "column": 31 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 17500, "end": 17501, "loc": { "start": { "line": 525, "column": 32 }, "end": { "line": 525, "column": 33 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 17502, "end": 17506, "loc": { "start": { "line": 525, "column": 34 }, "end": { "line": 525, "column": 38 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17506, "end": 17507, "loc": { "start": { "line": 525, "column": 38 }, "end": { "line": 525, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 17507, "end": 17513, "loc": { "start": { "line": 525, "column": 39 }, "end": { "line": 525, "column": 45 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17513, "end": 17514, "loc": { "start": { "line": 525, "column": 45 }, "end": { "line": 525, "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": 17524, "end": 17529, "loc": { "start": { "line": 526, "column": 8 }, "end": { "line": 526, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bottomShapeHighestLayerByQuad", "start": 17530, "end": 17559, "loc": { "start": { "line": 526, "column": 14 }, "end": { "line": 526, "column": 43 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 17560, "end": 17561, "loc": { "start": { "line": 526, "column": 44 }, "end": { "line": 526, "column": 45 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17562, "end": 17563, "loc": { "start": { "line": 526, "column": 46 }, "end": { "line": 526, "column": 47 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 17563, "end": 17564, "loc": { "start": { "line": 526, "column": 47 }, "end": { "line": 526, "column": 48 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 17564, "end": 17565, "loc": { "start": { "line": 526, "column": 48 }, "end": { "line": 526, "column": 49 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17565, "end": 17566, "loc": { "start": { "line": 526, "column": 49 }, "end": { "line": 526, "column": 50 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 17567, "end": 17568, "loc": { "start": { "line": 526, "column": 51 }, "end": { "line": 526, "column": 52 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 17568, "end": 17569, "loc": { "start": { "line": 526, "column": 52 }, "end": { "line": 526, "column": 53 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17569, "end": 17570, "loc": { "start": { "line": 526, "column": 53 }, "end": { "line": 526, "column": 54 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 17571, "end": 17572, "loc": { "start": { "line": 526, "column": 55 }, "end": { "line": 526, "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": 17572, "end": 17573, "loc": { "start": { "line": 526, "column": 56 }, "end": { "line": 526, "column": 57 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17573, "end": 17574, "loc": { "start": { "line": 526, "column": 57 }, "end": { "line": 526, "column": 58 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 17575, "end": 17576, "loc": { "start": { "line": 526, "column": 59 }, "end": { "line": 526, "column": 60 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 1, "start": 17576, "end": 17577, "loc": { "start": { "line": 526, "column": 60 }, "end": { "line": 526, "column": 61 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17577, "end": 17578, "loc": { "start": { "line": 526, "column": 61 }, "end": { "line": 526, "column": 62 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17578, "end": 17579, "loc": { "start": { "line": 526, "column": 62 }, "end": { "line": 526, "column": 63 } } }, { "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": 17591, "end": 17594, "loc": { "start": { "line": 528, "column": 8 }, "end": { "line": 528, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17595, "end": 17596, "loc": { "start": { "line": 528, "column": 12 }, "end": { "line": 528, "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": 17596, "end": 17599, "loc": { "start": { "line": 528, "column": 13 }, "end": { "line": 528, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 17600, "end": 17605, "loc": { "start": { "line": 528, "column": 17 }, "end": { "line": 528, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 17606, "end": 17607, "loc": { "start": { "line": 528, "column": 23 }, "end": { "line": 528, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bottomShapeLayers", "start": 17608, "end": 17625, "loc": { "start": { "line": 528, "column": 25 }, "end": { "line": 528, "column": 42 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17625, "end": 17626, "loc": { "start": { "line": 528, "column": 42 }, "end": { "line": 528, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 17626, "end": 17632, "loc": { "start": { "line": 528, "column": 43 }, "end": { "line": 528, "column": 49 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 17633, "end": 17634, "loc": { "start": { "line": 528, "column": 50 }, "end": { "line": 528, "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": 17635, "end": 17636, "loc": { "start": { "line": 528, "column": 52 }, "end": { "line": 528, "column": 53 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17636, "end": 17637, "loc": { "start": { "line": 528, "column": 53 }, "end": { "line": 528, "column": 54 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 17638, "end": 17643, "loc": { "start": { "line": 528, "column": 55 }, "end": { "line": 528, "column": 60 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": ">=", "start": 17644, "end": 17646, "loc": { "start": { "line": 528, "column": 61 }, "end": { "line": 528, "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": 17647, "end": 17648, "loc": { "start": { "line": 528, "column": 64 }, "end": { "line": 528, "column": 65 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17648, "end": 17649, "loc": { "start": { "line": 528, "column": 65 }, "end": { "line": 528, "column": 66 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "--", "start": 17650, "end": 17652, "loc": { "start": { "line": 528, "column": 67 }, "end": { "line": 528, "column": 69 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 17652, "end": 17657, "loc": { "start": { "line": 528, "column": 69 }, "end": { "line": 528, "column": 74 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17657, "end": 17658, "loc": { "start": { "line": 528, "column": 74 }, "end": { "line": 528, "column": 75 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17659, "end": 17660, "loc": { "start": { "line": 528, "column": 76 }, "end": { "line": 528, "column": 77 } } }, { "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": 17674, "end": 17679, "loc": { "start": { "line": 529, "column": 12 }, "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": "shapeLayer", "start": 17680, "end": 17690, "loc": { "start": { "line": 529, "column": 18 }, "end": { "line": 529, "column": 28 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 17691, "end": 17692, "loc": { "start": { "line": 529, "column": 29 }, "end": { "line": 529, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bottomShapeLayers", "start": 17693, "end": 17710, "loc": { "start": { "line": 529, "column": 31 }, "end": { "line": 529, "column": 48 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17710, "end": 17711, "loc": { "start": { "line": 529, "column": 48 }, "end": { "line": 529, "column": 49 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 17711, "end": 17716, "loc": { "start": { "line": 529, "column": 49 }, "end": { "line": 529, "column": 54 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17716, "end": 17717, "loc": { "start": { "line": 529, "column": 54 }, "end": { "line": 529, "column": 55 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17717, "end": 17718, "loc": { "start": { "line": 529, "column": 55 }, "end": { "line": 529, "column": 56 } } }, { "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": 17732, "end": 17735, "loc": { "start": { "line": 530, "column": 12 }, "end": { "line": 530, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17736, "end": 17737, "loc": { "start": { "line": 530, "column": 16 }, "end": { "line": 530, "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": 17737, "end": 17740, "loc": { "start": { "line": 530, "column": 17 }, "end": { "line": 530, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 17741, "end": 17745, "loc": { "start": { "line": 530, "column": 21 }, "end": { "line": 530, "column": 25 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 17746, "end": 17747, "loc": { "start": { "line": 530, "column": 26 }, "end": { "line": 530, "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": 17748, "end": 17749, "loc": { "start": { "line": 530, "column": 28 }, "end": { "line": 530, "column": 29 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17749, "end": 17750, "loc": { "start": { "line": 530, "column": 29 }, "end": { "line": 530, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 17751, "end": 17755, "loc": { "start": { "line": 530, "column": 31 }, "end": { "line": 530, "column": 35 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 17756, "end": 17757, "loc": { "start": { "line": 530, "column": 36 }, "end": { "line": 530, "column": 37 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 4, "start": 17758, "end": 17759, "loc": { "start": { "line": 530, "column": 38 }, "end": { "line": 530, "column": 39 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17759, "end": 17760, "loc": { "start": { "line": 530, "column": 39 }, "end": { "line": 530, "column": 40 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 17761, "end": 17763, "loc": { "start": { "line": 530, "column": 41 }, "end": { "line": 530, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 17763, "end": 17767, "loc": { "start": { "line": 530, "column": 43 }, "end": { "line": 530, "column": 47 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17767, "end": 17768, "loc": { "start": { "line": 530, "column": 47 }, "end": { "line": 530, "column": 48 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17769, "end": 17770, "loc": { "start": { "line": 530, "column": 49 }, "end": { "line": 530, "column": 50 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 17788, "end": 17793, "loc": { "start": { "line": 531, "column": 16 }, "end": { "line": 531, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeQuad", "start": 17794, "end": 17803, "loc": { "start": { "line": 531, "column": 22 }, "end": { "line": 531, "column": 31 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 17804, "end": 17805, "loc": { "start": { "line": 531, "column": 32 }, "end": { "line": 531, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeLayer", "start": 17806, "end": 17816, "loc": { "start": { "line": 531, "column": 34 }, "end": { "line": 531, "column": 44 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17816, "end": 17817, "loc": { "start": { "line": 531, "column": 44 }, "end": { "line": 531, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 17817, "end": 17821, "loc": { "start": { "line": 531, "column": 45 }, "end": { "line": 531, "column": 49 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17821, "end": 17822, "loc": { "start": { "line": 531, "column": 49 }, "end": { "line": 531, "column": 50 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17822, "end": 17823, "loc": { "start": { "line": 531, "column": 50 }, "end": { "line": 531, "column": 51 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 17841, "end": 17843, "loc": { "start": { "line": 532, "column": 16 }, "end": { "line": 532, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17844, "end": 17845, "loc": { "start": { "line": 532, "column": 19 }, "end": { "line": 532, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeQuad", "start": 17845, "end": 17854, "loc": { "start": { "line": 532, "column": 20 }, "end": { "line": 532, "column": 29 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "!==", "start": 17855, "end": 17858, "loc": { "start": { "line": 532, "column": 30 }, "end": { "line": 532, "column": 33 } } }, { "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": 17859, "end": 17863, "loc": { "start": { "line": 532, "column": 34 }, "end": { "line": 532, "column": 38 } } }, { "type": { "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 2, "updateContext": null }, "value": "&&", "start": 17864, "end": 17866, "loc": { "start": { "line": 532, "column": 39 }, "end": { "line": 532, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bottomShapeHighestLayerByQuad", "start": 17867, "end": 17896, "loc": { "start": { "line": 532, "column": 42 }, "end": { "line": 532, "column": 71 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17896, "end": 17897, "loc": { "start": { "line": 532, "column": 71 }, "end": { "line": 532, "column": 72 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 17897, "end": 17901, "loc": { "start": { "line": 532, "column": 72 }, "end": { "line": 532, "column": 76 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17901, "end": 17902, "loc": { "start": { "line": 532, "column": 76 }, "end": { "line": 532, "column": 77 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 17903, "end": 17904, "loc": { "start": { "line": 532, "column": 78 }, "end": { "line": 532, "column": 79 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 17905, "end": 17910, "loc": { "start": { "line": 532, "column": 80 }, "end": { "line": 532, "column": 85 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17910, "end": 17911, "loc": { "start": { "line": 532, "column": 85 }, "end": { "line": 532, "column": 86 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17912, "end": 17913, "loc": { "start": { "line": 532, "column": 87 }, "end": { "line": 532, "column": 88 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bottomShapeHighestLayerByQuad", "start": 17935, "end": 17964, "loc": { "start": { "line": 533, "column": 20 }, "end": { "line": 533, "column": 49 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17964, "end": 17965, "loc": { "start": { "line": 533, "column": 49 }, "end": { "line": 533, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 17965, "end": 17969, "loc": { "start": { "line": 533, "column": 50 }, "end": { "line": 533, "column": 54 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17969, "end": 17970, "loc": { "start": { "line": 533, "column": 54 }, "end": { "line": 533, "column": 55 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 17971, "end": 17972, "loc": { "start": { "line": 533, "column": 56 }, "end": { "line": 533, "column": 57 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 17973, "end": 17978, "loc": { "start": { "line": 533, "column": 58 }, "end": { "line": 533, "column": 63 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 17978, "end": 17979, "loc": { "start": { "line": 533, "column": 63 }, "end": { "line": 533, "column": 64 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17997, "end": 17998, "loc": { "start": { "line": 534, "column": 16 }, "end": { "line": 534, "column": 17 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 18012, "end": 18013, "loc": { "start": { "line": 535, "column": 12 }, "end": { "line": 535, "column": 13 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 18023, "end": 18024, "loc": { "start": { "line": 536, "column": 8 }, "end": { "line": 536, "column": 9 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 18036, "end": 18041, "loc": { "start": { "line": 538, "column": 8 }, "end": { "line": 538, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "topShapeLayers", "start": 18042, "end": 18056, "loc": { "start": { "line": 538, "column": 14 }, "end": { "line": 538, "column": 28 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 18057, "end": 18058, "loc": { "start": { "line": 538, "column": 29 }, "end": { "line": 538, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "definition", "start": 18059, "end": 18069, "loc": { "start": { "line": 538, "column": 31 }, "end": { "line": 538, "column": 41 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18069, "end": 18070, "loc": { "start": { "line": 538, "column": 41 }, "end": { "line": 538, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 18070, "end": 18076, "loc": { "start": { "line": 538, "column": 42 }, "end": { "line": 538, "column": 48 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18076, "end": 18077, "loc": { "start": { "line": 538, "column": 48 }, "end": { "line": 538, "column": 49 } } }, { "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": 18087, "end": 18092, "loc": { "start": { "line": 539, "column": 8 }, "end": { "line": 539, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "topShapeLowestLayerByQuad", "start": 18093, "end": 18118, "loc": { "start": { "line": 539, "column": 14 }, "end": { "line": 539, "column": 39 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 18119, "end": 18120, "loc": { "start": { "line": 539, "column": 40 }, "end": { "line": 539, "column": 41 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18121, "end": 18122, "loc": { "start": { "line": 539, "column": 42 }, "end": { "line": 539, "column": 43 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 4, "start": 18122, "end": 18123, "loc": { "start": { "line": 539, "column": 43 }, "end": { "line": 539, "column": 44 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18123, "end": 18124, "loc": { "start": { "line": 539, "column": 44 }, "end": { "line": 539, "column": 45 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 4, "start": 18125, "end": 18126, "loc": { "start": { "line": 539, "column": 46 }, "end": { "line": 539, "column": 47 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18126, "end": 18127, "loc": { "start": { "line": 539, "column": 47 }, "end": { "line": 539, "column": 48 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 4, "start": 18128, "end": 18129, "loc": { "start": { "line": 539, "column": 49 }, "end": { "line": 539, "column": 50 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18129, "end": 18130, "loc": { "start": { "line": 539, "column": 50 }, "end": { "line": 539, "column": 51 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 4, "start": 18131, "end": 18132, "loc": { "start": { "line": 539, "column": 52 }, "end": { "line": 539, "column": 53 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18132, "end": 18133, "loc": { "start": { "line": 539, "column": 53 }, "end": { "line": 539, "column": 54 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18133, "end": 18134, "loc": { "start": { "line": 539, "column": 54 }, "end": { "line": 539, "column": 55 } } }, { "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": 18146, "end": 18149, "loc": { "start": { "line": 541, "column": 8 }, "end": { "line": 541, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 18150, "end": 18151, "loc": { "start": { "line": 541, "column": 12 }, "end": { "line": 541, "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": 18151, "end": 18154, "loc": { "start": { "line": 541, "column": 13 }, "end": { "line": 541, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 18155, "end": 18160, "loc": { "start": { "line": 541, "column": 17 }, "end": { "line": 541, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 18161, "end": 18162, "loc": { "start": { "line": 541, "column": 23 }, "end": { "line": 541, "column": 24 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 18163, "end": 18164, "loc": { "start": { "line": 541, "column": 25 }, "end": { "line": 541, "column": 26 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18164, "end": 18165, "loc": { "start": { "line": 541, "column": 26 }, "end": { "line": 541, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 18166, "end": 18171, "loc": { "start": { "line": 541, "column": 28 }, "end": { "line": 541, "column": 33 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 18172, "end": 18173, "loc": { "start": { "line": 541, "column": 34 }, "end": { "line": 541, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "topShapeLayers", "start": 18174, "end": 18188, "loc": { "start": { "line": 541, "column": 36 }, "end": { "line": 541, "column": 50 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18188, "end": 18189, "loc": { "start": { "line": 541, "column": 50 }, "end": { "line": 541, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 18189, "end": 18195, "loc": { "start": { "line": 541, "column": 51 }, "end": { "line": 541, "column": 57 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18195, "end": 18196, "loc": { "start": { "line": 541, "column": 57 }, "end": { "line": 541, "column": 58 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 18197, "end": 18199, "loc": { "start": { "line": 541, "column": 59 }, "end": { "line": 541, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 18199, "end": 18204, "loc": { "start": { "line": 541, "column": 61 }, "end": { "line": 541, "column": 66 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 18204, "end": 18205, "loc": { "start": { "line": 541, "column": 66 }, "end": { "line": 541, "column": 67 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 18206, "end": 18207, "loc": { "start": { "line": 541, "column": 68 }, "end": { "line": 541, "column": 69 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 18221, "end": 18226, "loc": { "start": { "line": 542, "column": 12 }, "end": { "line": 542, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeLayer", "start": 18227, "end": 18237, "loc": { "start": { "line": 542, "column": 18 }, "end": { "line": 542, "column": 28 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 18238, "end": 18239, "loc": { "start": { "line": 542, "column": 29 }, "end": { "line": 542, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "topShapeLayers", "start": 18240, "end": 18254, "loc": { "start": { "line": 542, "column": 31 }, "end": { "line": 542, "column": 45 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18254, "end": 18255, "loc": { "start": { "line": 542, "column": 45 }, "end": { "line": 542, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 18255, "end": 18260, "loc": { "start": { "line": 542, "column": 46 }, "end": { "line": 542, "column": 51 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18260, "end": 18261, "loc": { "start": { "line": 542, "column": 51 }, "end": { "line": 542, "column": 52 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18261, "end": 18262, "loc": { "start": { "line": 542, "column": 52 }, "end": { "line": 542, "column": 53 } } }, { "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": 18276, "end": 18279, "loc": { "start": { "line": 543, "column": 12 }, "end": { "line": 543, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 18280, "end": 18281, "loc": { "start": { "line": 543, "column": 16 }, "end": { "line": 543, "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": 18281, "end": 18284, "loc": { "start": { "line": 543, "column": 17 }, "end": { "line": 543, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 18285, "end": 18289, "loc": { "start": { "line": 543, "column": 21 }, "end": { "line": 543, "column": 25 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 18290, "end": 18291, "loc": { "start": { "line": 543, "column": 26 }, "end": { "line": 543, "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": 18292, "end": 18293, "loc": { "start": { "line": 543, "column": 28 }, "end": { "line": 543, "column": 29 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18293, "end": 18294, "loc": { "start": { "line": 543, "column": 29 }, "end": { "line": 543, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 18295, "end": 18299, "loc": { "start": { "line": 543, "column": 31 }, "end": { "line": 543, "column": 35 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 18300, "end": 18301, "loc": { "start": { "line": 543, "column": 36 }, "end": { "line": 543, "column": 37 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 4, "start": 18302, "end": 18303, "loc": { "start": { "line": 543, "column": 38 }, "end": { "line": 543, "column": 39 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18303, "end": 18304, "loc": { "start": { "line": 543, "column": 39 }, "end": { "line": 543, "column": 40 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 18305, "end": 18307, "loc": { "start": { "line": 543, "column": 41 }, "end": { "line": 543, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 18307, "end": 18311, "loc": { "start": { "line": 543, "column": 43 }, "end": { "line": 543, "column": 47 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 18311, "end": 18312, "loc": { "start": { "line": 543, "column": 47 }, "end": { "line": 543, "column": 48 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 18313, "end": 18314, "loc": { "start": { "line": 543, "column": 49 }, "end": { "line": 543, "column": 50 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 18332, "end": 18337, "loc": { "start": { "line": 544, "column": 16 }, "end": { "line": 544, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeQuad", "start": 18338, "end": 18347, "loc": { "start": { "line": 544, "column": 22 }, "end": { "line": 544, "column": 31 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 18348, "end": 18349, "loc": { "start": { "line": 544, "column": 32 }, "end": { "line": 544, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeLayer", "start": 18350, "end": 18360, "loc": { "start": { "line": 544, "column": 34 }, "end": { "line": 544, "column": 44 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18360, "end": 18361, "loc": { "start": { "line": 544, "column": 44 }, "end": { "line": 544, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 18361, "end": 18365, "loc": { "start": { "line": 544, "column": 45 }, "end": { "line": 544, "column": 49 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18365, "end": 18366, "loc": { "start": { "line": 544, "column": 49 }, "end": { "line": 544, "column": 50 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18366, "end": 18367, "loc": { "start": { "line": 544, "column": 50 }, "end": { "line": 544, "column": 51 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 18385, "end": 18387, "loc": { "start": { "line": 545, "column": 16 }, "end": { "line": 545, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 18388, "end": 18389, "loc": { "start": { "line": 545, "column": 19 }, "end": { "line": 545, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "shapeQuad", "start": 18389, "end": 18398, "loc": { "start": { "line": 545, "column": 20 }, "end": { "line": 545, "column": 29 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "!==", "start": 18399, "end": 18402, "loc": { "start": { "line": 545, "column": 30 }, "end": { "line": 545, "column": 33 } } }, { "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": 18403, "end": 18407, "loc": { "start": { "line": 545, "column": 34 }, "end": { "line": 545, "column": 38 } } }, { "type": { "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 2, "updateContext": null }, "value": "&&", "start": 18408, "end": 18410, "loc": { "start": { "line": 545, "column": 39 }, "end": { "line": 545, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "topShapeLowestLayerByQuad", "start": 18411, "end": 18436, "loc": { "start": { "line": 545, "column": 42 }, "end": { "line": 545, "column": 67 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18436, "end": 18437, "loc": { "start": { "line": 545, "column": 67 }, "end": { "line": 545, "column": 68 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 18437, "end": 18441, "loc": { "start": { "line": 545, "column": 68 }, "end": { "line": 545, "column": 72 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18441, "end": 18442, "loc": { "start": { "line": 545, "column": 72 }, "end": { "line": 545, "column": 73 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": ">", "start": 18443, "end": 18444, "loc": { "start": { "line": 545, "column": 74 }, "end": { "line": 545, "column": 75 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 18445, "end": 18450, "loc": { "start": { "line": 545, "column": 76 }, "end": { "line": 545, "column": 81 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 18450, "end": 18451, "loc": { "start": { "line": 545, "column": 81 }, "end": { "line": 545, "column": 82 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 18452, "end": 18453, "loc": { "start": { "line": 545, "column": 83 }, "end": { "line": 545, "column": 84 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "topShapeLowestLayerByQuad", "start": 18475, "end": 18500, "loc": { "start": { "line": 546, "column": 20 }, "end": { "line": 546, "column": 45 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18500, "end": 18501, "loc": { "start": { "line": 546, "column": 45 }, "end": { "line": 546, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 18501, "end": 18505, "loc": { "start": { "line": 546, "column": 46 }, "end": { "line": 546, "column": 50 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18505, "end": 18506, "loc": { "start": { "line": 546, "column": 50 }, "end": { "line": 546, "column": 51 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 18507, "end": 18508, "loc": { "start": { "line": 546, "column": 52 }, "end": { "line": 546, "column": 53 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 18509, "end": 18514, "loc": { "start": { "line": 546, "column": 54 }, "end": { "line": 546, "column": 59 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 18514, "end": 18515, "loc": { "start": { "line": 546, "column": 59 }, "end": { "line": 546, "column": 60 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 18533, "end": 18534, "loc": { "start": { "line": 547, "column": 16 }, "end": { "line": 547, "column": 17 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 18548, "end": 18549, "loc": { "start": { "line": 548, "column": 12 }, "end": { "line": 548, "column": 13 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 18559, "end": 18560, "loc": { "start": { "line": 549, "column": 8 }, "end": { "line": 549, "column": 9 } } }, { "type": "CommentBlock", "value": "*\r\n * We want to find the number `layerToMergeAt` such that when the top shape is placed at that\r\n * layer, the smallest gap between shapes is only 1. Instead of doing a guess-and-check method to\r\n * find the appropriate layer, we just calculate all the gaps assuming a merge at layer 0, even\r\n * though they go negative, and calculating the number to add to it so the minimum gap is 1 (ends\r\n * up being 1 - minimum).\r\n ", "start": 18572, "end": 19045, "loc": { "start": { "line": 551, "column": 8 }, "end": { "line": 557, "column": 11 } } }, { "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": 19055, "end": 19060, "loc": { "start": { "line": 558, "column": 8 }, "end": { "line": 558, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "gapsBetweenShapes", "start": 19061, "end": 19078, "loc": { "start": { "line": 558, "column": 14 }, "end": { "line": 558, "column": 31 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 19079, "end": 19080, "loc": { "start": { "line": 558, "column": 32 }, "end": { "line": 558, "column": 33 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19081, "end": 19082, "loc": { "start": { "line": 558, "column": 34 }, "end": { "line": 558, "column": 35 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19082, "end": 19083, "loc": { "start": { "line": 558, "column": 35 }, "end": { "line": 558, "column": 36 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19083, "end": 19084, "loc": { "start": { "line": 558, "column": 36 }, "end": { "line": 558, "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": 19094, "end": 19097, "loc": { "start": { "line": 559, "column": 8 }, "end": { "line": 559, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19098, "end": 19099, "loc": { "start": { "line": 559, "column": 12 }, "end": { "line": 559, "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": 19099, "end": 19102, "loc": { "start": { "line": 559, "column": 13 }, "end": { "line": 559, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 19103, "end": 19107, "loc": { "start": { "line": 559, "column": 17 }, "end": { "line": 559, "column": 21 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 19108, "end": 19109, "loc": { "start": { "line": 559, "column": 22 }, "end": { "line": 559, "column": 23 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 19110, "end": 19111, "loc": { "start": { "line": 559, "column": 24 }, "end": { "line": 559, "column": 25 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19111, "end": 19112, "loc": { "start": { "line": 559, "column": 25 }, "end": { "line": 559, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 19113, "end": 19117, "loc": { "start": { "line": 559, "column": 27 }, "end": { "line": 559, "column": 31 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 19118, "end": 19119, "loc": { "start": { "line": 559, "column": 32 }, "end": { "line": 559, "column": 33 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 4, "start": 19120, "end": 19121, "loc": { "start": { "line": 559, "column": 34 }, "end": { "line": 559, "column": 35 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19121, "end": 19122, "loc": { "start": { "line": 559, "column": 35 }, "end": { "line": 559, "column": 36 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 19123, "end": 19125, "loc": { "start": { "line": 559, "column": 37 }, "end": { "line": 559, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 19125, "end": 19129, "loc": { "start": { "line": 559, "column": 39 }, "end": { "line": 559, "column": 43 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19129, "end": 19130, "loc": { "start": { "line": 559, "column": 43 }, "end": { "line": 559, "column": 44 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19131, "end": 19132, "loc": { "start": { "line": 559, "column": 45 }, "end": { "line": 559, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "gapsBetweenShapes", "start": 19146, "end": 19163, "loc": { "start": { "line": 560, "column": 12 }, "end": { "line": 560, "column": 29 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19163, "end": 19164, "loc": { "start": { "line": 560, "column": 29 }, "end": { "line": 560, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "push", "start": 19164, "end": 19168, "loc": { "start": { "line": 560, "column": 30 }, "end": { "line": 560, "column": 34 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19168, "end": 19169, "loc": { "start": { "line": 560, "column": 34 }, "end": { "line": 560, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "topShapeLowestLayerByQuad", "start": 19169, "end": 19194, "loc": { "start": { "line": 560, "column": 35 }, "end": { "line": 560, "column": 60 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19194, "end": 19195, "loc": { "start": { "line": 560, "column": 60 }, "end": { "line": 560, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 19195, "end": 19199, "loc": { "start": { "line": 560, "column": 61 }, "end": { "line": 560, "column": 65 } } }, { "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": 560, "column": 65 }, "end": { "line": 560, "column": 66 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 19201, "end": 19202, "loc": { "start": { "line": 560, "column": 67 }, "end": { "line": 560, "column": 68 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bottomShapeHighestLayerByQuad", "start": 19203, "end": 19232, "loc": { "start": { "line": 560, "column": 69 }, "end": { "line": 560, "column": 98 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19232, "end": 19233, "loc": { "start": { "line": 560, "column": 98 }, "end": { "line": 560, "column": 99 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 19233, "end": 19237, "loc": { "start": { "line": 560, "column": 99 }, "end": { "line": 560, "column": 103 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19237, "end": 19238, "loc": { "start": { "line": 560, "column": 103 }, "end": { "line": 560, "column": 104 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19238, "end": 19239, "loc": { "start": { "line": 560, "column": 104 }, "end": { "line": 560, "column": 105 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19239, "end": 19240, "loc": { "start": { "line": 560, "column": 105 }, "end": { "line": 560, "column": 106 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19250, "end": 19251, "loc": { "start": { "line": 561, "column": 8 }, "end": { "line": 561, "column": 9 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 19261, "end": 19266, "loc": { "start": { "line": 562, "column": 8 }, "end": { "line": 562, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "smallestGapBetweenShapes", "start": 19267, "end": 19291, "loc": { "start": { "line": 562, "column": 14 }, "end": { "line": 562, "column": 38 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 19292, "end": 19293, "loc": { "start": { "line": 562, "column": 39 }, "end": { "line": 562, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Math", "start": 19294, "end": 19298, "loc": { "start": { "line": 562, "column": 41 }, "end": { "line": 562, "column": 45 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19298, "end": 19299, "loc": { "start": { "line": 562, "column": 45 }, "end": { "line": 562, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "min", "start": 19299, "end": 19302, "loc": { "start": { "line": 562, "column": 46 }, "end": { "line": 562, "column": 49 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19302, "end": 19303, "loc": { "start": { "line": 562, "column": 49 }, "end": { "line": 562, "column": 50 } } }, { "type": { "label": "...", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19303, "end": 19306, "loc": { "start": { "line": 562, "column": 50 }, "end": { "line": 562, "column": 53 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "gapsBetweenShapes", "start": 19306, "end": 19323, "loc": { "start": { "line": 562, "column": 53 }, "end": { "line": 562, "column": 70 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19323, "end": 19324, "loc": { "start": { "line": 562, "column": 70 }, "end": { "line": 562, "column": 71 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19324, "end": 19325, "loc": { "start": { "line": 562, "column": 71 }, "end": { "line": 562, "column": 72 } } }, { "type": "CommentLine", "value": " Can't merge at a layer lower than 0", "start": 19335, "end": 19373, "loc": { "start": { "line": 563, "column": 8 }, "end": { "line": 563, "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": 19383, "end": 19388, "loc": { "start": { "line": 564, "column": 8 }, "end": { "line": 564, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerToMergeAt", "start": 19389, "end": 19403, "loc": { "start": { "line": 564, "column": 14 }, "end": { "line": 564, "column": 28 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 19404, "end": 19405, "loc": { "start": { "line": 564, "column": 29 }, "end": { "line": 564, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Math", "start": 19406, "end": 19410, "loc": { "start": { "line": 564, "column": 31 }, "end": { "line": 564, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19410, "end": 19411, "loc": { "start": { "line": 564, "column": 35 }, "end": { "line": 564, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "max", "start": 19411, "end": 19414, "loc": { "start": { "line": 564, "column": 36 }, "end": { "line": 564, "column": 39 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19414, "end": 19415, "loc": { "start": { "line": 564, "column": 39 }, "end": { "line": 564, "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": 19415, "end": 19416, "loc": { "start": { "line": 564, "column": 40 }, "end": { "line": 564, "column": 41 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "-", "start": 19417, "end": 19418, "loc": { "start": { "line": 564, "column": 42 }, "end": { "line": 564, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "smallestGapBetweenShapes", "start": 19419, "end": 19443, "loc": { "start": { "line": 564, "column": 44 }, "end": { "line": 564, "column": 68 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19443, "end": 19444, "loc": { "start": { "line": 564, "column": 68 }, "end": { "line": 564, "column": 69 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 19445, "end": 19446, "loc": { "start": { "line": 564, "column": 70 }, "end": { "line": 564, "column": 71 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19446, "end": 19447, "loc": { "start": { "line": 564, "column": 71 }, "end": { "line": 564, "column": 72 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19447, "end": 19448, "loc": { "start": { "line": 564, "column": 72 }, "end": { "line": 564, "column": 73 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 19460, "end": 19465, "loc": { "start": { "line": 566, "column": 8 }, "end": { "line": 566, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "mergedLayers", "start": 19466, "end": 19478, "loc": { "start": { "line": 566, "column": 14 }, "end": { "line": 566, "column": 26 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 19479, "end": 19480, "loc": { "start": { "line": 566, "column": 27 }, "end": { "line": 566, "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": 19481, "end": 19485, "loc": { "start": { "line": 566, "column": 29 }, "end": { "line": 566, "column": 33 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19485, "end": 19486, "loc": { "start": { "line": 566, "column": 33 }, "end": { "line": 566, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "internalCloneLayers", "start": 19486, "end": 19505, "loc": { "start": { "line": 566, "column": 34 }, "end": { "line": 566, "column": 53 } } }, { "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": 566, "column": 53 }, "end": { "line": 566, "column": 54 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19506, "end": 19507, "loc": { "start": { "line": 566, "column": 54 }, "end": { "line": 566, "column": 55 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19507, "end": 19508, "loc": { "start": { "line": 566, "column": 55 }, "end": { "line": 566, "column": 56 } } }, { "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": 19518, "end": 19521, "loc": { "start": { "line": 567, "column": 8 }, "end": { "line": 567, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19522, "end": 19523, "loc": { "start": { "line": 567, "column": 12 }, "end": { "line": 567, "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": 19523, "end": 19526, "loc": { "start": { "line": 567, "column": 13 }, "end": { "line": 567, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 19527, "end": 19532, "loc": { "start": { "line": 567, "column": 17 }, "end": { "line": 567, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 19533, "end": 19534, "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": "mergedLayers", "start": 19535, "end": 19547, "loc": { "start": { "line": 567, "column": 25 }, "end": { "line": 567, "column": 37 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19547, "end": 19548, "loc": { "start": { "line": 567, "column": 37 }, "end": { "line": 567, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 19548, "end": 19554, "loc": { "start": { "line": 567, "column": 38 }, "end": { "line": 567, "column": 44 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19554, "end": 19555, "loc": { "start": { "line": 567, "column": 44 }, "end": { "line": 567, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 19556, "end": 19561, "loc": { "start": { "line": 567, "column": 46 }, "end": { "line": 567, "column": 51 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 19562, "end": 19563, "loc": { "start": { "line": 567, "column": 52 }, "end": { "line": 567, "column": 53 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerToMergeAt", "start": 19564, "end": 19578, "loc": { "start": { "line": 567, "column": 54 }, "end": { "line": 567, "column": 68 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 19579, "end": 19580, "loc": { "start": { "line": 567, "column": 69 }, "end": { "line": 567, "column": 70 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "topShapeLayers", "start": 19581, "end": 19595, "loc": { "start": { "line": 567, "column": 71 }, "end": { "line": 567, "column": 85 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19595, "end": 19596, "loc": { "start": { "line": 567, "column": 85 }, "end": { "line": 567, "column": 86 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 19596, "end": 19602, "loc": { "start": { "line": 567, "column": 86 }, "end": { "line": 567, "column": 92 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19602, "end": 19603, "loc": { "start": { "line": 567, "column": 92 }, "end": { "line": 567, "column": 93 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 19604, "end": 19606, "loc": { "start": { "line": 567, "column": 94 }, "end": { "line": 567, "column": 96 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 19606, "end": 19611, "loc": { "start": { "line": 567, "column": 96 }, "end": { "line": 567, "column": 101 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19611, "end": 19612, "loc": { "start": { "line": 567, "column": 101 }, "end": { "line": 567, "column": 102 } } }, { "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": 567, "column": 103 }, "end": { "line": 567, "column": 104 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "mergedLayers", "start": 19628, "end": 19640, "loc": { "start": { "line": 568, "column": 12 }, "end": { "line": 568, "column": 24 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19640, "end": 19641, "loc": { "start": { "line": 568, "column": 24 }, "end": { "line": 568, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "push", "start": 19641, "end": 19645, "loc": { "start": { "line": 568, "column": 25 }, "end": { "line": 568, "column": 29 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19645, "end": 19646, "loc": { "start": { "line": 568, "column": 29 }, "end": { "line": 568, "column": 30 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19646, "end": 19647, "loc": { "start": { "line": 568, "column": 30 }, "end": { "line": 568, "column": 31 } } }, { "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": 19647, "end": 19651, "loc": { "start": { "line": 568, "column": 31 }, "end": { "line": 568, "column": 35 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19651, "end": 19652, "loc": { "start": { "line": 568, "column": 35 }, "end": { "line": 568, "column": 36 } } }, { "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": 19653, "end": 19657, "loc": { "start": { "line": 568, "column": 37 }, "end": { "line": 568, "column": 41 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19657, "end": 19658, "loc": { "start": { "line": 568, "column": 41 }, "end": { "line": 568, "column": 42 } } }, { "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": 19659, "end": 19663, "loc": { "start": { "line": 568, "column": 43 }, "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": 19663, "end": 19664, "loc": { "start": { "line": 568, "column": 47 }, "end": { "line": 568, "column": 48 } } }, { "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": 19665, "end": 19669, "loc": { "start": { "line": 568, "column": 49 }, "end": { "line": 568, "column": 53 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19669, "end": 19670, "loc": { "start": { "line": 568, "column": 53 }, "end": { "line": 568, "column": 54 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19670, "end": 19671, "loc": { "start": { "line": 568, "column": 54 }, "end": { "line": 568, "column": 55 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19671, "end": 19672, "loc": { "start": { "line": 568, "column": 55 }, "end": { "line": 568, "column": 56 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19682, "end": 19683, "loc": { "start": { "line": 569, "column": 8 }, "end": { "line": 569, "column": 9 } } }, { "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": 19695, "end": 19698, "loc": { "start": { "line": 571, "column": 8 }, "end": { "line": 571, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19699, "end": 19700, "loc": { "start": { "line": 571, "column": 12 }, "end": { "line": 571, "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": 19700, "end": 19703, "loc": { "start": { "line": 571, "column": 13 }, "end": { "line": 571, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 19704, "end": 19709, "loc": { "start": { "line": 571, "column": 17 }, "end": { "line": 571, "column": 22 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 19710, "end": 19711, "loc": { "start": { "line": 571, "column": 23 }, "end": { "line": 571, "column": 24 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 19712, "end": 19713, "loc": { "start": { "line": 571, "column": 25 }, "end": { "line": 571, "column": 26 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19713, "end": 19714, "loc": { "start": { "line": 571, "column": 26 }, "end": { "line": 571, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 19715, "end": 19720, "loc": { "start": { "line": 571, "column": 28 }, "end": { "line": 571, "column": 33 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 19721, "end": 19722, "loc": { "start": { "line": 571, "column": 34 }, "end": { "line": 571, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "topShapeLayers", "start": 19723, "end": 19737, "loc": { "start": { "line": 571, "column": 36 }, "end": { "line": 571, "column": 50 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19737, "end": 19738, "loc": { "start": { "line": 571, "column": 50 }, "end": { "line": 571, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 19738, "end": 19744, "loc": { "start": { "line": 571, "column": 51 }, "end": { "line": 571, "column": 57 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19744, "end": 19745, "loc": { "start": { "line": 571, "column": 57 }, "end": { "line": 571, "column": 58 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 19746, "end": 19748, "loc": { "start": { "line": 571, "column": 59 }, "end": { "line": 571, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 19748, "end": 19753, "loc": { "start": { "line": 571, "column": 61 }, "end": { "line": 571, "column": 66 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19753, "end": 19754, "loc": { "start": { "line": 571, "column": 66 }, "end": { "line": 571, "column": 67 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19755, "end": 19756, "loc": { "start": { "line": 571, "column": 68 }, "end": { "line": 571, "column": 69 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 19770, "end": 19775, "loc": { "start": { "line": 572, "column": 12 }, "end": { "line": 572, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerMergingAt", "start": 19776, "end": 19790, "loc": { "start": { "line": 572, "column": 18 }, "end": { "line": 572, "column": 32 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 19791, "end": 19792, "loc": { "start": { "line": 572, "column": 33 }, "end": { "line": 572, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerToMergeAt", "start": 19793, "end": 19807, "loc": { "start": { "line": 572, "column": 35 }, "end": { "line": 572, "column": 49 } } }, { "type": { "label": "+/-", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": 9, "updateContext": null }, "value": "+", "start": 19808, "end": 19809, "loc": { "start": { "line": 572, "column": 50 }, "end": { "line": 572, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 19810, "end": 19815, "loc": { "start": { "line": 572, "column": 52 }, "end": { "line": 572, "column": 57 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19815, "end": 19816, "loc": { "start": { "line": 572, "column": 57 }, "end": { "line": 572, "column": 58 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 19830, "end": 19835, "loc": { "start": { "line": 573, "column": 12 }, "end": { "line": 573, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bottomShapeLayer", "start": 19836, "end": 19852, "loc": { "start": { "line": 573, "column": 18 }, "end": { "line": 573, "column": 34 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 19853, "end": 19854, "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": "mergedLayers", "start": 19855, "end": 19867, "loc": { "start": { "line": 573, "column": 37 }, "end": { "line": 573, "column": 49 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19867, "end": 19868, "loc": { "start": { "line": 573, "column": 49 }, "end": { "line": 573, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerMergingAt", "start": 19868, "end": 19882, "loc": { "start": { "line": 573, "column": 50 }, "end": { "line": 573, "column": 64 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19882, "end": 19883, "loc": { "start": { "line": 573, "column": 64 }, "end": { "line": 573, "column": 65 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19883, "end": 19884, "loc": { "start": { "line": 573, "column": 65 }, "end": { "line": 573, "column": 66 } } }, { "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": 19898, "end": 19903, "loc": { "start": { "line": 574, "column": 12 }, "end": { "line": 574, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "topShapeLayer", "start": 19904, "end": 19917, "loc": { "start": { "line": 574, "column": 18 }, "end": { "line": 574, "column": 31 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 19918, "end": 19919, "loc": { "start": { "line": 574, "column": 32 }, "end": { "line": 574, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "topShapeLayers", "start": 19920, "end": 19934, "loc": { "start": { "line": 574, "column": 34 }, "end": { "line": 574, "column": 48 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19934, "end": 19935, "loc": { "start": { "line": 574, "column": 48 }, "end": { "line": 574, "column": 49 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layer", "start": 19935, "end": 19940, "loc": { "start": { "line": 574, "column": 49 }, "end": { "line": 574, "column": 54 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19940, "end": 19941, "loc": { "start": { "line": 574, "column": 54 }, "end": { "line": 574, "column": 55 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19941, "end": 19942, "loc": { "start": { "line": 574, "column": 55 }, "end": { "line": 574, "column": 56 } } }, { "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": 19956, "end": 19959, "loc": { "start": { "line": 575, "column": 12 }, "end": { "line": 575, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19960, "end": 19961, "loc": { "start": { "line": 575, "column": 16 }, "end": { "line": 575, "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": 19961, "end": 19964, "loc": { "start": { "line": 575, "column": 17 }, "end": { "line": 575, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 19965, "end": 19969, "loc": { "start": { "line": 575, "column": 21 }, "end": { "line": 575, "column": 25 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 19970, "end": 19971, "loc": { "start": { "line": 575, "column": 26 }, "end": { "line": 575, "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": 19972, "end": 19973, "loc": { "start": { "line": 575, "column": 28 }, "end": { "line": 575, "column": 29 } } }, { "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": 575, "column": 29 }, "end": { "line": 575, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 19975, "end": 19979, "loc": { "start": { "line": 575, "column": 31 }, "end": { "line": 575, "column": 35 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 19980, "end": 19981, "loc": { "start": { "line": 575, "column": 36 }, "end": { "line": 575, "column": 37 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 4, "start": 19982, "end": 19983, "loc": { "start": { "line": 575, "column": 38 }, "end": { "line": 575, "column": 39 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 19983, "end": 19984, "loc": { "start": { "line": 575, "column": 39 }, "end": { "line": 575, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 19985, "end": 19989, "loc": { "start": { "line": 575, "column": 41 }, "end": { "line": 575, "column": 45 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 19989, "end": 19991, "loc": { "start": { "line": 575, "column": 45 }, "end": { "line": 575, "column": 47 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19991, "end": 19992, "loc": { "start": { "line": 575, "column": 47 }, "end": { "line": 575, "column": 48 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 19993, "end": 19994, "loc": { "start": { "line": 575, "column": 49 }, "end": { "line": 575, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "assert", "start": 20012, "end": 20018, "loc": { "start": { "line": 576, "column": 16 }, "end": { "line": 576, "column": 22 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20018, "end": 20019, "loc": { "start": { "line": 576, "column": 22 }, "end": { "line": 576, "column": 23 } } }, { "type": { "label": "prefix", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": null, "updateContext": null }, "value": "!", "start": 20019, "end": 20020, "loc": { "start": { "line": 576, "column": 23 }, "end": { "line": 576, "column": 24 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20020, "end": 20021, "loc": { "start": { "line": 576, "column": 24 }, "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": "bottomShapeLayer", "start": 20021, "end": 20037, "loc": { "start": { "line": 576, "column": 25 }, "end": { "line": 576, "column": 41 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20037, "end": 20038, "loc": { "start": { "line": 576, "column": 41 }, "end": { "line": 576, "column": 42 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 20038, "end": 20042, "loc": { "start": { "line": 576, "column": 42 }, "end": { "line": 576, "column": 46 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20042, "end": 20043, "loc": { "start": { "line": 576, "column": 46 }, "end": { "line": 576, "column": 47 } } }, { "type": { "label": "&&", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 2, "updateContext": null }, "value": "&&", "start": 20044, "end": 20046, "loc": { "start": { "line": 576, "column": 48 }, "end": { "line": 576, "column": 50 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "topShapeLayer", "start": 20047, "end": 20060, "loc": { "start": { "line": 576, "column": 51 }, "end": { "line": 576, "column": 64 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20060, "end": 20061, "loc": { "start": { "line": 576, "column": 64 }, "end": { "line": 576, "column": 65 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 20061, "end": 20065, "loc": { "start": { "line": 576, "column": 65 }, "end": { "line": 576, "column": 69 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20065, "end": 20066, "loc": { "start": { "line": 576, "column": 69 }, "end": { "line": 576, "column": 70 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20066, "end": 20067, "loc": { "start": { "line": 576, "column": 70 }, "end": { "line": 576, "column": 71 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20067, "end": 20068, "loc": { "start": { "line": 576, "column": 71 }, "end": { "line": 576, "column": 72 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "Shape merge: Sub shape got lost", "start": 20069, "end": 20102, "loc": { "start": { "line": 576, "column": 73 }, "end": { "line": 576, "column": 106 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20102, "end": 20103, "loc": { "start": { "line": 576, "column": 106 }, "end": { "line": 576, "column": 107 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20103, "end": 20104, "loc": { "start": { "line": 576, "column": 107 }, "end": { "line": 576, "column": 108 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bottomShapeLayer", "start": 20122, "end": 20138, "loc": { "start": { "line": 577, "column": 16 }, "end": { "line": 577, "column": 32 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20138, "end": 20139, "loc": { "start": { "line": 577, "column": 32 }, "end": { "line": 577, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 20139, "end": 20143, "loc": { "start": { "line": 577, "column": 33 }, "end": { "line": 577, "column": 37 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20143, "end": 20144, "loc": { "start": { "line": 577, "column": 37 }, "end": { "line": 577, "column": 38 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 20145, "end": 20146, "loc": { "start": { "line": 577, "column": 39 }, "end": { "line": 577, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "bottomShapeLayer", "start": 20147, "end": 20163, "loc": { "start": { "line": 577, "column": 41 }, "end": { "line": 577, "column": 57 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20163, "end": 20164, "loc": { "start": { "line": 577, "column": 57 }, "end": { "line": 577, "column": 58 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 20164, "end": 20168, "loc": { "start": { "line": 577, "column": 58 }, "end": { "line": 577, "column": 62 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20168, "end": 20169, "loc": { "start": { "line": 577, "column": 62 }, "end": { "line": 577, "column": 63 } } }, { "type": { "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 1, "updateContext": null }, "value": "||", "start": 20170, "end": 20172, "loc": { "start": { "line": 577, "column": 64 }, "end": { "line": 577, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "topShapeLayer", "start": 20173, "end": 20186, "loc": { "start": { "line": 577, "column": 67 }, "end": { "line": 577, "column": 80 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20186, "end": 20187, "loc": { "start": { "line": 577, "column": 80 }, "end": { "line": 577, "column": 81 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quad", "start": 20187, "end": 20191, "loc": { "start": { "line": 577, "column": 81 }, "end": { "line": 577, "column": 85 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20191, "end": 20192, "loc": { "start": { "line": 577, "column": 85 }, "end": { "line": 577, "column": 86 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20192, "end": 20193, "loc": { "start": { "line": 577, "column": 86 }, "end": { "line": 577, "column": 87 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20207, "end": 20208, "loc": { "start": { "line": 578, "column": 12 }, "end": { "line": 578, "column": 13 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20218, "end": 20219, "loc": { "start": { "line": 579, "column": 8 }, "end": { "line": 579, "column": 9 } } }, { "type": "CommentLine", "value": " Limit to 4 layers at max", "start": 20231, "end": 20258, "loc": { "start": { "line": 581, "column": 8 }, "end": { "line": 581, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "mergedLayers", "start": 20268, "end": 20280, "loc": { "start": { "line": 582, "column": 8 }, "end": { "line": 582, "column": 20 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20280, "end": 20281, "loc": { "start": { "line": 582, "column": 20 }, "end": { "line": 582, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "splice", "start": 20281, "end": 20287, "loc": { "start": { "line": 582, "column": 21 }, "end": { "line": 582, "column": 27 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20287, "end": 20288, "loc": { "start": { "line": 582, "column": 27 }, "end": { "line": 582, "column": 28 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 4, "start": 20288, "end": 20289, "loc": { "start": { "line": 582, "column": 28 }, "end": { "line": 582, "column": 29 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20289, "end": 20290, "loc": { "start": { "line": 582, "column": 29 }, "end": { "line": 582, "column": 30 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20290, "end": 20291, "loc": { "start": { "line": 582, "column": 30 }, "end": { "line": 582, "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": 20303, "end": 20309, "loc": { "start": { "line": 584, "column": 8 }, "end": { "line": 584, "column": 14 } } }, { "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": 20310, "end": 20313, "loc": { "start": { "line": 584, "column": 15 }, "end": { "line": 584, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ShapeDefinition", "start": 20314, "end": 20329, "loc": { "start": { "line": 584, "column": 19 }, "end": { "line": 584, "column": 34 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20329, "end": 20330, "loc": { "start": { "line": 584, "column": 34 }, "end": { "line": 584, "column": 35 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20330, "end": 20331, "loc": { "start": { "line": 584, "column": 35 }, "end": { "line": 584, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 20332, "end": 20338, "loc": { "start": { "line": 584, "column": 37 }, "end": { "line": 584, "column": 43 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20338, "end": 20339, "loc": { "start": { "line": 584, "column": 43 }, "end": { "line": 584, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "mergedLayers", "start": 20340, "end": 20352, "loc": { "start": { "line": 584, "column": 45 }, "end": { "line": 584, "column": 57 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20353, "end": 20354, "loc": { "start": { "line": 584, "column": 58 }, "end": { "line": 584, "column": 59 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20354, "end": 20355, "loc": { "start": { "line": 584, "column": 59 }, "end": { "line": 584, "column": 60 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20355, "end": 20356, "loc": { "start": { "line": 584, "column": 60 }, "end": { "line": 584, "column": 61 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20362, "end": 20363, "loc": { "start": { "line": 585, "column": 4 }, "end": { "line": 585, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Clones the shape and colors everything in the given color\r\n * @param {enumColors} color\r\n ", "start": 20371, "end": 20483, "loc": { "start": { "line": 587, "column": 4 }, "end": { "line": 590, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cloneAndPaintWith", "start": 20489, "end": 20506, "loc": { "start": { "line": 591, "column": 4 }, "end": { "line": 591, "column": 21 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20506, "end": 20507, "loc": { "start": { "line": 591, "column": 21 }, "end": { "line": 591, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 20507, "end": 20512, "loc": { "start": { "line": 591, "column": 22 }, "end": { "line": 591, "column": 27 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20512, "end": 20513, "loc": { "start": { "line": 591, "column": 27 }, "end": { "line": 591, "column": 28 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20514, "end": 20515, "loc": { "start": { "line": 591, "column": 29 }, "end": { "line": 591, "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": 20525, "end": 20530, "loc": { "start": { "line": 592, "column": 8 }, "end": { "line": 592, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 20531, "end": 20540, "loc": { "start": { "line": 592, "column": 14 }, "end": { "line": 592, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 20541, "end": 20542, "loc": { "start": { "line": 592, "column": 24 }, "end": { "line": 592, "column": 25 } } }, { "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": 20543, "end": 20547, "loc": { "start": { "line": 592, "column": 26 }, "end": { "line": 592, "column": 30 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20547, "end": 20548, "loc": { "start": { "line": 592, "column": 30 }, "end": { "line": 592, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "internalCloneLayers", "start": 20548, "end": 20567, "loc": { "start": { "line": 592, "column": 31 }, "end": { "line": 592, "column": 50 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20567, "end": 20568, "loc": { "start": { "line": 592, "column": 50 }, "end": { "line": 592, "column": 51 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20568, "end": 20569, "loc": { "start": { "line": 592, "column": 51 }, "end": { "line": 592, "column": 52 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20569, "end": 20570, "loc": { "start": { "line": 592, "column": 52 }, "end": { "line": 592, "column": 53 } } }, { "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": 20582, "end": 20585, "loc": { "start": { "line": 594, "column": 8 }, "end": { "line": 594, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20586, "end": 20587, "loc": { "start": { "line": 594, "column": 12 }, "end": { "line": 594, "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": 20587, "end": 20590, "loc": { "start": { "line": 594, "column": 13 }, "end": { "line": 594, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 20591, "end": 20601, "loc": { "start": { "line": 594, "column": 17 }, "end": { "line": 594, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 20602, "end": 20603, "loc": { "start": { "line": 594, "column": 28 }, "end": { "line": 594, "column": 29 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 20604, "end": 20605, "loc": { "start": { "line": 594, "column": 30 }, "end": { "line": 594, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20605, "end": 20606, "loc": { "start": { "line": 594, "column": 31 }, "end": { "line": 594, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 20607, "end": 20617, "loc": { "start": { "line": 594, "column": 33 }, "end": { "line": 594, "column": 43 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 20618, "end": 20619, "loc": { "start": { "line": 594, "column": 44 }, "end": { "line": 594, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 20620, "end": 20629, "loc": { "start": { "line": 594, "column": 46 }, "end": { "line": 594, "column": 55 } } }, { "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": 594, "column": 55 }, "end": { "line": 594, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 20630, "end": 20636, "loc": { "start": { "line": 594, "column": 56 }, "end": { "line": 594, "column": 62 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20636, "end": 20637, "loc": { "start": { "line": 594, "column": 62 }, "end": { "line": 594, "column": 63 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 20638, "end": 20640, "loc": { "start": { "line": 594, "column": 64 }, "end": { "line": 594, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 20640, "end": 20650, "loc": { "start": { "line": 594, "column": 66 }, "end": { "line": 594, "column": 76 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20650, "end": 20651, "loc": { "start": { "line": 594, "column": 76 }, "end": { "line": 594, "column": 77 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20652, "end": 20653, "loc": { "start": { "line": 594, "column": 78 }, "end": { "line": 594, "column": 79 } } }, { "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": 20667, "end": 20672, "loc": { "start": { "line": 595, "column": 12 }, "end": { "line": 595, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 20673, "end": 20682, "loc": { "start": { "line": 595, "column": 18 }, "end": { "line": 595, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 20683, "end": 20684, "loc": { "start": { "line": 595, "column": 28 }, "end": { "line": 595, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 20685, "end": 20694, "loc": { "start": { "line": 595, "column": 30 }, "end": { "line": 595, "column": 39 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20694, "end": 20695, "loc": { "start": { "line": 595, "column": 39 }, "end": { "line": 595, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 20695, "end": 20705, "loc": { "start": { "line": 595, "column": 40 }, "end": { "line": 595, "column": 50 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20705, "end": 20706, "loc": { "start": { "line": 595, "column": 50 }, "end": { "line": 595, "column": 51 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20706, "end": 20707, "loc": { "start": { "line": 595, "column": 51 }, "end": { "line": 595, "column": 52 } } }, { "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": 20721, "end": 20724, "loc": { "start": { "line": 596, "column": 12 }, "end": { "line": 596, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20725, "end": 20726, "loc": { "start": { "line": 596, "column": 16 }, "end": { "line": 596, "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": 20726, "end": 20729, "loc": { "start": { "line": 596, "column": 17 }, "end": { "line": 596, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 20730, "end": 20743, "loc": { "start": { "line": 596, "column": 21 }, "end": { "line": 596, "column": 34 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 20744, "end": 20745, "loc": { "start": { "line": 596, "column": 35 }, "end": { "line": 596, "column": 36 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 20746, "end": 20747, "loc": { "start": { "line": 596, "column": 37 }, "end": { "line": 596, "column": 38 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20747, "end": 20748, "loc": { "start": { "line": 596, "column": 38 }, "end": { "line": 596, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 20749, "end": 20762, "loc": { "start": { "line": 596, "column": 40 }, "end": { "line": 596, "column": 53 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 20763, "end": 20764, "loc": { "start": { "line": 596, "column": 54 }, "end": { "line": 596, "column": 55 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 4, "start": 20765, "end": 20766, "loc": { "start": { "line": 596, "column": 56 }, "end": { "line": 596, "column": 57 } } }, { "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": 596, "column": 57 }, "end": { "line": 596, "column": 58 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 20768, "end": 20770, "loc": { "start": { "line": 596, "column": 59 }, "end": { "line": 596, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 20770, "end": 20783, "loc": { "start": { "line": 596, "column": 61 }, "end": { "line": 596, "column": 74 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20783, "end": 20784, "loc": { "start": { "line": 596, "column": 74 }, "end": { "line": 596, "column": 75 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20785, "end": 20786, "loc": { "start": { "line": 596, "column": 76 }, "end": { "line": 596, "column": 77 } } }, { "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": 20804, "end": 20809, "loc": { "start": { "line": 597, "column": 16 }, "end": { "line": 597, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "item", "start": 20810, "end": 20814, "loc": { "start": { "line": 597, "column": 22 }, "end": { "line": 597, "column": 26 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 20815, "end": 20816, "loc": { "start": { "line": 597, "column": 27 }, "end": { "line": 597, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 20817, "end": 20826, "loc": { "start": { "line": 597, "column": 29 }, "end": { "line": 597, "column": 38 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20826, "end": 20827, "loc": { "start": { "line": 597, "column": 38 }, "end": { "line": 597, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 20827, "end": 20840, "loc": { "start": { "line": 597, "column": 39 }, "end": { "line": 597, "column": 52 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20840, "end": 20841, "loc": { "start": { "line": 597, "column": 52 }, "end": { "line": 597, "column": 53 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20841, "end": 20842, "loc": { "start": { "line": 597, "column": 53 }, "end": { "line": 597, "column": 54 } } }, { "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": 20860, "end": 20862, "loc": { "start": { "line": 598, "column": 16 }, "end": { "line": 598, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20863, "end": 20864, "loc": { "start": { "line": 598, "column": 19 }, "end": { "line": 598, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "item", "start": 20864, "end": 20868, "loc": { "start": { "line": 598, "column": 20 }, "end": { "line": 598, "column": 24 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20868, "end": 20869, "loc": { "start": { "line": 598, "column": 24 }, "end": { "line": 598, "column": 25 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20870, "end": 20871, "loc": { "start": { "line": 598, "column": 26 }, "end": { "line": 598, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "item", "start": 20893, "end": 20897, "loc": { "start": { "line": 599, "column": 20 }, "end": { "line": 599, "column": 24 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20897, "end": 20898, "loc": { "start": { "line": 599, "column": 24 }, "end": { "line": 599, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 20898, "end": 20903, "loc": { "start": { "line": 599, "column": 25 }, "end": { "line": 599, "column": 30 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 20904, "end": 20905, "loc": { "start": { "line": 599, "column": 31 }, "end": { "line": 599, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 20906, "end": 20911, "loc": { "start": { "line": 599, "column": 33 }, "end": { "line": 599, "column": 38 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 20911, "end": 20912, "loc": { "start": { "line": 599, "column": 38 }, "end": { "line": 599, "column": 39 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20930, "end": 20931, "loc": { "start": { "line": 600, "column": 16 }, "end": { "line": 600, "column": 17 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20945, "end": 20946, "loc": { "start": { "line": 601, "column": 12 }, "end": { "line": 601, "column": 13 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20956, "end": 20957, "loc": { "start": { "line": 602, "column": 8 }, "end": { "line": 602, "column": 9 } } }, { "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": 20967, "end": 20973, "loc": { "start": { "line": 603, "column": 8 }, "end": { "line": 603, "column": 14 } } }, { "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": 20974, "end": 20977, "loc": { "start": { "line": 603, "column": 15 }, "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": "ShapeDefinition", "start": 20978, "end": 20993, "loc": { "start": { "line": 603, "column": 19 }, "end": { "line": 603, "column": 34 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20993, "end": 20994, "loc": { "start": { "line": 603, "column": 34 }, "end": { "line": 603, "column": 35 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 20994, "end": 20995, "loc": { "start": { "line": 603, "column": 35 }, "end": { "line": 603, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 20996, "end": 21002, "loc": { "start": { "line": 603, "column": 37 }, "end": { "line": 603, "column": 43 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21002, "end": 21003, "loc": { "start": { "line": 603, "column": 43 }, "end": { "line": 603, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 21004, "end": 21013, "loc": { "start": { "line": 603, "column": 45 }, "end": { "line": 603, "column": 54 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21014, "end": 21015, "loc": { "start": { "line": 603, "column": 55 }, "end": { "line": 603, "column": 56 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21015, "end": 21016, "loc": { "start": { "line": 603, "column": 56 }, "end": { "line": 603, "column": 57 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21016, "end": 21017, "loc": { "start": { "line": 603, "column": 57 }, "end": { "line": 603, "column": 58 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21023, "end": 21024, "loc": { "start": { "line": 604, "column": 4 }, "end": { "line": 604, "column": 5 } } }, { "type": "CommentBlock", "value": "*\r\n * Clones the shape and colors everything in the given colors\r\n * @param {[enumColors, enumColors, enumColors, enumColors]} colors\r\n ", "start": 21032, "end": 21184, "loc": { "start": { "line": 606, "column": 4 }, "end": { "line": 609, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cloneAndPaintWith4Colors", "start": 21190, "end": 21214, "loc": { "start": { "line": 610, "column": 4 }, "end": { "line": 610, "column": 28 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21214, "end": 21215, "loc": { "start": { "line": 610, "column": 28 }, "end": { "line": 610, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "colors", "start": 21215, "end": 21221, "loc": { "start": { "line": 610, "column": 29 }, "end": { "line": 610, "column": 35 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21221, "end": 21222, "loc": { "start": { "line": 610, "column": 35 }, "end": { "line": 610, "column": 36 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21223, "end": 21224, "loc": { "start": { "line": 610, "column": 37 }, "end": { "line": 610, "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": 21234, "end": 21239, "loc": { "start": { "line": 611, "column": 8 }, "end": { "line": 611, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 21240, "end": 21249, "loc": { "start": { "line": 611, "column": 14 }, "end": { "line": 611, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 21250, "end": 21251, "loc": { "start": { "line": 611, "column": 24 }, "end": { "line": 611, "column": 25 } } }, { "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": 21252, "end": 21256, "loc": { "start": { "line": 611, "column": 26 }, "end": { "line": 611, "column": 30 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21256, "end": 21257, "loc": { "start": { "line": 611, "column": 30 }, "end": { "line": 611, "column": 31 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "internalCloneLayers", "start": 21257, "end": 21276, "loc": { "start": { "line": 611, "column": 31 }, "end": { "line": 611, "column": 50 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21276, "end": 21277, "loc": { "start": { "line": 611, "column": 50 }, "end": { "line": 611, "column": 51 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21277, "end": 21278, "loc": { "start": { "line": 611, "column": 51 }, "end": { "line": 611, "column": 52 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21278, "end": 21279, "loc": { "start": { "line": 611, "column": 52 }, "end": { "line": 611, "column": 53 } } }, { "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": 21291, "end": 21294, "loc": { "start": { "line": 613, "column": 8 }, "end": { "line": 613, "column": 11 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21295, "end": 21296, "loc": { "start": { "line": 613, "column": 12 }, "end": { "line": 613, "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": 21296, "end": 21299, "loc": { "start": { "line": 613, "column": 13 }, "end": { "line": 613, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 21300, "end": 21310, "loc": { "start": { "line": 613, "column": 17 }, "end": { "line": 613, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 21311, "end": 21312, "loc": { "start": { "line": 613, "column": 28 }, "end": { "line": 613, "column": 29 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 21313, "end": 21314, "loc": { "start": { "line": 613, "column": 30 }, "end": { "line": 613, "column": 31 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21314, "end": 21315, "loc": { "start": { "line": 613, "column": 31 }, "end": { "line": 613, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 21316, "end": 21326, "loc": { "start": { "line": 613, "column": 33 }, "end": { "line": 613, "column": 43 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 21327, "end": 21328, "loc": { "start": { "line": 613, "column": 44 }, "end": { "line": 613, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 21329, "end": 21338, "loc": { "start": { "line": 613, "column": 46 }, "end": { "line": 613, "column": 55 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21338, "end": 21339, "loc": { "start": { "line": 613, "column": 55 }, "end": { "line": 613, "column": 56 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "length", "start": 21339, "end": 21345, "loc": { "start": { "line": 613, "column": 56 }, "end": { "line": 613, "column": 62 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21345, "end": 21346, "loc": { "start": { "line": 613, "column": 62 }, "end": { "line": 613, "column": 63 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 21347, "end": 21349, "loc": { "start": { "line": 613, "column": 64 }, "end": { "line": 613, "column": 66 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 21349, "end": 21359, "loc": { "start": { "line": 613, "column": 66 }, "end": { "line": 613, "column": 76 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21359, "end": 21360, "loc": { "start": { "line": 613, "column": 76 }, "end": { "line": 613, "column": 77 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21361, "end": 21362, "loc": { "start": { "line": 613, "column": 78 }, "end": { "line": 613, "column": 79 } } }, { "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": 21376, "end": 21381, "loc": { "start": { "line": 614, "column": 12 }, "end": { "line": 614, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 21382, "end": 21391, "loc": { "start": { "line": 614, "column": 18 }, "end": { "line": 614, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 21392, "end": 21393, "loc": { "start": { "line": 614, "column": 28 }, "end": { "line": 614, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 21394, "end": 21403, "loc": { "start": { "line": 614, "column": 30 }, "end": { "line": 614, "column": 39 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21403, "end": 21404, "loc": { "start": { "line": 614, "column": 39 }, "end": { "line": 614, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layerIndex", "start": 21404, "end": 21414, "loc": { "start": { "line": 614, "column": 40 }, "end": { "line": 614, "column": 50 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21414, "end": 21415, "loc": { "start": { "line": 614, "column": 50 }, "end": { "line": 614, "column": 51 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21415, "end": 21416, "loc": { "start": { "line": 614, "column": 51 }, "end": { "line": 614, "column": 52 } } }, { "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": 21430, "end": 21433, "loc": { "start": { "line": 615, "column": 12 }, "end": { "line": 615, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21434, "end": 21435, "loc": { "start": { "line": 615, "column": 16 }, "end": { "line": 615, "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": 21435, "end": 21438, "loc": { "start": { "line": 615, "column": 17 }, "end": { "line": 615, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 21439, "end": 21452, "loc": { "start": { "line": 615, "column": 21 }, "end": { "line": 615, "column": 34 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 21453, "end": 21454, "loc": { "start": { "line": 615, "column": 35 }, "end": { "line": 615, "column": 36 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 21455, "end": 21456, "loc": { "start": { "line": 615, "column": 37 }, "end": { "line": 615, "column": 38 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21456, "end": 21457, "loc": { "start": { "line": 615, "column": 38 }, "end": { "line": 615, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 21458, "end": 21471, "loc": { "start": { "line": 615, "column": 40 }, "end": { "line": 615, "column": 53 } } }, { "type": { "label": "", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 7, "updateContext": null }, "value": "<", "start": 21472, "end": 21473, "loc": { "start": { "line": 615, "column": 54 }, "end": { "line": 615, "column": 55 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 4, "start": 21474, "end": 21475, "loc": { "start": { "line": 615, "column": 56 }, "end": { "line": 615, "column": 57 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21475, "end": 21476, "loc": { "start": { "line": 615, "column": 57 }, "end": { "line": 615, "column": 58 } } }, { "type": { "label": "++/--", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": true, "binop": null }, "value": "++", "start": 21477, "end": 21479, "loc": { "start": { "line": 615, "column": 59 }, "end": { "line": 615, "column": 61 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 21479, "end": 21492, "loc": { "start": { "line": 615, "column": 61 }, "end": { "line": 615, "column": 74 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21492, "end": 21493, "loc": { "start": { "line": 615, "column": 74 }, "end": { "line": 615, "column": 75 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21494, "end": 21495, "loc": { "start": { "line": 615, "column": 76 }, "end": { "line": 615, "column": 77 } } }, { "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": 21513, "end": 21518, "loc": { "start": { "line": 616, "column": 16 }, "end": { "line": 616, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "item", "start": 21519, "end": 21523, "loc": { "start": { "line": 616, "column": 22 }, "end": { "line": 616, "column": 26 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 21524, "end": 21525, "loc": { "start": { "line": 616, "column": 27 }, "end": { "line": 616, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrants", "start": 21526, "end": 21535, "loc": { "start": { "line": 616, "column": 29 }, "end": { "line": 616, "column": 38 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21535, "end": 21536, "loc": { "start": { "line": 616, "column": 38 }, "end": { "line": 616, "column": 39 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 21536, "end": 21549, "loc": { "start": { "line": 616, "column": 39 }, "end": { "line": 616, "column": 52 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21549, "end": 21550, "loc": { "start": { "line": 616, "column": 52 }, "end": { "line": 616, "column": 53 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21550, "end": 21551, "loc": { "start": { "line": 616, "column": 53 }, "end": { "line": 616, "column": 54 } } }, { "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": 21569, "end": 21571, "loc": { "start": { "line": 617, "column": 16 }, "end": { "line": 617, "column": 18 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21572, "end": 21573, "loc": { "start": { "line": 617, "column": 19 }, "end": { "line": 617, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "item", "start": 21573, "end": 21577, "loc": { "start": { "line": 617, "column": 20 }, "end": { "line": 617, "column": 24 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21577, "end": 21578, "loc": { "start": { "line": 617, "column": 24 }, "end": { "line": 617, "column": 25 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21579, "end": 21580, "loc": { "start": { "line": 617, "column": 26 }, "end": { "line": 617, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "item", "start": 21602, "end": 21606, "loc": { "start": { "line": 618, "column": 20 }, "end": { "line": 618, "column": 24 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21606, "end": 21607, "loc": { "start": { "line": 618, "column": 24 }, "end": { "line": 618, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 21607, "end": 21612, "loc": { "start": { "line": 618, "column": 25 }, "end": { "line": 618, "column": 30 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 21613, "end": 21614, "loc": { "start": { "line": 618, "column": 31 }, "end": { "line": 618, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "colors", "start": 21615, "end": 21621, "loc": { "start": { "line": 618, "column": 33 }, "end": { "line": 618, "column": 39 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21621, "end": 21622, "loc": { "start": { "line": 618, "column": 39 }, "end": { "line": 618, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "quadrantIndex", "start": 21622, "end": 21635, "loc": { "start": { "line": 618, "column": 40 }, "end": { "line": 618, "column": 53 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21635, "end": 21636, "loc": { "start": { "line": 618, "column": 53 }, "end": { "line": 618, "column": 54 } } }, { "type": { "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 1, "updateContext": null }, "value": "||", "start": 21637, "end": 21639, "loc": { "start": { "line": 618, "column": 55 }, "end": { "line": 618, "column": 57 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "item", "start": 21640, "end": 21644, "loc": { "start": { "line": 618, "column": 58 }, "end": { "line": 618, "column": 62 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21644, "end": 21645, "loc": { "start": { "line": 618, "column": 62 }, "end": { "line": 618, "column": 63 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "color", "start": 21645, "end": 21650, "loc": { "start": { "line": 618, "column": 63 }, "end": { "line": 618, "column": 68 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21650, "end": 21651, "loc": { "start": { "line": 618, "column": 68 }, "end": { "line": 618, "column": 69 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21669, "end": 21670, "loc": { "start": { "line": 619, "column": 16 }, "end": { "line": 619, "column": 17 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21684, "end": 21685, "loc": { "start": { "line": 620, "column": 12 }, "end": { "line": 620, "column": 13 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21695, "end": 21696, "loc": { "start": { "line": 621, "column": 8 }, "end": { "line": 621, "column": 9 } } }, { "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": 21706, "end": 21712, "loc": { "start": { "line": 622, "column": 8 }, "end": { "line": 622, "column": 14 } } }, { "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": 21713, "end": 21716, "loc": { "start": { "line": 622, "column": 15 }, "end": { "line": 622, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ShapeDefinition", "start": 21717, "end": 21732, "loc": { "start": { "line": 622, "column": 19 }, "end": { "line": 622, "column": 34 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21732, "end": 21733, "loc": { "start": { "line": 622, "column": 34 }, "end": { "line": 622, "column": 35 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21733, "end": 21734, "loc": { "start": { "line": 622, "column": 35 }, "end": { "line": 622, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "layers", "start": 21735, "end": 21741, "loc": { "start": { "line": 622, "column": 37 }, "end": { "line": 622, "column": 43 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21741, "end": 21742, "loc": { "start": { "line": 622, "column": 43 }, "end": { "line": 622, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "newLayers", "start": 21743, "end": 21752, "loc": { "start": { "line": 622, "column": 45 }, "end": { "line": 622, "column": 54 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21753, "end": 21754, "loc": { "start": { "line": 622, "column": 55 }, "end": { "line": 622, "column": 56 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21754, "end": 21755, "loc": { "start": { "line": 622, "column": 56 }, "end": { "line": 622, "column": 57 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21755, "end": 21756, "loc": { "start": { "line": 622, "column": 57 }, "end": { "line": 622, "column": 58 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21762, "end": 21763, "loc": { "start": { "line": 623, "column": 4 }, "end": { "line": 623, "column": 5 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 21765, "end": 21766, "loc": { "start": { "line": 624, "column": 0 }, "end": { "line": 624, "column": 1 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 21766, "end": 21766, "loc": { "start": { "line": 624, "column": 1 }, "end": { "line": 624, "column": 1 } } } ] }