1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-11 17:21:51 +00:00
tobspr_shapez.io/docs/ast/source/game/hud/parts/layer_preview.js.json
2021-02-26 15:20:37 +01:00

28096 lines
753 KiB
JSON

{
"type": "File",
"start": 0,
"end": 4688,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 124,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 4688,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 124,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 77,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 77
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 9,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 19
}
},
"imported": {
"type": "Identifier",
"start": 9,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 19
},
"identifierName": "freeCanvas"
},
"name": "freeCanvas"
},
"local": {
"type": "Identifier",
"start": 9,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 19
},
"identifierName": "freeCanvas"
},
"name": "freeCanvas"
}
},
{
"type": "ImportSpecifier",
"start": 21,
"end": 40,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 40
}
},
"imported": {
"type": "Identifier",
"start": 21,
"end": 40,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 40
},
"identifierName": "makeOffscreenBuffer"
},
"name": "makeOffscreenBuffer"
},
"local": {
"type": "Identifier",
"start": 21,
"end": 40,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 40
},
"identifierName": "makeOffscreenBuffer"
},
"name": "makeOffscreenBuffer"
}
}
],
"source": {
"type": "StringLiteral",
"start": 48,
"end": 76,
"loc": {
"start": {
"line": 1,
"column": 48
},
"end": {
"line": 1,
"column": 76
}
},
"extra": {
"rawValue": "../../../core/buffer_utils",
"raw": "\"../../../core/buffer_utils\""
},
"value": "../../../core/buffer_utils"
}
},
{
"type": "ImportDeclaration",
"start": 79,
"end": 131,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 52
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 88,
"end": 100,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 21
}
},
"imported": {
"type": "Identifier",
"start": 88,
"end": 100,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 21
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"local": {
"type": "Identifier",
"start": 88,
"end": 100,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 21
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
}
}
],
"source": {
"type": "StringLiteral",
"start": 108,
"end": 130,
"loc": {
"start": {
"line": 2,
"column": 29
},
"end": {
"line": 2,
"column": 51
}
},
"extra": {
"rawValue": "../../../core/config",
"raw": "\"../../../core/config\""
},
"value": "../../../core/config"
}
},
{
"type": "ImportDeclaration",
"start": 133,
"end": 179,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 46
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 142,
"end": 148,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 15
}
},
"imported": {
"type": "Identifier",
"start": 142,
"end": 148,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 15
},
"identifierName": "Loader"
},
"name": "Loader"
},
"local": {
"type": "Identifier",
"start": 142,
"end": 148,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 15
},
"identifierName": "Loader"
},
"name": "Loader"
}
}
],
"source": {
"type": "StringLiteral",
"start": 156,
"end": 178,
"loc": {
"start": {
"line": 3,
"column": 23
},
"end": {
"line": 3,
"column": 45
}
},
"extra": {
"rawValue": "../../../core/loader",
"raw": "\"../../../core/loader\""
},
"value": "../../../core/loader"
}
},
{
"type": "ImportDeclaration",
"start": 181,
"end": 227,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 46
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 190,
"end": 196,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 15
}
},
"imported": {
"type": "Identifier",
"start": 190,
"end": 196,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 15
},
"identifierName": "Vector"
},
"name": "Vector"
},
"local": {
"type": "Identifier",
"start": 190,
"end": 196,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 15
},
"identifierName": "Vector"
},
"name": "Vector"
}
}
],
"source": {
"type": "StringLiteral",
"start": 204,
"end": 226,
"loc": {
"start": {
"line": 4,
"column": 23
},
"end": {
"line": 4,
"column": 45
}
},
"extra": {
"rawValue": "../../../core/vector",
"raw": "\"../../../core/vector\""
},
"value": "../../../core/vector"
}
},
{
"type": "ImportDeclaration",
"start": 229,
"end": 281,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 52
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 238,
"end": 250,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 21
}
},
"imported": {
"type": "Identifier",
"start": 238,
"end": 250,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 21
},
"identifierName": "MapChunkView"
},
"name": "MapChunkView"
},
"local": {
"type": "Identifier",
"start": 238,
"end": 250,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 21
},
"identifierName": "MapChunkView"
},
"name": "MapChunkView"
}
}
],
"source": {
"type": "StringLiteral",
"start": 258,
"end": 280,
"loc": {
"start": {
"line": 5,
"column": 29
},
"end": {
"line": 5,
"column": 51
}
},
"extra": {
"rawValue": "../../map_chunk_view",
"raw": "\"../../map_chunk_view\""
},
"value": "../../map_chunk_view"
}
},
{
"type": "ImportDeclaration",
"start": 283,
"end": 319,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 36
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 292,
"end": 297,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 14
}
},
"imported": {
"type": "Identifier",
"start": 292,
"end": 297,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 14
},
"identifierName": "THEME"
},
"name": "THEME"
},
"local": {
"type": "Identifier",
"start": 292,
"end": 297,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 14
},
"identifierName": "THEME"
},
"name": "THEME"
}
}
],
"source": {
"type": "StringLiteral",
"start": 305,
"end": 318,
"loc": {
"start": {
"line": 6,
"column": 22
},
"end": {
"line": 6,
"column": 35
}
},
"extra": {
"rawValue": "../../theme",
"raw": "\"../../theme\""
},
"value": "../../theme"
}
},
{
"type": "ImportDeclaration",
"start": 321,
"end": 368,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 47
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 330,
"end": 341,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 20
}
},
"imported": {
"type": "Identifier",
"start": 330,
"end": 341,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 20
},
"identifierName": "BaseHUDPart"
},
"name": "BaseHUDPart"
},
"local": {
"type": "Identifier",
"start": 330,
"end": 341,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 20
},
"identifierName": "BaseHUDPart"
},
"name": "BaseHUDPart"
}
}
],
"source": {
"type": "StringLiteral",
"start": 349,
"end": 367,
"loc": {
"start": {
"line": 7,
"column": 28
},
"end": {
"line": 7,
"column": 46
}
},
"extra": {
"rawValue": "../base_hud_part",
"raw": "\"../base_hud_part\""
},
"value": "../base_hud_part"
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Helper class which allows peaking through to the wires layer\r\n ",
"start": 372,
"end": 445,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 11,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 447,
"end": 4686,
"loc": {
"start": {
"line": 12,
"column": 0
},
"end": {
"line": 123,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "ClassDeclaration",
"start": 454,
"end": 4686,
"loc": {
"start": {
"line": 12,
"column": 7
},
"end": {
"line": 123,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 460,
"end": 475,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 28
},
"identifierName": "HUDLayerPreview"
},
"name": "HUDLayerPreview",
"leadingComments": null
},
"superClass": {
"type": "Identifier",
"start": 484,
"end": 495,
"loc": {
"start": {
"line": 12,
"column": 37
},
"end": {
"line": 12,
"column": 48
},
"identifierName": "BaseHUDPart"
},
"name": "BaseHUDPart"
},
"body": {
"type": "ClassBody",
"start": 496,
"end": 4686,
"loc": {
"start": {
"line": 12,
"column": 49
},
"end": {
"line": 123,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 503,
"end": 790,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 18,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 503,
"end": 513,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 14
},
"identifierName": "initialize"
},
"name": "initialize"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 516,
"end": 790,
"loc": {
"start": {
"line": 13,
"column": 17
},
"end": {
"line": 18,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 527,
"end": 551,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 32
}
},
"expression": {
"type": "CallExpression",
"start": 527,
"end": 550,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 31
}
},
"callee": {
"type": "MemberExpression",
"start": 527,
"end": 548,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 29
}
},
"object": {
"type": "ThisExpression",
"start": 527,
"end": 531,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 532,
"end": 548,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 29
},
"identifierName": "initializeCanvas"
},
"name": "initializeCanvas"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 561,
"end": 630,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 77
}
},
"expression": {
"type": "CallExpression",
"start": 561,
"end": 629,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 76
}
},
"callee": {
"type": "MemberExpression",
"start": 561,
"end": 598,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 45
}
},
"object": {
"type": "MemberExpression",
"start": 561,
"end": 594,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 41
}
},
"object": {
"type": "MemberExpression",
"start": 561,
"end": 578,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 561,
"end": 570,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 561,
"end": 565,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 566,
"end": 570,
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 17
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 571,
"end": 578,
"loc": {
"start": {
"line": 15,
"column": 18
},
"end": {
"line": 15,
"column": 25
},
"identifierName": "signals"
},
"name": "signals"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 579,
"end": 594,
"loc": {
"start": {
"line": 15,
"column": 26
},
"end": {
"line": 15,
"column": 41
},
"identifierName": "aboutToDestruct"
},
"name": "aboutToDestruct"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 595,
"end": 598,
"loc": {
"start": {
"line": 15,
"column": 42
},
"end": {
"line": 15,
"column": 45
},
"identifierName": "add"
},
"name": "add"
},
"computed": false
},
"arguments": [
{
"type": "ArrowFunctionExpression",
"start": 599,
"end": 628,
"loc": {
"start": {
"line": 15,
"column": 46
},
"end": {
"line": 15,
"column": 75
}
},
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [],
"body": {
"type": "CallExpression",
"start": 605,
"end": 628,
"loc": {
"start": {
"line": 15,
"column": 52
},
"end": {
"line": 15,
"column": 75
}
},
"callee": {
"type": "Identifier",
"start": 605,
"end": 615,
"loc": {
"start": {
"line": 15,
"column": 52
},
"end": {
"line": 15,
"column": 62
},
"identifierName": "freeCanvas"
},
"name": "freeCanvas"
},
"arguments": [
{
"type": "MemberExpression",
"start": 616,
"end": 627,
"loc": {
"start": {
"line": 15,
"column": 63
},
"end": {
"line": 15,
"column": 74
}
},
"object": {
"type": "ThisExpression",
"start": 616,
"end": 620,
"loc": {
"start": {
"line": 15,
"column": 63
},
"end": {
"line": 15,
"column": 67
}
}
},
"property": {
"type": "Identifier",
"start": 621,
"end": 627,
"loc": {
"start": {
"line": 15,
"column": 68
},
"end": {
"line": 15,
"column": 74
},
"identifierName": "canvas"
},
"name": "canvas"
},
"computed": false
}
]
}
}
]
}
},
{
"type": "ExpressionStatement",
"start": 640,
"end": 699,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 67
}
},
"expression": {
"type": "CallExpression",
"start": 640,
"end": 698,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 640,
"end": 669,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 37
}
},
"object": {
"type": "MemberExpression",
"start": 640,
"end": 665,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 33
}
},
"object": {
"type": "MemberExpression",
"start": 640,
"end": 657,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 640,
"end": 649,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 640,
"end": 644,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 645,
"end": 649,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 17
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 650,
"end": 657,
"loc": {
"start": {
"line": 16,
"column": 18
},
"end": {
"line": 16,
"column": 25
},
"identifierName": "signals"
},
"name": "signals"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 658,
"end": 665,
"loc": {
"start": {
"line": 16,
"column": 26
},
"end": {
"line": 16,
"column": 33
},
"identifierName": "resized"
},
"name": "resized"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 666,
"end": 669,
"loc": {
"start": {
"line": 16,
"column": 34
},
"end": {
"line": 16,
"column": 37
},
"identifierName": "add"
},
"name": "add"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 670,
"end": 691,
"loc": {
"start": {
"line": 16,
"column": 38
},
"end": {
"line": 16,
"column": 59
}
},
"object": {
"type": "ThisExpression",
"start": 670,
"end": 674,
"loc": {
"start": {
"line": 16,
"column": 38
},
"end": {
"line": 16,
"column": 42
}
}
},
"property": {
"type": "Identifier",
"start": 675,
"end": 691,
"loc": {
"start": {
"line": 16,
"column": 43
},
"end": {
"line": 16,
"column": 59
},
"identifierName": "initializeCanvas"
},
"name": "initializeCanvas"
},
"computed": false
},
{
"type": "ThisExpression",
"start": 693,
"end": 697,
"loc": {
"start": {
"line": 16,
"column": 61
},
"end": {
"line": 16,
"column": 65
}
}
}
]
}
},
{
"type": "ExpressionStatement",
"start": 709,
"end": 783,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 82
}
},
"expression": {
"type": "AssignmentExpression",
"start": 709,
"end": 782,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 81
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 709,
"end": 728,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 27
}
},
"object": {
"type": "ThisExpression",
"start": 709,
"end": 713,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 714,
"end": 728,
"loc": {
"start": {
"line": 17,
"column": 13
},
"end": {
"line": 17,
"column": 27
},
"identifierName": "previewOverlay"
},
"name": "previewOverlay"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 731,
"end": 782,
"loc": {
"start": {
"line": 17,
"column": 30
},
"end": {
"line": 17,
"column": 81
}
},
"callee": {
"type": "MemberExpression",
"start": 731,
"end": 747,
"loc": {
"start": {
"line": 17,
"column": 30
},
"end": {
"line": 17,
"column": 46
}
},
"object": {
"type": "Identifier",
"start": 731,
"end": 737,
"loc": {
"start": {
"line": 17,
"column": 30
},
"end": {
"line": 17,
"column": 36
},
"identifierName": "Loader"
},
"name": "Loader"
},
"property": {
"type": "Identifier",
"start": 738,
"end": 747,
"loc": {
"start": {
"line": 17,
"column": 37
},
"end": {
"line": 17,
"column": 46
},
"identifierName": "getSprite"
},
"name": "getSprite"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 748,
"end": 781,
"loc": {
"start": {
"line": 17,
"column": 47
},
"end": {
"line": 17,
"column": 80
}
},
"extra": {
"rawValue": "sprites/wires/wires_preview.png",
"raw": "\"sprites/wires/wires_preview.png\""
},
"value": "sprites/wires/wires_preview.png"
}
]
}
}
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * (re) initializes the canvas\r\n ",
"start": 798,
"end": 846,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 22,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 852,
"end": 1549,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 44,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 852,
"end": 868,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 20
},
"identifierName": "initializeCanvas"
},
"name": "initializeCanvas",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 871,
"end": 1549,
"loc": {
"start": {
"line": 23,
"column": 23
},
"end": {
"line": 44,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 882,
"end": 1016,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 28,
"column": 9
}
},
"test": {
"type": "MemberExpression",
"start": 886,
"end": 897,
"loc": {
"start": {
"line": 24,
"column": 12
},
"end": {
"line": 24,
"column": 23
}
},
"object": {
"type": "ThisExpression",
"start": 886,
"end": 890,
"loc": {
"start": {
"line": 24,
"column": 12
},
"end": {
"line": 24,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 891,
"end": 897,
"loc": {
"start": {
"line": 24,
"column": 17
},
"end": {
"line": 24,
"column": 23
},
"identifierName": "canvas"
},
"name": "canvas"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 899,
"end": 1016,
"loc": {
"start": {
"line": 24,
"column": 25
},
"end": {
"line": 28,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 914,
"end": 938,
"loc": {
"start": {
"line": 25,
"column": 12
},
"end": {
"line": 25,
"column": 36
}
},
"expression": {
"type": "CallExpression",
"start": 914,
"end": 937,
"loc": {
"start": {
"line": 25,
"column": 12
},
"end": {
"line": 25,
"column": 35
}
},
"callee": {
"type": "Identifier",
"start": 914,
"end": 924,
"loc": {
"start": {
"line": 25,
"column": 12
},
"end": {
"line": 25,
"column": 22
},
"identifierName": "freeCanvas"
},
"name": "freeCanvas"
},
"arguments": [
{
"type": "MemberExpression",
"start": 925,
"end": 936,
"loc": {
"start": {
"line": 25,
"column": 23
},
"end": {
"line": 25,
"column": 34
}
},
"object": {
"type": "ThisExpression",
"start": 925,
"end": 929,
"loc": {
"start": {
"line": 25,
"column": 23
},
"end": {
"line": 25,
"column": 27
}
}
},
"property": {
"type": "Identifier",
"start": 930,
"end": 936,
"loc": {
"start": {
"line": 25,
"column": 28
},
"end": {
"line": 25,
"column": 34
},
"identifierName": "canvas"
},
"name": "canvas"
},
"computed": false
}
]
}
},
{
"type": "ExpressionStatement",
"start": 952,
"end": 971,
"loc": {
"start": {
"line": 26,
"column": 12
},
"end": {
"line": 26,
"column": 31
}
},
"expression": {
"type": "UnaryExpression",
"start": 952,
"end": 970,
"loc": {
"start": {
"line": 26,
"column": 12
},
"end": {
"line": 26,
"column": 30
}
},
"operator": "delete",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 959,
"end": 970,
"loc": {
"start": {
"line": 26,
"column": 19
},
"end": {
"line": 26,
"column": 30
}
},
"object": {
"type": "ThisExpression",
"start": 959,
"end": 963,
"loc": {
"start": {
"line": 26,
"column": 19
},
"end": {
"line": 26,
"column": 23
}
}
},
"property": {
"type": "Identifier",
"start": 964,
"end": 970,
"loc": {
"start": {
"line": 26,
"column": 24
},
"end": {
"line": 26,
"column": 30
},
"identifierName": "canvas"
},
"name": "canvas"
},
"computed": false
},
"extra": {
"parenthesizedArgument": false
}
}
},
{
"type": "ExpressionStatement",
"start": 985,
"end": 1005,
"loc": {
"start": {
"line": 27,
"column": 12
},
"end": {
"line": 27,
"column": 32
}
},
"expression": {
"type": "UnaryExpression",
"start": 985,
"end": 1004,
"loc": {
"start": {
"line": 27,
"column": 12
},
"end": {
"line": 27,
"column": 31
}
},
"operator": "delete",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 992,
"end": 1004,
"loc": {
"start": {
"line": 27,
"column": 19
},
"end": {
"line": 27,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 992,
"end": 996,
"loc": {
"start": {
"line": 27,
"column": 19
},
"end": {
"line": 27,
"column": 23
}
}
},
"property": {
"type": "Identifier",
"start": 997,
"end": 1004,
"loc": {
"start": {
"line": 27,
"column": 24
},
"end": {
"line": 27,
"column": 31
},
"identifierName": "context"
},
"name": "context"
},
"computed": false
},
"extra": {
"parenthesizedArgument": false
}
}
}
],
"directives": [],
"trailingComments": null
},
"alternate": null,
"trailingComments": [
{
"type": "CommentLine",
"value": " Compute how big the preview should be",
"start": 1028,
"end": 1068,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 48
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 1078,
"end": 1207,
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 33,
"column": 10
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1078,
"end": 1206,
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 33,
"column": 9
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1078,
"end": 1094,
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 31,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 1078,
"end": 1082,
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 31,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 1083,
"end": 1094,
"loc": {
"start": {
"line": 31,
"column": 13
},
"end": {
"line": 31,
"column": 24
},
"identifierName": "previewSize"
},
"name": "previewSize"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "CallExpression",
"start": 1097,
"end": 1206,
"loc": {
"start": {
"line": 31,
"column": 27
},
"end": {
"line": 33,
"column": 9
}
},
"callee": {
"type": "MemberExpression",
"start": 1097,
"end": 1107,
"loc": {
"start": {
"line": 31,
"column": 27
},
"end": {
"line": 31,
"column": 37
}
},
"object": {
"type": "Identifier",
"start": 1097,
"end": 1101,
"loc": {
"start": {
"line": 31,
"column": 27
},
"end": {
"line": 31,
"column": 31
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 1102,
"end": 1107,
"loc": {
"start": {
"line": 31,
"column": 32
},
"end": {
"line": 31,
"column": 37
},
"identifierName": "round"
},
"name": "round"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 1122,
"end": 1195,
"loc": {
"start": {
"line": 32,
"column": 12
},
"end": {
"line": 32,
"column": 85
}
},
"callee": {
"type": "MemberExpression",
"start": 1122,
"end": 1130,
"loc": {
"start": {
"line": 32,
"column": 12
},
"end": {
"line": 32,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 1122,
"end": 1126,
"loc": {
"start": {
"line": 32,
"column": 12
},
"end": {
"line": 32,
"column": 16
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 1127,
"end": 1130,
"loc": {
"start": {
"line": 32,
"column": 17
},
"end": {
"line": 32,
"column": 20
},
"identifierName": "min"
},
"name": "min"
},
"computed": false
},
"arguments": [
{
"type": "NumericLiteral",
"start": 1131,
"end": 1135,
"loc": {
"start": {
"line": 32,
"column": 21
},
"end": {
"line": 32,
"column": 25
}
},
"extra": {
"rawValue": 1024,
"raw": "1024"
},
"value": 1024
},
{
"type": "BinaryExpression",
"start": 1137,
"end": 1194,
"loc": {
"start": {
"line": 32,
"column": 27
},
"end": {
"line": 32,
"column": 84
}
},
"left": {
"type": "CallExpression",
"start": 1137,
"end": 1188,
"loc": {
"start": {
"line": 32,
"column": 27
},
"end": {
"line": 32,
"column": 78
}
},
"callee": {
"type": "MemberExpression",
"start": 1137,
"end": 1145,
"loc": {
"start": {
"line": 32,
"column": 27
},
"end": {
"line": 32,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 1137,
"end": 1141,
"loc": {
"start": {
"line": 32,
"column": 27
},
"end": {
"line": 32,
"column": 31
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 1142,
"end": 1145,
"loc": {
"start": {
"line": 32,
"column": 32
},
"end": {
"line": 32,
"column": 35
},
"identifierName": "min"
},
"name": "min"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 1146,
"end": 1165,
"loc": {
"start": {
"line": 32,
"column": 36
},
"end": {
"line": 32,
"column": 55
}
},
"object": {
"type": "MemberExpression",
"start": 1146,
"end": 1155,
"loc": {
"start": {
"line": 32,
"column": 36
},
"end": {
"line": 32,
"column": 45
}
},
"object": {
"type": "ThisExpression",
"start": 1146,
"end": 1150,
"loc": {
"start": {
"line": 32,
"column": 36
},
"end": {
"line": 32,
"column": 40
}
}
},
"property": {
"type": "Identifier",
"start": 1151,
"end": 1155,
"loc": {
"start": {
"line": 32,
"column": 41
},
"end": {
"line": 32,
"column": 45
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1156,
"end": 1165,
"loc": {
"start": {
"line": 32,
"column": 46
},
"end": {
"line": 32,
"column": 55
},
"identifierName": "gameWidth"
},
"name": "gameWidth"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 1167,
"end": 1187,
"loc": {
"start": {
"line": 32,
"column": 57
},
"end": {
"line": 32,
"column": 77
}
},
"object": {
"type": "MemberExpression",
"start": 1167,
"end": 1176,
"loc": {
"start": {
"line": 32,
"column": 57
},
"end": {
"line": 32,
"column": 66
}
},
"object": {
"type": "ThisExpression",
"start": 1167,
"end": 1171,
"loc": {
"start": {
"line": 32,
"column": 57
},
"end": {
"line": 32,
"column": 61
}
}
},
"property": {
"type": "Identifier",
"start": 1172,
"end": 1176,
"loc": {
"start": {
"line": 32,
"column": 62
},
"end": {
"line": 32,
"column": 66
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1177,
"end": 1187,
"loc": {
"start": {
"line": 32,
"column": 67
},
"end": {
"line": 32,
"column": 77
},
"identifierName": "gameHeight"
},
"name": "gameHeight"
},
"computed": false
}
]
},
"operator": "*",
"right": {
"type": "NumericLiteral",
"start": 1191,
"end": 1194,
"loc": {
"start": {
"line": 32,
"column": 81
},
"end": {
"line": 32,
"column": 84
}
},
"extra": {
"rawValue": 0.8,
"raw": "0.8"
},
"value": 0.8
}
}
]
}
]
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Compute how big the preview should be",
"start": 1028,
"end": 1068,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 48
}
}
}
]
},
{
"type": "VariableDeclaration",
"start": 1219,
"end": 1406,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 39,
"column": 11
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1225,
"end": 1405,
"loc": {
"start": {
"line": 35,
"column": 14
},
"end": {
"line": 39,
"column": 10
}
},
"id": {
"type": "ArrayPattern",
"start": 1225,
"end": 1242,
"loc": {
"start": {
"line": 35,
"column": 14
},
"end": {
"line": 35,
"column": 31
}
},
"elements": [
{
"type": "Identifier",
"start": 1226,
"end": 1232,
"loc": {
"start": {
"line": 35,
"column": 15
},
"end": {
"line": 35,
"column": 21
},
"identifierName": "canvas"
},
"name": "canvas"
},
{
"type": "Identifier",
"start": 1234,
"end": 1241,
"loc": {
"start": {
"line": 35,
"column": 23
},
"end": {
"line": 35,
"column": 30
},
"identifierName": "context"
},
"name": "context"
}
]
},
"init": {
"type": "CallExpression",
"start": 1245,
"end": 1405,
"loc": {
"start": {
"line": 35,
"column": 34
},
"end": {
"line": 39,
"column": 10
}
},
"callee": {
"type": "Identifier",
"start": 1245,
"end": 1264,
"loc": {
"start": {
"line": 35,
"column": 34
},
"end": {
"line": 35,
"column": 53
},
"identifierName": "makeOffscreenBuffer"
},
"name": "makeOffscreenBuffer"
},
"arguments": [
{
"type": "MemberExpression",
"start": 1265,
"end": 1281,
"loc": {
"start": {
"line": 35,
"column": 54
},
"end": {
"line": 35,
"column": 70
}
},
"object": {
"type": "ThisExpression",
"start": 1265,
"end": 1269,
"loc": {
"start": {
"line": 35,
"column": 54
},
"end": {
"line": 35,
"column": 58
}
}
},
"property": {
"type": "Identifier",
"start": 1270,
"end": 1281,
"loc": {
"start": {
"line": 35,
"column": 59
},
"end": {
"line": 35,
"column": 70
},
"identifierName": "previewSize"
},
"name": "previewSize"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 1283,
"end": 1299,
"loc": {
"start": {
"line": 35,
"column": 72
},
"end": {
"line": 35,
"column": 88
}
},
"object": {
"type": "ThisExpression",
"start": 1283,
"end": 1287,
"loc": {
"start": {
"line": 35,
"column": 72
},
"end": {
"line": 35,
"column": 76
}
}
},
"property": {
"type": "Identifier",
"start": 1288,
"end": 1299,
"loc": {
"start": {
"line": 35,
"column": 77
},
"end": {
"line": 35,
"column": 88
},
"identifierName": "previewSize"
},
"name": "previewSize"
},
"computed": false
},
{
"type": "ObjectExpression",
"start": 1301,
"end": 1404,
"loc": {
"start": {
"line": 35,
"column": 90
},
"end": {
"line": 39,
"column": 9
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 1316,
"end": 1328,
"loc": {
"start": {
"line": 36,
"column": 12
},
"end": {
"line": 36,
"column": 24
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1316,
"end": 1322,
"loc": {
"start": {
"line": 36,
"column": 12
},
"end": {
"line": 36,
"column": 18
},
"identifierName": "smooth"
},
"name": "smooth"
},
"value": {
"type": "BooleanLiteral",
"start": 1324,
"end": 1328,
"loc": {
"start": {
"line": 36,
"column": 20
},
"end": {
"line": 36,
"column": 24
}
},
"value": true
}
},
{
"type": "ObjectProperty",
"start": 1343,
"end": 1363,
"loc": {
"start": {
"line": 37,
"column": 12
},
"end": {
"line": 37,
"column": 32
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1343,
"end": 1348,
"loc": {
"start": {
"line": 37,
"column": 12
},
"end": {
"line": 37,
"column": 17
},
"identifierName": "label"
},
"name": "label"
},
"value": {
"type": "StringLiteral",
"start": 1350,
"end": 1363,
"loc": {
"start": {
"line": 37,
"column": 19
},
"end": {
"line": 37,
"column": 32
}
},
"extra": {
"rawValue": "layerPeeker",
"raw": "\"layerPeeker\""
},
"value": "layerPeeker"
}
},
{
"type": "ObjectProperty",
"start": 1378,
"end": 1392,
"loc": {
"start": {
"line": 38,
"column": 12
},
"end": {
"line": 38,
"column": 26
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1378,
"end": 1386,
"loc": {
"start": {
"line": 38,
"column": 12
},
"end": {
"line": 38,
"column": 20
},
"identifierName": "reusable"
},
"name": "reusable"
},
"value": {
"type": "BooleanLiteral",
"start": 1388,
"end": 1392,
"loc": {
"start": {
"line": 38,
"column": 22
},
"end": {
"line": 38,
"column": 26
}
},
"value": true
}
}
]
}
]
}
}
],
"kind": "const"
},
{
"type": "ExpressionStatement",
"start": 1418,
"end": 1478,
"loc": {
"start": {
"line": 41,
"column": 8
},
"end": {
"line": 41,
"column": 68
}
},
"expression": {
"type": "CallExpression",
"start": 1418,
"end": 1477,
"loc": {
"start": {
"line": 41,
"column": 8
},
"end": {
"line": 41,
"column": 67
}
},
"callee": {
"type": "MemberExpression",
"start": 1418,
"end": 1435,
"loc": {
"start": {
"line": 41,
"column": 8
},
"end": {
"line": 41,
"column": 25
}
},
"object": {
"type": "Identifier",
"start": 1418,
"end": 1425,
"loc": {
"start": {
"line": 41,
"column": 8
},
"end": {
"line": 41,
"column": 15
},
"identifierName": "context"
},
"name": "context"
},
"property": {
"type": "Identifier",
"start": 1426,
"end": 1435,
"loc": {
"start": {
"line": 41,
"column": 16
},
"end": {
"line": 41,
"column": 25
},
"identifierName": "clearRect"
},
"name": "clearRect"
},
"computed": false
},
"arguments": [
{
"type": "NumericLiteral",
"start": 1436,
"end": 1437,
"loc": {
"start": {
"line": 41,
"column": 26
},
"end": {
"line": 41,
"column": 27
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
{
"type": "NumericLiteral",
"start": 1439,
"end": 1440,
"loc": {
"start": {
"line": 41,
"column": 29
},
"end": {
"line": 41,
"column": 30
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
{
"type": "MemberExpression",
"start": 1442,
"end": 1458,
"loc": {
"start": {
"line": 41,
"column": 32
},
"end": {
"line": 41,
"column": 48
}
},
"object": {
"type": "ThisExpression",
"start": 1442,
"end": 1446,
"loc": {
"start": {
"line": 41,
"column": 32
},
"end": {
"line": 41,
"column": 36
}
}
},
"property": {
"type": "Identifier",
"start": 1447,
"end": 1458,
"loc": {
"start": {
"line": 41,
"column": 37
},
"end": {
"line": 41,
"column": 48
},
"identifierName": "previewSize"
},
"name": "previewSize"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 1460,
"end": 1476,
"loc": {
"start": {
"line": 41,
"column": 50
},
"end": {
"line": 41,
"column": 66
}
},
"object": {
"type": "ThisExpression",
"start": 1460,
"end": 1464,
"loc": {
"start": {
"line": 41,
"column": 50
},
"end": {
"line": 41,
"column": 54
}
}
},
"property": {
"type": "Identifier",
"start": 1465,
"end": 1476,
"loc": {
"start": {
"line": 41,
"column": 55
},
"end": {
"line": 41,
"column": 66
},
"identifierName": "previewSize"
},
"name": "previewSize"
},
"computed": false
}
]
}
},
{
"type": "ExpressionStatement",
"start": 1488,
"end": 1509,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 29
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1488,
"end": 1508,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 28
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1488,
"end": 1499,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 19
}
},
"object": {
"type": "ThisExpression",
"start": 1488,
"end": 1492,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1493,
"end": 1499,
"loc": {
"start": {
"line": 42,
"column": 13
},
"end": {
"line": 42,
"column": 19
},
"identifierName": "canvas"
},
"name": "canvas"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 1502,
"end": 1508,
"loc": {
"start": {
"line": 42,
"column": 22
},
"end": {
"line": 42,
"column": 28
},
"identifierName": "canvas"
},
"name": "canvas"
}
}
},
{
"type": "ExpressionStatement",
"start": 1519,
"end": 1542,
"loc": {
"start": {
"line": 43,
"column": 8
},
"end": {
"line": 43,
"column": 31
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1519,
"end": 1541,
"loc": {
"start": {
"line": 43,
"column": 8
},
"end": {
"line": 43,
"column": 30
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1519,
"end": 1531,
"loc": {
"start": {
"line": 43,
"column": 8
},
"end": {
"line": 43,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 1519,
"end": 1523,
"loc": {
"start": {
"line": 43,
"column": 8
},
"end": {
"line": 43,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1524,
"end": 1531,
"loc": {
"start": {
"line": 43,
"column": 13
},
"end": {
"line": 43,
"column": 20
},
"identifierName": "context"
},
"name": "context"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 1534,
"end": 1541,
"loc": {
"start": {
"line": 43,
"column": 23
},
"end": {
"line": 43,
"column": 30
},
"identifierName": "context"
},
"name": "context"
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * (re) initializes the canvas\r\n ",
"start": 798,
"end": 846,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 22,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Prepares the canvas to render at the given worldPos and the given camera scale\r\n *\r\n * @param {Vector} worldPos\r\n * @param {number} scale 1 / zoomLevel\r\n ",
"start": 1557,
"end": 1741,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 51,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1747,
"end": 3822,
"loc": {
"start": {
"line": 52,
"column": 4
},
"end": {
"line": 97,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1747,
"end": 1770,
"loc": {
"start": {
"line": 52,
"column": 4
},
"end": {
"line": 52,
"column": 27
},
"identifierName": "prepareCanvasForPreview"
},
"name": "prepareCanvasForPreview",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1771,
"end": 1779,
"loc": {
"start": {
"line": 52,
"column": 28
},
"end": {
"line": 52,
"column": 36
},
"identifierName": "worldPos"
},
"name": "worldPos"
},
{
"type": "Identifier",
"start": 1781,
"end": 1786,
"loc": {
"start": {
"line": 52,
"column": 38
},
"end": {
"line": 52,
"column": 43
},
"identifierName": "scale"
},
"name": "scale"
},
{
"type": "Identifier",
"start": 1788,
"end": 1793,
"loc": {
"start": {
"line": 52,
"column": 45
},
"end": {
"line": 52,
"column": 50
},
"identifierName": "layer"
},
"name": "layer"
}
],
"body": {
"type": "BlockStatement",
"start": 1795,
"end": 3822,
"loc": {
"start": {
"line": 52,
"column": 52
},
"end": {
"line": 97,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1806,
"end": 1871,
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 73
}
},
"expression": {
"type": "CallExpression",
"start": 1806,
"end": 1870,
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 72
}
},
"callee": {
"type": "MemberExpression",
"start": 1806,
"end": 1828,
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 30
}
},
"object": {
"type": "MemberExpression",
"start": 1806,
"end": 1818,
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 1806,
"end": 1810,
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1811,
"end": 1818,
"loc": {
"start": {
"line": 53,
"column": 13
},
"end": {
"line": 53,
"column": 20
},
"identifierName": "context"
},
"name": "context"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1819,
"end": 1828,
"loc": {
"start": {
"line": 53,
"column": 21
},
"end": {
"line": 53,
"column": 30
},
"identifierName": "clearRect"
},
"name": "clearRect"
},
"computed": false
},
"arguments": [
{
"type": "NumericLiteral",
"start": 1829,
"end": 1830,
"loc": {
"start": {
"line": 53,
"column": 31
},
"end": {
"line": 53,
"column": 32
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
{
"type": "NumericLiteral",
"start": 1832,
"end": 1833,
"loc": {
"start": {
"line": 53,
"column": 34
},
"end": {
"line": 53,
"column": 35
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
{
"type": "MemberExpression",
"start": 1835,
"end": 1851,
"loc": {
"start": {
"line": 53,
"column": 37
},
"end": {
"line": 53,
"column": 53
}
},
"object": {
"type": "ThisExpression",
"start": 1835,
"end": 1839,
"loc": {
"start": {
"line": 53,
"column": 37
},
"end": {
"line": 53,
"column": 41
}
}
},
"property": {
"type": "Identifier",
"start": 1840,
"end": 1851,
"loc": {
"start": {
"line": 53,
"column": 42
},
"end": {
"line": 53,
"column": 53
},
"identifierName": "previewSize"
},
"name": "previewSize"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 1853,
"end": 1869,
"loc": {
"start": {
"line": 53,
"column": 55
},
"end": {
"line": 53,
"column": 71
}
},
"object": {
"type": "ThisExpression",
"start": 1853,
"end": 1857,
"loc": {
"start": {
"line": 53,
"column": 55
},
"end": {
"line": 53,
"column": 59
}
}
},
"property": {
"type": "Identifier",
"start": 1858,
"end": 1869,
"loc": {
"start": {
"line": 53,
"column": 60
},
"end": {
"line": 53,
"column": 71
},
"identifierName": "previewSize"
},
"name": "previewSize"
},
"computed": false
}
]
}
},
{
"type": "ExpressionStatement",
"start": 1881,
"end": 1935,
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 54,
"column": 62
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1881,
"end": 1934,
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 54,
"column": 61
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1881,
"end": 1903,
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 54,
"column": 30
}
},
"object": {
"type": "MemberExpression",
"start": 1881,
"end": 1893,
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 54,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 1881,
"end": 1885,
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 54,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1886,
"end": 1893,
"loc": {
"start": {
"line": 54,
"column": 13
},
"end": {
"line": 54,
"column": 20
},
"identifierName": "context"
},
"name": "context"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1894,
"end": 1903,
"loc": {
"start": {
"line": 54,
"column": 21
},
"end": {
"line": 54,
"column": 30
},
"identifierName": "fillStyle"
},
"name": "fillStyle"
},
"computed": false
},
"right": {
"type": "MemberExpression",
"start": 1906,
"end": 1934,
"loc": {
"start": {
"line": 54,
"column": 33
},
"end": {
"line": 54,
"column": 61
}
},
"object": {
"type": "MemberExpression",
"start": 1906,
"end": 1921,
"loc": {
"start": {
"line": 54,
"column": 33
},
"end": {
"line": 54,
"column": 48
}
},
"object": {
"type": "MemberExpression",
"start": 1906,
"end": 1915,
"loc": {
"start": {
"line": 54,
"column": 33
},
"end": {
"line": 54,
"column": 42
}
},
"object": {
"type": "Identifier",
"start": 1906,
"end": 1911,
"loc": {
"start": {
"line": 54,
"column": 33
},
"end": {
"line": 54,
"column": 38
},
"identifierName": "THEME"
},
"name": "THEME"
},
"property": {
"type": "Identifier",
"start": 1912,
"end": 1915,
"loc": {
"start": {
"line": 54,
"column": 39
},
"end": {
"line": 54,
"column": 42
},
"identifierName": "map"
},
"name": "map"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1916,
"end": 1921,
"loc": {
"start": {
"line": 54,
"column": 43
},
"end": {
"line": 54,
"column": 48
},
"identifierName": "wires"
},
"name": "wires"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1922,
"end": 1934,
"loc": {
"start": {
"line": 54,
"column": 49
},
"end": {
"line": 54,
"column": 61
},
"identifierName": "previewColor"
},
"name": "previewColor"
},
"computed": false
}
}
},
{
"type": "ExpressionStatement",
"start": 1945,
"end": 2009,
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 72
}
},
"expression": {
"type": "CallExpression",
"start": 1945,
"end": 2008,
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 71
}
},
"callee": {
"type": "MemberExpression",
"start": 1945,
"end": 1966,
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 29
}
},
"object": {
"type": "MemberExpression",
"start": 1945,
"end": 1957,
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 1945,
"end": 1949,
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1950,
"end": 1957,
"loc": {
"start": {
"line": 55,
"column": 13
},
"end": {
"line": 55,
"column": 20
},
"identifierName": "context"
},
"name": "context"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1958,
"end": 1966,
"loc": {
"start": {
"line": 55,
"column": 21
},
"end": {
"line": 55,
"column": 29
},
"identifierName": "fillRect"
},
"name": "fillRect"
},
"computed": false
},
"arguments": [
{
"type": "NumericLiteral",
"start": 1967,
"end": 1968,
"loc": {
"start": {
"line": 55,
"column": 30
},
"end": {
"line": 55,
"column": 31
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
{
"type": "NumericLiteral",
"start": 1970,
"end": 1971,
"loc": {
"start": {
"line": 55,
"column": 33
},
"end": {
"line": 55,
"column": 34
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
{
"type": "MemberExpression",
"start": 1973,
"end": 1989,
"loc": {
"start": {
"line": 55,
"column": 36
},
"end": {
"line": 55,
"column": 52
}
},
"object": {
"type": "ThisExpression",
"start": 1973,
"end": 1977,
"loc": {
"start": {
"line": 55,
"column": 36
},
"end": {
"line": 55,
"column": 40
}
}
},
"property": {
"type": "Identifier",
"start": 1978,
"end": 1989,
"loc": {
"start": {
"line": 55,
"column": 41
},
"end": {
"line": 55,
"column": 52
},
"identifierName": "previewSize"
},
"name": "previewSize"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 1991,
"end": 2007,
"loc": {
"start": {
"line": 55,
"column": 54
},
"end": {
"line": 55,
"column": 70
}
},
"object": {
"type": "ThisExpression",
"start": 1991,
"end": 1995,
"loc": {
"start": {
"line": 55,
"column": 54
},
"end": {
"line": 55,
"column": 58
}
}
},
"property": {
"type": "Identifier",
"start": 1996,
"end": 2007,
"loc": {
"start": {
"line": 55,
"column": 59
},
"end": {
"line": 55,
"column": 70
},
"identifierName": "previewSize"
},
"name": "previewSize"
},
"computed": false
}
]
}
},
{
"type": "VariableDeclaration",
"start": 2021,
"end": 2065,
"loc": {
"start": {
"line": 57,
"column": 8
},
"end": {
"line": 57,
"column": 52
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2027,
"end": 2064,
"loc": {
"start": {
"line": 57,
"column": 14
},
"end": {
"line": 57,
"column": 51
}
},
"id": {
"type": "Identifier",
"start": 2027,
"end": 2037,
"loc": {
"start": {
"line": 57,
"column": 14
},
"end": {
"line": 57,
"column": 24
},
"identifierName": "dimensions"
},
"name": "dimensions"
},
"init": {
"type": "BinaryExpression",
"start": 2040,
"end": 2064,
"loc": {
"start": {
"line": 57,
"column": 27
},
"end": {
"line": 57,
"column": 51
}
},
"left": {
"type": "Identifier",
"start": 2040,
"end": 2045,
"loc": {
"start": {
"line": 57,
"column": 27
},
"end": {
"line": 57,
"column": 32
},
"identifierName": "scale"
},
"name": "scale"
},
"operator": "*",
"right": {
"type": "MemberExpression",
"start": 2048,
"end": 2064,
"loc": {
"start": {
"line": 57,
"column": 35
},
"end": {
"line": 57,
"column": 51
}
},
"object": {
"type": "ThisExpression",
"start": 2048,
"end": 2052,
"loc": {
"start": {
"line": 57,
"column": 35
},
"end": {
"line": 57,
"column": 39
}
}
},
"property": {
"type": "Identifier",
"start": 2053,
"end": 2064,
"loc": {
"start": {
"line": 57,
"column": 40
},
"end": {
"line": 57,
"column": 51
},
"identifierName": "previewSize"
},
"name": "previewSize"
},
"computed": false
}
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 2077,
"end": 2125,
"loc": {
"start": {
"line": 59,
"column": 8
},
"end": {
"line": 59,
"column": 56
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2083,
"end": 2124,
"loc": {
"start": {
"line": 59,
"column": 14
},
"end": {
"line": 59,
"column": 55
}
},
"id": {
"type": "Identifier",
"start": 2083,
"end": 2094,
"loc": {
"start": {
"line": 59,
"column": 14
},
"end": {
"line": 59,
"column": 25
},
"identifierName": "startWorldX"
},
"name": "startWorldX"
},
"init": {
"type": "BinaryExpression",
"start": 2097,
"end": 2124,
"loc": {
"start": {
"line": 59,
"column": 28
},
"end": {
"line": 59,
"column": 55
}
},
"left": {
"type": "MemberExpression",
"start": 2097,
"end": 2107,
"loc": {
"start": {
"line": 59,
"column": 28
},
"end": {
"line": 59,
"column": 38
}
},
"object": {
"type": "Identifier",
"start": 2097,
"end": 2105,
"loc": {
"start": {
"line": 59,
"column": 28
},
"end": {
"line": 59,
"column": 36
},
"identifierName": "worldPos"
},
"name": "worldPos"
},
"property": {
"type": "Identifier",
"start": 2106,
"end": 2107,
"loc": {
"start": {
"line": 59,
"column": 37
},
"end": {
"line": 59,
"column": 38
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
"operator": "-",
"right": {
"type": "BinaryExpression",
"start": 2110,
"end": 2124,
"loc": {
"start": {
"line": 59,
"column": 41
},
"end": {
"line": 59,
"column": 55
}
},
"left": {
"type": "Identifier",
"start": 2110,
"end": 2120,
"loc": {
"start": {
"line": 59,
"column": 41
},
"end": {
"line": 59,
"column": 51
},
"identifierName": "dimensions"
},
"name": "dimensions"
},
"operator": "/",
"right": {
"type": "NumericLiteral",
"start": 2123,
"end": 2124,
"loc": {
"start": {
"line": 59,
"column": 54
},
"end": {
"line": 59,
"column": 55
}
},
"extra": {
"rawValue": 2,
"raw": "2"
},
"value": 2
}
}
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 2135,
"end": 2183,
"loc": {
"start": {
"line": 60,
"column": 8
},
"end": {
"line": 60,
"column": 56
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2141,
"end": 2182,
"loc": {
"start": {
"line": 60,
"column": 14
},
"end": {
"line": 60,
"column": 55
}
},
"id": {
"type": "Identifier",
"start": 2141,
"end": 2152,
"loc": {
"start": {
"line": 60,
"column": 14
},
"end": {
"line": 60,
"column": 25
},
"identifierName": "startWorldY"
},
"name": "startWorldY"
},
"init": {
"type": "BinaryExpression",
"start": 2155,
"end": 2182,
"loc": {
"start": {
"line": 60,
"column": 28
},
"end": {
"line": 60,
"column": 55
}
},
"left": {
"type": "MemberExpression",
"start": 2155,
"end": 2165,
"loc": {
"start": {
"line": 60,
"column": 28
},
"end": {
"line": 60,
"column": 38
}
},
"object": {
"type": "Identifier",
"start": 2155,
"end": 2163,
"loc": {
"start": {
"line": 60,
"column": 28
},
"end": {
"line": 60,
"column": 36
},
"identifierName": "worldPos"
},
"name": "worldPos"
},
"property": {
"type": "Identifier",
"start": 2164,
"end": 2165,
"loc": {
"start": {
"line": 60,
"column": 37
},
"end": {
"line": 60,
"column": 38
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
"operator": "-",
"right": {
"type": "BinaryExpression",
"start": 2168,
"end": 2182,
"loc": {
"start": {
"line": 60,
"column": 41
},
"end": {
"line": 60,
"column": 55
}
},
"left": {
"type": "Identifier",
"start": 2168,
"end": 2178,
"loc": {
"start": {
"line": 60,
"column": 41
},
"end": {
"line": 60,
"column": 51
},
"identifierName": "dimensions"
},
"name": "dimensions"
},
"operator": "/",
"right": {
"type": "NumericLiteral",
"start": 2181,
"end": 2182,
"loc": {
"start": {
"line": 60,
"column": 54
},
"end": {
"line": 60,
"column": 55
}
},
"extra": {
"rawValue": 2,
"raw": "2"
},
"value": 2
}
}
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 2195,
"end": 2262,
"loc": {
"start": {
"line": 62,
"column": 8
},
"end": {
"line": 62,
"column": 75
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2201,
"end": 2261,
"loc": {
"start": {
"line": 62,
"column": 14
},
"end": {
"line": 62,
"column": 74
}
},
"id": {
"type": "Identifier",
"start": 2201,
"end": 2211,
"loc": {
"start": {
"line": 62,
"column": 14
},
"end": {
"line": 62,
"column": 24
},
"identifierName": "startTileX"
},
"name": "startTileX"
},
"init": {
"type": "CallExpression",
"start": 2214,
"end": 2261,
"loc": {
"start": {
"line": 62,
"column": 27
},
"end": {
"line": 62,
"column": 74
}
},
"callee": {
"type": "MemberExpression",
"start": 2214,
"end": 2224,
"loc": {
"start": {
"line": 62,
"column": 27
},
"end": {
"line": 62,
"column": 37
}
},
"object": {
"type": "Identifier",
"start": 2214,
"end": 2218,
"loc": {
"start": {
"line": 62,
"column": 27
},
"end": {
"line": 62,
"column": 31
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 2219,
"end": 2224,
"loc": {
"start": {
"line": 62,
"column": 32
},
"end": {
"line": 62,
"column": 37
},
"identifierName": "floor"
},
"name": "floor"
},
"computed": false
},
"arguments": [
{
"type": "BinaryExpression",
"start": 2225,
"end": 2260,
"loc": {
"start": {
"line": 62,
"column": 38
},
"end": {
"line": 62,
"column": 73
}
},
"left": {
"type": "Identifier",
"start": 2225,
"end": 2236,
"loc": {
"start": {
"line": 62,
"column": 38
},
"end": {
"line": 62,
"column": 49
},
"identifierName": "startWorldX"
},
"name": "startWorldX"
},
"operator": "/",
"right": {
"type": "MemberExpression",
"start": 2239,
"end": 2260,
"loc": {
"start": {
"line": 62,
"column": 52
},
"end": {
"line": 62,
"column": 73
}
},
"object": {
"type": "Identifier",
"start": 2239,
"end": 2251,
"loc": {
"start": {
"line": 62,
"column": 52
},
"end": {
"line": 62,
"column": 64
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"property": {
"type": "Identifier",
"start": 2252,
"end": 2260,
"loc": {
"start": {
"line": 62,
"column": 65
},
"end": {
"line": 62,
"column": 73
},
"identifierName": "tileSize"
},
"name": "tileSize"
},
"computed": false
}
}
]
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 2272,
"end": 2339,
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 75
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2278,
"end": 2338,
"loc": {
"start": {
"line": 63,
"column": 14
},
"end": {
"line": 63,
"column": 74
}
},
"id": {
"type": "Identifier",
"start": 2278,
"end": 2288,
"loc": {
"start": {
"line": 63,
"column": 14
},
"end": {
"line": 63,
"column": 24
},
"identifierName": "startTileY"
},
"name": "startTileY"
},
"init": {
"type": "CallExpression",
"start": 2291,
"end": 2338,
"loc": {
"start": {
"line": 63,
"column": 27
},
"end": {
"line": 63,
"column": 74
}
},
"callee": {
"type": "MemberExpression",
"start": 2291,
"end": 2301,
"loc": {
"start": {
"line": 63,
"column": 27
},
"end": {
"line": 63,
"column": 37
}
},
"object": {
"type": "Identifier",
"start": 2291,
"end": 2295,
"loc": {
"start": {
"line": 63,
"column": 27
},
"end": {
"line": 63,
"column": 31
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 2296,
"end": 2301,
"loc": {
"start": {
"line": 63,
"column": 32
},
"end": {
"line": 63,
"column": 37
},
"identifierName": "floor"
},
"name": "floor"
},
"computed": false
},
"arguments": [
{
"type": "BinaryExpression",
"start": 2302,
"end": 2337,
"loc": {
"start": {
"line": 63,
"column": 38
},
"end": {
"line": 63,
"column": 73
}
},
"left": {
"type": "Identifier",
"start": 2302,
"end": 2313,
"loc": {
"start": {
"line": 63,
"column": 38
},
"end": {
"line": 63,
"column": 49
},
"identifierName": "startWorldY"
},
"name": "startWorldY"
},
"operator": "/",
"right": {
"type": "MemberExpression",
"start": 2316,
"end": 2337,
"loc": {
"start": {
"line": 63,
"column": 52
},
"end": {
"line": 63,
"column": 73
}
},
"object": {
"type": "Identifier",
"start": 2316,
"end": 2328,
"loc": {
"start": {
"line": 63,
"column": 52
},
"end": {
"line": 63,
"column": 64
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"property": {
"type": "Identifier",
"start": 2329,
"end": 2337,
"loc": {
"start": {
"line": 63,
"column": 65
},
"end": {
"line": 63,
"column": 73
},
"identifierName": "tileSize"
},
"name": "tileSize"
},
"computed": false
}
}
]
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 2349,
"end": 2418,
"loc": {
"start": {
"line": 64,
"column": 8
},
"end": {
"line": 64,
"column": 77
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2355,
"end": 2417,
"loc": {
"start": {
"line": 64,
"column": 14
},
"end": {
"line": 64,
"column": 76
}
},
"id": {
"type": "Identifier",
"start": 2355,
"end": 2369,
"loc": {
"start": {
"line": 64,
"column": 14
},
"end": {
"line": 64,
"column": 28
},
"identifierName": "tileDimensions"
},
"name": "tileDimensions"
},
"init": {
"type": "CallExpression",
"start": 2372,
"end": 2417,
"loc": {
"start": {
"line": 64,
"column": 31
},
"end": {
"line": 64,
"column": 76
}
},
"callee": {
"type": "MemberExpression",
"start": 2372,
"end": 2381,
"loc": {
"start": {
"line": 64,
"column": 31
},
"end": {
"line": 64,
"column": 40
}
},
"object": {
"type": "Identifier",
"start": 2372,
"end": 2376,
"loc": {
"start": {
"line": 64,
"column": 31
},
"end": {
"line": 64,
"column": 35
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 2377,
"end": 2381,
"loc": {
"start": {
"line": 64,
"column": 36
},
"end": {
"line": 64,
"column": 40
},
"identifierName": "ceil"
},
"name": "ceil"
},
"computed": false
},
"arguments": [
{
"type": "BinaryExpression",
"start": 2382,
"end": 2416,
"loc": {
"start": {
"line": 64,
"column": 41
},
"end": {
"line": 64,
"column": 75
}
},
"left": {
"type": "Identifier",
"start": 2382,
"end": 2392,
"loc": {
"start": {
"line": 64,
"column": 41
},
"end": {
"line": 64,
"column": 51
},
"identifierName": "dimensions"
},
"name": "dimensions"
},
"operator": "/",
"right": {
"type": "MemberExpression",
"start": 2395,
"end": 2416,
"loc": {
"start": {
"line": 64,
"column": 54
},
"end": {
"line": 64,
"column": 75
}
},
"object": {
"type": "Identifier",
"start": 2395,
"end": 2407,
"loc": {
"start": {
"line": 64,
"column": 54
},
"end": {
"line": 64,
"column": 66
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"property": {
"type": "Identifier",
"start": 2408,
"end": 2416,
"loc": {
"start": {
"line": 64,
"column": 67
},
"end": {
"line": 64,
"column": 75
},
"identifierName": "tileSize"
},
"name": "tileSize"
},
"computed": false
}
}
]
}
}
],
"kind": "const"
},
{
"type": "ExpressionStatement",
"start": 2430,
"end": 2450,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 28
}
},
"expression": {
"type": "CallExpression",
"start": 2430,
"end": 2449,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 27
}
},
"callee": {
"type": "MemberExpression",
"start": 2430,
"end": 2447,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 25
}
},
"object": {
"type": "MemberExpression",
"start": 2430,
"end": 2442,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 2430,
"end": 2434,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 2435,
"end": 2442,
"loc": {
"start": {
"line": 66,
"column": 13
},
"end": {
"line": 66,
"column": 20
},
"identifierName": "context"
},
"name": "context"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2443,
"end": 2447,
"loc": {
"start": {
"line": 66,
"column": 21
},
"end": {
"line": 66,
"column": 25
},
"identifierName": "save"
},
"name": "save"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 2460,
"end": 2501,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 49
}
},
"expression": {
"type": "CallExpression",
"start": 2460,
"end": 2500,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 48
}
},
"callee": {
"type": "MemberExpression",
"start": 2460,
"end": 2478,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 26
}
},
"object": {
"type": "MemberExpression",
"start": 2460,
"end": 2472,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 2460,
"end": 2464,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 2465,
"end": 2472,
"loc": {
"start": {
"line": 67,
"column": 13
},
"end": {
"line": 67,
"column": 20
},
"identifierName": "context"
},
"name": "context"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2473,
"end": 2478,
"loc": {
"start": {
"line": 67,
"column": 21
},
"end": {
"line": 67,
"column": 26
},
"identifierName": "scale"
},
"name": "scale"
},
"computed": false
},
"arguments": [
{
"type": "BinaryExpression",
"start": 2479,
"end": 2488,
"loc": {
"start": {
"line": 67,
"column": 27
},
"end": {
"line": 67,
"column": 36
}
},
"left": {
"type": "NumericLiteral",
"start": 2479,
"end": 2480,
"loc": {
"start": {
"line": 67,
"column": 27
},
"end": {
"line": 67,
"column": 28
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
},
"operator": "/",
"right": {
"type": "Identifier",
"start": 2483,
"end": 2488,
"loc": {
"start": {
"line": 67,
"column": 31
},
"end": {
"line": 67,
"column": 36
},
"identifierName": "scale"
},
"name": "scale"
}
},
{
"type": "BinaryExpression",
"start": 2490,
"end": 2499,
"loc": {
"start": {
"line": 67,
"column": 38
},
"end": {
"line": 67,
"column": 47
}
},
"left": {
"type": "NumericLiteral",
"start": 2490,
"end": 2491,
"loc": {
"start": {
"line": 67,
"column": 38
},
"end": {
"line": 67,
"column": 39
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
},
"operator": "/",
"right": {
"type": "Identifier",
"start": 2494,
"end": 2499,
"loc": {
"start": {
"line": 67,
"column": 42
},
"end": {
"line": 67,
"column": 47
},
"identifierName": "scale"
},
"name": "scale"
}
}
]
}
},
{
"type": "ExpressionStatement",
"start": 2511,
"end": 2671,
"loc": {
"start": {
"line": 68,
"column": 8
},
"end": {
"line": 71,
"column": 10
}
},
"expression": {
"type": "CallExpression",
"start": 2511,
"end": 2670,
"loc": {
"start": {
"line": 68,
"column": 8
},
"end": {
"line": 71,
"column": 9
}
},
"callee": {
"type": "MemberExpression",
"start": 2511,
"end": 2533,
"loc": {
"start": {
"line": 68,
"column": 8
},
"end": {
"line": 68,
"column": 30
}
},
"object": {
"type": "MemberExpression",
"start": 2511,
"end": 2523,
"loc": {
"start": {
"line": 68,
"column": 8
},
"end": {
"line": 68,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 2511,
"end": 2515,
"loc": {
"start": {
"line": 68,
"column": 8
},
"end": {
"line": 68,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 2516,
"end": 2523,
"loc": {
"start": {
"line": 68,
"column": 13
},
"end": {
"line": 68,
"column": 20
},
"identifierName": "context"
},
"name": "context"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 2524,
"end": 2533,
"loc": {
"start": {
"line": 68,
"column": 21
},
"end": {
"line": 68,
"column": 30
},
"identifierName": "translate"
},
"name": "translate"
},
"computed": false
},
"arguments": [
{
"type": "BinaryExpression",
"start": 2548,
"end": 2596,
"loc": {
"start": {
"line": 69,
"column": 12
},
"end": {
"line": 69,
"column": 60
}
},
"left": {
"type": "BinaryExpression",
"start": 2548,
"end": 2582,
"loc": {
"start": {
"line": 69,
"column": 12
},
"end": {
"line": 69,
"column": 46
}
},
"left": {
"type": "Identifier",
"start": 2548,
"end": 2558,
"loc": {
"start": {
"line": 69,
"column": 12
},
"end": {
"line": 69,
"column": 22
},
"identifierName": "startTileX"
},
"name": "startTileX"
},
"operator": "*",
"right": {
"type": "MemberExpression",
"start": 2561,
"end": 2582,
"loc": {
"start": {
"line": 69,
"column": 25
},
"end": {
"line": 69,
"column": 46
}
},
"object": {
"type": "Identifier",
"start": 2561,
"end": 2573,
"loc": {
"start": {
"line": 69,
"column": 25
},
"end": {
"line": 69,
"column": 37
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"property": {
"type": "Identifier",
"start": 2574,
"end": 2582,
"loc": {
"start": {
"line": 69,
"column": 38
},
"end": {
"line": 69,
"column": 46
},
"identifierName": "tileSize"
},
"name": "tileSize"
},
"computed": false
}
},
"operator": "-",
"right": {
"type": "Identifier",
"start": 2585,
"end": 2596,
"loc": {
"start": {
"line": 69,
"column": 49
},
"end": {
"line": 69,
"column": 60
},
"identifierName": "startWorldX"
},
"name": "startWorldX"
}
},
{
"type": "BinaryExpression",
"start": 2611,
"end": 2659,
"loc": {
"start": {
"line": 70,
"column": 12
},
"end": {
"line": 70,
"column": 60
}
},
"left": {
"type": "BinaryExpression",
"start": 2611,
"end": 2645,
"loc": {
"start": {
"line": 70,
"column": 12
},
"end": {
"line": 70,
"column": 46
}
},
"left": {
"type": "Identifier",
"start": 2611,
"end": 2621,
"loc": {
"start": {
"line": 70,
"column": 12
},
"end": {
"line": 70,
"column": 22
},
"identifierName": "startTileY"
},
"name": "startTileY"
},
"operator": "*",
"right": {
"type": "MemberExpression",
"start": 2624,
"end": 2645,
"loc": {
"start": {
"line": 70,
"column": 25
},
"end": {
"line": 70,
"column": 46
}
},
"object": {
"type": "Identifier",
"start": 2624,
"end": 2636,
"loc": {
"start": {
"line": 70,
"column": 25
},
"end": {
"line": 70,
"column": 37
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"property": {
"type": "Identifier",
"start": 2637,
"end": 2645,
"loc": {
"start": {
"line": 70,
"column": 38
},
"end": {
"line": 70,
"column": 46
},
"identifierName": "tileSize"
},
"name": "tileSize"
},
"computed": false
}
},
"operator": "-",
"right": {
"type": "Identifier",
"start": 2648,
"end": 2659,
"loc": {
"start": {
"line": 70,
"column": 49
},
"end": {
"line": 70,
"column": 60
},
"identifierName": "startWorldY"
},
"name": "startWorldY"
}
}
]
}
},
{
"type": "ForStatement",
"start": 2683,
"end": 3527,
"loc": {
"start": {
"line": 73,
"column": 8
},
"end": {
"line": 89,
"column": 9
}
},
"init": {
"type": "VariableDeclaration",
"start": 2688,
"end": 2698,
"loc": {
"start": {
"line": 73,
"column": 13
},
"end": {
"line": 73,
"column": 23
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2692,
"end": 2698,
"loc": {
"start": {
"line": 73,
"column": 17
},
"end": {
"line": 73,
"column": 23
}
},
"id": {
"type": "Identifier",
"start": 2692,
"end": 2694,
"loc": {
"start": {
"line": 73,
"column": 17
},
"end": {
"line": 73,
"column": 19
},
"identifierName": "dx"
},
"name": "dx"
},
"init": {
"type": "NumericLiteral",
"start": 2697,
"end": 2698,
"loc": {
"start": {
"line": 73,
"column": 22
},
"end": {
"line": 73,
"column": 23
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
],
"kind": "let"
},
"test": {
"type": "BinaryExpression",
"start": 2700,
"end": 2719,
"loc": {
"start": {
"line": 73,
"column": 25
},
"end": {
"line": 73,
"column": 44
}
},
"left": {
"type": "Identifier",
"start": 2700,
"end": 2702,
"loc": {
"start": {
"line": 73,
"column": 25
},
"end": {
"line": 73,
"column": 27
},
"identifierName": "dx"
},
"name": "dx"
},
"operator": "<",
"right": {
"type": "Identifier",
"start": 2705,
"end": 2719,
"loc": {
"start": {
"line": 73,
"column": 30
},
"end": {
"line": 73,
"column": 44
},
"identifierName": "tileDimensions"
},
"name": "tileDimensions"
}
},
"update": {
"type": "UpdateExpression",
"start": 2721,
"end": 2725,
"loc": {
"start": {
"line": 73,
"column": 46
},
"end": {
"line": 73,
"column": 50
}
},
"operator": "++",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 2723,
"end": 2725,
"loc": {
"start": {
"line": 73,
"column": 48
},
"end": {
"line": 73,
"column": 50
},
"identifierName": "dx"
},
"name": "dx"
},
"extra": {
"parenthesizedArgument": false
}
},
"body": {
"type": "BlockStatement",
"start": 2727,
"end": 3527,
"loc": {
"start": {
"line": 73,
"column": 52
},
"end": {
"line": 89,
"column": 9
}
},
"body": [
{
"type": "ForStatement",
"start": 2742,
"end": 3516,
"loc": {
"start": {
"line": 74,
"column": 12
},
"end": {
"line": 88,
"column": 13
}
},
"init": {
"type": "VariableDeclaration",
"start": 2747,
"end": 2757,
"loc": {
"start": {
"line": 74,
"column": 17
},
"end": {
"line": 74,
"column": 27
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2751,
"end": 2757,
"loc": {
"start": {
"line": 74,
"column": 21
},
"end": {
"line": 74,
"column": 27
}
},
"id": {
"type": "Identifier",
"start": 2751,
"end": 2753,
"loc": {
"start": {
"line": 74,
"column": 21
},
"end": {
"line": 74,
"column": 23
},
"identifierName": "dy"
},
"name": "dy"
},
"init": {
"type": "NumericLiteral",
"start": 2756,
"end": 2757,
"loc": {
"start": {
"line": 74,
"column": 26
},
"end": {
"line": 74,
"column": 27
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
],
"kind": "let"
},
"test": {
"type": "BinaryExpression",
"start": 2759,
"end": 2778,
"loc": {
"start": {
"line": 74,
"column": 29
},
"end": {
"line": 74,
"column": 48
}
},
"left": {
"type": "Identifier",
"start": 2759,
"end": 2761,
"loc": {
"start": {
"line": 74,
"column": 29
},
"end": {
"line": 74,
"column": 31
},
"identifierName": "dy"
},
"name": "dy"
},
"operator": "<",
"right": {
"type": "Identifier",
"start": 2764,
"end": 2778,
"loc": {
"start": {
"line": 74,
"column": 34
},
"end": {
"line": 74,
"column": 48
},
"identifierName": "tileDimensions"
},
"name": "tileDimensions"
}
},
"update": {
"type": "UpdateExpression",
"start": 2780,
"end": 2784,
"loc": {
"start": {
"line": 74,
"column": 50
},
"end": {
"line": 74,
"column": 54
}
},
"operator": "++",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 2782,
"end": 2784,
"loc": {
"start": {
"line": 74,
"column": 52
},
"end": {
"line": 74,
"column": 54
},
"identifierName": "dy"
},
"name": "dy"
},
"extra": {
"parenthesizedArgument": false
}
},
"body": {
"type": "BlockStatement",
"start": 2786,
"end": 3516,
"loc": {
"start": {
"line": 74,
"column": 56
},
"end": {
"line": 88,
"column": 13
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 2805,
"end": 2835,
"loc": {
"start": {
"line": 75,
"column": 16
},
"end": {
"line": 75,
"column": 46
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2811,
"end": 2834,
"loc": {
"start": {
"line": 75,
"column": 22
},
"end": {
"line": 75,
"column": 45
}
},
"id": {
"type": "Identifier",
"start": 2811,
"end": 2816,
"loc": {
"start": {
"line": 75,
"column": 22
},
"end": {
"line": 75,
"column": 27
},
"identifierName": "tileX"
},
"name": "tileX"
},
"init": {
"type": "BinaryExpression",
"start": 2819,
"end": 2834,
"loc": {
"start": {
"line": 75,
"column": 30
},
"end": {
"line": 75,
"column": 45
}
},
"left": {
"type": "Identifier",
"start": 2819,
"end": 2821,
"loc": {
"start": {
"line": 75,
"column": 30
},
"end": {
"line": 75,
"column": 32
},
"identifierName": "dx"
},
"name": "dx"
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 2824,
"end": 2834,
"loc": {
"start": {
"line": 75,
"column": 35
},
"end": {
"line": 75,
"column": 45
},
"identifierName": "startTileX"
},
"name": "startTileX"
}
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 2853,
"end": 2883,
"loc": {
"start": {
"line": 76,
"column": 16
},
"end": {
"line": 76,
"column": 46
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2859,
"end": 2882,
"loc": {
"start": {
"line": 76,
"column": 22
},
"end": {
"line": 76,
"column": 45
}
},
"id": {
"type": "Identifier",
"start": 2859,
"end": 2864,
"loc": {
"start": {
"line": 76,
"column": 22
},
"end": {
"line": 76,
"column": 27
},
"identifierName": "tileY"
},
"name": "tileY"
},
"init": {
"type": "BinaryExpression",
"start": 2867,
"end": 2882,
"loc": {
"start": {
"line": 76,
"column": 30
},
"end": {
"line": 76,
"column": 45
}
},
"left": {
"type": "Identifier",
"start": 2867,
"end": 2869,
"loc": {
"start": {
"line": 76,
"column": 30
},
"end": {
"line": 76,
"column": 32
},
"identifierName": "dy"
},
"name": "dy"
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 2872,
"end": 2882,
"loc": {
"start": {
"line": 76,
"column": 35
},
"end": {
"line": 76,
"column": 45
},
"identifierName": "startTileY"
},
"name": "startTileY"
}
}
}
],
"kind": "const",
"trailingComments": [
{
"type": "CommentLine",
"value": " you labed it as what is this on map_chunk I already said I am trying to make tiles use string instead of BaseItem on discord",
"start": 2884,
"end": 3011,
"loc": {
"start": {
"line": 76,
"column": 47
},
"end": {
"line": 76,
"column": 174
}
}
}
]
},
{
"type": "VariableDeclaration",
"start": 3031,
"end": 3100,
"loc": {
"start": {
"line": 78,
"column": 16
},
"end": {
"line": 78,
"column": 85
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 3037,
"end": 3099,
"loc": {
"start": {
"line": 78,
"column": 22
},
"end": {
"line": 78,
"column": 84
}
},
"id": {
"type": "Identifier",
"start": 3037,
"end": 3044,
"loc": {
"start": {
"line": 78,
"column": 22
},
"end": {
"line": 78,
"column": 29
},
"identifierName": "content"
},
"name": "content",
"leadingComments": null
},
"init": {
"type": "CallExpression",
"start": 3047,
"end": 3099,
"loc": {
"start": {
"line": 78,
"column": 32
},
"end": {
"line": 78,
"column": 84
}
},
"callee": {
"type": "MemberExpression",
"start": 3047,
"end": 3078,
"loc": {
"start": {
"line": 78,
"column": 32
},
"end": {
"line": 78,
"column": 63
}
},
"object": {
"type": "MemberExpression",
"start": 3047,
"end": 3060,
"loc": {
"start": {
"line": 78,
"column": 32
},
"end": {
"line": 78,
"column": 45
}
},
"object": {
"type": "MemberExpression",
"start": 3047,
"end": 3056,
"loc": {
"start": {
"line": 78,
"column": 32
},
"end": {
"line": 78,
"column": 41
}
},
"object": {
"type": "ThisExpression",
"start": 3047,
"end": 3051,
"loc": {
"start": {
"line": 78,
"column": 32
},
"end": {
"line": 78,
"column": 36
}
}
},
"property": {
"type": "Identifier",
"start": 3052,
"end": 3056,
"loc": {
"start": {
"line": 78,
"column": 37
},
"end": {
"line": 78,
"column": 41
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3057,
"end": 3060,
"loc": {
"start": {
"line": 78,
"column": 42
},
"end": {
"line": 78,
"column": 45
},
"identifierName": "map"
},
"name": "map"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3061,
"end": 3078,
"loc": {
"start": {
"line": 78,
"column": 46
},
"end": {
"line": 78,
"column": 63
},
"identifierName": "getLayerContentXY"
},
"name": "getLayerContentXY"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 3079,
"end": 3084,
"loc": {
"start": {
"line": 78,
"column": 64
},
"end": {
"line": 78,
"column": 69
},
"identifierName": "tileX"
},
"name": "tileX"
},
{
"type": "Identifier",
"start": 3086,
"end": 3091,
"loc": {
"start": {
"line": 78,
"column": 71
},
"end": {
"line": 78,
"column": 76
},
"identifierName": "tileY"
},
"name": "tileY"
},
{
"type": "Identifier",
"start": 3093,
"end": 3098,
"loc": {
"start": {
"line": 78,
"column": 78
},
"end": {
"line": 78,
"column": 83
},
"identifierName": "layer"
},
"name": "layer"
}
]
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentLine",
"value": " you labed it as what is this on map_chunk I already said I am trying to make tiles use string instead of BaseItem on discord",
"start": 2884,
"end": 3011,
"loc": {
"start": {
"line": 76,
"column": 47
},
"end": {
"line": 76,
"column": 174
}
}
}
]
},
{
"type": "IfStatement",
"start": 3118,
"end": 3501,
"loc": {
"start": {
"line": 79,
"column": 16
},
"end": {
"line": 87,
"column": 17
}
},
"test": {
"type": "Identifier",
"start": 3122,
"end": 3129,
"loc": {
"start": {
"line": 79,
"column": 20
},
"end": {
"line": 79,
"column": 27
},
"identifierName": "content"
},
"name": "content"
},
"consequent": {
"type": "BlockStatement",
"start": 3131,
"end": 3501,
"loc": {
"start": {
"line": 79,
"column": 29
},
"end": {
"line": 87,
"column": 17
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 3154,
"end": 3482,
"loc": {
"start": {
"line": 80,
"column": 20
},
"end": {
"line": 86,
"column": 23
}
},
"expression": {
"type": "CallExpression",
"start": 3154,
"end": 3481,
"loc": {
"start": {
"line": 80,
"column": 20
},
"end": {
"line": 86,
"column": 22
}
},
"callee": {
"type": "MemberExpression",
"start": 3154,
"end": 3189,
"loc": {
"start": {
"line": 80,
"column": 20
},
"end": {
"line": 80,
"column": 55
}
},
"object": {
"type": "Identifier",
"start": 3154,
"end": 3166,
"loc": {
"start": {
"line": 80,
"column": 20
},
"end": {
"line": 80,
"column": 32
},
"identifierName": "MapChunkView"
},
"name": "MapChunkView"
},
"property": {
"type": "Identifier",
"start": 3167,
"end": 3189,
"loc": {
"start": {
"line": 80,
"column": 33
},
"end": {
"line": 80,
"column": 55
},
"identifierName": "drawSingleOverviewTile"
},
"name": "drawSingleOverviewTile"
},
"computed": false
},
"arguments": [
{
"type": "ObjectExpression",
"start": 3190,
"end": 3480,
"loc": {
"start": {
"line": 80,
"column": 56
},
"end": {
"line": 86,
"column": 21
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 3217,
"end": 3238,
"loc": {
"start": {
"line": 81,
"column": 24
},
"end": {
"line": 81,
"column": 45
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3217,
"end": 3224,
"loc": {
"start": {
"line": 81,
"column": 24
},
"end": {
"line": 81,
"column": 31
},
"identifierName": "context"
},
"name": "context"
},
"value": {
"type": "MemberExpression",
"start": 3226,
"end": 3238,
"loc": {
"start": {
"line": 81,
"column": 33
},
"end": {
"line": 81,
"column": 45
}
},
"object": {
"type": "ThisExpression",
"start": 3226,
"end": 3230,
"loc": {
"start": {
"line": 81,
"column": 33
},
"end": {
"line": 81,
"column": 37
}
}
},
"property": {
"type": "Identifier",
"start": 3231,
"end": 3238,
"loc": {
"start": {
"line": 81,
"column": 38
},
"end": {
"line": 81,
"column": 45
},
"identifierName": "context"
},
"name": "context"
},
"computed": false
}
},
{
"type": "ObjectProperty",
"start": 3265,
"end": 3294,
"loc": {
"start": {
"line": 82,
"column": 24
},
"end": {
"line": 82,
"column": 53
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3265,
"end": 3266,
"loc": {
"start": {
"line": 82,
"column": 24
},
"end": {
"line": 82,
"column": 25
},
"identifierName": "x"
},
"name": "x"
},
"value": {
"type": "BinaryExpression",
"start": 3268,
"end": 3294,
"loc": {
"start": {
"line": 82,
"column": 27
},
"end": {
"line": 82,
"column": 53
}
},
"left": {
"type": "Identifier",
"start": 3268,
"end": 3270,
"loc": {
"start": {
"line": 82,
"column": 27
},
"end": {
"line": 82,
"column": 29
},
"identifierName": "dx"
},
"name": "dx"
},
"operator": "*",
"right": {
"type": "MemberExpression",
"start": 3273,
"end": 3294,
"loc": {
"start": {
"line": 82,
"column": 32
},
"end": {
"line": 82,
"column": 53
}
},
"object": {
"type": "Identifier",
"start": 3273,
"end": 3285,
"loc": {
"start": {
"line": 82,
"column": 32
},
"end": {
"line": 82,
"column": 44
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"property": {
"type": "Identifier",
"start": 3286,
"end": 3294,
"loc": {
"start": {
"line": 82,
"column": 45
},
"end": {
"line": 82,
"column": 53
},
"identifierName": "tileSize"
},
"name": "tileSize"
},
"computed": false
}
}
},
{
"type": "ObjectProperty",
"start": 3321,
"end": 3350,
"loc": {
"start": {
"line": 83,
"column": 24
},
"end": {
"line": 83,
"column": 53
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3321,
"end": 3322,
"loc": {
"start": {
"line": 83,
"column": 24
},
"end": {
"line": 83,
"column": 25
},
"identifierName": "y"
},
"name": "y"
},
"value": {
"type": "BinaryExpression",
"start": 3324,
"end": 3350,
"loc": {
"start": {
"line": 83,
"column": 27
},
"end": {
"line": 83,
"column": 53
}
},
"left": {
"type": "Identifier",
"start": 3324,
"end": 3326,
"loc": {
"start": {
"line": 83,
"column": 27
},
"end": {
"line": 83,
"column": 29
},
"identifierName": "dy"
},
"name": "dy"
},
"operator": "*",
"right": {
"type": "MemberExpression",
"start": 3329,
"end": 3350,
"loc": {
"start": {
"line": 83,
"column": 32
},
"end": {
"line": 83,
"column": 53
}
},
"object": {
"type": "Identifier",
"start": 3329,
"end": 3341,
"loc": {
"start": {
"line": 83,
"column": 32
},
"end": {
"line": 83,
"column": 44
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"property": {
"type": "Identifier",
"start": 3342,
"end": 3350,
"loc": {
"start": {
"line": 83,
"column": 45
},
"end": {
"line": 83,
"column": 53
},
"identifierName": "tileSize"
},
"name": "tileSize"
},
"computed": false
}
}
},
{
"type": "ObjectProperty",
"start": 3377,
"end": 3392,
"loc": {
"start": {
"line": 84,
"column": 24
},
"end": {
"line": 84,
"column": 39
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3377,
"end": 3383,
"loc": {
"start": {
"line": 84,
"column": 24
},
"end": {
"line": 84,
"column": 30
},
"identifierName": "entity"
},
"name": "entity"
},
"value": {
"type": "Identifier",
"start": 3385,
"end": 3392,
"loc": {
"start": {
"line": 84,
"column": 32
},
"end": {
"line": 84,
"column": 39
},
"identifierName": "content"
},
"name": "content"
}
},
{
"type": "ObjectProperty",
"start": 3419,
"end": 3456,
"loc": {
"start": {
"line": 85,
"column": 24
},
"end": {
"line": 85,
"column": 61
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3419,
"end": 3433,
"loc": {
"start": {
"line": 85,
"column": 24
},
"end": {
"line": 85,
"column": 38
},
"identifierName": "tileSizePixels"
},
"name": "tileSizePixels"
},
"value": {
"type": "MemberExpression",
"start": 3435,
"end": 3456,
"loc": {
"start": {
"line": 85,
"column": 40
},
"end": {
"line": 85,
"column": 61
}
},
"object": {
"type": "Identifier",
"start": 3435,
"end": 3447,
"loc": {
"start": {
"line": 85,
"column": 40
},
"end": {
"line": 85,
"column": 52
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"property": {
"type": "Identifier",
"start": 3448,
"end": 3456,
"loc": {
"start": {
"line": 85,
"column": 53
},
"end": {
"line": 85,
"column": 61
},
"identifierName": "tileSize"
},
"name": "tileSize"
},
"computed": false
}
}
]
}
]
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": []
}
}
],
"directives": []
}
},
{
"type": "ExpressionStatement",
"start": 3539,
"end": 3562,
"loc": {
"start": {
"line": 91,
"column": 8
},
"end": {
"line": 91,
"column": 31
}
},
"expression": {
"type": "CallExpression",
"start": 3539,
"end": 3561,
"loc": {
"start": {
"line": 91,
"column": 8
},
"end": {
"line": 91,
"column": 30
}
},
"callee": {
"type": "MemberExpression",
"start": 3539,
"end": 3559,
"loc": {
"start": {
"line": 91,
"column": 8
},
"end": {
"line": 91,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 3539,
"end": 3551,
"loc": {
"start": {
"line": 91,
"column": 8
},
"end": {
"line": 91,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 3539,
"end": 3543,
"loc": {
"start": {
"line": 91,
"column": 8
},
"end": {
"line": 91,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3544,
"end": 3551,
"loc": {
"start": {
"line": 91,
"column": 13
},
"end": {
"line": 91,
"column": 20
},
"identifierName": "context"
},
"name": "context"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3552,
"end": 3559,
"loc": {
"start": {
"line": 91,
"column": 21
},
"end": {
"line": 91,
"column": 28
},
"identifierName": "restore"
},
"name": "restore"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 3572,
"end": 3629,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 65
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3572,
"end": 3628,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 64
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3572,
"end": 3609,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 45
}
},
"object": {
"type": "MemberExpression",
"start": 3572,
"end": 3584,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 3572,
"end": 3576,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3577,
"end": 3584,
"loc": {
"start": {
"line": 92,
"column": 13
},
"end": {
"line": 92,
"column": 20
},
"identifierName": "context"
},
"name": "context"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3585,
"end": 3609,
"loc": {
"start": {
"line": 92,
"column": 21
},
"end": {
"line": 92,
"column": 45
},
"identifierName": "globalCompositeOperation"
},
"name": "globalCompositeOperation"
},
"computed": false
},
"right": {
"type": "StringLiteral",
"start": 3612,
"end": 3628,
"loc": {
"start": {
"line": 92,
"column": 48
},
"end": {
"line": 92,
"column": 64
}
},
"extra": {
"rawValue": "destination-in",
"raw": "\"destination-in\""
},
"value": "destination-in"
}
}
},
{
"type": "ExpressionStatement",
"start": 3639,
"end": 3720,
"loc": {
"start": {
"line": 93,
"column": 8
},
"end": {
"line": 93,
"column": 89
}
},
"expression": {
"type": "CallExpression",
"start": 3639,
"end": 3719,
"loc": {
"start": {
"line": 93,
"column": 8
},
"end": {
"line": 93,
"column": 88
}
},
"callee": {
"type": "MemberExpression",
"start": 3639,
"end": 3663,
"loc": {
"start": {
"line": 93,
"column": 8
},
"end": {
"line": 93,
"column": 32
}
},
"object": {
"type": "MemberExpression",
"start": 3639,
"end": 3658,
"loc": {
"start": {
"line": 93,
"column": 8
},
"end": {
"line": 93,
"column": 27
}
},
"object": {
"type": "ThisExpression",
"start": 3639,
"end": 3643,
"loc": {
"start": {
"line": 93,
"column": 8
},
"end": {
"line": 93,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3644,
"end": 3658,
"loc": {
"start": {
"line": 93,
"column": 13
},
"end": {
"line": 93,
"column": 27
},
"identifierName": "previewOverlay"
},
"name": "previewOverlay"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3659,
"end": 3663,
"loc": {
"start": {
"line": 93,
"column": 28
},
"end": {
"line": 93,
"column": 32
},
"identifierName": "draw"
},
"name": "draw"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 3664,
"end": 3676,
"loc": {
"start": {
"line": 93,
"column": 33
},
"end": {
"line": 93,
"column": 45
}
},
"object": {
"type": "ThisExpression",
"start": 3664,
"end": 3668,
"loc": {
"start": {
"line": 93,
"column": 33
},
"end": {
"line": 93,
"column": 37
}
}
},
"property": {
"type": "Identifier",
"start": 3669,
"end": 3676,
"loc": {
"start": {
"line": 93,
"column": 38
},
"end": {
"line": 93,
"column": 45
},
"identifierName": "context"
},
"name": "context"
},
"computed": false
},
{
"type": "NumericLiteral",
"start": 3678,
"end": 3679,
"loc": {
"start": {
"line": 93,
"column": 47
},
"end": {
"line": 93,
"column": 48
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
{
"type": "NumericLiteral",
"start": 3681,
"end": 3682,
"loc": {
"start": {
"line": 93,
"column": 50
},
"end": {
"line": 93,
"column": 51
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
{
"type": "MemberExpression",
"start": 3684,
"end": 3700,
"loc": {
"start": {
"line": 93,
"column": 53
},
"end": {
"line": 93,
"column": 69
}
},
"object": {
"type": "ThisExpression",
"start": 3684,
"end": 3688,
"loc": {
"start": {
"line": 93,
"column": 53
},
"end": {
"line": 93,
"column": 57
}
}
},
"property": {
"type": "Identifier",
"start": 3689,
"end": 3700,
"loc": {
"start": {
"line": 93,
"column": 58
},
"end": {
"line": 93,
"column": 69
},
"identifierName": "previewSize"
},
"name": "previewSize"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 3702,
"end": 3718,
"loc": {
"start": {
"line": 93,
"column": 71
},
"end": {
"line": 93,
"column": 87
}
},
"object": {
"type": "ThisExpression",
"start": 3702,
"end": 3706,
"loc": {
"start": {
"line": 93,
"column": 71
},
"end": {
"line": 93,
"column": 75
}
}
},
"property": {
"type": "Identifier",
"start": 3707,
"end": 3718,
"loc": {
"start": {
"line": 93,
"column": 76
},
"end": {
"line": 93,
"column": 87
},
"identifierName": "previewSize"
},
"name": "previewSize"
},
"computed": false
}
]
}
},
{
"type": "ExpressionStatement",
"start": 3730,
"end": 3784,
"loc": {
"start": {
"line": 94,
"column": 8
},
"end": {
"line": 94,
"column": 62
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3730,
"end": 3783,
"loc": {
"start": {
"line": 94,
"column": 8
},
"end": {
"line": 94,
"column": 61
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3730,
"end": 3767,
"loc": {
"start": {
"line": 94,
"column": 8
},
"end": {
"line": 94,
"column": 45
}
},
"object": {
"type": "MemberExpression",
"start": 3730,
"end": 3742,
"loc": {
"start": {
"line": 94,
"column": 8
},
"end": {
"line": 94,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 3730,
"end": 3734,
"loc": {
"start": {
"line": 94,
"column": 8
},
"end": {
"line": 94,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3735,
"end": 3742,
"loc": {
"start": {
"line": 94,
"column": 13
},
"end": {
"line": 94,
"column": 20
},
"identifierName": "context"
},
"name": "context"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 3743,
"end": 3767,
"loc": {
"start": {
"line": 94,
"column": 21
},
"end": {
"line": 94,
"column": 45
},
"identifierName": "globalCompositeOperation"
},
"name": "globalCompositeOperation"
},
"computed": false
},
"right": {
"type": "StringLiteral",
"start": 3770,
"end": 3783,
"loc": {
"start": {
"line": 94,
"column": 48
},
"end": {
"line": 94,
"column": 61
}
},
"extra": {
"rawValue": "source-over",
"raw": "\"source-over\""
},
"value": "source-over"
}
}
},
{
"type": "ReturnStatement",
"start": 3796,
"end": 3815,
"loc": {
"start": {
"line": 96,
"column": 8
},
"end": {
"line": 96,
"column": 27
}
},
"argument": {
"type": "MemberExpression",
"start": 3803,
"end": 3814,
"loc": {
"start": {
"line": 96,
"column": 15
},
"end": {
"line": 96,
"column": 26
}
},
"object": {
"type": "ThisExpression",
"start": 3803,
"end": 3807,
"loc": {
"start": {
"line": 96,
"column": 15
},
"end": {
"line": 96,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 3808,
"end": 3814,
"loc": {
"start": {
"line": 96,
"column": 20
},
"end": {
"line": 96,
"column": 26
},
"identifierName": "canvas"
},
"name": "canvas"
},
"computed": false
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Prepares the canvas to render at the given worldPos and the given camera scale\r\n *\r\n * @param {Vector} worldPos\r\n * @param {number} scale 1 / zoomLevel\r\n ",
"start": 1557,
"end": 1741,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 51,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Renders the preview at the given position\r\n * @param {import(\"../../../core/draw_utils\").DrawParameters} parameters\r\n * @param {Vector} worldPos\r\n * @param {number} scale 1 / zoomLevel\r\n ",
"start": 3830,
"end": 4047,
"loc": {
"start": {
"line": 99,
"column": 4
},
"end": {
"line": 104,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 4053,
"end": 4683,
"loc": {
"start": {
"line": 105,
"column": 4
},
"end": {
"line": 122,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 4053,
"end": 4066,
"loc": {
"start": {
"line": 105,
"column": 4
},
"end": {
"line": 105,
"column": 17
},
"identifierName": "renderPreview"
},
"name": "renderPreview",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 4067,
"end": 4077,
"loc": {
"start": {
"line": 105,
"column": 18
},
"end": {
"line": 105,
"column": 28
},
"identifierName": "parameters"
},
"name": "parameters"
},
{
"type": "Identifier",
"start": 4079,
"end": 4087,
"loc": {
"start": {
"line": 105,
"column": 30
},
"end": {
"line": 105,
"column": 38
},
"identifierName": "worldPos"
},
"name": "worldPos"
},
{
"type": "Identifier",
"start": 4089,
"end": 4094,
"loc": {
"start": {
"line": 105,
"column": 40
},
"end": {
"line": 105,
"column": 45
},
"identifierName": "scale"
},
"name": "scale"
},
{
"type": "Identifier",
"start": 4096,
"end": 4101,
"loc": {
"start": {
"line": 105,
"column": 47
},
"end": {
"line": 105,
"column": 52
},
"identifierName": "layer"
},
"name": "layer"
}
],
"body": {
"type": "BlockStatement",
"start": 4103,
"end": 4683,
"loc": {
"start": {
"line": 105,
"column": 54
},
"end": {
"line": 122,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 4114,
"end": 4237,
"loc": {
"start": {
"line": 106,
"column": 8
},
"end": {
"line": 109,
"column": 9
}
},
"test": {
"type": "BinaryExpression",
"start": 4118,
"end": 4154,
"loc": {
"start": {
"line": 106,
"column": 12
},
"end": {
"line": 106,
"column": 48
}
},
"left": {
"type": "MemberExpression",
"start": 4118,
"end": 4140,
"loc": {
"start": {
"line": 106,
"column": 12
},
"end": {
"line": 106,
"column": 34
}
},
"object": {
"type": "MemberExpression",
"start": 4118,
"end": 4127,
"loc": {
"start": {
"line": 106,
"column": 12
},
"end": {
"line": 106,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 4118,
"end": 4122,
"loc": {
"start": {
"line": 106,
"column": 12
},
"end": {
"line": 106,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 4123,
"end": 4127,
"loc": {
"start": {
"line": 106,
"column": 17
},
"end": {
"line": 106,
"column": 21
},
"identifierName": "root"
},
"name": "root"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 4128,
"end": 4140,
"loc": {
"start": {
"line": 106,
"column": 22
},
"end": {
"line": 106,
"column": 34
},
"identifierName": "currentLayer"
},
"name": "currentLayer"
},
"computed": false
},
"operator": "!==",
"right": {
"type": "StringLiteral",
"start": 4145,
"end": 4154,
"loc": {
"start": {
"line": 106,
"column": 39
},
"end": {
"line": 106,
"column": 48
}
},
"extra": {
"rawValue": "regular",
"raw": "\"regular\""
},
"value": "regular"
}
},
"consequent": {
"type": "BlockStatement",
"start": 4156,
"end": 4237,
"loc": {
"start": {
"line": 106,
"column": 50
},
"end": {
"line": 109,
"column": 9
}
},
"body": [
{
"type": "ReturnStatement",
"start": 4219,
"end": 4226,
"loc": {
"start": {
"line": 108,
"column": 12
},
"end": {
"line": 108,
"column": 19
}
},
"argument": null,
"leadingComments": [
{
"type": "CommentLine",
"value": " Only supporting wires right now",
"start": 4171,
"end": 4205,
"loc": {
"start": {
"line": 107,
"column": 12
},
"end": {
"line": 107,
"column": 46
}
}
}
]
}
],
"directives": []
},
"alternate": null
},
{
"type": "VariableDeclaration",
"start": 4249,
"end": 4317,
"loc": {
"start": {
"line": 111,
"column": 8
},
"end": {
"line": 111,
"column": 76
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4255,
"end": 4316,
"loc": {
"start": {
"line": 111,
"column": 14
},
"end": {
"line": 111,
"column": 75
}
},
"id": {
"type": "Identifier",
"start": 4255,
"end": 4261,
"loc": {
"start": {
"line": 111,
"column": 14
},
"end": {
"line": 111,
"column": 20
},
"identifierName": "canvas"
},
"name": "canvas"
},
"init": {
"type": "CallExpression",
"start": 4264,
"end": 4316,
"loc": {
"start": {
"line": 111,
"column": 23
},
"end": {
"line": 111,
"column": 75
}
},
"callee": {
"type": "MemberExpression",
"start": 4264,
"end": 4292,
"loc": {
"start": {
"line": 111,
"column": 23
},
"end": {
"line": 111,
"column": 51
}
},
"object": {
"type": "ThisExpression",
"start": 4264,
"end": 4268,
"loc": {
"start": {
"line": 111,
"column": 23
},
"end": {
"line": 111,
"column": 27
}
}
},
"property": {
"type": "Identifier",
"start": 4269,
"end": 4292,
"loc": {
"start": {
"line": 111,
"column": 28
},
"end": {
"line": 111,
"column": 51
},
"identifierName": "prepareCanvasForPreview"
},
"name": "prepareCanvasForPreview"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 4293,
"end": 4301,
"loc": {
"start": {
"line": 111,
"column": 52
},
"end": {
"line": 111,
"column": 60
},
"identifierName": "worldPos"
},
"name": "worldPos"
},
{
"type": "Identifier",
"start": 4303,
"end": 4308,
"loc": {
"start": {
"line": 111,
"column": 62
},
"end": {
"line": 111,
"column": 67
},
"identifierName": "scale"
},
"name": "scale"
},
{
"type": "Identifier",
"start": 4310,
"end": 4315,
"loc": {
"start": {
"line": 111,
"column": 69
},
"end": {
"line": 111,
"column": 74
},
"identifierName": "layer"
},
"name": "layer"
}
]
}
}
],
"kind": "const"
},
{
"type": "ExpressionStatement",
"start": 4329,
"end": 4366,
"loc": {
"start": {
"line": 113,
"column": 8
},
"end": {
"line": 113,
"column": 45
}
},
"expression": {
"type": "AssignmentExpression",
"start": 4329,
"end": 4365,
"loc": {
"start": {
"line": 113,
"column": 8
},
"end": {
"line": 113,
"column": 44
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 4329,
"end": 4359,
"loc": {
"start": {
"line": 113,
"column": 8
},
"end": {
"line": 113,
"column": 38
}
},
"object": {
"type": "MemberExpression",
"start": 4329,
"end": 4347,
"loc": {
"start": {
"line": 113,
"column": 8
},
"end": {
"line": 113,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 4329,
"end": 4339,
"loc": {
"start": {
"line": 113,
"column": 8
},
"end": {
"line": 113,
"column": 18
},
"identifierName": "parameters"
},
"name": "parameters"
},
"property": {
"type": "Identifier",
"start": 4340,
"end": 4347,
"loc": {
"start": {
"line": 113,
"column": 19
},
"end": {
"line": 113,
"column": 26
},
"identifierName": "context"
},
"name": "context"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 4348,
"end": 4359,
"loc": {
"start": {
"line": 113,
"column": 27
},
"end": {
"line": 113,
"column": 38
},
"identifierName": "globalAlpha"
},
"name": "globalAlpha"
},
"computed": false
},
"right": {
"type": "NumericLiteral",
"start": 4362,
"end": 4365,
"loc": {
"start": {
"line": 113,
"column": 41
},
"end": {
"line": 113,
"column": 44
}
},
"extra": {
"rawValue": 0.3,
"raw": "0.3"
},
"value": 0.3
}
}
},
{
"type": "ExpressionStatement",
"start": 4376,
"end": 4631,
"loc": {
"start": {
"line": 114,
"column": 8
},
"end": {
"line": 120,
"column": 10
}
},
"expression": {
"type": "CallExpression",
"start": 4376,
"end": 4630,
"loc": {
"start": {
"line": 114,
"column": 8
},
"end": {
"line": 120,
"column": 9
}
},
"callee": {
"type": "MemberExpression",
"start": 4376,
"end": 4404,
"loc": {
"start": {
"line": 114,
"column": 8
},
"end": {
"line": 114,
"column": 36
}
},
"object": {
"type": "MemberExpression",
"start": 4376,
"end": 4394,
"loc": {
"start": {
"line": 114,
"column": 8
},
"end": {
"line": 114,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 4376,
"end": 4386,
"loc": {
"start": {
"line": 114,
"column": 8
},
"end": {
"line": 114,
"column": 18
},
"identifierName": "parameters"
},
"name": "parameters"
},
"property": {
"type": "Identifier",
"start": 4387,
"end": 4394,
"loc": {
"start": {
"line": 114,
"column": 19
},
"end": {
"line": 114,
"column": 26
},
"identifierName": "context"
},
"name": "context"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 4395,
"end": 4404,
"loc": {
"start": {
"line": 114,
"column": 27
},
"end": {
"line": 114,
"column": 36
},
"identifierName": "drawImage"
},
"name": "drawImage"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 4419,
"end": 4425,
"loc": {
"start": {
"line": 115,
"column": 12
},
"end": {
"line": 115,
"column": 18
},
"identifierName": "canvas"
},
"name": "canvas"
},
{
"type": "BinaryExpression",
"start": 4440,
"end": 4483,
"loc": {
"start": {
"line": 116,
"column": 12
},
"end": {
"line": 116,
"column": 55
}
},
"left": {
"type": "MemberExpression",
"start": 4440,
"end": 4450,
"loc": {
"start": {
"line": 116,
"column": 12
},
"end": {
"line": 116,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 4440,
"end": 4448,
"loc": {
"start": {
"line": 116,
"column": 12
},
"end": {
"line": 116,
"column": 20
},
"identifierName": "worldPos"
},
"name": "worldPos"
},
"property": {
"type": "Identifier",
"start": 4449,
"end": 4450,
"loc": {
"start": {
"line": 116,
"column": 21
},
"end": {
"line": 116,
"column": 22
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
"operator": "-",
"right": {
"type": "BinaryExpression",
"start": 4453,
"end": 4483,
"loc": {
"start": {
"line": 116,
"column": 25
},
"end": {
"line": 116,
"column": 55
}
},
"left": {
"type": "BinaryExpression",
"start": 4454,
"end": 4478,
"loc": {
"start": {
"line": 116,
"column": 26
},
"end": {
"line": 116,
"column": 50
}
},
"left": {
"type": "Identifier",
"start": 4454,
"end": 4459,
"loc": {
"start": {
"line": 116,
"column": 26
},
"end": {
"line": 116,
"column": 31
},
"identifierName": "scale"
},
"name": "scale"
},
"operator": "*",
"right": {
"type": "MemberExpression",
"start": 4462,
"end": 4478,
"loc": {
"start": {
"line": 116,
"column": 34
},
"end": {
"line": 116,
"column": 50
}
},
"object": {
"type": "ThisExpression",
"start": 4462,
"end": 4466,
"loc": {
"start": {
"line": 116,
"column": 34
},
"end": {
"line": 116,
"column": 38
}
}
},
"property": {
"type": "Identifier",
"start": 4467,
"end": 4478,
"loc": {
"start": {
"line": 116,
"column": 39
},
"end": {
"line": 116,
"column": 50
},
"identifierName": "previewSize"
},
"name": "previewSize"
},
"computed": false
},
"extra": {
"parenthesized": true,
"parenStart": 4453
}
},
"operator": "/",
"right": {
"type": "NumericLiteral",
"start": 4482,
"end": 4483,
"loc": {
"start": {
"line": 116,
"column": 54
},
"end": {
"line": 116,
"column": 55
}
},
"extra": {
"rawValue": 2,
"raw": "2"
},
"value": 2
}
}
},
{
"type": "BinaryExpression",
"start": 4498,
"end": 4541,
"loc": {
"start": {
"line": 117,
"column": 12
},
"end": {
"line": 117,
"column": 55
}
},
"left": {
"type": "MemberExpression",
"start": 4498,
"end": 4508,
"loc": {
"start": {
"line": 117,
"column": 12
},
"end": {
"line": 117,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 4498,
"end": 4506,
"loc": {
"start": {
"line": 117,
"column": 12
},
"end": {
"line": 117,
"column": 20
},
"identifierName": "worldPos"
},
"name": "worldPos"
},
"property": {
"type": "Identifier",
"start": 4507,
"end": 4508,
"loc": {
"start": {
"line": 117,
"column": 21
},
"end": {
"line": 117,
"column": 22
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
"operator": "-",
"right": {
"type": "BinaryExpression",
"start": 4511,
"end": 4541,
"loc": {
"start": {
"line": 117,
"column": 25
},
"end": {
"line": 117,
"column": 55
}
},
"left": {
"type": "BinaryExpression",
"start": 4512,
"end": 4536,
"loc": {
"start": {
"line": 117,
"column": 26
},
"end": {
"line": 117,
"column": 50
}
},
"left": {
"type": "Identifier",
"start": 4512,
"end": 4517,
"loc": {
"start": {
"line": 117,
"column": 26
},
"end": {
"line": 117,
"column": 31
},
"identifierName": "scale"
},
"name": "scale"
},
"operator": "*",
"right": {
"type": "MemberExpression",
"start": 4520,
"end": 4536,
"loc": {
"start": {
"line": 117,
"column": 34
},
"end": {
"line": 117,
"column": 50
}
},
"object": {
"type": "ThisExpression",
"start": 4520,
"end": 4524,
"loc": {
"start": {
"line": 117,
"column": 34
},
"end": {
"line": 117,
"column": 38
}
}
},
"property": {
"type": "Identifier",
"start": 4525,
"end": 4536,
"loc": {
"start": {
"line": 117,
"column": 39
},
"end": {
"line": 117,
"column": 50
},
"identifierName": "previewSize"
},
"name": "previewSize"
},
"computed": false
},
"extra": {
"parenthesized": true,
"parenStart": 4511
}
},
"operator": "/",
"right": {
"type": "NumericLiteral",
"start": 4540,
"end": 4541,
"loc": {
"start": {
"line": 117,
"column": 54
},
"end": {
"line": 117,
"column": 55
}
},
"extra": {
"rawValue": 2,
"raw": "2"
},
"value": 2
}
}
},
{
"type": "BinaryExpression",
"start": 4556,
"end": 4580,
"loc": {
"start": {
"line": 118,
"column": 12
},
"end": {
"line": 118,
"column": 36
}
},
"left": {
"type": "Identifier",
"start": 4556,
"end": 4561,
"loc": {
"start": {
"line": 118,
"column": 12
},
"end": {
"line": 118,
"column": 17
},
"identifierName": "scale"
},
"name": "scale"
},
"operator": "*",
"right": {
"type": "MemberExpression",
"start": 4564,
"end": 4580,
"loc": {
"start": {
"line": 118,
"column": 20
},
"end": {
"line": 118,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 4564,
"end": 4568,
"loc": {
"start": {
"line": 118,
"column": 20
},
"end": {
"line": 118,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"start": 4569,
"end": 4580,
"loc": {
"start": {
"line": 118,
"column": 25
},
"end": {
"line": 118,
"column": 36
},
"identifierName": "previewSize"
},
"name": "previewSize"
},
"computed": false
}
},
{
"type": "BinaryExpression",
"start": 4595,
"end": 4619,
"loc": {
"start": {
"line": 119,
"column": 12
},
"end": {
"line": 119,
"column": 36
}
},
"left": {
"type": "Identifier",
"start": 4595,
"end": 4600,
"loc": {
"start": {
"line": 119,
"column": 12
},
"end": {
"line": 119,
"column": 17
},
"identifierName": "scale"
},
"name": "scale"
},
"operator": "*",
"right": {
"type": "MemberExpression",
"start": 4603,
"end": 4619,
"loc": {
"start": {
"line": 119,
"column": 20
},
"end": {
"line": 119,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 4603,
"end": 4607,
"loc": {
"start": {
"line": 119,
"column": 20
},
"end": {
"line": 119,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"start": 4608,
"end": 4619,
"loc": {
"start": {
"line": 119,
"column": 25
},
"end": {
"line": 119,
"column": 36
},
"identifierName": "previewSize"
},
"name": "previewSize"
},
"computed": false
}
}
]
}
},
{
"type": "ExpressionStatement",
"start": 4641,
"end": 4676,
"loc": {
"start": {
"line": 121,
"column": 8
},
"end": {
"line": 121,
"column": 43
}
},
"expression": {
"type": "AssignmentExpression",
"start": 4641,
"end": 4675,
"loc": {
"start": {
"line": 121,
"column": 8
},
"end": {
"line": 121,
"column": 42
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 4641,
"end": 4671,
"loc": {
"start": {
"line": 121,
"column": 8
},
"end": {
"line": 121,
"column": 38
}
},
"object": {
"type": "MemberExpression",
"start": 4641,
"end": 4659,
"loc": {
"start": {
"line": 121,
"column": 8
},
"end": {
"line": 121,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 4641,
"end": 4651,
"loc": {
"start": {
"line": 121,
"column": 8
},
"end": {
"line": 121,
"column": 18
},
"identifierName": "parameters"
},
"name": "parameters"
},
"property": {
"type": "Identifier",
"start": 4652,
"end": 4659,
"loc": {
"start": {
"line": 121,
"column": 19
},
"end": {
"line": 121,
"column": 26
},
"identifierName": "context"
},
"name": "context"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 4660,
"end": 4671,
"loc": {
"start": {
"line": 121,
"column": 27
},
"end": {
"line": 121,
"column": 38
},
"identifierName": "globalAlpha"
},
"name": "globalAlpha"
},
"computed": false
},
"right": {
"type": "NumericLiteral",
"start": 4674,
"end": 4675,
"loc": {
"start": {
"line": 121,
"column": 41
},
"end": {
"line": 121,
"column": 42
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
}
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Renders the preview at the given position\r\n * @param {import(\"../../../core/draw_utils\").DrawParameters} parameters\r\n * @param {Vector} worldPos\r\n * @param {number} scale 1 / zoomLevel\r\n ",
"start": 3830,
"end": 4047,
"loc": {
"start": {
"line": 99,
"column": 4
},
"end": {
"line": 104,
"column": 7
}
}
}
]
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Helper class which allows peaking through to the wires layer\r\n ",
"start": 372,
"end": 445,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 11,
"column": 3
}
}
}
],
"trailingComments": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Helper class which allows peaking through to the wires layer\r\n ",
"start": 372,
"end": 445,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 11,
"column": 3
}
}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "*\r\n * Helper class which allows peaking through to the wires layer\r\n ",
"start": 372,
"end": 445,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 11,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * (re) initializes the canvas\r\n ",
"start": 798,
"end": 846,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 22,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": " Compute how big the preview should be",
"start": 1028,
"end": 1068,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"column": 48
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Prepares the canvas to render at the given worldPos and the given camera scale\r\n *\r\n * @param {Vector} worldPos\r\n * @param {number} scale 1 / zoomLevel\r\n ",
"start": 1557,
"end": 1741,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 51,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": " you labed it as what is this on map_chunk I already said I am trying to make tiles use string instead of BaseItem on discord",
"start": 2884,
"end": 3011,
"loc": {
"start": {
"line": 76,
"column": 47
},
"end": {
"line": 76,
"column": 174
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Renders the preview at the given position\r\n * @param {import(\"../../../core/draw_utils\").DrawParameters} parameters\r\n * @param {Vector} worldPos\r\n * @param {number} scale 1 / zoomLevel\r\n ",
"start": 3830,
"end": 4047,
"loc": {
"start": {
"line": 99,
"column": 4
},
"end": {
"line": 104,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": " Only supporting wires right now",
"start": 4171,
"end": 4205,
"loc": {
"start": {
"line": 107,
"column": 12
},
"end": {
"line": 107,
"column": 46
}
}
}
],
"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": "freeCanvas",
"start": 9,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 19
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 19,
"end": 20,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "makeOffscreenBuffer",
"start": 21,
"end": 40,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 40
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 41,
"end": 42,
"loc": {
"start": {
"line": 1,
"column": 41
},
"end": {
"line": 1,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 43,
"end": 47,
"loc": {
"start": {
"line": 1,
"column": 43
},
"end": {
"line": 1,
"column": 47
}
}
},
{
"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": 48,
"end": 76,
"loc": {
"start": {
"line": 1,
"column": 48
},
"end": {
"line": 1,
"column": 76
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 76,
"end": 77,
"loc": {
"start": {
"line": 1,
"column": 76
},
"end": {
"line": 1,
"column": 77
}
}
},
{
"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": 79,
"end": 85,
"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": 86,
"end": 87,
"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": 88,
"end": 100,
"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": 101,
"end": 102,
"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": 103,
"end": 107,
"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": 108,
"end": 130,
"loc": {
"start": {
"line": 2,
"column": 29
},
"end": {
"line": 2,
"column": 51
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 130,
"end": 131,
"loc": {
"start": {
"line": 2,
"column": 51
},
"end": {
"line": 2,
"column": 52
}
}
},
{
"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": 133,
"end": 139,
"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": 140,
"end": 141,
"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": "Loader",
"start": 142,
"end": 148,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 15
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 149,
"end": 150,
"loc": {
"start": {
"line": 3,
"column": 16
},
"end": {
"line": 3,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 151,
"end": 155,
"loc": {
"start": {
"line": 3,
"column": 18
},
"end": {
"line": 3,
"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/loader",
"start": 156,
"end": 178,
"loc": {
"start": {
"line": 3,
"column": 23
},
"end": {
"line": 3,
"column": 45
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 178,
"end": 179,
"loc": {
"start": {
"line": 3,
"column": 45
},
"end": {
"line": 3,
"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": 181,
"end": 187,
"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": 188,
"end": 189,
"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": "Vector",
"start": 190,
"end": 196,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 15
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 197,
"end": 198,
"loc": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 4,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 199,
"end": 203,
"loc": {
"start": {
"line": 4,
"column": 18
},
"end": {
"line": 4,
"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": 204,
"end": 226,
"loc": {
"start": {
"line": 4,
"column": 23
},
"end": {
"line": 4,
"column": 45
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 226,
"end": 227,
"loc": {
"start": {
"line": 4,
"column": 45
},
"end": {
"line": 4,
"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": 229,
"end": 235,
"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": 236,
"end": 237,
"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": "MapChunkView",
"start": 238,
"end": 250,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 251,
"end": 252,
"loc": {
"start": {
"line": 5,
"column": 22
},
"end": {
"line": 5,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 253,
"end": 257,
"loc": {
"start": {
"line": 5,
"column": 24
},
"end": {
"line": 5,
"column": 28
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../../map_chunk_view",
"start": 258,
"end": 280,
"loc": {
"start": {
"line": 5,
"column": 29
},
"end": {
"line": 5,
"column": 51
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 280,
"end": 281,
"loc": {
"start": {
"line": 5,
"column": 51
},
"end": {
"line": 5,
"column": 52
}
}
},
{
"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": 283,
"end": 289,
"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": 290,
"end": 291,
"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": "THEME",
"start": 292,
"end": 297,
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 14
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 298,
"end": 299,
"loc": {
"start": {
"line": 6,
"column": 15
},
"end": {
"line": 6,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 300,
"end": 304,
"loc": {
"start": {
"line": 6,
"column": 17
},
"end": {
"line": 6,
"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": 305,
"end": 318,
"loc": {
"start": {
"line": 6,
"column": 22
},
"end": {
"line": 6,
"column": 35
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 318,
"end": 319,
"loc": {
"start": {
"line": 6,
"column": 35
},
"end": {
"line": 6,
"column": 36
}
}
},
{
"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": 321,
"end": 327,
"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": 328,
"end": 329,
"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": "BaseHUDPart",
"start": 330,
"end": 341,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 20
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 342,
"end": 343,
"loc": {
"start": {
"line": 7,
"column": 21
},
"end": {
"line": 7,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 344,
"end": 348,
"loc": {
"start": {
"line": 7,
"column": 23
},
"end": {
"line": 7,
"column": 27
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../base_hud_part",
"start": 349,
"end": 367,
"loc": {
"start": {
"line": 7,
"column": 28
},
"end": {
"line": 7,
"column": 46
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 367,
"end": 368,
"loc": {
"start": {
"line": 7,
"column": 46
},
"end": {
"line": 7,
"column": 47
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Helper class which allows peaking through to the wires layer\r\n ",
"start": 372,
"end": 445,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 11,
"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": 447,
"end": 453,
"loc": {
"start": {
"line": 12,
"column": 0
},
"end": {
"line": 12,
"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": 454,
"end": 459,
"loc": {
"start": {
"line": 12,
"column": 7
},
"end": {
"line": 12,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "HUDLayerPreview",
"start": 460,
"end": 475,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"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": 476,
"end": 483,
"loc": {
"start": {
"line": 12,
"column": 29
},
"end": {
"line": 12,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "BaseHUDPart",
"start": 484,
"end": 495,
"loc": {
"start": {
"line": 12,
"column": 37
},
"end": {
"line": 12,
"column": 48
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 496,
"end": 497,
"loc": {
"start": {
"line": 12,
"column": 49
},
"end": {
"line": 12,
"column": 50
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "initialize",
"start": 503,
"end": 513,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 513,
"end": 514,
"loc": {
"start": {
"line": 13,
"column": 14
},
"end": {
"line": 13,
"column": 15
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 514,
"end": 515,
"loc": {
"start": {
"line": 13,
"column": 15
},
"end": {
"line": 13,
"column": 16
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 516,
"end": 517,
"loc": {
"start": {
"line": 13,
"column": 17
},
"end": {
"line": 13,
"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": 527,
"end": 531,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 531,
"end": 532,
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "initializeCanvas",
"start": 532,
"end": 548,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 548,
"end": 549,
"loc": {
"start": {
"line": 14,
"column": 29
},
"end": {
"line": 14,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 549,
"end": 550,
"loc": {
"start": {
"line": 14,
"column": 30
},
"end": {
"line": 14,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 550,
"end": 551,
"loc": {
"start": {
"line": 14,
"column": 31
},
"end": {
"line": 14,
"column": 32
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 561,
"end": 565,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 565,
"end": 566,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 566,
"end": 570,
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 570,
"end": 571,
"loc": {
"start": {
"line": 15,
"column": 17
},
"end": {
"line": 15,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "signals",
"start": 571,
"end": 578,
"loc": {
"start": {
"line": 15,
"column": 18
},
"end": {
"line": 15,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 578,
"end": 579,
"loc": {
"start": {
"line": 15,
"column": 25
},
"end": {
"line": 15,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "aboutToDestruct",
"start": 579,
"end": 594,
"loc": {
"start": {
"line": 15,
"column": 26
},
"end": {
"line": 15,
"column": 41
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 594,
"end": 595,
"loc": {
"start": {
"line": 15,
"column": 41
},
"end": {
"line": 15,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "add",
"start": 595,
"end": 598,
"loc": {
"start": {
"line": 15,
"column": 42
},
"end": {
"line": 15,
"column": 45
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 598,
"end": 599,
"loc": {
"start": {
"line": 15,
"column": 45
},
"end": {
"line": 15,
"column": 46
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 599,
"end": 600,
"loc": {
"start": {
"line": 15,
"column": 46
},
"end": {
"line": 15,
"column": 47
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 600,
"end": 601,
"loc": {
"start": {
"line": 15,
"column": 47
},
"end": {
"line": 15,
"column": 48
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 602,
"end": 604,
"loc": {
"start": {
"line": 15,
"column": 49
},
"end": {
"line": 15,
"column": 51
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "freeCanvas",
"start": 605,
"end": 615,
"loc": {
"start": {
"line": 15,
"column": 52
},
"end": {
"line": 15,
"column": 62
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 615,
"end": 616,
"loc": {
"start": {
"line": 15,
"column": 62
},
"end": {
"line": 15,
"column": 63
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 616,
"end": 620,
"loc": {
"start": {
"line": 15,
"column": 63
},
"end": {
"line": 15,
"column": 67
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 620,
"end": 621,
"loc": {
"start": {
"line": 15,
"column": 67
},
"end": {
"line": 15,
"column": 68
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "canvas",
"start": 621,
"end": 627,
"loc": {
"start": {
"line": 15,
"column": 68
},
"end": {
"line": 15,
"column": 74
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 627,
"end": 628,
"loc": {
"start": {
"line": 15,
"column": 74
},
"end": {
"line": 15,
"column": 75
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 628,
"end": 629,
"loc": {
"start": {
"line": 15,
"column": 75
},
"end": {
"line": 15,
"column": 76
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 629,
"end": 630,
"loc": {
"start": {
"line": 15,
"column": 76
},
"end": {
"line": 15,
"column": 77
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 640,
"end": 644,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 644,
"end": 645,
"loc": {
"start": {
"line": 16,
"column": 12
},
"end": {
"line": 16,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 645,
"end": 649,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 17
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 649,
"end": 650,
"loc": {
"start": {
"line": 16,
"column": 17
},
"end": {
"line": 16,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "signals",
"start": 650,
"end": 657,
"loc": {
"start": {
"line": 16,
"column": 18
},
"end": {
"line": 16,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 657,
"end": 658,
"loc": {
"start": {
"line": 16,
"column": 25
},
"end": {
"line": 16,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "resized",
"start": 658,
"end": 665,
"loc": {
"start": {
"line": 16,
"column": 26
},
"end": {
"line": 16,
"column": 33
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 665,
"end": 666,
"loc": {
"start": {
"line": 16,
"column": 33
},
"end": {
"line": 16,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "add",
"start": 666,
"end": 669,
"loc": {
"start": {
"line": 16,
"column": 34
},
"end": {
"line": 16,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 669,
"end": 670,
"loc": {
"start": {
"line": 16,
"column": 37
},
"end": {
"line": 16,
"column": 38
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 670,
"end": 674,
"loc": {
"start": {
"line": 16,
"column": 38
},
"end": {
"line": 16,
"column": 42
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 674,
"end": 675,
"loc": {
"start": {
"line": 16,
"column": 42
},
"end": {
"line": 16,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "initializeCanvas",
"start": 675,
"end": 691,
"loc": {
"start": {
"line": 16,
"column": 43
},
"end": {
"line": 16,
"column": 59
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 691,
"end": 692,
"loc": {
"start": {
"line": 16,
"column": 59
},
"end": {
"line": 16,
"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": 693,
"end": 697,
"loc": {
"start": {
"line": 16,
"column": 61
},
"end": {
"line": 16,
"column": 65
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 697,
"end": 698,
"loc": {
"start": {
"line": 16,
"column": 65
},
"end": {
"line": 16,
"column": 66
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 698,
"end": 699,
"loc": {
"start": {
"line": 16,
"column": 66
},
"end": {
"line": 16,
"column": 67
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 709,
"end": 713,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 713,
"end": 714,
"loc": {
"start": {
"line": 17,
"column": 12
},
"end": {
"line": 17,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "previewOverlay",
"start": 714,
"end": 728,
"loc": {
"start": {
"line": 17,
"column": 13
},
"end": {
"line": 17,
"column": 27
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 729,
"end": 730,
"loc": {
"start": {
"line": 17,
"column": 28
},
"end": {
"line": 17,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Loader",
"start": 731,
"end": 737,
"loc": {
"start": {
"line": 17,
"column": 30
},
"end": {
"line": 17,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 737,
"end": 738,
"loc": {
"start": {
"line": 17,
"column": 36
},
"end": {
"line": 17,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getSprite",
"start": 738,
"end": 747,
"loc": {
"start": {
"line": 17,
"column": 37
},
"end": {
"line": 17,
"column": 46
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 747,
"end": 748,
"loc": {
"start": {
"line": 17,
"column": 46
},
"end": {
"line": 17,
"column": 47
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "sprites/wires/wires_preview.png",
"start": 748,
"end": 781,
"loc": {
"start": {
"line": 17,
"column": 47
},
"end": {
"line": 17,
"column": 80
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 781,
"end": 782,
"loc": {
"start": {
"line": 17,
"column": 80
},
"end": {
"line": 17,
"column": 81
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 782,
"end": 783,
"loc": {
"start": {
"line": 17,
"column": 81
},
"end": {
"line": 17,
"column": 82
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 789,
"end": 790,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * (re) initializes the canvas\r\n ",
"start": 798,
"end": 846,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 22,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "initializeCanvas",
"start": 852,
"end": 868,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 20
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 868,
"end": 869,
"loc": {
"start": {
"line": 23,
"column": 20
},
"end": {
"line": 23,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 869,
"end": 870,
"loc": {
"start": {
"line": 23,
"column": 21
},
"end": {
"line": 23,
"column": 22
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 871,
"end": 872,
"loc": {
"start": {
"line": 23,
"column": 23
},
"end": {
"line": 23,
"column": 24
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 882,
"end": 884,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 885,
"end": 886,
"loc": {
"start": {
"line": 24,
"column": 11
},
"end": {
"line": 24,
"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": 886,
"end": 890,
"loc": {
"start": {
"line": 24,
"column": 12
},
"end": {
"line": 24,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 890,
"end": 891,
"loc": {
"start": {
"line": 24,
"column": 16
},
"end": {
"line": 24,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "canvas",
"start": 891,
"end": 897,
"loc": {
"start": {
"line": 24,
"column": 17
},
"end": {
"line": 24,
"column": 23
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 897,
"end": 898,
"loc": {
"start": {
"line": 24,
"column": 23
},
"end": {
"line": 24,
"column": 24
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 899,
"end": 900,
"loc": {
"start": {
"line": 24,
"column": 25
},
"end": {
"line": 24,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "freeCanvas",
"start": 914,
"end": 924,
"loc": {
"start": {
"line": 25,
"column": 12
},
"end": {
"line": 25,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 924,
"end": 925,
"loc": {
"start": {
"line": 25,
"column": 22
},
"end": {
"line": 25,
"column": 23
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 925,
"end": 929,
"loc": {
"start": {
"line": 25,
"column": 23
},
"end": {
"line": 25,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 929,
"end": 930,
"loc": {
"start": {
"line": 25,
"column": 27
},
"end": {
"line": 25,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "canvas",
"start": 930,
"end": 936,
"loc": {
"start": {
"line": 25,
"column": 28
},
"end": {
"line": 25,
"column": 34
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 936,
"end": 937,
"loc": {
"start": {
"line": 25,
"column": 34
},
"end": {
"line": 25,
"column": 35
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 937,
"end": 938,
"loc": {
"start": {
"line": 25,
"column": 35
},
"end": {
"line": 25,
"column": 36
}
}
},
{
"type": {
"label": "delete",
"keyword": "delete",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "delete",
"start": 952,
"end": 958,
"loc": {
"start": {
"line": 26,
"column": 12
},
"end": {
"line": 26,
"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": 959,
"end": 963,
"loc": {
"start": {
"line": 26,
"column": 19
},
"end": {
"line": 26,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 963,
"end": 964,
"loc": {
"start": {
"line": 26,
"column": 23
},
"end": {
"line": 26,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "canvas",
"start": 964,
"end": 970,
"loc": {
"start": {
"line": 26,
"column": 24
},
"end": {
"line": 26,
"column": 30
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 970,
"end": 971,
"loc": {
"start": {
"line": 26,
"column": 30
},
"end": {
"line": 26,
"column": 31
}
}
},
{
"type": {
"label": "delete",
"keyword": "delete",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "delete",
"start": 985,
"end": 991,
"loc": {
"start": {
"line": 27,
"column": 12
},
"end": {
"line": 27,
"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": 992,
"end": 996,
"loc": {
"start": {
"line": 27,
"column": 19
},
"end": {
"line": 27,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 996,
"end": 997,
"loc": {
"start": {
"line": 27,
"column": 23
},
"end": {
"line": 27,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 997,
"end": 1004,
"loc": {
"start": {
"line": 27,
"column": 24
},
"end": {
"line": 27,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1004,
"end": 1005,
"loc": {
"start": {
"line": 27,
"column": 31
},
"end": {
"line": 27,
"column": 32
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1015,
"end": 1016,
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 28,
"column": 9
}
}
},
{
"type": "CommentLine",
"value": " Compute how big the preview should be",
"start": 1028,
"end": 1068,
"loc": {
"start": {
"line": 30,
"column": 8
},
"end": {
"line": 30,
"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": 1078,
"end": 1082,
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 31,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1082,
"end": 1083,
"loc": {
"start": {
"line": 31,
"column": 12
},
"end": {
"line": 31,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "previewSize",
"start": 1083,
"end": 1094,
"loc": {
"start": {
"line": 31,
"column": 13
},
"end": {
"line": 31,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1095,
"end": 1096,
"loc": {
"start": {
"line": 31,
"column": 25
},
"end": {
"line": 31,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 1097,
"end": 1101,
"loc": {
"start": {
"line": 31,
"column": 27
},
"end": {
"line": 31,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1101,
"end": 1102,
"loc": {
"start": {
"line": 31,
"column": 31
},
"end": {
"line": 31,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "round",
"start": 1102,
"end": 1107,
"loc": {
"start": {
"line": 31,
"column": 32
},
"end": {
"line": 31,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1107,
"end": 1108,
"loc": {
"start": {
"line": 31,
"column": 37
},
"end": {
"line": 31,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 1122,
"end": 1126,
"loc": {
"start": {
"line": 32,
"column": 12
},
"end": {
"line": 32,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1126,
"end": 1127,
"loc": {
"start": {
"line": 32,
"column": 16
},
"end": {
"line": 32,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "min",
"start": 1127,
"end": 1130,
"loc": {
"start": {
"line": 32,
"column": 17
},
"end": {
"line": 32,
"column": 20
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1130,
"end": 1131,
"loc": {
"start": {
"line": 32,
"column": 20
},
"end": {
"line": 32,
"column": 21
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 1024,
"start": 1131,
"end": 1135,
"loc": {
"start": {
"line": 32,
"column": 21
},
"end": {
"line": 32,
"column": 25
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1135,
"end": 1136,
"loc": {
"start": {
"line": 32,
"column": 25
},
"end": {
"line": 32,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 1137,
"end": 1141,
"loc": {
"start": {
"line": 32,
"column": 27
},
"end": {
"line": 32,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1141,
"end": 1142,
"loc": {
"start": {
"line": 32,
"column": 31
},
"end": {
"line": 32,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "min",
"start": 1142,
"end": 1145,
"loc": {
"start": {
"line": 32,
"column": 32
},
"end": {
"line": 32,
"column": 35
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1145,
"end": 1146,
"loc": {
"start": {
"line": 32,
"column": 35
},
"end": {
"line": 32,
"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": 1146,
"end": 1150,
"loc": {
"start": {
"line": 32,
"column": 36
},
"end": {
"line": 32,
"column": 40
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1150,
"end": 1151,
"loc": {
"start": {
"line": 32,
"column": 40
},
"end": {
"line": 32,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 1151,
"end": 1155,
"loc": {
"start": {
"line": 32,
"column": 41
},
"end": {
"line": 32,
"column": 45
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1155,
"end": 1156,
"loc": {
"start": {
"line": 32,
"column": 45
},
"end": {
"line": 32,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "gameWidth",
"start": 1156,
"end": 1165,
"loc": {
"start": {
"line": 32,
"column": 46
},
"end": {
"line": 32,
"column": 55
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1165,
"end": 1166,
"loc": {
"start": {
"line": 32,
"column": 55
},
"end": {
"line": 32,
"column": 56
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1167,
"end": 1171,
"loc": {
"start": {
"line": 32,
"column": 57
},
"end": {
"line": 32,
"column": 61
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1171,
"end": 1172,
"loc": {
"start": {
"line": 32,
"column": 61
},
"end": {
"line": 32,
"column": 62
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 1172,
"end": 1176,
"loc": {
"start": {
"line": 32,
"column": 62
},
"end": {
"line": 32,
"column": 66
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1176,
"end": 1177,
"loc": {
"start": {
"line": 32,
"column": 66
},
"end": {
"line": 32,
"column": 67
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "gameHeight",
"start": 1177,
"end": 1187,
"loc": {
"start": {
"line": 32,
"column": 67
},
"end": {
"line": 32,
"column": 77
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1187,
"end": 1188,
"loc": {
"start": {
"line": 32,
"column": 77
},
"end": {
"line": 32,
"column": 78
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 1189,
"end": 1190,
"loc": {
"start": {
"line": 32,
"column": 79
},
"end": {
"line": 32,
"column": 80
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0.8,
"start": 1191,
"end": 1194,
"loc": {
"start": {
"line": 32,
"column": 81
},
"end": {
"line": 32,
"column": 84
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1194,
"end": 1195,
"loc": {
"start": {
"line": 32,
"column": 84
},
"end": {
"line": 32,
"column": 85
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1205,
"end": 1206,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 9
}
}
},
{
"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": 33,
"column": 9
},
"end": {
"line": 33,
"column": 10
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 1219,
"end": 1224,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 13
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1225,
"end": 1226,
"loc": {
"start": {
"line": 35,
"column": 14
},
"end": {
"line": 35,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "canvas",
"start": 1226,
"end": 1232,
"loc": {
"start": {
"line": 35,
"column": 15
},
"end": {
"line": 35,
"column": 21
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1232,
"end": 1233,
"loc": {
"start": {
"line": 35,
"column": 21
},
"end": {
"line": 35,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 1234,
"end": 1241,
"loc": {
"start": {
"line": 35,
"column": 23
},
"end": {
"line": 35,
"column": 30
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1241,
"end": 1242,
"loc": {
"start": {
"line": 35,
"column": 30
},
"end": {
"line": 35,
"column": 31
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1243,
"end": 1244,
"loc": {
"start": {
"line": 35,
"column": 32
},
"end": {
"line": 35,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "makeOffscreenBuffer",
"start": 1245,
"end": 1264,
"loc": {
"start": {
"line": 35,
"column": 34
},
"end": {
"line": 35,
"column": 53
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1264,
"end": 1265,
"loc": {
"start": {
"line": 35,
"column": 53
},
"end": {
"line": 35,
"column": 54
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1265,
"end": 1269,
"loc": {
"start": {
"line": 35,
"column": 54
},
"end": {
"line": 35,
"column": 58
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1269,
"end": 1270,
"loc": {
"start": {
"line": 35,
"column": 58
},
"end": {
"line": 35,
"column": 59
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "previewSize",
"start": 1270,
"end": 1281,
"loc": {
"start": {
"line": 35,
"column": 59
},
"end": {
"line": 35,
"column": 70
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1281,
"end": 1282,
"loc": {
"start": {
"line": 35,
"column": 70
},
"end": {
"line": 35,
"column": 71
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1283,
"end": 1287,
"loc": {
"start": {
"line": 35,
"column": 72
},
"end": {
"line": 35,
"column": 76
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1287,
"end": 1288,
"loc": {
"start": {
"line": 35,
"column": 76
},
"end": {
"line": 35,
"column": 77
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "previewSize",
"start": 1288,
"end": 1299,
"loc": {
"start": {
"line": 35,
"column": 77
},
"end": {
"line": 35,
"column": 88
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1299,
"end": 1300,
"loc": {
"start": {
"line": 35,
"column": 88
},
"end": {
"line": 35,
"column": 89
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1301,
"end": 1302,
"loc": {
"start": {
"line": 35,
"column": 90
},
"end": {
"line": 35,
"column": 91
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "smooth",
"start": 1316,
"end": 1322,
"loc": {
"start": {
"line": 36,
"column": 12
},
"end": {
"line": 36,
"column": 18
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1322,
"end": 1323,
"loc": {
"start": {
"line": 36,
"column": 18
},
"end": {
"line": 36,
"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": 1324,
"end": 1328,
"loc": {
"start": {
"line": 36,
"column": 20
},
"end": {
"line": 36,
"column": 24
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1328,
"end": 1329,
"loc": {
"start": {
"line": 36,
"column": 24
},
"end": {
"line": 36,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "label",
"start": 1343,
"end": 1348,
"loc": {
"start": {
"line": 37,
"column": 12
},
"end": {
"line": 37,
"column": 17
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1348,
"end": 1349,
"loc": {
"start": {
"line": 37,
"column": 17
},
"end": {
"line": 37,
"column": 18
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "layerPeeker",
"start": 1350,
"end": 1363,
"loc": {
"start": {
"line": 37,
"column": 19
},
"end": {
"line": 37,
"column": 32
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1363,
"end": 1364,
"loc": {
"start": {
"line": 37,
"column": 32
},
"end": {
"line": 37,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "reusable",
"start": 1378,
"end": 1386,
"loc": {
"start": {
"line": 38,
"column": 12
},
"end": {
"line": 38,
"column": 20
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1386,
"end": 1387,
"loc": {
"start": {
"line": 38,
"column": 20
},
"end": {
"line": 38,
"column": 21
}
}
},
{
"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": 1388,
"end": 1392,
"loc": {
"start": {
"line": 38,
"column": 22
},
"end": {
"line": 38,
"column": 26
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1392,
"end": 1393,
"loc": {
"start": {
"line": 38,
"column": 26
},
"end": {
"line": 38,
"column": 27
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1403,
"end": 1404,
"loc": {
"start": {
"line": 39,
"column": 8
},
"end": {
"line": 39,
"column": 9
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1404,
"end": 1405,
"loc": {
"start": {
"line": 39,
"column": 9
},
"end": {
"line": 39,
"column": 10
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1405,
"end": 1406,
"loc": {
"start": {
"line": 39,
"column": 10
},
"end": {
"line": 39,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 1418,
"end": 1425,
"loc": {
"start": {
"line": 41,
"column": 8
},
"end": {
"line": 41,
"column": 15
}
}
},
{
"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": 41,
"column": 15
},
"end": {
"line": 41,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "clearRect",
"start": 1426,
"end": 1435,
"loc": {
"start": {
"line": 41,
"column": 16
},
"end": {
"line": 41,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1435,
"end": 1436,
"loc": {
"start": {
"line": 41,
"column": 25
},
"end": {
"line": 41,
"column": 26
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 1436,
"end": 1437,
"loc": {
"start": {
"line": 41,
"column": 26
},
"end": {
"line": 41,
"column": 27
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1437,
"end": 1438,
"loc": {
"start": {
"line": 41,
"column": 27
},
"end": {
"line": 41,
"column": 28
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 1439,
"end": 1440,
"loc": {
"start": {
"line": 41,
"column": 29
},
"end": {
"line": 41,
"column": 30
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1440,
"end": 1441,
"loc": {
"start": {
"line": 41,
"column": 30
},
"end": {
"line": 41,
"column": 31
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1442,
"end": 1446,
"loc": {
"start": {
"line": 41,
"column": 32
},
"end": {
"line": 41,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1446,
"end": 1447,
"loc": {
"start": {
"line": 41,
"column": 36
},
"end": {
"line": 41,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "previewSize",
"start": 1447,
"end": 1458,
"loc": {
"start": {
"line": 41,
"column": 37
},
"end": {
"line": 41,
"column": 48
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1458,
"end": 1459,
"loc": {
"start": {
"line": 41,
"column": 48
},
"end": {
"line": 41,
"column": 49
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1460,
"end": 1464,
"loc": {
"start": {
"line": 41,
"column": 50
},
"end": {
"line": 41,
"column": 54
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1464,
"end": 1465,
"loc": {
"start": {
"line": 41,
"column": 54
},
"end": {
"line": 41,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "previewSize",
"start": 1465,
"end": 1476,
"loc": {
"start": {
"line": 41,
"column": 55
},
"end": {
"line": 41,
"column": 66
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1476,
"end": 1477,
"loc": {
"start": {
"line": 41,
"column": 66
},
"end": {
"line": 41,
"column": 67
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1477,
"end": 1478,
"loc": {
"start": {
"line": 41,
"column": 67
},
"end": {
"line": 41,
"column": 68
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1488,
"end": 1492,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1492,
"end": 1493,
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "canvas",
"start": 1493,
"end": 1499,
"loc": {
"start": {
"line": 42,
"column": 13
},
"end": {
"line": 42,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1500,
"end": 1501,
"loc": {
"start": {
"line": 42,
"column": 20
},
"end": {
"line": 42,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "canvas",
"start": 1502,
"end": 1508,
"loc": {
"start": {
"line": 42,
"column": 22
},
"end": {
"line": 42,
"column": 28
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1508,
"end": 1509,
"loc": {
"start": {
"line": 42,
"column": 28
},
"end": {
"line": 42,
"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": 1519,
"end": 1523,
"loc": {
"start": {
"line": 43,
"column": 8
},
"end": {
"line": 43,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1523,
"end": 1524,
"loc": {
"start": {
"line": 43,
"column": 12
},
"end": {
"line": 43,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 1524,
"end": 1531,
"loc": {
"start": {
"line": 43,
"column": 13
},
"end": {
"line": 43,
"column": 20
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1532,
"end": 1533,
"loc": {
"start": {
"line": 43,
"column": 21
},
"end": {
"line": 43,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 1534,
"end": 1541,
"loc": {
"start": {
"line": 43,
"column": 23
},
"end": {
"line": 43,
"column": 30
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1541,
"end": 1542,
"loc": {
"start": {
"line": 43,
"column": 30
},
"end": {
"line": 43,
"column": 31
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1548,
"end": 1549,
"loc": {
"start": {
"line": 44,
"column": 4
},
"end": {
"line": 44,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Prepares the canvas to render at the given worldPos and the given camera scale\r\n *\r\n * @param {Vector} worldPos\r\n * @param {number} scale 1 / zoomLevel\r\n ",
"start": 1557,
"end": 1741,
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 51,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "prepareCanvasForPreview",
"start": 1747,
"end": 1770,
"loc": {
"start": {
"line": 52,
"column": 4
},
"end": {
"line": 52,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1770,
"end": 1771,
"loc": {
"start": {
"line": 52,
"column": 27
},
"end": {
"line": 52,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "worldPos",
"start": 1771,
"end": 1779,
"loc": {
"start": {
"line": 52,
"column": 28
},
"end": {
"line": 52,
"column": 36
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1779,
"end": 1780,
"loc": {
"start": {
"line": 52,
"column": 36
},
"end": {
"line": 52,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "scale",
"start": 1781,
"end": 1786,
"loc": {
"start": {
"line": 52,
"column": 38
},
"end": {
"line": 52,
"column": 43
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1786,
"end": 1787,
"loc": {
"start": {
"line": 52,
"column": 43
},
"end": {
"line": 52,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "layer",
"start": 1788,
"end": 1793,
"loc": {
"start": {
"line": 52,
"column": 45
},
"end": {
"line": 52,
"column": 50
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1793,
"end": 1794,
"loc": {
"start": {
"line": 52,
"column": 50
},
"end": {
"line": 52,
"column": 51
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1795,
"end": 1796,
"loc": {
"start": {
"line": 52,
"column": 52
},
"end": {
"line": 52,
"column": 53
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1806,
"end": 1810,
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1810,
"end": 1811,
"loc": {
"start": {
"line": 53,
"column": 12
},
"end": {
"line": 53,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 1811,
"end": 1818,
"loc": {
"start": {
"line": 53,
"column": 13
},
"end": {
"line": 53,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1818,
"end": 1819,
"loc": {
"start": {
"line": 53,
"column": 20
},
"end": {
"line": 53,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "clearRect",
"start": 1819,
"end": 1828,
"loc": {
"start": {
"line": 53,
"column": 21
},
"end": {
"line": 53,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1828,
"end": 1829,
"loc": {
"start": {
"line": 53,
"column": 30
},
"end": {
"line": 53,
"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": 1829,
"end": 1830,
"loc": {
"start": {
"line": 53,
"column": 31
},
"end": {
"line": 53,
"column": 32
}
}
},
{
"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": 53,
"column": 32
},
"end": {
"line": 53,
"column": 33
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 1832,
"end": 1833,
"loc": {
"start": {
"line": 53,
"column": 34
},
"end": {
"line": 53,
"column": 35
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1833,
"end": 1834,
"loc": {
"start": {
"line": 53,
"column": 35
},
"end": {
"line": 53,
"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": 1835,
"end": 1839,
"loc": {
"start": {
"line": 53,
"column": 37
},
"end": {
"line": 53,
"column": 41
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1839,
"end": 1840,
"loc": {
"start": {
"line": 53,
"column": 41
},
"end": {
"line": 53,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "previewSize",
"start": 1840,
"end": 1851,
"loc": {
"start": {
"line": 53,
"column": 42
},
"end": {
"line": 53,
"column": 53
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1851,
"end": 1852,
"loc": {
"start": {
"line": 53,
"column": 53
},
"end": {
"line": 53,
"column": 54
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1853,
"end": 1857,
"loc": {
"start": {
"line": 53,
"column": 55
},
"end": {
"line": 53,
"column": 59
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1857,
"end": 1858,
"loc": {
"start": {
"line": 53,
"column": 59
},
"end": {
"line": 53,
"column": 60
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "previewSize",
"start": 1858,
"end": 1869,
"loc": {
"start": {
"line": 53,
"column": 60
},
"end": {
"line": 53,
"column": 71
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1869,
"end": 1870,
"loc": {
"start": {
"line": 53,
"column": 71
},
"end": {
"line": 53,
"column": 72
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1870,
"end": 1871,
"loc": {
"start": {
"line": 53,
"column": 72
},
"end": {
"line": 53,
"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": 1881,
"end": 1885,
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 54,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1885,
"end": 1886,
"loc": {
"start": {
"line": 54,
"column": 12
},
"end": {
"line": 54,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 1886,
"end": 1893,
"loc": {
"start": {
"line": 54,
"column": 13
},
"end": {
"line": 54,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1893,
"end": 1894,
"loc": {
"start": {
"line": 54,
"column": 20
},
"end": {
"line": 54,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "fillStyle",
"start": 1894,
"end": 1903,
"loc": {
"start": {
"line": 54,
"column": 21
},
"end": {
"line": 54,
"column": 30
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1904,
"end": 1905,
"loc": {
"start": {
"line": 54,
"column": 31
},
"end": {
"line": 54,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "THEME",
"start": 1906,
"end": 1911,
"loc": {
"start": {
"line": 54,
"column": 33
},
"end": {
"line": 54,
"column": 38
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1911,
"end": 1912,
"loc": {
"start": {
"line": 54,
"column": 38
},
"end": {
"line": 54,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "map",
"start": 1912,
"end": 1915,
"loc": {
"start": {
"line": 54,
"column": 39
},
"end": {
"line": 54,
"column": 42
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1915,
"end": 1916,
"loc": {
"start": {
"line": 54,
"column": 42
},
"end": {
"line": 54,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "wires",
"start": 1916,
"end": 1921,
"loc": {
"start": {
"line": 54,
"column": 43
},
"end": {
"line": 54,
"column": 48
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1921,
"end": 1922,
"loc": {
"start": {
"line": 54,
"column": 48
},
"end": {
"line": 54,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "previewColor",
"start": 1922,
"end": 1934,
"loc": {
"start": {
"line": 54,
"column": 49
},
"end": {
"line": 54,
"column": 61
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1934,
"end": 1935,
"loc": {
"start": {
"line": 54,
"column": 61
},
"end": {
"line": 54,
"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": 1945,
"end": 1949,
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1949,
"end": 1950,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 1950,
"end": 1957,
"loc": {
"start": {
"line": 55,
"column": 13
},
"end": {
"line": 55,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1957,
"end": 1958,
"loc": {
"start": {
"line": 55,
"column": 20
},
"end": {
"line": 55,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "fillRect",
"start": 1958,
"end": 1966,
"loc": {
"start": {
"line": 55,
"column": 21
},
"end": {
"line": 55,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1966,
"end": 1967,
"loc": {
"start": {
"line": 55,
"column": 29
},
"end": {
"line": 55,
"column": 30
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 1967,
"end": 1968,
"loc": {
"start": {
"line": 55,
"column": 30
},
"end": {
"line": 55,
"column": 31
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1968,
"end": 1969,
"loc": {
"start": {
"line": 55,
"column": 31
},
"end": {
"line": 55,
"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": 1970,
"end": 1971,
"loc": {
"start": {
"line": 55,
"column": 33
},
"end": {
"line": 55,
"column": 34
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1971,
"end": 1972,
"loc": {
"start": {
"line": 55,
"column": 34
},
"end": {
"line": 55,
"column": 35
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1973,
"end": 1977,
"loc": {
"start": {
"line": 55,
"column": 36
},
"end": {
"line": 55,
"column": 40
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1977,
"end": 1978,
"loc": {
"start": {
"line": 55,
"column": 40
},
"end": {
"line": 55,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "previewSize",
"start": 1978,
"end": 1989,
"loc": {
"start": {
"line": 55,
"column": 41
},
"end": {
"line": 55,
"column": 52
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1989,
"end": 1990,
"loc": {
"start": {
"line": 55,
"column": 52
},
"end": {
"line": 55,
"column": 53
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1991,
"end": 1995,
"loc": {
"start": {
"line": 55,
"column": 54
},
"end": {
"line": 55,
"column": 58
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1995,
"end": 1996,
"loc": {
"start": {
"line": 55,
"column": 58
},
"end": {
"line": 55,
"column": 59
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "previewSize",
"start": 1996,
"end": 2007,
"loc": {
"start": {
"line": 55,
"column": 59
},
"end": {
"line": 55,
"column": 70
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2007,
"end": 2008,
"loc": {
"start": {
"line": 55,
"column": 70
},
"end": {
"line": 55,
"column": 71
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2008,
"end": 2009,
"loc": {
"start": {
"line": 55,
"column": 71
},
"end": {
"line": 55,
"column": 72
}
}
},
{
"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": 2021,
"end": 2026,
"loc": {
"start": {
"line": 57,
"column": 8
},
"end": {
"line": 57,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dimensions",
"start": 2027,
"end": 2037,
"loc": {
"start": {
"line": 57,
"column": 14
},
"end": {
"line": 57,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2038,
"end": 2039,
"loc": {
"start": {
"line": 57,
"column": 25
},
"end": {
"line": 57,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "scale",
"start": 2040,
"end": 2045,
"loc": {
"start": {
"line": 57,
"column": 27
},
"end": {
"line": 57,
"column": 32
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 2046,
"end": 2047,
"loc": {
"start": {
"line": 57,
"column": 33
},
"end": {
"line": 57,
"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": 2048,
"end": 2052,
"loc": {
"start": {
"line": 57,
"column": 35
},
"end": {
"line": 57,
"column": 39
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2052,
"end": 2053,
"loc": {
"start": {
"line": 57,
"column": 39
},
"end": {
"line": 57,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "previewSize",
"start": 2053,
"end": 2064,
"loc": {
"start": {
"line": 57,
"column": 40
},
"end": {
"line": 57,
"column": 51
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2064,
"end": 2065,
"loc": {
"start": {
"line": 57,
"column": 51
},
"end": {
"line": 57,
"column": 52
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 2077,
"end": 2082,
"loc": {
"start": {
"line": 59,
"column": 8
},
"end": {
"line": 59,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "startWorldX",
"start": 2083,
"end": 2094,
"loc": {
"start": {
"line": 59,
"column": 14
},
"end": {
"line": 59,
"column": 25
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2095,
"end": 2096,
"loc": {
"start": {
"line": 59,
"column": 26
},
"end": {
"line": 59,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "worldPos",
"start": 2097,
"end": 2105,
"loc": {
"start": {
"line": 59,
"column": 28
},
"end": {
"line": 59,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2105,
"end": 2106,
"loc": {
"start": {
"line": 59,
"column": 36
},
"end": {
"line": 59,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 2106,
"end": 2107,
"loc": {
"start": {
"line": 59,
"column": 37
},
"end": {
"line": 59,
"column": 38
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 2108,
"end": 2109,
"loc": {
"start": {
"line": 59,
"column": 39
},
"end": {
"line": 59,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dimensions",
"start": 2110,
"end": 2120,
"loc": {
"start": {
"line": 59,
"column": 41
},
"end": {
"line": 59,
"column": 51
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 2121,
"end": 2122,
"loc": {
"start": {
"line": 59,
"column": 52
},
"end": {
"line": 59,
"column": 53
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 2,
"start": 2123,
"end": 2124,
"loc": {
"start": {
"line": 59,
"column": 54
},
"end": {
"line": 59,
"column": 55
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2124,
"end": 2125,
"loc": {
"start": {
"line": 59,
"column": 55
},
"end": {
"line": 59,
"column": 56
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 2135,
"end": 2140,
"loc": {
"start": {
"line": 60,
"column": 8
},
"end": {
"line": 60,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "startWorldY",
"start": 2141,
"end": 2152,
"loc": {
"start": {
"line": 60,
"column": 14
},
"end": {
"line": 60,
"column": 25
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2153,
"end": 2154,
"loc": {
"start": {
"line": 60,
"column": 26
},
"end": {
"line": 60,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "worldPos",
"start": 2155,
"end": 2163,
"loc": {
"start": {
"line": 60,
"column": 28
},
"end": {
"line": 60,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2163,
"end": 2164,
"loc": {
"start": {
"line": 60,
"column": 36
},
"end": {
"line": 60,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 2164,
"end": 2165,
"loc": {
"start": {
"line": 60,
"column": 37
},
"end": {
"line": 60,
"column": 38
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 2166,
"end": 2167,
"loc": {
"start": {
"line": 60,
"column": 39
},
"end": {
"line": 60,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dimensions",
"start": 2168,
"end": 2178,
"loc": {
"start": {
"line": 60,
"column": 41
},
"end": {
"line": 60,
"column": 51
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 2179,
"end": 2180,
"loc": {
"start": {
"line": 60,
"column": 52
},
"end": {
"line": 60,
"column": 53
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 2,
"start": 2181,
"end": 2182,
"loc": {
"start": {
"line": 60,
"column": 54
},
"end": {
"line": 60,
"column": 55
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2182,
"end": 2183,
"loc": {
"start": {
"line": 60,
"column": 55
},
"end": {
"line": 60,
"column": 56
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 2195,
"end": 2200,
"loc": {
"start": {
"line": 62,
"column": 8
},
"end": {
"line": 62,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "startTileX",
"start": 2201,
"end": 2211,
"loc": {
"start": {
"line": 62,
"column": 14
},
"end": {
"line": 62,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2212,
"end": 2213,
"loc": {
"start": {
"line": 62,
"column": 25
},
"end": {
"line": 62,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 2214,
"end": 2218,
"loc": {
"start": {
"line": 62,
"column": 27
},
"end": {
"line": 62,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2218,
"end": 2219,
"loc": {
"start": {
"line": 62,
"column": 31
},
"end": {
"line": 62,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "floor",
"start": 2219,
"end": 2224,
"loc": {
"start": {
"line": 62,
"column": 32
},
"end": {
"line": 62,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2224,
"end": 2225,
"loc": {
"start": {
"line": 62,
"column": 37
},
"end": {
"line": 62,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "startWorldX",
"start": 2225,
"end": 2236,
"loc": {
"start": {
"line": 62,
"column": 38
},
"end": {
"line": 62,
"column": 49
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 2237,
"end": 2238,
"loc": {
"start": {
"line": 62,
"column": 50
},
"end": {
"line": 62,
"column": 51
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 2239,
"end": 2251,
"loc": {
"start": {
"line": 62,
"column": 52
},
"end": {
"line": 62,
"column": 64
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2251,
"end": 2252,
"loc": {
"start": {
"line": 62,
"column": 64
},
"end": {
"line": 62,
"column": 65
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileSize",
"start": 2252,
"end": 2260,
"loc": {
"start": {
"line": 62,
"column": 65
},
"end": {
"line": 62,
"column": 73
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2260,
"end": 2261,
"loc": {
"start": {
"line": 62,
"column": 73
},
"end": {
"line": 62,
"column": 74
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2261,
"end": 2262,
"loc": {
"start": {
"line": 62,
"column": 74
},
"end": {
"line": 62,
"column": 75
}
}
},
{
"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": 2272,
"end": 2277,
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "startTileY",
"start": 2278,
"end": 2288,
"loc": {
"start": {
"line": 63,
"column": 14
},
"end": {
"line": 63,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2289,
"end": 2290,
"loc": {
"start": {
"line": 63,
"column": 25
},
"end": {
"line": 63,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 2291,
"end": 2295,
"loc": {
"start": {
"line": 63,
"column": 27
},
"end": {
"line": 63,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2295,
"end": 2296,
"loc": {
"start": {
"line": 63,
"column": 31
},
"end": {
"line": 63,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "floor",
"start": 2296,
"end": 2301,
"loc": {
"start": {
"line": 63,
"column": 32
},
"end": {
"line": 63,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2301,
"end": 2302,
"loc": {
"start": {
"line": 63,
"column": 37
},
"end": {
"line": 63,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "startWorldY",
"start": 2302,
"end": 2313,
"loc": {
"start": {
"line": 63,
"column": 38
},
"end": {
"line": 63,
"column": 49
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 2314,
"end": 2315,
"loc": {
"start": {
"line": 63,
"column": 50
},
"end": {
"line": 63,
"column": 51
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 2316,
"end": 2328,
"loc": {
"start": {
"line": 63,
"column": 52
},
"end": {
"line": 63,
"column": 64
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2328,
"end": 2329,
"loc": {
"start": {
"line": 63,
"column": 64
},
"end": {
"line": 63,
"column": 65
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileSize",
"start": 2329,
"end": 2337,
"loc": {
"start": {
"line": 63,
"column": 65
},
"end": {
"line": 63,
"column": 73
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2337,
"end": 2338,
"loc": {
"start": {
"line": 63,
"column": 73
},
"end": {
"line": 63,
"column": 74
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2338,
"end": 2339,
"loc": {
"start": {
"line": 63,
"column": 74
},
"end": {
"line": 63,
"column": 75
}
}
},
{
"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": 2349,
"end": 2354,
"loc": {
"start": {
"line": 64,
"column": 8
},
"end": {
"line": 64,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileDimensions",
"start": 2355,
"end": 2369,
"loc": {
"start": {
"line": 64,
"column": 14
},
"end": {
"line": 64,
"column": 28
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2370,
"end": 2371,
"loc": {
"start": {
"line": 64,
"column": 29
},
"end": {
"line": 64,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 2372,
"end": 2376,
"loc": {
"start": {
"line": 64,
"column": 31
},
"end": {
"line": 64,
"column": 35
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2376,
"end": 2377,
"loc": {
"start": {
"line": 64,
"column": 35
},
"end": {
"line": 64,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ceil",
"start": 2377,
"end": 2381,
"loc": {
"start": {
"line": 64,
"column": 36
},
"end": {
"line": 64,
"column": 40
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2381,
"end": 2382,
"loc": {
"start": {
"line": 64,
"column": 40
},
"end": {
"line": 64,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dimensions",
"start": 2382,
"end": 2392,
"loc": {
"start": {
"line": 64,
"column": 41
},
"end": {
"line": 64,
"column": 51
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 2393,
"end": 2394,
"loc": {
"start": {
"line": 64,
"column": 52
},
"end": {
"line": 64,
"column": 53
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 2395,
"end": 2407,
"loc": {
"start": {
"line": 64,
"column": 54
},
"end": {
"line": 64,
"column": 66
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2407,
"end": 2408,
"loc": {
"start": {
"line": 64,
"column": 66
},
"end": {
"line": 64,
"column": 67
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileSize",
"start": 2408,
"end": 2416,
"loc": {
"start": {
"line": 64,
"column": 67
},
"end": {
"line": 64,
"column": 75
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2416,
"end": 2417,
"loc": {
"start": {
"line": 64,
"column": 75
},
"end": {
"line": 64,
"column": 76
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2417,
"end": 2418,
"loc": {
"start": {
"line": 64,
"column": 76
},
"end": {
"line": 64,
"column": 77
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2430,
"end": 2434,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2434,
"end": 2435,
"loc": {
"start": {
"line": 66,
"column": 12
},
"end": {
"line": 66,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 2435,
"end": 2442,
"loc": {
"start": {
"line": 66,
"column": 13
},
"end": {
"line": 66,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2442,
"end": 2443,
"loc": {
"start": {
"line": 66,
"column": 20
},
"end": {
"line": 66,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "save",
"start": 2443,
"end": 2447,
"loc": {
"start": {
"line": 66,
"column": 21
},
"end": {
"line": 66,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2447,
"end": 2448,
"loc": {
"start": {
"line": 66,
"column": 25
},
"end": {
"line": 66,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2448,
"end": 2449,
"loc": {
"start": {
"line": 66,
"column": 26
},
"end": {
"line": 66,
"column": 27
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2449,
"end": 2450,
"loc": {
"start": {
"line": 66,
"column": 27
},
"end": {
"line": 66,
"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": 2460,
"end": 2464,
"loc": {
"start": {
"line": 67,
"column": 8
},
"end": {
"line": 67,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2464,
"end": 2465,
"loc": {
"start": {
"line": 67,
"column": 12
},
"end": {
"line": 67,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 2465,
"end": 2472,
"loc": {
"start": {
"line": 67,
"column": 13
},
"end": {
"line": 67,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2472,
"end": 2473,
"loc": {
"start": {
"line": 67,
"column": 20
},
"end": {
"line": 67,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "scale",
"start": 2473,
"end": 2478,
"loc": {
"start": {
"line": 67,
"column": 21
},
"end": {
"line": 67,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2478,
"end": 2479,
"loc": {
"start": {
"line": 67,
"column": 26
},
"end": {
"line": 67,
"column": 27
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 1,
"start": 2479,
"end": 2480,
"loc": {
"start": {
"line": 67,
"column": 27
},
"end": {
"line": 67,
"column": 28
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 2481,
"end": 2482,
"loc": {
"start": {
"line": 67,
"column": 29
},
"end": {
"line": 67,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "scale",
"start": 2483,
"end": 2488,
"loc": {
"start": {
"line": 67,
"column": 31
},
"end": {
"line": 67,
"column": 36
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2488,
"end": 2489,
"loc": {
"start": {
"line": 67,
"column": 36
},
"end": {
"line": 67,
"column": 37
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 1,
"start": 2490,
"end": 2491,
"loc": {
"start": {
"line": 67,
"column": 38
},
"end": {
"line": 67,
"column": 39
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 2492,
"end": 2493,
"loc": {
"start": {
"line": 67,
"column": 40
},
"end": {
"line": 67,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "scale",
"start": 2494,
"end": 2499,
"loc": {
"start": {
"line": 67,
"column": 42
},
"end": {
"line": 67,
"column": 47
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2499,
"end": 2500,
"loc": {
"start": {
"line": 67,
"column": 47
},
"end": {
"line": 67,
"column": 48
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2500,
"end": 2501,
"loc": {
"start": {
"line": 67,
"column": 48
},
"end": {
"line": 67,
"column": 49
}
}
},
{
"type": {
"label": "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": 68,
"column": 8
},
"end": {
"line": 68,
"column": 12
}
}
},
{
"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": 68,
"column": 12
},
"end": {
"line": 68,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 2516,
"end": 2523,
"loc": {
"start": {
"line": 68,
"column": 13
},
"end": {
"line": 68,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2523,
"end": 2524,
"loc": {
"start": {
"line": 68,
"column": 20
},
"end": {
"line": 68,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "translate",
"start": 2524,
"end": 2533,
"loc": {
"start": {
"line": 68,
"column": 21
},
"end": {
"line": 68,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2533,
"end": 2534,
"loc": {
"start": {
"line": 68,
"column": 30
},
"end": {
"line": 68,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "startTileX",
"start": 2548,
"end": 2558,
"loc": {
"start": {
"line": 69,
"column": 12
},
"end": {
"line": 69,
"column": 22
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 2559,
"end": 2560,
"loc": {
"start": {
"line": 69,
"column": 23
},
"end": {
"line": 69,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 2561,
"end": 2573,
"loc": {
"start": {
"line": 69,
"column": 25
},
"end": {
"line": 69,
"column": 37
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2573,
"end": 2574,
"loc": {
"start": {
"line": 69,
"column": 37
},
"end": {
"line": 69,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileSize",
"start": 2574,
"end": 2582,
"loc": {
"start": {
"line": 69,
"column": 38
},
"end": {
"line": 69,
"column": 46
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 2583,
"end": 2584,
"loc": {
"start": {
"line": 69,
"column": 47
},
"end": {
"line": 69,
"column": 48
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "startWorldX",
"start": 2585,
"end": 2596,
"loc": {
"start": {
"line": 69,
"column": 49
},
"end": {
"line": 69,
"column": 60
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2596,
"end": 2597,
"loc": {
"start": {
"line": 69,
"column": 60
},
"end": {
"line": 69,
"column": 61
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "startTileY",
"start": 2611,
"end": 2621,
"loc": {
"start": {
"line": 70,
"column": 12
},
"end": {
"line": 70,
"column": 22
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 2622,
"end": 2623,
"loc": {
"start": {
"line": 70,
"column": 23
},
"end": {
"line": 70,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 2624,
"end": 2636,
"loc": {
"start": {
"line": 70,
"column": 25
},
"end": {
"line": 70,
"column": 37
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2636,
"end": 2637,
"loc": {
"start": {
"line": 70,
"column": 37
},
"end": {
"line": 70,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileSize",
"start": 2637,
"end": 2645,
"loc": {
"start": {
"line": 70,
"column": 38
},
"end": {
"line": 70,
"column": 46
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 2646,
"end": 2647,
"loc": {
"start": {
"line": 70,
"column": 47
},
"end": {
"line": 70,
"column": 48
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "startWorldY",
"start": 2648,
"end": 2659,
"loc": {
"start": {
"line": 70,
"column": 49
},
"end": {
"line": 70,
"column": 60
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2669,
"end": 2670,
"loc": {
"start": {
"line": 71,
"column": 8
},
"end": {
"line": 71,
"column": 9
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2670,
"end": 2671,
"loc": {
"start": {
"line": 71,
"column": 9
},
"end": {
"line": 71,
"column": 10
}
}
},
{
"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": 2683,
"end": 2686,
"loc": {
"start": {
"line": 73,
"column": 8
},
"end": {
"line": 73,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2687,
"end": 2688,
"loc": {
"start": {
"line": 73,
"column": 12
},
"end": {
"line": 73,
"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": 2688,
"end": 2691,
"loc": {
"start": {
"line": 73,
"column": 13
},
"end": {
"line": 73,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dx",
"start": 2692,
"end": 2694,
"loc": {
"start": {
"line": 73,
"column": 17
},
"end": {
"line": 73,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2695,
"end": 2696,
"loc": {
"start": {
"line": 73,
"column": 20
},
"end": {
"line": 73,
"column": 21
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 2697,
"end": 2698,
"loc": {
"start": {
"line": 73,
"column": 22
},
"end": {
"line": 73,
"column": 23
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2698,
"end": 2699,
"loc": {
"start": {
"line": 73,
"column": 23
},
"end": {
"line": 73,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dx",
"start": 2700,
"end": 2702,
"loc": {
"start": {
"line": 73,
"column": 25
},
"end": {
"line": 73,
"column": 27
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 2703,
"end": 2704,
"loc": {
"start": {
"line": 73,
"column": 28
},
"end": {
"line": 73,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileDimensions",
"start": 2705,
"end": 2719,
"loc": {
"start": {
"line": 73,
"column": 30
},
"end": {
"line": 73,
"column": 44
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2719,
"end": 2720,
"loc": {
"start": {
"line": 73,
"column": 44
},
"end": {
"line": 73,
"column": 45
}
}
},
{
"type": {
"label": "++/--",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": true,
"binop": null
},
"value": "++",
"start": 2721,
"end": 2723,
"loc": {
"start": {
"line": 73,
"column": 46
},
"end": {
"line": 73,
"column": 48
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dx",
"start": 2723,
"end": 2725,
"loc": {
"start": {
"line": 73,
"column": 48
},
"end": {
"line": 73,
"column": 50
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2725,
"end": 2726,
"loc": {
"start": {
"line": 73,
"column": 50
},
"end": {
"line": 73,
"column": 51
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2727,
"end": 2728,
"loc": {
"start": {
"line": 73,
"column": 52
},
"end": {
"line": 73,
"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": 2742,
"end": 2745,
"loc": {
"start": {
"line": 74,
"column": 12
},
"end": {
"line": 74,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2746,
"end": 2747,
"loc": {
"start": {
"line": 74,
"column": 16
},
"end": {
"line": 74,
"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": 2747,
"end": 2750,
"loc": {
"start": {
"line": 74,
"column": 17
},
"end": {
"line": 74,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dy",
"start": 2751,
"end": 2753,
"loc": {
"start": {
"line": 74,
"column": 21
},
"end": {
"line": 74,
"column": 23
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2754,
"end": 2755,
"loc": {
"start": {
"line": 74,
"column": 24
},
"end": {
"line": 74,
"column": 25
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 2756,
"end": 2757,
"loc": {
"start": {
"line": 74,
"column": 26
},
"end": {
"line": 74,
"column": 27
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2757,
"end": 2758,
"loc": {
"start": {
"line": 74,
"column": 27
},
"end": {
"line": 74,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dy",
"start": 2759,
"end": 2761,
"loc": {
"start": {
"line": 74,
"column": 29
},
"end": {
"line": 74,
"column": 31
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 2762,
"end": 2763,
"loc": {
"start": {
"line": 74,
"column": 32
},
"end": {
"line": 74,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileDimensions",
"start": 2764,
"end": 2778,
"loc": {
"start": {
"line": 74,
"column": 34
},
"end": {
"line": 74,
"column": 48
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2778,
"end": 2779,
"loc": {
"start": {
"line": 74,
"column": 48
},
"end": {
"line": 74,
"column": 49
}
}
},
{
"type": {
"label": "++/--",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": true,
"binop": null
},
"value": "++",
"start": 2780,
"end": 2782,
"loc": {
"start": {
"line": 74,
"column": 50
},
"end": {
"line": 74,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dy",
"start": 2782,
"end": 2784,
"loc": {
"start": {
"line": 74,
"column": 52
},
"end": {
"line": 74,
"column": 54
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2784,
"end": 2785,
"loc": {
"start": {
"line": 74,
"column": 54
},
"end": {
"line": 74,
"column": 55
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2786,
"end": 2787,
"loc": {
"start": {
"line": 74,
"column": 56
},
"end": {
"line": 74,
"column": 57
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 2805,
"end": 2810,
"loc": {
"start": {
"line": 75,
"column": 16
},
"end": {
"line": 75,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileX",
"start": 2811,
"end": 2816,
"loc": {
"start": {
"line": 75,
"column": 22
},
"end": {
"line": 75,
"column": 27
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2817,
"end": 2818,
"loc": {
"start": {
"line": 75,
"column": 28
},
"end": {
"line": 75,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dx",
"start": 2819,
"end": 2821,
"loc": {
"start": {
"line": 75,
"column": 30
},
"end": {
"line": 75,
"column": 32
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 2822,
"end": 2823,
"loc": {
"start": {
"line": 75,
"column": 33
},
"end": {
"line": 75,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "startTileX",
"start": 2824,
"end": 2834,
"loc": {
"start": {
"line": 75,
"column": 35
},
"end": {
"line": 75,
"column": 45
}
}
},
{
"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": 75,
"column": 45
},
"end": {
"line": 75,
"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": 2853,
"end": 2858,
"loc": {
"start": {
"line": 76,
"column": 16
},
"end": {
"line": 76,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileY",
"start": 2859,
"end": 2864,
"loc": {
"start": {
"line": 76,
"column": 22
},
"end": {
"line": 76,
"column": 27
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2865,
"end": 2866,
"loc": {
"start": {
"line": 76,
"column": 28
},
"end": {
"line": 76,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dy",
"start": 2867,
"end": 2869,
"loc": {
"start": {
"line": 76,
"column": 30
},
"end": {
"line": 76,
"column": 32
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 2870,
"end": 2871,
"loc": {
"start": {
"line": 76,
"column": 33
},
"end": {
"line": 76,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "startTileY",
"start": 2872,
"end": 2882,
"loc": {
"start": {
"line": 76,
"column": 35
},
"end": {
"line": 76,
"column": 45
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2882,
"end": 2883,
"loc": {
"start": {
"line": 76,
"column": 45
},
"end": {
"line": 76,
"column": 46
}
}
},
{
"type": "CommentLine",
"value": " you labed it as what is this on map_chunk I already said I am trying to make tiles use string instead of BaseItem on discord",
"start": 2884,
"end": 3011,
"loc": {
"start": {
"line": 76,
"column": 47
},
"end": {
"line": 76,
"column": 174
}
}
},
{
"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": 3031,
"end": 3036,
"loc": {
"start": {
"line": 78,
"column": 16
},
"end": {
"line": 78,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "content",
"start": 3037,
"end": 3044,
"loc": {
"start": {
"line": 78,
"column": 22
},
"end": {
"line": 78,
"column": 29
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3045,
"end": 3046,
"loc": {
"start": {
"line": 78,
"column": 30
},
"end": {
"line": 78,
"column": 31
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3047,
"end": 3051,
"loc": {
"start": {
"line": 78,
"column": 32
},
"end": {
"line": 78,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3051,
"end": 3052,
"loc": {
"start": {
"line": 78,
"column": 36
},
"end": {
"line": 78,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 3052,
"end": 3056,
"loc": {
"start": {
"line": 78,
"column": 37
},
"end": {
"line": 78,
"column": 41
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3056,
"end": 3057,
"loc": {
"start": {
"line": 78,
"column": 41
},
"end": {
"line": 78,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "map",
"start": 3057,
"end": 3060,
"loc": {
"start": {
"line": 78,
"column": 42
},
"end": {
"line": 78,
"column": 45
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3060,
"end": 3061,
"loc": {
"start": {
"line": 78,
"column": 45
},
"end": {
"line": 78,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getLayerContentXY",
"start": 3061,
"end": 3078,
"loc": {
"start": {
"line": 78,
"column": 46
},
"end": {
"line": 78,
"column": 63
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3078,
"end": 3079,
"loc": {
"start": {
"line": 78,
"column": 63
},
"end": {
"line": 78,
"column": 64
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileX",
"start": 3079,
"end": 3084,
"loc": {
"start": {
"line": 78,
"column": 64
},
"end": {
"line": 78,
"column": 69
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3084,
"end": 3085,
"loc": {
"start": {
"line": 78,
"column": 69
},
"end": {
"line": 78,
"column": 70
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileY",
"start": 3086,
"end": 3091,
"loc": {
"start": {
"line": 78,
"column": 71
},
"end": {
"line": 78,
"column": 76
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3091,
"end": 3092,
"loc": {
"start": {
"line": 78,
"column": 76
},
"end": {
"line": 78,
"column": 77
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "layer",
"start": 3093,
"end": 3098,
"loc": {
"start": {
"line": 78,
"column": 78
},
"end": {
"line": 78,
"column": 83
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3098,
"end": 3099,
"loc": {
"start": {
"line": 78,
"column": 83
},
"end": {
"line": 78,
"column": 84
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3099,
"end": 3100,
"loc": {
"start": {
"line": 78,
"column": 84
},
"end": {
"line": 78,
"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": 3118,
"end": 3120,
"loc": {
"start": {
"line": 79,
"column": 16
},
"end": {
"line": 79,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3121,
"end": 3122,
"loc": {
"start": {
"line": 79,
"column": 19
},
"end": {
"line": 79,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "content",
"start": 3122,
"end": 3129,
"loc": {
"start": {
"line": 79,
"column": 20
},
"end": {
"line": 79,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3129,
"end": 3130,
"loc": {
"start": {
"line": 79,
"column": 27
},
"end": {
"line": 79,
"column": 28
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3131,
"end": 3132,
"loc": {
"start": {
"line": 79,
"column": 29
},
"end": {
"line": 79,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "MapChunkView",
"start": 3154,
"end": 3166,
"loc": {
"start": {
"line": 80,
"column": 20
},
"end": {
"line": 80,
"column": 32
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3166,
"end": 3167,
"loc": {
"start": {
"line": 80,
"column": 32
},
"end": {
"line": 80,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "drawSingleOverviewTile",
"start": 3167,
"end": 3189,
"loc": {
"start": {
"line": 80,
"column": 33
},
"end": {
"line": 80,
"column": 55
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3189,
"end": 3190,
"loc": {
"start": {
"line": 80,
"column": 55
},
"end": {
"line": 80,
"column": 56
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3190,
"end": 3191,
"loc": {
"start": {
"line": 80,
"column": 56
},
"end": {
"line": 80,
"column": 57
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 3217,
"end": 3224,
"loc": {
"start": {
"line": 81,
"column": 24
},
"end": {
"line": 81,
"column": 31
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3224,
"end": 3225,
"loc": {
"start": {
"line": 81,
"column": 31
},
"end": {
"line": 81,
"column": 32
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3226,
"end": 3230,
"loc": {
"start": {
"line": 81,
"column": 33
},
"end": {
"line": 81,
"column": 37
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3230,
"end": 3231,
"loc": {
"start": {
"line": 81,
"column": 37
},
"end": {
"line": 81,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 3231,
"end": 3238,
"loc": {
"start": {
"line": 81,
"column": 38
},
"end": {
"line": 81,
"column": 45
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3238,
"end": 3239,
"loc": {
"start": {
"line": 81,
"column": 45
},
"end": {
"line": 81,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 3265,
"end": 3266,
"loc": {
"start": {
"line": 82,
"column": 24
},
"end": {
"line": 82,
"column": 25
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3266,
"end": 3267,
"loc": {
"start": {
"line": 82,
"column": 25
},
"end": {
"line": 82,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dx",
"start": 3268,
"end": 3270,
"loc": {
"start": {
"line": 82,
"column": 27
},
"end": {
"line": 82,
"column": 29
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 3271,
"end": 3272,
"loc": {
"start": {
"line": 82,
"column": 30
},
"end": {
"line": 82,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 3273,
"end": 3285,
"loc": {
"start": {
"line": 82,
"column": 32
},
"end": {
"line": 82,
"column": 44
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3285,
"end": 3286,
"loc": {
"start": {
"line": 82,
"column": 44
},
"end": {
"line": 82,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileSize",
"start": 3286,
"end": 3294,
"loc": {
"start": {
"line": 82,
"column": 45
},
"end": {
"line": 82,
"column": 53
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3294,
"end": 3295,
"loc": {
"start": {
"line": 82,
"column": 53
},
"end": {
"line": 82,
"column": 54
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 3321,
"end": 3322,
"loc": {
"start": {
"line": 83,
"column": 24
},
"end": {
"line": 83,
"column": 25
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3322,
"end": 3323,
"loc": {
"start": {
"line": 83,
"column": 25
},
"end": {
"line": 83,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "dy",
"start": 3324,
"end": 3326,
"loc": {
"start": {
"line": 83,
"column": 27
},
"end": {
"line": 83,
"column": 29
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 3327,
"end": 3328,
"loc": {
"start": {
"line": 83,
"column": 30
},
"end": {
"line": 83,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 3329,
"end": 3341,
"loc": {
"start": {
"line": 83,
"column": 32
},
"end": {
"line": 83,
"column": 44
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3341,
"end": 3342,
"loc": {
"start": {
"line": 83,
"column": 44
},
"end": {
"line": 83,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileSize",
"start": 3342,
"end": 3350,
"loc": {
"start": {
"line": 83,
"column": 45
},
"end": {
"line": 83,
"column": 53
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3350,
"end": 3351,
"loc": {
"start": {
"line": 83,
"column": 53
},
"end": {
"line": 83,
"column": 54
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "entity",
"start": 3377,
"end": 3383,
"loc": {
"start": {
"line": 84,
"column": 24
},
"end": {
"line": 84,
"column": 30
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3383,
"end": 3384,
"loc": {
"start": {
"line": 84,
"column": 30
},
"end": {
"line": 84,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "content",
"start": 3385,
"end": 3392,
"loc": {
"start": {
"line": 84,
"column": 32
},
"end": {
"line": 84,
"column": 39
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3392,
"end": 3393,
"loc": {
"start": {
"line": 84,
"column": 39
},
"end": {
"line": 84,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileSizePixels",
"start": 3419,
"end": 3433,
"loc": {
"start": {
"line": 85,
"column": 24
},
"end": {
"line": 85,
"column": 38
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3433,
"end": 3434,
"loc": {
"start": {
"line": 85,
"column": 38
},
"end": {
"line": 85,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 3435,
"end": 3447,
"loc": {
"start": {
"line": 85,
"column": 40
},
"end": {
"line": 85,
"column": 52
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3447,
"end": 3448,
"loc": {
"start": {
"line": 85,
"column": 52
},
"end": {
"line": 85,
"column": 53
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileSize",
"start": 3448,
"end": 3456,
"loc": {
"start": {
"line": 85,
"column": 53
},
"end": {
"line": 85,
"column": 61
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3456,
"end": 3457,
"loc": {
"start": {
"line": 85,
"column": 61
},
"end": {
"line": 85,
"column": 62
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3479,
"end": 3480,
"loc": {
"start": {
"line": 86,
"column": 20
},
"end": {
"line": 86,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3480,
"end": 3481,
"loc": {
"start": {
"line": 86,
"column": 21
},
"end": {
"line": 86,
"column": 22
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3481,
"end": 3482,
"loc": {
"start": {
"line": 86,
"column": 22
},
"end": {
"line": 86,
"column": 23
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3500,
"end": 3501,
"loc": {
"start": {
"line": 87,
"column": 16
},
"end": {
"line": 87,
"column": 17
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3515,
"end": 3516,
"loc": {
"start": {
"line": 88,
"column": 12
},
"end": {
"line": 88,
"column": 13
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3526,
"end": 3527,
"loc": {
"start": {
"line": 89,
"column": 8
},
"end": {
"line": 89,
"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": 3539,
"end": 3543,
"loc": {
"start": {
"line": 91,
"column": 8
},
"end": {
"line": 91,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3543,
"end": 3544,
"loc": {
"start": {
"line": 91,
"column": 12
},
"end": {
"line": 91,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 3544,
"end": 3551,
"loc": {
"start": {
"line": 91,
"column": 13
},
"end": {
"line": 91,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3551,
"end": 3552,
"loc": {
"start": {
"line": 91,
"column": 20
},
"end": {
"line": 91,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "restore",
"start": 3552,
"end": 3559,
"loc": {
"start": {
"line": 91,
"column": 21
},
"end": {
"line": 91,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3559,
"end": 3560,
"loc": {
"start": {
"line": 91,
"column": 28
},
"end": {
"line": 91,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3560,
"end": 3561,
"loc": {
"start": {
"line": 91,
"column": 29
},
"end": {
"line": 91,
"column": 30
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3561,
"end": 3562,
"loc": {
"start": {
"line": 91,
"column": 30
},
"end": {
"line": 91,
"column": 31
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3572,
"end": 3576,
"loc": {
"start": {
"line": 92,
"column": 8
},
"end": {
"line": 92,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3576,
"end": 3577,
"loc": {
"start": {
"line": 92,
"column": 12
},
"end": {
"line": 92,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 3577,
"end": 3584,
"loc": {
"start": {
"line": 92,
"column": 13
},
"end": {
"line": 92,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3584,
"end": 3585,
"loc": {
"start": {
"line": 92,
"column": 20
},
"end": {
"line": 92,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalCompositeOperation",
"start": 3585,
"end": 3609,
"loc": {
"start": {
"line": 92,
"column": 21
},
"end": {
"line": 92,
"column": 45
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3610,
"end": 3611,
"loc": {
"start": {
"line": 92,
"column": 46
},
"end": {
"line": 92,
"column": 47
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "destination-in",
"start": 3612,
"end": 3628,
"loc": {
"start": {
"line": 92,
"column": 48
},
"end": {
"line": 92,
"column": 64
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3628,
"end": 3629,
"loc": {
"start": {
"line": 92,
"column": 64
},
"end": {
"line": 92,
"column": 65
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3639,
"end": 3643,
"loc": {
"start": {
"line": 93,
"column": 8
},
"end": {
"line": 93,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3643,
"end": 3644,
"loc": {
"start": {
"line": 93,
"column": 12
},
"end": {
"line": 93,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "previewOverlay",
"start": 3644,
"end": 3658,
"loc": {
"start": {
"line": 93,
"column": 13
},
"end": {
"line": 93,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3658,
"end": 3659,
"loc": {
"start": {
"line": 93,
"column": 27
},
"end": {
"line": 93,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "draw",
"start": 3659,
"end": 3663,
"loc": {
"start": {
"line": 93,
"column": 28
},
"end": {
"line": 93,
"column": 32
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3663,
"end": 3664,
"loc": {
"start": {
"line": 93,
"column": 32
},
"end": {
"line": 93,
"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": 3664,
"end": 3668,
"loc": {
"start": {
"line": 93,
"column": 33
},
"end": {
"line": 93,
"column": 37
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3668,
"end": 3669,
"loc": {
"start": {
"line": 93,
"column": 37
},
"end": {
"line": 93,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 3669,
"end": 3676,
"loc": {
"start": {
"line": 93,
"column": 38
},
"end": {
"line": 93,
"column": 45
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3676,
"end": 3677,
"loc": {
"start": {
"line": 93,
"column": 45
},
"end": {
"line": 93,
"column": 46
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 3678,
"end": 3679,
"loc": {
"start": {
"line": 93,
"column": 47
},
"end": {
"line": 93,
"column": 48
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3679,
"end": 3680,
"loc": {
"start": {
"line": 93,
"column": 48
},
"end": {
"line": 93,
"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": 3681,
"end": 3682,
"loc": {
"start": {
"line": 93,
"column": 50
},
"end": {
"line": 93,
"column": 51
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3682,
"end": 3683,
"loc": {
"start": {
"line": 93,
"column": 51
},
"end": {
"line": 93,
"column": 52
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3684,
"end": 3688,
"loc": {
"start": {
"line": 93,
"column": 53
},
"end": {
"line": 93,
"column": 57
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3688,
"end": 3689,
"loc": {
"start": {
"line": 93,
"column": 57
},
"end": {
"line": 93,
"column": 58
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "previewSize",
"start": 3689,
"end": 3700,
"loc": {
"start": {
"line": 93,
"column": 58
},
"end": {
"line": 93,
"column": 69
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3700,
"end": 3701,
"loc": {
"start": {
"line": 93,
"column": 69
},
"end": {
"line": 93,
"column": 70
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3702,
"end": 3706,
"loc": {
"start": {
"line": 93,
"column": 71
},
"end": {
"line": 93,
"column": 75
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3706,
"end": 3707,
"loc": {
"start": {
"line": 93,
"column": 75
},
"end": {
"line": 93,
"column": 76
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "previewSize",
"start": 3707,
"end": 3718,
"loc": {
"start": {
"line": 93,
"column": 76
},
"end": {
"line": 93,
"column": 87
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3718,
"end": 3719,
"loc": {
"start": {
"line": 93,
"column": 87
},
"end": {
"line": 93,
"column": 88
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3719,
"end": 3720,
"loc": {
"start": {
"line": 93,
"column": 88
},
"end": {
"line": 93,
"column": 89
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3730,
"end": 3734,
"loc": {
"start": {
"line": 94,
"column": 8
},
"end": {
"line": 94,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3734,
"end": 3735,
"loc": {
"start": {
"line": 94,
"column": 12
},
"end": {
"line": 94,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 3735,
"end": 3742,
"loc": {
"start": {
"line": 94,
"column": 13
},
"end": {
"line": 94,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3742,
"end": 3743,
"loc": {
"start": {
"line": 94,
"column": 20
},
"end": {
"line": 94,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalCompositeOperation",
"start": 3743,
"end": 3767,
"loc": {
"start": {
"line": 94,
"column": 21
},
"end": {
"line": 94,
"column": 45
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3768,
"end": 3769,
"loc": {
"start": {
"line": 94,
"column": 46
},
"end": {
"line": 94,
"column": 47
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "source-over",
"start": 3770,
"end": 3783,
"loc": {
"start": {
"line": 94,
"column": 48
},
"end": {
"line": 94,
"column": 61
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3783,
"end": 3784,
"loc": {
"start": {
"line": 94,
"column": 61
},
"end": {
"line": 94,
"column": 62
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 3796,
"end": 3802,
"loc": {
"start": {
"line": 96,
"column": 8
},
"end": {
"line": 96,
"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": 3803,
"end": 3807,
"loc": {
"start": {
"line": 96,
"column": 15
},
"end": {
"line": 96,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3807,
"end": 3808,
"loc": {
"start": {
"line": 96,
"column": 19
},
"end": {
"line": 96,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "canvas",
"start": 3808,
"end": 3814,
"loc": {
"start": {
"line": 96,
"column": 20
},
"end": {
"line": 96,
"column": 26
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3814,
"end": 3815,
"loc": {
"start": {
"line": 96,
"column": 26
},
"end": {
"line": 96,
"column": 27
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3821,
"end": 3822,
"loc": {
"start": {
"line": 97,
"column": 4
},
"end": {
"line": 97,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Renders the preview at the given position\r\n * @param {import(\"../../../core/draw_utils\").DrawParameters} parameters\r\n * @param {Vector} worldPos\r\n * @param {number} scale 1 / zoomLevel\r\n ",
"start": 3830,
"end": 4047,
"loc": {
"start": {
"line": 99,
"column": 4
},
"end": {
"line": 104,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "renderPreview",
"start": 4053,
"end": 4066,
"loc": {
"start": {
"line": 105,
"column": 4
},
"end": {
"line": 105,
"column": 17
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4066,
"end": 4067,
"loc": {
"start": {
"line": 105,
"column": 17
},
"end": {
"line": 105,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parameters",
"start": 4067,
"end": 4077,
"loc": {
"start": {
"line": 105,
"column": 18
},
"end": {
"line": 105,
"column": 28
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4077,
"end": 4078,
"loc": {
"start": {
"line": 105,
"column": 28
},
"end": {
"line": 105,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "worldPos",
"start": 4079,
"end": 4087,
"loc": {
"start": {
"line": 105,
"column": 30
},
"end": {
"line": 105,
"column": 38
}
}
},
{
"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": 105,
"column": 38
},
"end": {
"line": 105,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "scale",
"start": 4089,
"end": 4094,
"loc": {
"start": {
"line": 105,
"column": 40
},
"end": {
"line": 105,
"column": 45
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4094,
"end": 4095,
"loc": {
"start": {
"line": 105,
"column": 45
},
"end": {
"line": 105,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "layer",
"start": 4096,
"end": 4101,
"loc": {
"start": {
"line": 105,
"column": 47
},
"end": {
"line": 105,
"column": 52
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4101,
"end": 4102,
"loc": {
"start": {
"line": 105,
"column": 52
},
"end": {
"line": 105,
"column": 53
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4103,
"end": 4104,
"loc": {
"start": {
"line": 105,
"column": 54
},
"end": {
"line": 105,
"column": 55
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 4114,
"end": 4116,
"loc": {
"start": {
"line": 106,
"column": 8
},
"end": {
"line": 106,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4117,
"end": 4118,
"loc": {
"start": {
"line": 106,
"column": 11
},
"end": {
"line": 106,
"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": 4118,
"end": 4122,
"loc": {
"start": {
"line": 106,
"column": 12
},
"end": {
"line": 106,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4122,
"end": 4123,
"loc": {
"start": {
"line": 106,
"column": 16
},
"end": {
"line": 106,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 4123,
"end": 4127,
"loc": {
"start": {
"line": 106,
"column": 17
},
"end": {
"line": 106,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4127,
"end": 4128,
"loc": {
"start": {
"line": 106,
"column": 21
},
"end": {
"line": 106,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "currentLayer",
"start": 4128,
"end": 4140,
"loc": {
"start": {
"line": 106,
"column": 22
},
"end": {
"line": 106,
"column": 34
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 4141,
"end": 4144,
"loc": {
"start": {
"line": 106,
"column": 35
},
"end": {
"line": 106,
"column": 38
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "regular",
"start": 4145,
"end": 4154,
"loc": {
"start": {
"line": 106,
"column": 39
},
"end": {
"line": 106,
"column": 48
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4154,
"end": 4155,
"loc": {
"start": {
"line": 106,
"column": 48
},
"end": {
"line": 106,
"column": 49
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4156,
"end": 4157,
"loc": {
"start": {
"line": 106,
"column": 50
},
"end": {
"line": 106,
"column": 51
}
}
},
{
"type": "CommentLine",
"value": " Only supporting wires right now",
"start": 4171,
"end": 4205,
"loc": {
"start": {
"line": 107,
"column": 12
},
"end": {
"line": 107,
"column": 46
}
}
},
{
"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": 4219,
"end": 4225,
"loc": {
"start": {
"line": 108,
"column": 12
},
"end": {
"line": 108,
"column": 18
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4225,
"end": 4226,
"loc": {
"start": {
"line": 108,
"column": 18
},
"end": {
"line": 108,
"column": 19
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4236,
"end": 4237,
"loc": {
"start": {
"line": 109,
"column": 8
},
"end": {
"line": 109,
"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": 4249,
"end": 4254,
"loc": {
"start": {
"line": 111,
"column": 8
},
"end": {
"line": 111,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "canvas",
"start": 4255,
"end": 4261,
"loc": {
"start": {
"line": 111,
"column": 14
},
"end": {
"line": 111,
"column": 20
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4262,
"end": 4263,
"loc": {
"start": {
"line": 111,
"column": 21
},
"end": {
"line": 111,
"column": 22
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 4264,
"end": 4268,
"loc": {
"start": {
"line": 111,
"column": 23
},
"end": {
"line": 111,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4268,
"end": 4269,
"loc": {
"start": {
"line": 111,
"column": 27
},
"end": {
"line": 111,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "prepareCanvasForPreview",
"start": 4269,
"end": 4292,
"loc": {
"start": {
"line": 111,
"column": 28
},
"end": {
"line": 111,
"column": 51
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4292,
"end": 4293,
"loc": {
"start": {
"line": 111,
"column": 51
},
"end": {
"line": 111,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "worldPos",
"start": 4293,
"end": 4301,
"loc": {
"start": {
"line": 111,
"column": 52
},
"end": {
"line": 111,
"column": 60
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4301,
"end": 4302,
"loc": {
"start": {
"line": 111,
"column": 60
},
"end": {
"line": 111,
"column": 61
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "scale",
"start": 4303,
"end": 4308,
"loc": {
"start": {
"line": 111,
"column": 62
},
"end": {
"line": 111,
"column": 67
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4308,
"end": 4309,
"loc": {
"start": {
"line": 111,
"column": 67
},
"end": {
"line": 111,
"column": 68
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "layer",
"start": 4310,
"end": 4315,
"loc": {
"start": {
"line": 111,
"column": 69
},
"end": {
"line": 111,
"column": 74
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4315,
"end": 4316,
"loc": {
"start": {
"line": 111,
"column": 74
},
"end": {
"line": 111,
"column": 75
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4316,
"end": 4317,
"loc": {
"start": {
"line": 111,
"column": 75
},
"end": {
"line": 111,
"column": 76
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parameters",
"start": 4329,
"end": 4339,
"loc": {
"start": {
"line": 113,
"column": 8
},
"end": {
"line": 113,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4339,
"end": 4340,
"loc": {
"start": {
"line": 113,
"column": 18
},
"end": {
"line": 113,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 4340,
"end": 4347,
"loc": {
"start": {
"line": 113,
"column": 19
},
"end": {
"line": 113,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4347,
"end": 4348,
"loc": {
"start": {
"line": 113,
"column": 26
},
"end": {
"line": 113,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalAlpha",
"start": 4348,
"end": 4359,
"loc": {
"start": {
"line": 113,
"column": 27
},
"end": {
"line": 113,
"column": 38
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4360,
"end": 4361,
"loc": {
"start": {
"line": 113,
"column": 39
},
"end": {
"line": 113,
"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.3,
"start": 4362,
"end": 4365,
"loc": {
"start": {
"line": 113,
"column": 41
},
"end": {
"line": 113,
"column": 44
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4365,
"end": 4366,
"loc": {
"start": {
"line": 113,
"column": 44
},
"end": {
"line": 113,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parameters",
"start": 4376,
"end": 4386,
"loc": {
"start": {
"line": 114,
"column": 8
},
"end": {
"line": 114,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4386,
"end": 4387,
"loc": {
"start": {
"line": 114,
"column": 18
},
"end": {
"line": 114,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 4387,
"end": 4394,
"loc": {
"start": {
"line": 114,
"column": 19
},
"end": {
"line": 114,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4394,
"end": 4395,
"loc": {
"start": {
"line": 114,
"column": 26
},
"end": {
"line": 114,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "drawImage",
"start": 4395,
"end": 4404,
"loc": {
"start": {
"line": 114,
"column": 27
},
"end": {
"line": 114,
"column": 36
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4404,
"end": 4405,
"loc": {
"start": {
"line": 114,
"column": 36
},
"end": {
"line": 114,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "canvas",
"start": 4419,
"end": 4425,
"loc": {
"start": {
"line": 115,
"column": 12
},
"end": {
"line": 115,
"column": 18
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4425,
"end": 4426,
"loc": {
"start": {
"line": 115,
"column": 18
},
"end": {
"line": 115,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "worldPos",
"start": 4440,
"end": 4448,
"loc": {
"start": {
"line": 116,
"column": 12
},
"end": {
"line": 116,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4448,
"end": 4449,
"loc": {
"start": {
"line": 116,
"column": 20
},
"end": {
"line": 116,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 4449,
"end": 4450,
"loc": {
"start": {
"line": 116,
"column": 21
},
"end": {
"line": 116,
"column": 22
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 4451,
"end": 4452,
"loc": {
"start": {
"line": 116,
"column": 23
},
"end": {
"line": 116,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4453,
"end": 4454,
"loc": {
"start": {
"line": 116,
"column": 25
},
"end": {
"line": 116,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "scale",
"start": 4454,
"end": 4459,
"loc": {
"start": {
"line": 116,
"column": 26
},
"end": {
"line": 116,
"column": 31
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 4460,
"end": 4461,
"loc": {
"start": {
"line": 116,
"column": 32
},
"end": {
"line": 116,
"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": 4462,
"end": 4466,
"loc": {
"start": {
"line": 116,
"column": 34
},
"end": {
"line": 116,
"column": 38
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4466,
"end": 4467,
"loc": {
"start": {
"line": 116,
"column": 38
},
"end": {
"line": 116,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "previewSize",
"start": 4467,
"end": 4478,
"loc": {
"start": {
"line": 116,
"column": 39
},
"end": {
"line": 116,
"column": 50
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4478,
"end": 4479,
"loc": {
"start": {
"line": 116,
"column": 50
},
"end": {
"line": 116,
"column": 51
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 4480,
"end": 4481,
"loc": {
"start": {
"line": 116,
"column": 52
},
"end": {
"line": 116,
"column": 53
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 2,
"start": 4482,
"end": 4483,
"loc": {
"start": {
"line": 116,
"column": 54
},
"end": {
"line": 116,
"column": 55
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4483,
"end": 4484,
"loc": {
"start": {
"line": 116,
"column": 55
},
"end": {
"line": 116,
"column": 56
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "worldPos",
"start": 4498,
"end": 4506,
"loc": {
"start": {
"line": 117,
"column": 12
},
"end": {
"line": 117,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4506,
"end": 4507,
"loc": {
"start": {
"line": 117,
"column": 20
},
"end": {
"line": 117,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 4507,
"end": 4508,
"loc": {
"start": {
"line": 117,
"column": 21
},
"end": {
"line": 117,
"column": 22
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 4509,
"end": 4510,
"loc": {
"start": {
"line": 117,
"column": 23
},
"end": {
"line": 117,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4511,
"end": 4512,
"loc": {
"start": {
"line": 117,
"column": 25
},
"end": {
"line": 117,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "scale",
"start": 4512,
"end": 4517,
"loc": {
"start": {
"line": 117,
"column": 26
},
"end": {
"line": 117,
"column": 31
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 4518,
"end": 4519,
"loc": {
"start": {
"line": 117,
"column": 32
},
"end": {
"line": 117,
"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": 4520,
"end": 4524,
"loc": {
"start": {
"line": 117,
"column": 34
},
"end": {
"line": 117,
"column": 38
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4524,
"end": 4525,
"loc": {
"start": {
"line": 117,
"column": 38
},
"end": {
"line": 117,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "previewSize",
"start": 4525,
"end": 4536,
"loc": {
"start": {
"line": 117,
"column": 39
},
"end": {
"line": 117,
"column": 50
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4536,
"end": 4537,
"loc": {
"start": {
"line": 117,
"column": 50
},
"end": {
"line": 117,
"column": 51
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 4538,
"end": 4539,
"loc": {
"start": {
"line": 117,
"column": 52
},
"end": {
"line": 117,
"column": 53
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 2,
"start": 4540,
"end": 4541,
"loc": {
"start": {
"line": 117,
"column": 54
},
"end": {
"line": 117,
"column": 55
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4541,
"end": 4542,
"loc": {
"start": {
"line": 117,
"column": 55
},
"end": {
"line": 117,
"column": 56
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "scale",
"start": 4556,
"end": 4561,
"loc": {
"start": {
"line": 118,
"column": 12
},
"end": {
"line": 118,
"column": 17
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 4562,
"end": 4563,
"loc": {
"start": {
"line": 118,
"column": 18
},
"end": {
"line": 118,
"column": 19
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 4564,
"end": 4568,
"loc": {
"start": {
"line": 118,
"column": 20
},
"end": {
"line": 118,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4568,
"end": 4569,
"loc": {
"start": {
"line": 118,
"column": 24
},
"end": {
"line": 118,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "previewSize",
"start": 4569,
"end": 4580,
"loc": {
"start": {
"line": 118,
"column": 25
},
"end": {
"line": 118,
"column": 36
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4580,
"end": 4581,
"loc": {
"start": {
"line": 118,
"column": 36
},
"end": {
"line": 118,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "scale",
"start": 4595,
"end": 4600,
"loc": {
"start": {
"line": 119,
"column": 12
},
"end": {
"line": 119,
"column": 17
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 4601,
"end": 4602,
"loc": {
"start": {
"line": 119,
"column": 18
},
"end": {
"line": 119,
"column": 19
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 4603,
"end": 4607,
"loc": {
"start": {
"line": 119,
"column": 20
},
"end": {
"line": 119,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4607,
"end": 4608,
"loc": {
"start": {
"line": 119,
"column": 24
},
"end": {
"line": 119,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "previewSize",
"start": 4608,
"end": 4619,
"loc": {
"start": {
"line": 119,
"column": 25
},
"end": {
"line": 119,
"column": 36
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4629,
"end": 4630,
"loc": {
"start": {
"line": 120,
"column": 8
},
"end": {
"line": 120,
"column": 9
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4630,
"end": 4631,
"loc": {
"start": {
"line": 120,
"column": 9
},
"end": {
"line": 120,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parameters",
"start": 4641,
"end": 4651,
"loc": {
"start": {
"line": 121,
"column": 8
},
"end": {
"line": 121,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4651,
"end": 4652,
"loc": {
"start": {
"line": 121,
"column": 18
},
"end": {
"line": 121,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 4652,
"end": 4659,
"loc": {
"start": {
"line": 121,
"column": 19
},
"end": {
"line": 121,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4659,
"end": 4660,
"loc": {
"start": {
"line": 121,
"column": 26
},
"end": {
"line": 121,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalAlpha",
"start": 4660,
"end": 4671,
"loc": {
"start": {
"line": 121,
"column": 27
},
"end": {
"line": 121,
"column": 38
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 4672,
"end": 4673,
"loc": {
"start": {
"line": 121,
"column": 39
},
"end": {
"line": 121,
"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": 4674,
"end": 4675,
"loc": {
"start": {
"line": 121,
"column": 41
},
"end": {
"line": 121,
"column": 42
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4675,
"end": 4676,
"loc": {
"start": {
"line": 121,
"column": 42
},
"end": {
"line": 121,
"column": 43
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4682,
"end": 4683,
"loc": {
"start": {
"line": 122,
"column": 4
},
"end": {
"line": 122,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4685,
"end": 4686,
"loc": {
"start": {
"line": 123,
"column": 0
},
"end": {
"line": 123,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4688,
"end": 4688,
"loc": {
"start": {
"line": 124,
"column": 0
},
"end": {
"line": 124,
"column": 0
}
}
}
]
}