mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
48576 lines
1.6 MiB
48576 lines
1.6 MiB
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 7192,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 225,
|
|
"column": 39
|
|
}
|
|
},
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 7192,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 225,
|
|
"column": 39
|
|
}
|
|
},
|
|
"sourceType": "module",
|
|
"body": [
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start": 0,
|
|
"end": 53,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 53
|
|
}
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 9,
|
|
"end": 28,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 28
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 9,
|
|
"end": 28,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 28
|
|
},
|
|
"identifierName": "makeOffscreenBuffer"
|
|
},
|
|
"name": "makeOffscreenBuffer"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 9,
|
|
"end": 28,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 28
|
|
},
|
|
"identifierName": "makeOffscreenBuffer"
|
|
},
|
|
"name": "makeOffscreenBuffer"
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start": 36,
|
|
"end": 52,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 52
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "./buffer_utils",
|
|
"raw": "\"./buffer_utils\""
|
|
},
|
|
"value": "./buffer_utils"
|
|
}
|
|
},
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start": 55,
|
|
"end": 139,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 84
|
|
}
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 64,
|
|
"end": 75,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 20
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 64,
|
|
"end": 75,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 20
|
|
},
|
|
"identifierName": "AtlasSprite"
|
|
},
|
|
"name": "AtlasSprite"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 64,
|
|
"end": 75,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 20
|
|
},
|
|
"identifierName": "AtlasSprite"
|
|
},
|
|
"name": "AtlasSprite"
|
|
}
|
|
},
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 77,
|
|
"end": 87,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 32
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 77,
|
|
"end": 87,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 32
|
|
},
|
|
"identifierName": "BaseSprite"
|
|
},
|
|
"name": "BaseSprite"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 77,
|
|
"end": 87,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 32
|
|
},
|
|
"identifierName": "BaseSprite"
|
|
},
|
|
"name": "BaseSprite"
|
|
}
|
|
},
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 89,
|
|
"end": 102,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 47
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 89,
|
|
"end": 102,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 47
|
|
},
|
|
"identifierName": "RegularSprite"
|
|
},
|
|
"name": "RegularSprite"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 89,
|
|
"end": 102,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 47
|
|
},
|
|
"identifierName": "RegularSprite"
|
|
},
|
|
"name": "RegularSprite"
|
|
}
|
|
},
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 104,
|
|
"end": 119,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 64
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 104,
|
|
"end": 119,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 64
|
|
},
|
|
"identifierName": "SpriteAtlasLink"
|
|
},
|
|
"name": "SpriteAtlasLink"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 104,
|
|
"end": 119,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 64
|
|
},
|
|
"identifierName": "SpriteAtlasLink"
|
|
},
|
|
"name": "SpriteAtlasLink"
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start": 127,
|
|
"end": 138,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 72
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 83
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "./sprites",
|
|
"raw": "\"./sprites\""
|
|
},
|
|
"value": "./sprites"
|
|
}
|
|
},
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start": 141,
|
|
"end": 181,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 40
|
|
}
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 150,
|
|
"end": 159,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 18
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 150,
|
|
"end": 159,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 18
|
|
},
|
|
"identifierName": "cachebust"
|
|
},
|
|
"name": "cachebust"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 150,
|
|
"end": 159,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 18
|
|
},
|
|
"identifierName": "cachebust"
|
|
},
|
|
"name": "cachebust"
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start": 167,
|
|
"end": 180,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 39
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "./cachebust",
|
|
"raw": "\"./cachebust\""
|
|
},
|
|
"value": "./cachebust"
|
|
}
|
|
},
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start": 183,
|
|
"end": 224,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 41
|
|
}
|
|
},
|
|
"specifiers": [
|
|
{
|
|
"type": "ImportSpecifier",
|
|
"start": 192,
|
|
"end": 204,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 21
|
|
}
|
|
},
|
|
"imported": {
|
|
"type": "Identifier",
|
|
"start": 192,
|
|
"end": 204,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 21
|
|
},
|
|
"identifierName": "createLogger"
|
|
},
|
|
"name": "createLogger"
|
|
},
|
|
"local": {
|
|
"type": "Identifier",
|
|
"start": 192,
|
|
"end": 204,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 21
|
|
},
|
|
"identifierName": "createLogger"
|
|
},
|
|
"name": "createLogger"
|
|
}
|
|
}
|
|
],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start": 212,
|
|
"end": 223,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 40
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "./logging",
|
|
"raw": "\"./logging\""
|
|
},
|
|
"value": "./logging"
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 228,
|
|
"end": 266,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 38
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 234,
|
|
"end": 265,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 37
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 234,
|
|
"end": 240,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 12
|
|
},
|
|
"identifierName": "logger"
|
|
},
|
|
"name": "logger"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 243,
|
|
"end": 265,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 37
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 243,
|
|
"end": 255,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 27
|
|
},
|
|
"identifierName": "createLogger"
|
|
},
|
|
"name": "createLogger"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 256,
|
|
"end": 264,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 36
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "loader",
|
|
"raw": "\"loader\""
|
|
},
|
|
"value": "loader"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 270,
|
|
"end": 298,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 28
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 276,
|
|
"end": 297,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 27
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 276,
|
|
"end": 292,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 22
|
|
},
|
|
"identifierName": "missingSpriteIds"
|
|
},
|
|
"name": "missingSpriteIds"
|
|
},
|
|
"init": {
|
|
"type": "ObjectExpression",
|
|
"start": 295,
|
|
"end": 297,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 27
|
|
}
|
|
},
|
|
"properties": []
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 302,
|
|
"end": 7149,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 223,
|
|
"column": 1
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 308,
|
|
"end": 318,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 16
|
|
},
|
|
"identifierName": "LoaderImpl"
|
|
},
|
|
"name": "LoaderImpl"
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start": 319,
|
|
"end": 7149,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 223,
|
|
"column": 1
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 326,
|
|
"end": 491,
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 326,
|
|
"end": 337,
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 15
|
|
},
|
|
"identifierName": "constructor"
|
|
},
|
|
"name": "constructor"
|
|
},
|
|
"kind": "constructor",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 340,
|
|
"end": 491,
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 351,
|
|
"end": 367,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 24
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 351,
|
|
"end": 366,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 23
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 351,
|
|
"end": 359,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 16
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 351,
|
|
"end": 355,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 356,
|
|
"end": 359,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 16
|
|
},
|
|
"identifierName": "app"
|
|
},
|
|
"name": "app"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "NullLiteral",
|
|
"start": 362,
|
|
"end": 366,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 23
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* @type {Map<string, BaseSprite>} ",
|
|
"start": 379,
|
|
"end": 417,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 46
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 427,
|
|
"end": 452,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 33
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 427,
|
|
"end": 451,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 32
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 427,
|
|
"end": 439,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 20
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 427,
|
|
"end": 431,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 12
|
|
}
|
|
},
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 432,
|
|
"end": 439,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 20
|
|
},
|
|
"identifierName": "sprites"
|
|
},
|
|
"name": "sprites"
|
|
},
|
|
"computed": false,
|
|
"leadingComments": null
|
|
},
|
|
"right": {
|
|
"type": "NewExpression",
|
|
"start": 442,
|
|
"end": 451,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 32
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 446,
|
|
"end": 449,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 30
|
|
},
|
|
"identifierName": "Map"
|
|
},
|
|
"name": "Map"
|
|
},
|
|
"arguments": []
|
|
},
|
|
"leadingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* @type {Map<string, BaseSprite>} ",
|
|
"start": 379,
|
|
"end": 417,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 46
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 464,
|
|
"end": 484,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 28
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 464,
|
|
"end": 483,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 27
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 464,
|
|
"end": 478,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 22
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 464,
|
|
"end": 468,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 469,
|
|
"end": 478,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 22
|
|
},
|
|
"identifierName": "rawImages"
|
|
},
|
|
"name": "rawImages"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "ArrayExpression",
|
|
"start": 481,
|
|
"end": 483,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 27
|
|
}
|
|
},
|
|
"elements": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * @param {import(\"../application\").Application} app\r\n ",
|
|
"start": 499,
|
|
"end": 569,
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 22,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 575,
|
|
"end": 672,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 575,
|
|
"end": 591,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 20
|
|
},
|
|
"identifierName": "linkAppAfterBoot"
|
|
},
|
|
"name": "linkAppAfterBoot",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 592,
|
|
"end": 595,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 24
|
|
},
|
|
"identifierName": "app"
|
|
},
|
|
"name": "app"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 597,
|
|
"end": 672,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 608,
|
|
"end": 623,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 23
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 608,
|
|
"end": 622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 22
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 608,
|
|
"end": 616,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 16
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 608,
|
|
"end": 612,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 613,
|
|
"end": 616,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 16
|
|
},
|
|
"identifierName": "app"
|
|
},
|
|
"name": "app"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 619,
|
|
"end": 622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 22
|
|
},
|
|
"identifierName": "app"
|
|
},
|
|
"name": "app"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 633,
|
|
"end": 665,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 40
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 633,
|
|
"end": 664,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 39
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 633,
|
|
"end": 662,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 37
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 633,
|
|
"end": 637,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 638,
|
|
"end": 662,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 37
|
|
},
|
|
"identifierName": "makeSpriteNotFoundCanvas"
|
|
},
|
|
"name": "makeSpriteNotFoundCanvas"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * @param {import(\"../application\").Application} app\r\n ",
|
|
"start": 499,
|
|
"end": 569,
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 22,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Fetches a given sprite from the cache\r\n * @param {string} key\r\n * @returns {BaseSprite}\r\n ",
|
|
"start": 680,
|
|
"end": 796,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 802,
|
|
"end": 1250,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 802,
|
|
"end": 819,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 21
|
|
},
|
|
"identifierName": "getSpriteInternal"
|
|
},
|
|
"name": "getSpriteInternal",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 820,
|
|
"end": 823,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 25
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 825,
|
|
"end": 1250,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 836,
|
|
"end": 873,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 45
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 842,
|
|
"end": 872,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 44
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 842,
|
|
"end": 848,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 20
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 851,
|
|
"end": 872,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 44
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 851,
|
|
"end": 867,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 39
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"start": 851,
|
|
"end": 863,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 35
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 851,
|
|
"end": 855,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 856,
|
|
"end": 863,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 35
|
|
},
|
|
"identifierName": "sprites"
|
|
},
|
|
"name": "sprites"
|
|
},
|
|
"computed": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 864,
|
|
"end": 867,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 39
|
|
},
|
|
"identifierName": "get"
|
|
},
|
|
"name": "get"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 868,
|
|
"end": 871,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 43
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"start": 883,
|
|
"end": 1219,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 9
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "UnaryExpression",
|
|
"start": 887,
|
|
"end": 894,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 19
|
|
}
|
|
},
|
|
"operator": "!",
|
|
"prefix": true,
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start": 888,
|
|
"end": 894,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 19
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"extra": {
|
|
"parenthesizedArgument": false
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"start": 896,
|
|
"end": 1219,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 9
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"start": 911,
|
|
"end": 1161,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 40,
|
|
"column": 13
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "UnaryExpression",
|
|
"start": 915,
|
|
"end": 937,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 38
|
|
}
|
|
},
|
|
"operator": "!",
|
|
"prefix": true,
|
|
"argument": {
|
|
"type": "MemberExpression",
|
|
"start": 916,
|
|
"end": 937,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 38
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 916,
|
|
"end": 932,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 33
|
|
},
|
|
"identifierName": "missingSpriteIds"
|
|
},
|
|
"name": "missingSpriteIds"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 933,
|
|
"end": 936,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 37
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
},
|
|
"computed": true
|
|
},
|
|
"extra": {
|
|
"parenthesizedArgument": false
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"start": 939,
|
|
"end": 1161,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 40,
|
|
"column": 13
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 999,
|
|
"end": 1028,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 45
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 999,
|
|
"end": 1027,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 44
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 999,
|
|
"end": 1020,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 37
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 999,
|
|
"end": 1015,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 32
|
|
},
|
|
"identifierName": "missingSpriteIds"
|
|
},
|
|
"name": "missingSpriteIds",
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 1016,
|
|
"end": 1019,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 36
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
},
|
|
"computed": true,
|
|
"leadingComments": null
|
|
},
|
|
"right": {
|
|
"type": "BooleanLiteral",
|
|
"start": 1023,
|
|
"end": 1027,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 44
|
|
}
|
|
},
|
|
"value": true
|
|
},
|
|
"leadingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " Only show error once",
|
|
"start": 958,
|
|
"end": 981,
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "logger.error(\"Sprite '\" + key + \"' not found!\");",
|
|
"start": 1046,
|
|
"end": 1098,
|
|
"loc": {
|
|
"start": {
|
|
"line": 39,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 68
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " Will be fixed right now it just spams errors",
|
|
"start": 1099,
|
|
"end": 1146,
|
|
"loc": {
|
|
"start": {
|
|
"line": 39,
|
|
"column": 69
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 116
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"alternate": null
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 1175,
|
|
"end": 1208,
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 45
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "MemberExpression",
|
|
"start": 1182,
|
|
"end": 1207,
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 44
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 1182,
|
|
"end": 1186,
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 1187,
|
|
"end": 1207,
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 44
|
|
},
|
|
"identifierName": "spriteNotFoundSprite"
|
|
},
|
|
"name": "spriteNotFoundSprite"
|
|
},
|
|
"computed": false
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"alternate": null
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 1229,
|
|
"end": 1243,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 22
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start": 1236,
|
|
"end": 1242,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 21
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Fetches a given sprite from the cache\r\n * @param {string} key\r\n * @returns {BaseSprite}\r\n ",
|
|
"start": 680,
|
|
"end": 796,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns an atlas sprite from the cache\r\n * @param {string} key\r\n * @returns {AtlasSprite}\r\n ",
|
|
"start": 1258,
|
|
"end": 1376,
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 1382,
|
|
"end": 1622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 55,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 1382,
|
|
"end": 1391,
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 13
|
|
},
|
|
"identifierName": "getSprite"
|
|
},
|
|
"name": "getSprite",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1392,
|
|
"end": 1395,
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 17
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 1397,
|
|
"end": 1622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 55,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 1408,
|
|
"end": 1451,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 51
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 1414,
|
|
"end": 1450,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 50
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 1414,
|
|
"end": 1420,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 20
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 1423,
|
|
"end": 1450,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 50
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 1423,
|
|
"end": 1445,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 45
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 1423,
|
|
"end": 1427,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 1428,
|
|
"end": 1445,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 45
|
|
},
|
|
"identifierName": "getSpriteInternal"
|
|
},
|
|
"name": "getSpriteInternal"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1446,
|
|
"end": 1449,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 49
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 1461,
|
|
"end": 1562,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 109
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 1461,
|
|
"end": 1561,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 108
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 1461,
|
|
"end": 1467,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 14
|
|
},
|
|
"identifierName": "assert"
|
|
},
|
|
"name": "assert"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "LogicalExpression",
|
|
"start": 1468,
|
|
"end": 1537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 84
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start": 1468,
|
|
"end": 1497,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 44
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 1468,
|
|
"end": 1474,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 21
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"operator": "instanceof",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 1486,
|
|
"end": 1497,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 44
|
|
},
|
|
"identifierName": "AtlasSprite"
|
|
},
|
|
"name": "AtlasSprite"
|
|
}
|
|
},
|
|
"operator": "||",
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"start": 1501,
|
|
"end": 1537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 84
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 1501,
|
|
"end": 1507,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 54
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"operator": "===",
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"start": 1512,
|
|
"end": 1537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 84
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 1512,
|
|
"end": 1516,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 63
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 1517,
|
|
"end": 1537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 64
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 84
|
|
},
|
|
"identifierName": "spriteNotFoundSprite"
|
|
},
|
|
"name": "spriteNotFoundSprite"
|
|
},
|
|
"computed": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 1539,
|
|
"end": 1560,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 86
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 107
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "Not an atlas sprite",
|
|
"raw": "\"Not an atlas sprite\""
|
|
},
|
|
"value": "Not an atlas sprite"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 1572,
|
|
"end": 1615,
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 51
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start": 1607,
|
|
"end": 1613,
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 49
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite",
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* @type {AtlasSprite} ",
|
|
"start": 1579,
|
|
"end": 1605,
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 41
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 1606
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns an atlas sprite from the cache\r\n * @param {string} key\r\n * @returns {AtlasSprite}\r\n ",
|
|
"start": 1258,
|
|
"end": 1376,
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns a regular sprite from the cache\r\n * @param {string} key\r\n * @returns {RegularSprite}\r\n ",
|
|
"start": 1630,
|
|
"end": 1751,
|
|
"loc": {
|
|
"start": {
|
|
"line": 57,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 1757,
|
|
"end": 2046,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 1757,
|
|
"end": 1773,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 20
|
|
},
|
|
"identifierName": "getRegularSprite"
|
|
},
|
|
"name": "getRegularSprite",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1774,
|
|
"end": 1777,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 24
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 1779,
|
|
"end": 2046,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 1790,
|
|
"end": 1833,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 51
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 1796,
|
|
"end": 1832,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 50
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 1796,
|
|
"end": 1802,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 20
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 1805,
|
|
"end": 1832,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 50
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 1805,
|
|
"end": 1827,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 45
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 1805,
|
|
"end": 1809,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 1810,
|
|
"end": 1827,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 45
|
|
},
|
|
"identifierName": "getSpriteInternal"
|
|
},
|
|
"name": "getSpriteInternal"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1828,
|
|
"end": 1831,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 49
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 1843,
|
|
"end": 1984,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 10
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 1843,
|
|
"end": 1983,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 9
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 1843,
|
|
"end": 1849,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 14
|
|
},
|
|
"identifierName": "assert"
|
|
},
|
|
"name": "assert"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "LogicalExpression",
|
|
"start": 1864,
|
|
"end": 1935,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 83
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start": 1864,
|
|
"end": 1895,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 43
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 1864,
|
|
"end": 1870,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 18
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"operator": "instanceof",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 1882,
|
|
"end": 1895,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 43
|
|
},
|
|
"identifierName": "RegularSprite"
|
|
},
|
|
"name": "RegularSprite"
|
|
}
|
|
},
|
|
"operator": "||",
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"start": 1899,
|
|
"end": 1935,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 83
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 1899,
|
|
"end": 1905,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 53
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"operator": "===",
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"start": 1910,
|
|
"end": 1935,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 83
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 1910,
|
|
"end": 1914,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 62
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 1915,
|
|
"end": 1935,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 63
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 83
|
|
},
|
|
"identifierName": "spriteNotFoundSprite"
|
|
},
|
|
"name": "spriteNotFoundSprite"
|
|
},
|
|
"computed": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 1950,
|
|
"end": 1972,
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 34
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "Not a regular sprite",
|
|
"raw": "\"Not a regular sprite\""
|
|
},
|
|
"value": "Not a regular sprite"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 1994,
|
|
"end": 2039,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 53
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start": 2031,
|
|
"end": 2037,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 51
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite",
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* @type {RegularSprite} ",
|
|
"start": 2001,
|
|
"end": 2029,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 43
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 2030
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns a regular sprite from the cache\r\n * @param {string} key\r\n * @returns {RegularSprite}\r\n ",
|
|
"start": 1630,
|
|
"end": 1751,
|
|
"loc": {
|
|
"start": {
|
|
"line": 57,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n *\r\n * @param {string} key\r\n * @returns {Promise<HTMLImageElement|null>}\r\n ",
|
|
"start": 2054,
|
|
"end": 2152,
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 2158,
|
|
"end": 3863,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 2158,
|
|
"end": 2178,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 24
|
|
},
|
|
"identifierName": "internalPreloadImage"
|
|
},
|
|
"name": "internalPreloadImage",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2179,
|
|
"end": 2182,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 28
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 2184,
|
|
"end": 3863,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 2195,
|
|
"end": 2231,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 44
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 2201,
|
|
"end": 2230,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 43
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 2201,
|
|
"end": 2204,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 17
|
|
},
|
|
"identifierName": "url"
|
|
},
|
|
"name": "url"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 2207,
|
|
"end": 2230,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 43
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 2207,
|
|
"end": 2216,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 29
|
|
},
|
|
"identifierName": "cachebust"
|
|
},
|
|
"name": "cachebust"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "BinaryExpression",
|
|
"start": 2217,
|
|
"end": 2229,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 42
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "StringLiteral",
|
|
"start": 2217,
|
|
"end": 2223,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 36
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "res/",
|
|
"raw": "\"res/\""
|
|
},
|
|
"value": "res/"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 2226,
|
|
"end": 2229,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 42
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 2241,
|
|
"end": 2267,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 34
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 2247,
|
|
"end": 2266,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 33
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 2247,
|
|
"end": 2252,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 19
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"init": {
|
|
"type": "NewExpression",
|
|
"start": 2255,
|
|
"end": 2266,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 33
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 2259,
|
|
"end": 2264,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 31
|
|
},
|
|
"identifierName": "Image"
|
|
},
|
|
"name": "Image"
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 2279,
|
|
"end": 2298,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 27
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 2283,
|
|
"end": 2297,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 26
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 2283,
|
|
"end": 2293,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 22
|
|
},
|
|
"identifierName": "triesSoFar"
|
|
},
|
|
"name": "triesSoFar"
|
|
},
|
|
"init": {
|
|
"type": "NumericLiteral",
|
|
"start": 2296,
|
|
"end": 2297,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 26
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
}
|
|
],
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 2310,
|
|
"end": 3856,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 11
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"start": 2317,
|
|
"end": 3855,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 10
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 2317,
|
|
"end": 2329,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 27
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 2317,
|
|
"end": 2324,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 22
|
|
},
|
|
"identifierName": "Promise"
|
|
},
|
|
"name": "Promise"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 2325,
|
|
"end": 2329,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 27
|
|
},
|
|
"identifierName": "race"
|
|
},
|
|
"name": "race"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ArrayExpression",
|
|
"start": 2330,
|
|
"end": 3854,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 9
|
|
}
|
|
},
|
|
"elements": [
|
|
{
|
|
"type": "NewExpression",
|
|
"start": 2345,
|
|
"end": 2456,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 14
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 2349,
|
|
"end": 2356,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 23
|
|
},
|
|
"identifierName": "Promise"
|
|
},
|
|
"name": "Promise"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 2357,
|
|
"end": 2455,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 13
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2358,
|
|
"end": 2365,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 32
|
|
},
|
|
"identifierName": "resolve"
|
|
},
|
|
"name": "resolve"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2367,
|
|
"end": 2373,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 40
|
|
},
|
|
"identifierName": "reject"
|
|
},
|
|
"name": "reject"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 2378,
|
|
"end": 2455,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 13
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 2397,
|
|
"end": 2440,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 59
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 2397,
|
|
"end": 2439,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 58
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 2397,
|
|
"end": 2407,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 26
|
|
},
|
|
"identifierName": "setTimeout"
|
|
},
|
|
"name": "setTimeout"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2408,
|
|
"end": 2414,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 33
|
|
},
|
|
"identifierName": "reject"
|
|
},
|
|
"name": "reject"
|
|
},
|
|
{
|
|
"type": "ConditionalExpression",
|
|
"start": 2416,
|
|
"end": 2438,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 57
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "Identifier",
|
|
"start": 2416,
|
|
"end": 2424,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 43
|
|
},
|
|
"identifierName": "G_IS_DEV"
|
|
},
|
|
"name": "G_IS_DEV"
|
|
},
|
|
"consequent": {
|
|
"type": "NumericLiteral",
|
|
"start": 2427,
|
|
"end": 2430,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 49
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 500,
|
|
"raw": "500"
|
|
},
|
|
"value": 500
|
|
},
|
|
"alternate": {
|
|
"type": "NumericLiteral",
|
|
"start": 2433,
|
|
"end": 2438,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 57
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 10000,
|
|
"raw": "10000"
|
|
},
|
|
"value": 10000
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "NewExpression",
|
|
"start": 2473,
|
|
"end": 3842,
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 14
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 2477,
|
|
"end": 2484,
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 23
|
|
},
|
|
"identifierName": "Promise"
|
|
},
|
|
"name": "Promise"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 2485,
|
|
"end": 3841,
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 13
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2485,
|
|
"end": 2492,
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 31
|
|
},
|
|
"identifierName": "resolve"
|
|
},
|
|
"name": "resolve"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 2496,
|
|
"end": 3841,
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 13
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 2515,
|
|
"end": 3168,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 18
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 2515,
|
|
"end": 3167,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 17
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 2515,
|
|
"end": 2527,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 28
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 2515,
|
|
"end": 2520,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 21
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 2521,
|
|
"end": 2527,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 28
|
|
},
|
|
"identifierName": "onload"
|
|
},
|
|
"name": "onload"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 2530,
|
|
"end": 3167,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 17
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 2536,
|
|
"end": 3167,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 17
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 2559,
|
|
"end": 2580,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 41
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 2559,
|
|
"end": 2579,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 40
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 2559,
|
|
"end": 2572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 33
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 2559,
|
|
"end": 2564,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 25
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 2565,
|
|
"end": 2572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 33
|
|
},
|
|
"identifierName": "onerror"
|
|
},
|
|
"name": "onerror"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "NullLiteral",
|
|
"start": 2575,
|
|
"end": 2579,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 40
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 2602,
|
|
"end": 2622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 40
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 2602,
|
|
"end": 2621,
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 39
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 2602,
|
|
"end": 2614,
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 32
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 2602,
|
|
"end": 2607,
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 25
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 2608,
|
|
"end": 2614,
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 32
|
|
},
|
|
"identifierName": "onload"
|
|
},
|
|
"name": "onload"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "NullLiteral",
|
|
"start": 2617,
|
|
"end": 2621,
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"start": 2646,
|
|
"end": 3111,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 21
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"start": 2650,
|
|
"end": 2684,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 58
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "UnaryExpression",
|
|
"start": 2650,
|
|
"end": 2669,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 43
|
|
}
|
|
},
|
|
"operator": "typeof",
|
|
"prefix": true,
|
|
"argument": {
|
|
"type": "MemberExpression",
|
|
"start": 2657,
|
|
"end": 2669,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 43
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 2657,
|
|
"end": 2662,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 36
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 2663,
|
|
"end": 2669,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 43
|
|
},
|
|
"identifierName": "decode"
|
|
},
|
|
"name": "decode"
|
|
},
|
|
"computed": false
|
|
},
|
|
"extra": {
|
|
"parenthesizedArgument": false
|
|
}
|
|
},
|
|
"operator": "===",
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 2674,
|
|
"end": 2684,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 58
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "function",
|
|
"raw": "\"function\""
|
|
},
|
|
"value": "function"
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"start": 2686,
|
|
"end": 3111,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 21
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 2959,
|
|
"end": 3088,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 99,
|
|
"column": 26
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 2959,
|
|
"end": 3087,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 99,
|
|
"column": 25
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 2959,
|
|
"end": 2978,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 43
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"start": 2959,
|
|
"end": 2973,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 38
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 2959,
|
|
"end": 2971,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 36
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 2959,
|
|
"end": 2964,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 29
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image",
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 2965,
|
|
"end": 2971,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 36
|
|
},
|
|
"identifierName": "decode"
|
|
},
|
|
"name": "decode"
|
|
},
|
|
"computed": false,
|
|
"leadingComments": null
|
|
},
|
|
"arguments": [],
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 2974,
|
|
"end": 2978,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 43
|
|
},
|
|
"identifierName": "then"
|
|
},
|
|
"name": "then"
|
|
},
|
|
"computed": false,
|
|
"leadingComments": null
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 3009,
|
|
"end": 3019,
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 97,
|
|
"column": 38
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": true,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "NullLiteral",
|
|
"start": 3015,
|
|
"end": 3019,
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 97,
|
|
"column": 38
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 3050,
|
|
"end": 3060,
|
|
"loc": {
|
|
"start": {
|
|
"line": 98,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 98,
|
|
"column": 38
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": true,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "NullLiteral",
|
|
"start": 3056,
|
|
"end": 3060,
|
|
"loc": {
|
|
"start": {
|
|
"line": 98,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 98,
|
|
"column": 38
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"leadingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " SAFARI: Image.decode() fails on safari with svgs -> we dont want to fail",
|
|
"start": 2713,
|
|
"end": 2788,
|
|
"loc": {
|
|
"start": {
|
|
"line": 93,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 93,
|
|
"column": 99
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " on that",
|
|
"start": 2814,
|
|
"end": 2824,
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " FIREFOX: Decode never returns if the image is in cache, so call it in background",
|
|
"start": 2850,
|
|
"end": 2933,
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 107
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"alternate": null
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3133,
|
|
"end": 3148,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 35
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 3133,
|
|
"end": 3147,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 34
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 3133,
|
|
"end": 3140,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 27
|
|
},
|
|
"identifierName": "resolve"
|
|
},
|
|
"name": "resolve"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 3141,
|
|
"end": 3146,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 33
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3188,
|
|
"end": 3790,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 18
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 3188,
|
|
"end": 3789,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 17
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 3188,
|
|
"end": 3201,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 29
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 3188,
|
|
"end": 3193,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 21
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 3194,
|
|
"end": 3201,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 29
|
|
},
|
|
"identifierName": "onerror"
|
|
},
|
|
"name": "onerror"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 3204,
|
|
"end": 3789,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 17
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 3204,
|
|
"end": 3210,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 38
|
|
},
|
|
"identifierName": "reason"
|
|
},
|
|
"name": "reason"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 3214,
|
|
"end": 3789,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 17
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3237,
|
|
"end": 3290,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 73
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 3237,
|
|
"end": 3289,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 72
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 3237,
|
|
"end": 3248,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 31
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 3237,
|
|
"end": 3243,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 26
|
|
},
|
|
"identifierName": "logger"
|
|
},
|
|
"name": "logger"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 3244,
|
|
"end": 3248,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 31
|
|
},
|
|
"identifierName": "warn"
|
|
},
|
|
"name": "warn"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "BinaryExpression",
|
|
"start": 3249,
|
|
"end": 3280,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 63
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start": 3249,
|
|
"end": 3273,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 56
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "StringLiteral",
|
|
"start": 3249,
|
|
"end": 3267,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 50
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "Failed to load '",
|
|
"raw": "\"Failed to load '\""
|
|
},
|
|
"value": "Failed to load '"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 3270,
|
|
"end": 3273,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 56
|
|
},
|
|
"identifierName": "url"
|
|
},
|
|
"name": "url"
|
|
}
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 3276,
|
|
"end": 3280,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 63
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "':",
|
|
"raw": "\"':\""
|
|
},
|
|
"value": "':"
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 3282,
|
|
"end": 3288,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 65
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 71
|
|
},
|
|
"identifierName": "reason"
|
|
},
|
|
"name": "reason"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"start": 3312,
|
|
"end": 3770,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 21
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"start": 3316,
|
|
"end": 3332,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 40
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "UpdateExpression",
|
|
"start": 3316,
|
|
"end": 3328,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 36
|
|
}
|
|
},
|
|
"operator": "++",
|
|
"prefix": true,
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start": 3318,
|
|
"end": 3328,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 36
|
|
},
|
|
"identifierName": "triesSoFar"
|
|
},
|
|
"name": "triesSoFar"
|
|
},
|
|
"extra": {
|
|
"parenthesizedArgument": false
|
|
}
|
|
},
|
|
"operator": "<",
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start": 3331,
|
|
"end": 3332,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 40
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 4,
|
|
"raw": "4"
|
|
},
|
|
"value": 4
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"start": 3334,
|
|
"end": 3496,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 21
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3361,
|
|
"end": 3408,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 71
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 3361,
|
|
"end": 3407,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 70
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 3361,
|
|
"end": 3371,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 34
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 3361,
|
|
"end": 3367,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 30
|
|
},
|
|
"identifierName": "logger"
|
|
},
|
|
"name": "logger"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 3368,
|
|
"end": 3371,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 34
|
|
},
|
|
"identifierName": "log"
|
|
},
|
|
"name": "log"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 3372,
|
|
"end": 3401,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 64
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "Retrying to load image from",
|
|
"raw": "\"Retrying to load image from\""
|
|
},
|
|
"value": "Retrying to load image from"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 3403,
|
|
"end": 3406,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 69
|
|
},
|
|
"identifierName": "url"
|
|
},
|
|
"name": "url"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3434,
|
|
"end": 3473,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 63
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 3434,
|
|
"end": 3472,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 62
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 3434,
|
|
"end": 3443,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 33
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 3434,
|
|
"end": 3439,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 29
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 3440,
|
|
"end": 3443,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 33
|
|
},
|
|
"identifierName": "src"
|
|
},
|
|
"name": "src"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"start": 3446,
|
|
"end": 3472,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 62
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start": 3446,
|
|
"end": 3459,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 49
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 3446,
|
|
"end": 3449,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 39
|
|
},
|
|
"identifierName": "url"
|
|
},
|
|
"name": "url"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 3452,
|
|
"end": 3459,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 49
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "?try=",
|
|
"raw": "\"?try=\""
|
|
},
|
|
"value": "?try="
|
|
}
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 3462,
|
|
"end": 3472,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 62
|
|
},
|
|
"identifierName": "triesSoFar"
|
|
},
|
|
"name": "triesSoFar"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"alternate": {
|
|
"type": "BlockStatement",
|
|
"start": 3502,
|
|
"end": 3770,
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 21
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3529,
|
|
"end": 3614,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 109
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 3529,
|
|
"end": 3613,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 108
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 3529,
|
|
"end": 3540,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 35
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 3529,
|
|
"end": 3535,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 30
|
|
},
|
|
"identifierName": "logger"
|
|
},
|
|
"name": "logger"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 3536,
|
|
"end": 3540,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 35
|
|
},
|
|
"identifierName": "warn"
|
|
},
|
|
"name": "warn"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 3541,
|
|
"end": 3557,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 52
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "Failed to load",
|
|
"raw": "\"Failed to load\""
|
|
},
|
|
"value": "Failed to load"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 3559,
|
|
"end": 3562,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 57
|
|
},
|
|
"identifierName": "url"
|
|
},
|
|
"name": "url"
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 3564,
|
|
"end": 3571,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 66
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "after",
|
|
"raw": "\"after\""
|
|
},
|
|
"value": "after"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 3573,
|
|
"end": 3583,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 78
|
|
},
|
|
"identifierName": "triesSoFar"
|
|
},
|
|
"name": "triesSoFar"
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 3585,
|
|
"end": 3604,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 80
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 99
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "tries with reason",
|
|
"raw": "\"tries with reason\""
|
|
},
|
|
"value": "tries with reason"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 3606,
|
|
"end": 3612,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 101
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 107
|
|
},
|
|
"identifierName": "reason"
|
|
},
|
|
"name": "reason"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3640,
|
|
"end": 3661,
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 45
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 3640,
|
|
"end": 3660,
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 44
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 3640,
|
|
"end": 3653,
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 37
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 3640,
|
|
"end": 3645,
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 29
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 3646,
|
|
"end": 3653,
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 37
|
|
},
|
|
"identifierName": "onerror"
|
|
},
|
|
"name": "onerror"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "NullLiteral",
|
|
"start": 3656,
|
|
"end": 3660,
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 44
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3687,
|
|
"end": 3707,
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 44
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 3687,
|
|
"end": 3706,
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 43
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 3687,
|
|
"end": 3699,
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 36
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 3687,
|
|
"end": 3692,
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 29
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 3693,
|
|
"end": 3699,
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 36
|
|
},
|
|
"identifierName": "onload"
|
|
},
|
|
"name": "onload"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "NullLiteral",
|
|
"start": 3702,
|
|
"end": 3706,
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 43
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3733,
|
|
"end": 3747,
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 38
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 3733,
|
|
"end": 3746,
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 37
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 3733,
|
|
"end": 3740,
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 31
|
|
},
|
|
"identifierName": "resolve"
|
|
},
|
|
"name": "resolve"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "NullLiteral",
|
|
"start": 3741,
|
|
"end": 3745,
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 36
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3810,
|
|
"end": 3826,
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 32
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 3810,
|
|
"end": 3825,
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 31
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 3810,
|
|
"end": 3819,
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 25
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 3810,
|
|
"end": 3815,
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 21
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 3816,
|
|
"end": 3819,
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 25
|
|
},
|
|
"identifierName": "src"
|
|
},
|
|
"name": "src"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 3822,
|
|
"end": 3825,
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 31
|
|
},
|
|
"identifierName": "url"
|
|
},
|
|
"name": "url"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n *\r\n * @param {string} key\r\n * @returns {Promise<HTMLImageElement|null>}\r\n ",
|
|
"start": 2054,
|
|
"end": 2152,
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Preloads a sprite\r\n * @param {string} key\r\n * @returns {Promise<void>}\r\n ",
|
|
"start": 3871,
|
|
"end": 3970,
|
|
"loc": {
|
|
"start": {
|
|
"line": 122,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 3976,
|
|
"end": 4333,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 3976,
|
|
"end": 3992,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 20
|
|
},
|
|
"identifierName": "preloadCSSSprite"
|
|
},
|
|
"name": "preloadCSSSprite",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 3993,
|
|
"end": 3996,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 24
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 3998,
|
|
"end": 4333,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 4009,
|
|
"end": 4326,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 11
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"start": 4016,
|
|
"end": 4325,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 10
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4016,
|
|
"end": 4051,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 50
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"start": 4016,
|
|
"end": 4046,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 45
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4016,
|
|
"end": 4041,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 40
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 4016,
|
|
"end": 4020,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4021,
|
|
"end": 4041,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 40
|
|
},
|
|
"identifierName": "internalPreloadImage"
|
|
},
|
|
"name": "internalPreloadImage"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4042,
|
|
"end": 4045,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 44
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
]
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4047,
|
|
"end": 4051,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 50
|
|
},
|
|
"identifierName": "then"
|
|
},
|
|
"name": "then"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 4052,
|
|
"end": 4324,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 9
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4052,
|
|
"end": 4057,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 56
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 4061,
|
|
"end": 4324,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 9
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"start": 4076,
|
|
"end": 4272,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 132,
|
|
"column": 13
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"start": 4080,
|
|
"end": 4109,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 45
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"start": 4080,
|
|
"end": 4104,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 40
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4080,
|
|
"end": 4091,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 27
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 4080,
|
|
"end": 4083,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 19
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4084,
|
|
"end": 4091,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 27
|
|
},
|
|
"identifierName": "indexOf"
|
|
},
|
|
"name": "indexOf"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 4092,
|
|
"end": 4103,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 39
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "game_misc",
|
|
"raw": "\"game_misc\""
|
|
},
|
|
"value": "game_misc"
|
|
}
|
|
]
|
|
},
|
|
"operator": ">=",
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start": 4108,
|
|
"end": 4109,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 45
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"start": 4111,
|
|
"end": 4272,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 132,
|
|
"column": 13
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 4182,
|
|
"end": 4257,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 91
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 4182,
|
|
"end": 4256,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 90
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4182,
|
|
"end": 4198,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 32
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"start": 4182,
|
|
"end": 4194,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 28
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 4182,
|
|
"end": 4186,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 20
|
|
}
|
|
},
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4187,
|
|
"end": 4194,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 28
|
|
},
|
|
"identifierName": "sprites"
|
|
},
|
|
"name": "sprites"
|
|
},
|
|
"computed": false,
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4195,
|
|
"end": 4198,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 32
|
|
},
|
|
"identifierName": "set"
|
|
},
|
|
"name": "set"
|
|
},
|
|
"computed": false,
|
|
"leadingComments": null
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4199,
|
|
"end": 4202,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 36
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
},
|
|
{
|
|
"type": "NewExpression",
|
|
"start": 4204,
|
|
"end": 4255,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 89
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 4208,
|
|
"end": 4221,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 55
|
|
},
|
|
"identifierName": "RegularSprite"
|
|
},
|
|
"name": "RegularSprite"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4222,
|
|
"end": 4227,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 56
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 61
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
{
|
|
"type": "MemberExpression",
|
|
"start": 4229,
|
|
"end": 4240,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 63
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 74
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 4229,
|
|
"end": 4234,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 63
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 68
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4235,
|
|
"end": 4240,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 69
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 74
|
|
},
|
|
"identifierName": "width"
|
|
},
|
|
"name": "width"
|
|
},
|
|
"computed": false
|
|
},
|
|
{
|
|
"type": "MemberExpression",
|
|
"start": 4242,
|
|
"end": 4254,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 76
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 88
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 4242,
|
|
"end": 4247,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 76
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 81
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4248,
|
|
"end": 4254,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 82
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 88
|
|
},
|
|
"identifierName": "height"
|
|
},
|
|
"name": "height"
|
|
},
|
|
"computed": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"leadingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " Allow access to regular sprites",
|
|
"start": 4130,
|
|
"end": 4164,
|
|
"loc": {
|
|
"start": {
|
|
"line": 130,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 130,
|
|
"column": 50
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"alternate": null
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 4286,
|
|
"end": 4313,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 39
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 4286,
|
|
"end": 4312,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 38
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4286,
|
|
"end": 4305,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 31
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"start": 4286,
|
|
"end": 4300,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 26
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 4286,
|
|
"end": 4290,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4291,
|
|
"end": 4300,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 26
|
|
},
|
|
"identifierName": "rawImages"
|
|
},
|
|
"name": "rawImages"
|
|
},
|
|
"computed": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4301,
|
|
"end": 4305,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 31
|
|
},
|
|
"identifierName": "push"
|
|
},
|
|
"name": "push"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4306,
|
|
"end": 4311,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 37
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Preloads a sprite\r\n * @param {string} key\r\n * @returns {Promise<void>}\r\n ",
|
|
"start": 3871,
|
|
"end": 3970,
|
|
"loc": {
|
|
"start": {
|
|
"line": 122,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Preloads an atlas\r\n * @param {import(\"./atlas_definitions\").AtlasDefinition} atlas\r\n * @returns {Promise<void>}\r\n ",
|
|
"start": 4341,
|
|
"end": 4481,
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 4487,
|
|
"end": 4748,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 148,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 4487,
|
|
"end": 4499,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 16
|
|
},
|
|
"identifierName": "preloadAtlas"
|
|
},
|
|
"name": "preloadAtlas",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4500,
|
|
"end": 4505,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 22
|
|
},
|
|
"identifierName": "atlas"
|
|
},
|
|
"name": "atlas"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 4507,
|
|
"end": 4748,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 148,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 4518,
|
|
"end": 4741,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 147,
|
|
"column": 11
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"start": 4525,
|
|
"end": 4740,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 147,
|
|
"column": 10
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4525,
|
|
"end": 4582,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 72
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"start": 4525,
|
|
"end": 4577,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 67
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4525,
|
|
"end": 4550,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 40
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 4525,
|
|
"end": 4529,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4530,
|
|
"end": 4550,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 40
|
|
},
|
|
"identifierName": "internalPreloadImage"
|
|
},
|
|
"name": "internalPreloadImage"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "CallExpression",
|
|
"start": 4551,
|
|
"end": 4576,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 66
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4551,
|
|
"end": 4574,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 64
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 4551,
|
|
"end": 4556,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 46
|
|
},
|
|
"identifierName": "atlas"
|
|
},
|
|
"name": "atlas"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4557,
|
|
"end": 4574,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 64
|
|
},
|
|
"identifierName": "getFullSourcePath"
|
|
},
|
|
"name": "getFullSourcePath"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": []
|
|
}
|
|
]
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4578,
|
|
"end": 4582,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 72
|
|
},
|
|
"identifierName": "then"
|
|
},
|
|
"name": "then"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 4583,
|
|
"end": 4739,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 73
|
|
},
|
|
"end": {
|
|
"line": 147,
|
|
"column": 9
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4583,
|
|
"end": 4588,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 73
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 78
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 4592,
|
|
"end": 4739,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 82
|
|
},
|
|
"end": {
|
|
"line": 147,
|
|
"column": 9
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 4634,
|
|
"end": 4669,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 47
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 4634,
|
|
"end": 4668,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 46
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 4634,
|
|
"end": 4645,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 23
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 4634,
|
|
"end": 4639,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 17
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image",
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4640,
|
|
"end": 4645,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 23
|
|
},
|
|
"identifierName": "label"
|
|
},
|
|
"name": "label"
|
|
},
|
|
"computed": false,
|
|
"leadingComments": null
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"start": 4648,
|
|
"end": 4668,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 46
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 4648,
|
|
"end": 4653,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 31
|
|
},
|
|
"identifierName": "atlas"
|
|
},
|
|
"name": "atlas"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4654,
|
|
"end": 4668,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 46
|
|
},
|
|
"identifierName": "sourceFileName"
|
|
},
|
|
"name": "sourceFileName"
|
|
},
|
|
"computed": false
|
|
},
|
|
"leadingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " @ts-ignore",
|
|
"start": 4607,
|
|
"end": 4620,
|
|
"loc": {
|
|
"start": {
|
|
"line": 144,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 144,
|
|
"column": 25
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 4683,
|
|
"end": 4728,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 57
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"start": 4690,
|
|
"end": 4727,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 56
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4690,
|
|
"end": 4713,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 42
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 4690,
|
|
"end": 4694,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4695,
|
|
"end": 4713,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 42
|
|
},
|
|
"identifierName": "internalParseAtlas"
|
|
},
|
|
"name": "internalParseAtlas"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4714,
|
|
"end": 4719,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 48
|
|
},
|
|
"identifierName": "atlas"
|
|
},
|
|
"name": "atlas"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4721,
|
|
"end": 4726,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 55
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Preloads an atlas\r\n * @param {import(\"./atlas_definitions\").AtlasDefinition} atlas\r\n * @returns {Promise<void>}\r\n ",
|
|
"start": 4341,
|
|
"end": 4481,
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n *\r\n * @param {import(\"./atlas_definitions\").AtlasDefinition} atlas\r\n * @param {HTMLImageElement} loadedImage\r\n ",
|
|
"start": 4756,
|
|
"end": 4891,
|
|
"loc": {
|
|
"start": {
|
|
"line": 150,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 4897,
|
|
"end": 5866,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 181,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 4897,
|
|
"end": 4915,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 22
|
|
},
|
|
"identifierName": "internalParseAtlas"
|
|
},
|
|
"name": "internalParseAtlas",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "ObjectPattern",
|
|
"start": 4916,
|
|
"end": 4947,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 54
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 4918,
|
|
"end": 4933,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 40
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 4918,
|
|
"end": 4922,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 29
|
|
},
|
|
"identifierName": "meta"
|
|
},
|
|
"name": "meta"
|
|
},
|
|
"value": {
|
|
"type": "ObjectPattern",
|
|
"start": 4924,
|
|
"end": 4933,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 40
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 4926,
|
|
"end": 4931,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 38
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 4926,
|
|
"end": 4931,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 38
|
|
},
|
|
"identifierName": "scale"
|
|
},
|
|
"name": "scale"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 4926,
|
|
"end": 4931,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 38
|
|
},
|
|
"identifierName": "scale"
|
|
},
|
|
"name": "scale"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 4935,
|
|
"end": 4945,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 52
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 4935,
|
|
"end": 4945,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 52
|
|
},
|
|
"identifierName": "sourceData"
|
|
},
|
|
"name": "sourceData"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 4935,
|
|
"end": 4945,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 52
|
|
},
|
|
"identifierName": "sourceData"
|
|
},
|
|
"name": "sourceData"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4949,
|
|
"end": 4960,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 56
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 67
|
|
},
|
|
"identifierName": "loadedImage"
|
|
},
|
|
"name": "loadedImage"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 4962,
|
|
"end": 5866,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 69
|
|
},
|
|
"end": {
|
|
"line": 181,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 4973,
|
|
"end": 5006,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 41
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 4973,
|
|
"end": 5005,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 40
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4973,
|
|
"end": 4992,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 27
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"start": 4973,
|
|
"end": 4987,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 22
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 4973,
|
|
"end": 4977,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4978,
|
|
"end": 4987,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 22
|
|
},
|
|
"identifierName": "rawImages"
|
|
},
|
|
"name": "rawImages"
|
|
},
|
|
"computed": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4988,
|
|
"end": 4992,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 27
|
|
},
|
|
"identifierName": "push"
|
|
},
|
|
"name": "push"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4993,
|
|
"end": 5004,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 39
|
|
},
|
|
"identifierName": "loadedImage"
|
|
},
|
|
"name": "loadedImage"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"start": 5018,
|
|
"end": 5859,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 180,
|
|
"column": 9
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"start": 5023,
|
|
"end": 5039,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 29
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 5029,
|
|
"end": 5039,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 29
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 5029,
|
|
"end": 5039,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 29
|
|
},
|
|
"identifierName": "spriteName"
|
|
},
|
|
"name": "spriteName"
|
|
},
|
|
"init": null
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 5043,
|
|
"end": 5053,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 43
|
|
},
|
|
"identifierName": "sourceData"
|
|
},
|
|
"name": "sourceData"
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 5055,
|
|
"end": 5859,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 180,
|
|
"column": 9
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 5070,
|
|
"end": 5141,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 83
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 5076,
|
|
"end": 5140,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 82
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "ObjectPattern",
|
|
"start": 5076,
|
|
"end": 5115,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 57
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5078,
|
|
"end": 5083,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 25
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5078,
|
|
"end": 5083,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 25
|
|
},
|
|
"identifierName": "frame"
|
|
},
|
|
"name": "frame"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 5078,
|
|
"end": 5083,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 25
|
|
},
|
|
"identifierName": "frame"
|
|
},
|
|
"name": "frame"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5085,
|
|
"end": 5095,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 37
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5085,
|
|
"end": 5095,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 37
|
|
},
|
|
"identifierName": "sourceSize"
|
|
},
|
|
"name": "sourceSize"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 5085,
|
|
"end": 5095,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 37
|
|
},
|
|
"identifierName": "sourceSize"
|
|
},
|
|
"name": "sourceSize"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5097,
|
|
"end": 5113,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 55
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5097,
|
|
"end": 5113,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 55
|
|
},
|
|
"identifierName": "spriteSourceSize"
|
|
},
|
|
"name": "spriteSourceSize"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 5097,
|
|
"end": 5113,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 55
|
|
},
|
|
"identifierName": "spriteSourceSize"
|
|
},
|
|
"name": "spriteSourceSize"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"init": {
|
|
"type": "MemberExpression",
|
|
"start": 5118,
|
|
"end": 5140,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 82
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5118,
|
|
"end": 5128,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 70
|
|
},
|
|
"identifierName": "sourceData"
|
|
},
|
|
"name": "sourceData"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5129,
|
|
"end": 5139,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 71
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 81
|
|
},
|
|
"identifierName": "spriteName"
|
|
},
|
|
"name": "spriteName"
|
|
},
|
|
"computed": true
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 5157,
|
|
"end": 5228,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 83
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 5161,
|
|
"end": 5227,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 82
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 5161,
|
|
"end": 5167,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 22
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 5198,
|
|
"end": 5226,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 81
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 5198,
|
|
"end": 5214,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 69
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"start": 5198,
|
|
"end": 5210,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 65
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 5198,
|
|
"end": 5202,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 57
|
|
}
|
|
},
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5203,
|
|
"end": 5210,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 65
|
|
},
|
|
"identifierName": "sprites"
|
|
},
|
|
"name": "sprites"
|
|
},
|
|
"computed": false,
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5211,
|
|
"end": 5214,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 69
|
|
},
|
|
"identifierName": "get"
|
|
},
|
|
"name": "get"
|
|
},
|
|
"computed": false,
|
|
"leadingComments": null
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 5215,
|
|
"end": 5225,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 70
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 80
|
|
},
|
|
"identifierName": "spriteName"
|
|
},
|
|
"name": "spriteName"
|
|
}
|
|
],
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* @type {AtlasSprite} ",
|
|
"start": 5170,
|
|
"end": 5196,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 51
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 5197
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"start": 5244,
|
|
"end": 5383,
|
|
"loc": {
|
|
"start": {
|
|
"line": 163,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 166,
|
|
"column": 13
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "UnaryExpression",
|
|
"start": 5248,
|
|
"end": 5255,
|
|
"loc": {
|
|
"start": {
|
|
"line": 163,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 163,
|
|
"column": 23
|
|
}
|
|
},
|
|
"operator": "!",
|
|
"prefix": true,
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start": 5249,
|
|
"end": 5255,
|
|
"loc": {
|
|
"start": {
|
|
"line": 163,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 163,
|
|
"column": 23
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"extra": {
|
|
"parenthesizedArgument": false
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"start": 5257,
|
|
"end": 5383,
|
|
"loc": {
|
|
"start": {
|
|
"line": 163,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 166,
|
|
"column": 13
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 5276,
|
|
"end": 5313,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 53
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 5276,
|
|
"end": 5312,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 52
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 5276,
|
|
"end": 5282,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 22
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"right": {
|
|
"type": "NewExpression",
|
|
"start": 5285,
|
|
"end": 5312,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 52
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 5289,
|
|
"end": 5300,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 40
|
|
},
|
|
"identifierName": "AtlasSprite"
|
|
},
|
|
"name": "AtlasSprite"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 5301,
|
|
"end": 5311,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 51
|
|
},
|
|
"identifierName": "spriteName"
|
|
},
|
|
"name": "spriteName"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 5331,
|
|
"end": 5368,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 53
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 5331,
|
|
"end": 5367,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 52
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 5331,
|
|
"end": 5347,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 32
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"start": 5331,
|
|
"end": 5343,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 28
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 5331,
|
|
"end": 5335,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5336,
|
|
"end": 5343,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 28
|
|
},
|
|
"identifierName": "sprites"
|
|
},
|
|
"name": "sprites"
|
|
},
|
|
"computed": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5344,
|
|
"end": 5347,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 32
|
|
},
|
|
"identifierName": "set"
|
|
},
|
|
"name": "set"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 5348,
|
|
"end": 5358,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 43
|
|
},
|
|
"identifierName": "spriteName"
|
|
},
|
|
"name": "spriteName"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 5360,
|
|
"end": 5366,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 51
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"alternate": null
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 5399,
|
|
"end": 5795,
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 178,
|
|
"column": 15
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 5405,
|
|
"end": 5794,
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 178,
|
|
"column": 14
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 5405,
|
|
"end": 5409,
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 22
|
|
},
|
|
"identifierName": "link"
|
|
},
|
|
"name": "link"
|
|
},
|
|
"init": {
|
|
"type": "NewExpression",
|
|
"start": 5412,
|
|
"end": 5794,
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 178,
|
|
"column": 14
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 5416,
|
|
"end": 5431,
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 44
|
|
},
|
|
"identifierName": "SpriteAtlasLink"
|
|
},
|
|
"name": "SpriteAtlasLink"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ObjectExpression",
|
|
"start": 5432,
|
|
"end": 5793,
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 178,
|
|
"column": 13
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5451,
|
|
"end": 5467,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 32
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5451,
|
|
"end": 5458,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 23
|
|
},
|
|
"identifierName": "packedX"
|
|
},
|
|
"name": "packedX"
|
|
},
|
|
"value": {
|
|
"type": "MemberExpression",
|
|
"start": 5460,
|
|
"end": 5467,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 32
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5460,
|
|
"end": 5465,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 30
|
|
},
|
|
"identifierName": "frame"
|
|
},
|
|
"name": "frame"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5466,
|
|
"end": 5467,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 32
|
|
},
|
|
"identifierName": "x"
|
|
},
|
|
"name": "x"
|
|
},
|
|
"computed": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5486,
|
|
"end": 5502,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 32
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5486,
|
|
"end": 5493,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 23
|
|
},
|
|
"identifierName": "packedY"
|
|
},
|
|
"name": "packedY"
|
|
},
|
|
"value": {
|
|
"type": "MemberExpression",
|
|
"start": 5495,
|
|
"end": 5502,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 32
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5495,
|
|
"end": 5500,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 30
|
|
},
|
|
"identifierName": "frame"
|
|
},
|
|
"name": "frame"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5501,
|
|
"end": 5502,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 32
|
|
},
|
|
"identifierName": "y"
|
|
},
|
|
"name": "y"
|
|
},
|
|
"computed": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5521,
|
|
"end": 5537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 32
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5521,
|
|
"end": 5528,
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 23
|
|
},
|
|
"identifierName": "packedW"
|
|
},
|
|
"name": "packedW"
|
|
},
|
|
"value": {
|
|
"type": "MemberExpression",
|
|
"start": 5530,
|
|
"end": 5537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 32
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5530,
|
|
"end": 5535,
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 30
|
|
},
|
|
"identifierName": "frame"
|
|
},
|
|
"name": "frame"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5536,
|
|
"end": 5537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 32
|
|
},
|
|
"identifierName": "w"
|
|
},
|
|
"name": "w"
|
|
},
|
|
"computed": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5556,
|
|
"end": 5572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 172,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 32
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5556,
|
|
"end": 5563,
|
|
"loc": {
|
|
"start": {
|
|
"line": 172,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 23
|
|
},
|
|
"identifierName": "packedH"
|
|
},
|
|
"name": "packedH"
|
|
},
|
|
"value": {
|
|
"type": "MemberExpression",
|
|
"start": 5565,
|
|
"end": 5572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 172,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 32
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5565,
|
|
"end": 5570,
|
|
"loc": {
|
|
"start": {
|
|
"line": 172,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 30
|
|
},
|
|
"identifierName": "frame"
|
|
},
|
|
"name": "frame"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5571,
|
|
"end": 5572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 172,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 32
|
|
},
|
|
"identifierName": "h"
|
|
},
|
|
"name": "h"
|
|
},
|
|
"computed": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5591,
|
|
"end": 5622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 173,
|
|
"column": 47
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5591,
|
|
"end": 5602,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 173,
|
|
"column": 27
|
|
},
|
|
"identifierName": "packOffsetX"
|
|
},
|
|
"name": "packOffsetX"
|
|
},
|
|
"value": {
|
|
"type": "MemberExpression",
|
|
"start": 5604,
|
|
"end": 5622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 173,
|
|
"column": 47
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5604,
|
|
"end": 5620,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 173,
|
|
"column": 45
|
|
},
|
|
"identifierName": "spriteSourceSize"
|
|
},
|
|
"name": "spriteSourceSize"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5621,
|
|
"end": 5622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 173,
|
|
"column": 47
|
|
},
|
|
"identifierName": "x"
|
|
},
|
|
"name": "x"
|
|
},
|
|
"computed": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5641,
|
|
"end": 5672,
|
|
"loc": {
|
|
"start": {
|
|
"line": 174,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 174,
|
|
"column": 47
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5641,
|
|
"end": 5652,
|
|
"loc": {
|
|
"start": {
|
|
"line": 174,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 174,
|
|
"column": 27
|
|
},
|
|
"identifierName": "packOffsetY"
|
|
},
|
|
"name": "packOffsetY"
|
|
},
|
|
"value": {
|
|
"type": "MemberExpression",
|
|
"start": 5654,
|
|
"end": 5672,
|
|
"loc": {
|
|
"start": {
|
|
"line": 174,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 174,
|
|
"column": 47
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5654,
|
|
"end": 5670,
|
|
"loc": {
|
|
"start": {
|
|
"line": 174,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 174,
|
|
"column": 45
|
|
},
|
|
"identifierName": "spriteSourceSize"
|
|
},
|
|
"name": "spriteSourceSize"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5671,
|
|
"end": 5672,
|
|
"loc": {
|
|
"start": {
|
|
"line": 174,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 174,
|
|
"column": 47
|
|
},
|
|
"identifierName": "y"
|
|
},
|
|
"name": "y"
|
|
},
|
|
"computed": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5691,
|
|
"end": 5709,
|
|
"loc": {
|
|
"start": {
|
|
"line": 175,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 175,
|
|
"column": 34
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5691,
|
|
"end": 5696,
|
|
"loc": {
|
|
"start": {
|
|
"line": 175,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 175,
|
|
"column": 21
|
|
},
|
|
"identifierName": "atlas"
|
|
},
|
|
"name": "atlas"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 5698,
|
|
"end": 5709,
|
|
"loc": {
|
|
"start": {
|
|
"line": 175,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 175,
|
|
"column": 34
|
|
},
|
|
"identifierName": "loadedImage"
|
|
},
|
|
"name": "loadedImage"
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5728,
|
|
"end": 5743,
|
|
"loc": {
|
|
"start": {
|
|
"line": 176,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 31
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5728,
|
|
"end": 5729,
|
|
"loc": {
|
|
"start": {
|
|
"line": 176,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 17
|
|
},
|
|
"identifierName": "w"
|
|
},
|
|
"name": "w"
|
|
},
|
|
"value": {
|
|
"type": "MemberExpression",
|
|
"start": 5731,
|
|
"end": 5743,
|
|
"loc": {
|
|
"start": {
|
|
"line": 176,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 31
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5731,
|
|
"end": 5741,
|
|
"loc": {
|
|
"start": {
|
|
"line": 176,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 29
|
|
},
|
|
"identifierName": "sourceSize"
|
|
},
|
|
"name": "sourceSize"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5742,
|
|
"end": 5743,
|
|
"loc": {
|
|
"start": {
|
|
"line": 176,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 31
|
|
},
|
|
"identifierName": "w"
|
|
},
|
|
"name": "w"
|
|
},
|
|
"computed": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5762,
|
|
"end": 5777,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 31
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5762,
|
|
"end": 5763,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 17
|
|
},
|
|
"identifierName": "h"
|
|
},
|
|
"name": "h"
|
|
},
|
|
"value": {
|
|
"type": "MemberExpression",
|
|
"start": 5765,
|
|
"end": 5777,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 31
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5765,
|
|
"end": 5775,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 29
|
|
},
|
|
"identifierName": "sourceSize"
|
|
},
|
|
"name": "sourceSize"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5776,
|
|
"end": 5777,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 31
|
|
},
|
|
"identifierName": "h"
|
|
},
|
|
"name": "h"
|
|
},
|
|
"computed": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 5809,
|
|
"end": 5848,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 51
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 5809,
|
|
"end": 5847,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 50
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 5809,
|
|
"end": 5840,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 43
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"start": 5809,
|
|
"end": 5833,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 36
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5809,
|
|
"end": 5815,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 18
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5816,
|
|
"end": 5833,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 36
|
|
},
|
|
"identifierName": "linksByResolution"
|
|
},
|
|
"name": "linksByResolution"
|
|
},
|
|
"computed": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5834,
|
|
"end": 5839,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 42
|
|
},
|
|
"identifierName": "scale"
|
|
},
|
|
"name": "scale"
|
|
},
|
|
"computed": true
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 5843,
|
|
"end": 5847,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 50
|
|
},
|
|
"identifierName": "link"
|
|
},
|
|
"name": "link"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n *\r\n * @param {import(\"./atlas_definitions\").AtlasDefinition} atlas\r\n * @param {HTMLImageElement} loadedImage\r\n ",
|
|
"start": 4756,
|
|
"end": 4891,
|
|
"loc": {
|
|
"start": {
|
|
"line": 150,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Makes the canvas which shows the question mark, shown when a sprite was not found\r\n ",
|
|
"start": 5874,
|
|
"end": 5976,
|
|
"loc": {
|
|
"start": {
|
|
"line": 183,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 185,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 5982,
|
|
"end": 7146,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5982,
|
|
"end": 6006,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 186,
|
|
"column": 28
|
|
},
|
|
"identifierName": "makeSpriteNotFoundCanvas"
|
|
},
|
|
"name": "makeSpriteNotFoundCanvas",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 6009,
|
|
"end": 7146,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 6020,
|
|
"end": 6037,
|
|
"loc": {
|
|
"start": {
|
|
"line": 187,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 187,
|
|
"column": 25
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 6026,
|
|
"end": 6036,
|
|
"loc": {
|
|
"start": {
|
|
"line": 187,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 187,
|
|
"column": 24
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 6026,
|
|
"end": 6030,
|
|
"loc": {
|
|
"start": {
|
|
"line": 187,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 187,
|
|
"column": 18
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
},
|
|
"init": {
|
|
"type": "NumericLiteral",
|
|
"start": 6033,
|
|
"end": 6036,
|
|
"loc": {
|
|
"start": {
|
|
"line": 187,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 187,
|
|
"column": 24
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 128,
|
|
"raw": "128"
|
|
},
|
|
"value": 128
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 6049,
|
|
"end": 6189,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 192,
|
|
"column": 11
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 6055,
|
|
"end": 6188,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 192,
|
|
"column": 10
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "ArrayPattern",
|
|
"start": 6055,
|
|
"end": 6072,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 31
|
|
}
|
|
},
|
|
"elements": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6056,
|
|
"end": 6062,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 21
|
|
},
|
|
"identifierName": "canvas"
|
|
},
|
|
"name": "canvas"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6064,
|
|
"end": 6071,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 30
|
|
},
|
|
"identifierName": "context"
|
|
},
|
|
"name": "context"
|
|
}
|
|
]
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 6075,
|
|
"end": 6188,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 192,
|
|
"column": 10
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 6075,
|
|
"end": 6094,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 53
|
|
},
|
|
"identifierName": "makeOffscreenBuffer"
|
|
},
|
|
"name": "makeOffscreenBuffer"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6095,
|
|
"end": 6099,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 58
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6101,
|
|
"end": 6105,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 64
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
},
|
|
{
|
|
"type": "ObjectExpression",
|
|
"start": 6107,
|
|
"end": 6187,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 192,
|
|
"column": 9
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 6122,
|
|
"end": 6135,
|
|
"loc": {
|
|
"start": {
|
|
"line": 190,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 190,
|
|
"column": 25
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 6122,
|
|
"end": 6128,
|
|
"loc": {
|
|
"start": {
|
|
"line": 190,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 190,
|
|
"column": 18
|
|
},
|
|
"identifierName": "smooth"
|
|
},
|
|
"name": "smooth"
|
|
},
|
|
"value": {
|
|
"type": "BooleanLiteral",
|
|
"start": 6130,
|
|
"end": 6135,
|
|
"loc": {
|
|
"start": {
|
|
"line": 190,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 190,
|
|
"column": 25
|
|
}
|
|
},
|
|
"value": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 6150,
|
|
"end": 6175,
|
|
"loc": {
|
|
"start": {
|
|
"line": 191,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 191,
|
|
"column": 37
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 6150,
|
|
"end": 6155,
|
|
"loc": {
|
|
"start": {
|
|
"line": 191,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 191,
|
|
"column": 17
|
|
},
|
|
"identifierName": "label"
|
|
},
|
|
"name": "label"
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"start": 6157,
|
|
"end": 6175,
|
|
"loc": {
|
|
"start": {
|
|
"line": 191,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 191,
|
|
"column": 37
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "not-found-sprite",
|
|
"raw": "\"not-found-sprite\""
|
|
},
|
|
"value": "not-found-sprite"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6199,
|
|
"end": 6226,
|
|
"loc": {
|
|
"start": {
|
|
"line": 193,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 193,
|
|
"column": 35
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 6199,
|
|
"end": 6225,
|
|
"loc": {
|
|
"start": {
|
|
"line": 193,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 193,
|
|
"column": 34
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 6199,
|
|
"end": 6216,
|
|
"loc": {
|
|
"start": {
|
|
"line": 193,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 193,
|
|
"column": 25
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 6199,
|
|
"end": 6206,
|
|
"loc": {
|
|
"start": {
|
|
"line": 193,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 193,
|
|
"column": 15
|
|
},
|
|
"identifierName": "context"
|
|
},
|
|
"name": "context"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6207,
|
|
"end": 6216,
|
|
"loc": {
|
|
"start": {
|
|
"line": 193,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 193,
|
|
"column": 25
|
|
},
|
|
"identifierName": "fillStyle"
|
|
},
|
|
"name": "fillStyle"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 6219,
|
|
"end": 6225,
|
|
"loc": {
|
|
"start": {
|
|
"line": 193,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 193,
|
|
"column": 34
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "#f77",
|
|
"raw": "\"#f77\""
|
|
},
|
|
"value": "#f77"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6236,
|
|
"end": 6271,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 43
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 6236,
|
|
"end": 6270,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 42
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 6236,
|
|
"end": 6252,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 24
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 6236,
|
|
"end": 6243,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 15
|
|
},
|
|
"identifierName": "context"
|
|
},
|
|
"name": "context"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6244,
|
|
"end": 6252,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 24
|
|
},
|
|
"identifierName": "fillRect"
|
|
},
|
|
"name": "fillRect"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "NumericLiteral",
|
|
"start": 6253,
|
|
"end": 6254,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 26
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
},
|
|
{
|
|
"type": "NumericLiteral",
|
|
"start": 6256,
|
|
"end": 6257,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 29
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6259,
|
|
"end": 6263,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 35
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6265,
|
|
"end": 6269,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 41
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6283,
|
|
"end": 6312,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 37
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 6283,
|
|
"end": 6311,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 36
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 6283,
|
|
"end": 6300,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 25
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 6283,
|
|
"end": 6290,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 15
|
|
},
|
|
"identifierName": "context"
|
|
},
|
|
"name": "context"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6291,
|
|
"end": 6300,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 25
|
|
},
|
|
"identifierName": "textAlign"
|
|
},
|
|
"name": "textAlign"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 6303,
|
|
"end": 6311,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 36
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "center",
|
|
"raw": "\"center\""
|
|
},
|
|
"value": "center"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6322,
|
|
"end": 6354,
|
|
"loc": {
|
|
"start": {
|
|
"line": 197,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 40
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 6322,
|
|
"end": 6353,
|
|
"loc": {
|
|
"start": {
|
|
"line": 197,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 39
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 6322,
|
|
"end": 6342,
|
|
"loc": {
|
|
"start": {
|
|
"line": 197,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 28
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 6322,
|
|
"end": 6329,
|
|
"loc": {
|
|
"start": {
|
|
"line": 197,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 15
|
|
},
|
|
"identifierName": "context"
|
|
},
|
|
"name": "context"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6330,
|
|
"end": 6342,
|
|
"loc": {
|
|
"start": {
|
|
"line": 197,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 28
|
|
},
|
|
"identifierName": "textBaseline"
|
|
},
|
|
"name": "textBaseline"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 6345,
|
|
"end": 6353,
|
|
"loc": {
|
|
"start": {
|
|
"line": 197,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 39
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "middle",
|
|
"raw": "\"middle\""
|
|
},
|
|
"value": "middle"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6364,
|
|
"end": 6391,
|
|
"loc": {
|
|
"start": {
|
|
"line": 198,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 198,
|
|
"column": 35
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 6364,
|
|
"end": 6390,
|
|
"loc": {
|
|
"start": {
|
|
"line": 198,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 198,
|
|
"column": 34
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 6364,
|
|
"end": 6381,
|
|
"loc": {
|
|
"start": {
|
|
"line": 198,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 198,
|
|
"column": 25
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 6364,
|
|
"end": 6371,
|
|
"loc": {
|
|
"start": {
|
|
"line": 198,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 198,
|
|
"column": 15
|
|
},
|
|
"identifierName": "context"
|
|
},
|
|
"name": "context"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6372,
|
|
"end": 6381,
|
|
"loc": {
|
|
"start": {
|
|
"line": 198,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 198,
|
|
"column": 25
|
|
},
|
|
"identifierName": "fillStyle"
|
|
},
|
|
"name": "fillStyle"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 6384,
|
|
"end": 6390,
|
|
"loc": {
|
|
"start": {
|
|
"line": 198,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 198,
|
|
"column": 34
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "#eee",
|
|
"raw": "\"#eee\""
|
|
},
|
|
"value": "#eee"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6401,
|
|
"end": 6429,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 199,
|
|
"column": 36
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 6401,
|
|
"end": 6428,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 199,
|
|
"column": 35
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 6401,
|
|
"end": 6413,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 199,
|
|
"column": 20
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 6401,
|
|
"end": 6408,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 199,
|
|
"column": 15
|
|
},
|
|
"identifierName": "context"
|
|
},
|
|
"name": "context"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6409,
|
|
"end": 6413,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 199,
|
|
"column": 20
|
|
},
|
|
"identifierName": "font"
|
|
},
|
|
"name": "font"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 6416,
|
|
"end": 6428,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 199,
|
|
"column": 35
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "25px Arial",
|
|
"raw": "\"25px Arial\""
|
|
},
|
|
"value": "25px Arial"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6439,
|
|
"end": 6483,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 52
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 6439,
|
|
"end": 6482,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 51
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 6439,
|
|
"end": 6455,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 24
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 6439,
|
|
"end": 6446,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 15
|
|
},
|
|
"identifierName": "context"
|
|
},
|
|
"name": "context"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6447,
|
|
"end": 6455,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 24
|
|
},
|
|
"identifierName": "fillText"
|
|
},
|
|
"name": "fillText"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 6456,
|
|
"end": 6461,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 30
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "???",
|
|
"raw": "\"???\""
|
|
},
|
|
"value": "???"
|
|
},
|
|
{
|
|
"type": "BinaryExpression",
|
|
"start": 6463,
|
|
"end": 6471,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 40
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 6463,
|
|
"end": 6467,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 36
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start": 6470,
|
|
"end": 6471,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 40
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 2,
|
|
"raw": "2"
|
|
},
|
|
"value": 2
|
|
}
|
|
},
|
|
{
|
|
"type": "BinaryExpression",
|
|
"start": 6473,
|
|
"end": 6481,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 50
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 6473,
|
|
"end": 6477,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 46
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start": 6480,
|
|
"end": 6481,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 50
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 2,
|
|
"raw": "2"
|
|
},
|
|
"value": 2
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " TODO: Not sure why this is set here",
|
|
"start": 6495,
|
|
"end": 6533,
|
|
"loc": {
|
|
"start": {
|
|
"line": 202,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 202,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " @ts-ignore",
|
|
"start": 6543,
|
|
"end": 6556,
|
|
"loc": {
|
|
"start": {
|
|
"line": 203,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 203,
|
|
"column": 21
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6566,
|
|
"end": 6591,
|
|
"loc": {
|
|
"start": {
|
|
"line": 204,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 204,
|
|
"column": 33
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 6566,
|
|
"end": 6590,
|
|
"loc": {
|
|
"start": {
|
|
"line": 204,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 204,
|
|
"column": 32
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 6566,
|
|
"end": 6576,
|
|
"loc": {
|
|
"start": {
|
|
"line": 204,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 204,
|
|
"column": 18
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 6566,
|
|
"end": 6572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 204,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 204,
|
|
"column": 14
|
|
},
|
|
"identifierName": "canvas"
|
|
},
|
|
"name": "canvas",
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6573,
|
|
"end": 6576,
|
|
"loc": {
|
|
"start": {
|
|
"line": 204,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 204,
|
|
"column": 18
|
|
},
|
|
"identifierName": "src"
|
|
},
|
|
"name": "src"
|
|
},
|
|
"computed": false,
|
|
"leadingComments": null
|
|
},
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 6579,
|
|
"end": 6590,
|
|
"loc": {
|
|
"start": {
|
|
"line": 204,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 204,
|
|
"column": 32
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "not-found",
|
|
"raw": "\"not-found\""
|
|
},
|
|
"value": "not-found"
|
|
},
|
|
"leadingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " TODO: Not sure why this is set here",
|
|
"start": 6495,
|
|
"end": 6533,
|
|
"loc": {
|
|
"start": {
|
|
"line": 202,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 202,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " @ts-ignore",
|
|
"start": 6543,
|
|
"end": 6556,
|
|
"loc": {
|
|
"start": {
|
|
"line": 203,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 203,
|
|
"column": 21
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 6603,
|
|
"end": 6647,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 52
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 6609,
|
|
"end": 6646,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 51
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 6609,
|
|
"end": 6615,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 20
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"init": {
|
|
"type": "NewExpression",
|
|
"start": 6618,
|
|
"end": 6646,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 51
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 6622,
|
|
"end": 6633,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 38
|
|
},
|
|
"identifierName": "AtlasSprite"
|
|
},
|
|
"name": "AtlasSprite"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 6634,
|
|
"end": 6645,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 50
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "not-found",
|
|
"raw": "\"not-found\""
|
|
},
|
|
"value": "not-found"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6657,
|
|
"end": 7092,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 219,
|
|
"column": 11
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 6657,
|
|
"end": 7091,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 219,
|
|
"column": 10
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 6657,
|
|
"end": 6700,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 51
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ArrayExpression",
|
|
"start": 6657,
|
|
"end": 6692,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 43
|
|
}
|
|
},
|
|
"elements": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 6658,
|
|
"end": 6663,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 14
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "0.1",
|
|
"raw": "\"0.1\""
|
|
},
|
|
"value": "0.1"
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 6665,
|
|
"end": 6671,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 22
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "0.25",
|
|
"raw": "\"0.25\""
|
|
},
|
|
"value": "0.25"
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 6673,
|
|
"end": 6678,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 29
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "0.5",
|
|
"raw": "\"0.5\""
|
|
},
|
|
"value": "0.5"
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 6680,
|
|
"end": 6686,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 37
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "0.75",
|
|
"raw": "\"0.75\""
|
|
},
|
|
"value": "0.75"
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 6688,
|
|
"end": 6691,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 42
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "1",
|
|
"raw": "\"1\""
|
|
},
|
|
"value": "1"
|
|
}
|
|
]
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6693,
|
|
"end": 6700,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 51
|
|
},
|
|
"identifierName": "forEach"
|
|
},
|
|
"name": "forEach"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 6701,
|
|
"end": 7090,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 219,
|
|
"column": 9
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6701,
|
|
"end": 6711,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 62
|
|
},
|
|
"identifierName": "resolution"
|
|
},
|
|
"name": "resolution"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 6715,
|
|
"end": 7090,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 219,
|
|
"column": 9
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6730,
|
|
"end": 7079,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 15
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 6730,
|
|
"end": 7078,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 14
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 6730,
|
|
"end": 6766,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 48
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"start": 6730,
|
|
"end": 6754,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 36
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 6730,
|
|
"end": 6736,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 18
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6737,
|
|
"end": 6754,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 36
|
|
},
|
|
"identifierName": "linksByResolution"
|
|
},
|
|
"name": "linksByResolution"
|
|
},
|
|
"computed": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6755,
|
|
"end": 6765,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 47
|
|
},
|
|
"identifierName": "resolution"
|
|
},
|
|
"name": "resolution"
|
|
},
|
|
"computed": true
|
|
},
|
|
"right": {
|
|
"type": "NewExpression",
|
|
"start": 6769,
|
|
"end": 7078,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 14
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 6773,
|
|
"end": 6788,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 70
|
|
},
|
|
"identifierName": "SpriteAtlasLink"
|
|
},
|
|
"name": "SpriteAtlasLink"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ObjectExpression",
|
|
"start": 6789,
|
|
"end": 7077,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 71
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 13
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 6808,
|
|
"end": 6818,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 26
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 6808,
|
|
"end": 6815,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 23
|
|
},
|
|
"identifierName": "packedX"
|
|
},
|
|
"name": "packedX"
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"start": 6817,
|
|
"end": 6818,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 26
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 6837,
|
|
"end": 6847,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 26
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 6837,
|
|
"end": 6844,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 23
|
|
},
|
|
"identifierName": "packedY"
|
|
},
|
|
"name": "packedY"
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"start": 6846,
|
|
"end": 6847,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 26
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 6866,
|
|
"end": 6873,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 23
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 6866,
|
|
"end": 6867,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 17
|
|
},
|
|
"identifierName": "w"
|
|
},
|
|
"name": "w"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 6869,
|
|
"end": 6873,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 23
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 6892,
|
|
"end": 6899,
|
|
"loc": {
|
|
"start": {
|
|
"line": 212,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 212,
|
|
"column": 23
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 6892,
|
|
"end": 6893,
|
|
"loc": {
|
|
"start": {
|
|
"line": 212,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 212,
|
|
"column": 17
|
|
},
|
|
"identifierName": "h"
|
|
},
|
|
"name": "h"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 6895,
|
|
"end": 6899,
|
|
"loc": {
|
|
"start": {
|
|
"line": 212,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 212,
|
|
"column": 23
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 6918,
|
|
"end": 6932,
|
|
"loc": {
|
|
"start": {
|
|
"line": 213,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 213,
|
|
"column": 30
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 6918,
|
|
"end": 6929,
|
|
"loc": {
|
|
"start": {
|
|
"line": 213,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 213,
|
|
"column": 27
|
|
},
|
|
"identifierName": "packOffsetX"
|
|
},
|
|
"name": "packOffsetX"
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"start": 6931,
|
|
"end": 6932,
|
|
"loc": {
|
|
"start": {
|
|
"line": 213,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 213,
|
|
"column": 30
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 6951,
|
|
"end": 6965,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 30
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 6951,
|
|
"end": 6962,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 27
|
|
},
|
|
"identifierName": "packOffsetY"
|
|
},
|
|
"name": "packOffsetY"
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"start": 6964,
|
|
"end": 6965,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 30
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 6984,
|
|
"end": 6997,
|
|
"loc": {
|
|
"start": {
|
|
"line": 215,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 215,
|
|
"column": 29
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 6984,
|
|
"end": 6991,
|
|
"loc": {
|
|
"start": {
|
|
"line": 215,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 215,
|
|
"column": 23
|
|
},
|
|
"identifierName": "packedW"
|
|
},
|
|
"name": "packedW"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 6993,
|
|
"end": 6997,
|
|
"loc": {
|
|
"start": {
|
|
"line": 215,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 215,
|
|
"column": 29
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 7016,
|
|
"end": 7029,
|
|
"loc": {
|
|
"start": {
|
|
"line": 216,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 216,
|
|
"column": 29
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 7016,
|
|
"end": 7023,
|
|
"loc": {
|
|
"start": {
|
|
"line": 216,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 216,
|
|
"column": 23
|
|
},
|
|
"identifierName": "packedH"
|
|
},
|
|
"name": "packedH"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 7025,
|
|
"end": 7029,
|
|
"loc": {
|
|
"start": {
|
|
"line": 216,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 216,
|
|
"column": 29
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 7048,
|
|
"end": 7061,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 29
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 7048,
|
|
"end": 7053,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 21
|
|
},
|
|
"identifierName": "atlas"
|
|
},
|
|
"name": "atlas"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 7055,
|
|
"end": 7061,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 29
|
|
},
|
|
"identifierName": "canvas"
|
|
},
|
|
"name": "canvas"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 7104,
|
|
"end": 7139,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 43
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 7104,
|
|
"end": 7138,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 42
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 7104,
|
|
"end": 7129,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 33
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 7104,
|
|
"end": 7108,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 7109,
|
|
"end": 7129,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 33
|
|
},
|
|
"identifierName": "spriteNotFoundSprite"
|
|
},
|
|
"name": "spriteNotFoundSprite"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 7132,
|
|
"end": 7138,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 42
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Makes the canvas which shows the question mark, shown when a sprite was not found\r\n ",
|
|
"start": 5874,
|
|
"end": 5976,
|
|
"loc": {
|
|
"start": {
|
|
"line": 183,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 185,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"name": "_",
|
|
"leadingComments": [],
|
|
"trailingComments": []
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start": 7153,
|
|
"end": 7192,
|
|
"loc": {
|
|
"start": {
|
|
"line": 225,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 225,
|
|
"column": 39
|
|
}
|
|
},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "VariableDeclaration",
|
|
"start": 7160,
|
|
"end": 7192,
|
|
"loc": {
|
|
"start": {
|
|
"line": 225,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 225,
|
|
"column": 39
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 7166,
|
|
"end": 7191,
|
|
"loc": {
|
|
"start": {
|
|
"line": 225,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 225,
|
|
"column": 38
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 7166,
|
|
"end": 7172,
|
|
"loc": {
|
|
"start": {
|
|
"line": 225,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 225,
|
|
"column": 19
|
|
},
|
|
"identifierName": "Loader"
|
|
},
|
|
"name": "Loader"
|
|
},
|
|
"init": {
|
|
"type": "NewExpression",
|
|
"start": 7175,
|
|
"end": 7191,
|
|
"loc": {
|
|
"start": {
|
|
"line": 225,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 225,
|
|
"column": 38
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 7179,
|
|
"end": 7189,
|
|
"loc": {
|
|
"start": {
|
|
"line": 225,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 225,
|
|
"column": 36
|
|
},
|
|
"identifierName": "LoaderImpl"
|
|
},
|
|
"name": "LoaderImpl"
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
],
|
|
"kind": "const",
|
|
"leadingComments": [],
|
|
"trailingComments": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ExportNamedDeclaration",
|
|
"start": 7153,
|
|
"end": 7192,
|
|
"loc": {
|
|
"start": {
|
|
"line": 225,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 225,
|
|
"column": 39
|
|
}
|
|
},
|
|
"specifiers": [],
|
|
"source": null,
|
|
"declaration": {
|
|
"type": "ClassDeclaration",
|
|
"start": 302,
|
|
"end": 7149,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 223,
|
|
"column": 1
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 308,
|
|
"end": 318,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 16
|
|
},
|
|
"identifierName": "LoaderImpl"
|
|
},
|
|
"name": "LoaderImpl"
|
|
},
|
|
"superClass": null,
|
|
"body": {
|
|
"type": "ClassBody",
|
|
"start": 319,
|
|
"end": 7149,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 223,
|
|
"column": 1
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 326,
|
|
"end": 491,
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 326,
|
|
"end": 337,
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 15
|
|
},
|
|
"identifierName": "constructor"
|
|
},
|
|
"name": "constructor"
|
|
},
|
|
"kind": "constructor",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 340,
|
|
"end": 491,
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 351,
|
|
"end": 367,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 24
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 351,
|
|
"end": 366,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 23
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 351,
|
|
"end": 359,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 16
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 351,
|
|
"end": 355,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 356,
|
|
"end": 359,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 16
|
|
},
|
|
"identifierName": "app"
|
|
},
|
|
"name": "app"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "NullLiteral",
|
|
"start": 362,
|
|
"end": 366,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 23
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* @type {Map<string, BaseSprite>} ",
|
|
"start": 379,
|
|
"end": 417,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 46
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 427,
|
|
"end": 452,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 33
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 427,
|
|
"end": 451,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 32
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 427,
|
|
"end": 439,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 20
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 427,
|
|
"end": 431,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 12
|
|
}
|
|
},
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 432,
|
|
"end": 439,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 20
|
|
},
|
|
"identifierName": "sprites"
|
|
},
|
|
"name": "sprites"
|
|
},
|
|
"computed": false,
|
|
"leadingComments": null
|
|
},
|
|
"right": {
|
|
"type": "NewExpression",
|
|
"start": 442,
|
|
"end": 451,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 32
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 446,
|
|
"end": 449,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 30
|
|
},
|
|
"identifierName": "Map"
|
|
},
|
|
"name": "Map"
|
|
},
|
|
"arguments": []
|
|
},
|
|
"leadingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* @type {Map<string, BaseSprite>} ",
|
|
"start": 379,
|
|
"end": 417,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 46
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 464,
|
|
"end": 484,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 28
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 464,
|
|
"end": 483,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 27
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 464,
|
|
"end": 478,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 22
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 464,
|
|
"end": 468,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 469,
|
|
"end": 478,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 22
|
|
},
|
|
"identifierName": "rawImages"
|
|
},
|
|
"name": "rawImages"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "ArrayExpression",
|
|
"start": 481,
|
|
"end": 483,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 27
|
|
}
|
|
},
|
|
"elements": []
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * @param {import(\"../application\").Application} app\r\n ",
|
|
"start": 499,
|
|
"end": 569,
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 22,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 575,
|
|
"end": 672,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 575,
|
|
"end": 591,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 20
|
|
},
|
|
"identifierName": "linkAppAfterBoot"
|
|
},
|
|
"name": "linkAppAfterBoot",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 592,
|
|
"end": 595,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 24
|
|
},
|
|
"identifierName": "app"
|
|
},
|
|
"name": "app"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 597,
|
|
"end": 672,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 608,
|
|
"end": 623,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 23
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 608,
|
|
"end": 622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 22
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 608,
|
|
"end": 616,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 16
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 608,
|
|
"end": 612,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 613,
|
|
"end": 616,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 16
|
|
},
|
|
"identifierName": "app"
|
|
},
|
|
"name": "app"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 619,
|
|
"end": 622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 22
|
|
},
|
|
"identifierName": "app"
|
|
},
|
|
"name": "app"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 633,
|
|
"end": 665,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 40
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 633,
|
|
"end": 664,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 39
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 633,
|
|
"end": 662,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 37
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 633,
|
|
"end": 637,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 638,
|
|
"end": 662,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 37
|
|
},
|
|
"identifierName": "makeSpriteNotFoundCanvas"
|
|
},
|
|
"name": "makeSpriteNotFoundCanvas"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * @param {import(\"../application\").Application} app\r\n ",
|
|
"start": 499,
|
|
"end": 569,
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 22,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Fetches a given sprite from the cache\r\n * @param {string} key\r\n * @returns {BaseSprite}\r\n ",
|
|
"start": 680,
|
|
"end": 796,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 802,
|
|
"end": 1250,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 802,
|
|
"end": 819,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 21
|
|
},
|
|
"identifierName": "getSpriteInternal"
|
|
},
|
|
"name": "getSpriteInternal",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 820,
|
|
"end": 823,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 25
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 825,
|
|
"end": 1250,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 836,
|
|
"end": 873,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 45
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 842,
|
|
"end": 872,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 44
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 842,
|
|
"end": 848,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 20
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 851,
|
|
"end": 872,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 44
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 851,
|
|
"end": 867,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 39
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"start": 851,
|
|
"end": 863,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 35
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 851,
|
|
"end": 855,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 856,
|
|
"end": 863,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 35
|
|
},
|
|
"identifierName": "sprites"
|
|
},
|
|
"name": "sprites"
|
|
},
|
|
"computed": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 864,
|
|
"end": 867,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 39
|
|
},
|
|
"identifierName": "get"
|
|
},
|
|
"name": "get"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 868,
|
|
"end": 871,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 43
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"start": 883,
|
|
"end": 1219,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 9
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "UnaryExpression",
|
|
"start": 887,
|
|
"end": 894,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 19
|
|
}
|
|
},
|
|
"operator": "!",
|
|
"prefix": true,
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start": 888,
|
|
"end": 894,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 19
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"extra": {
|
|
"parenthesizedArgument": false
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"start": 896,
|
|
"end": 1219,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 9
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"start": 911,
|
|
"end": 1161,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 40,
|
|
"column": 13
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "UnaryExpression",
|
|
"start": 915,
|
|
"end": 937,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 38
|
|
}
|
|
},
|
|
"operator": "!",
|
|
"prefix": true,
|
|
"argument": {
|
|
"type": "MemberExpression",
|
|
"start": 916,
|
|
"end": 937,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 38
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 916,
|
|
"end": 932,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 33
|
|
},
|
|
"identifierName": "missingSpriteIds"
|
|
},
|
|
"name": "missingSpriteIds"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 933,
|
|
"end": 936,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 37
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
},
|
|
"computed": true
|
|
},
|
|
"extra": {
|
|
"parenthesizedArgument": false
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"start": 939,
|
|
"end": 1161,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 40,
|
|
"column": 13
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 999,
|
|
"end": 1028,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 45
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 999,
|
|
"end": 1027,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 44
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 999,
|
|
"end": 1020,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 37
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 999,
|
|
"end": 1015,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 32
|
|
},
|
|
"identifierName": "missingSpriteIds"
|
|
},
|
|
"name": "missingSpriteIds",
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 1016,
|
|
"end": 1019,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 36
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
},
|
|
"computed": true,
|
|
"leadingComments": null
|
|
},
|
|
"right": {
|
|
"type": "BooleanLiteral",
|
|
"start": 1023,
|
|
"end": 1027,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 44
|
|
}
|
|
},
|
|
"value": true
|
|
},
|
|
"leadingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " Only show error once",
|
|
"start": 958,
|
|
"end": 981,
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "logger.error(\"Sprite '\" + key + \"' not found!\");",
|
|
"start": 1046,
|
|
"end": 1098,
|
|
"loc": {
|
|
"start": {
|
|
"line": 39,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 68
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " Will be fixed right now it just spams errors",
|
|
"start": 1099,
|
|
"end": 1146,
|
|
"loc": {
|
|
"start": {
|
|
"line": 39,
|
|
"column": 69
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 116
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"alternate": null
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 1175,
|
|
"end": 1208,
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 45
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "MemberExpression",
|
|
"start": 1182,
|
|
"end": 1207,
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 44
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 1182,
|
|
"end": 1186,
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 1187,
|
|
"end": 1207,
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 44
|
|
},
|
|
"identifierName": "spriteNotFoundSprite"
|
|
},
|
|
"name": "spriteNotFoundSprite"
|
|
},
|
|
"computed": false
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"alternate": null
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 1229,
|
|
"end": 1243,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 22
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start": 1236,
|
|
"end": 1242,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 21
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Fetches a given sprite from the cache\r\n * @param {string} key\r\n * @returns {BaseSprite}\r\n ",
|
|
"start": 680,
|
|
"end": 796,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns an atlas sprite from the cache\r\n * @param {string} key\r\n * @returns {AtlasSprite}\r\n ",
|
|
"start": 1258,
|
|
"end": 1376,
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 1382,
|
|
"end": 1622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 55,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 1382,
|
|
"end": 1391,
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 13
|
|
},
|
|
"identifierName": "getSprite"
|
|
},
|
|
"name": "getSprite",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1392,
|
|
"end": 1395,
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 17
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 1397,
|
|
"end": 1622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 55,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 1408,
|
|
"end": 1451,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 51
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 1414,
|
|
"end": 1450,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 50
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 1414,
|
|
"end": 1420,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 20
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 1423,
|
|
"end": 1450,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 50
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 1423,
|
|
"end": 1445,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 45
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 1423,
|
|
"end": 1427,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 1428,
|
|
"end": 1445,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 45
|
|
},
|
|
"identifierName": "getSpriteInternal"
|
|
},
|
|
"name": "getSpriteInternal"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1446,
|
|
"end": 1449,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 49
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 1461,
|
|
"end": 1562,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 109
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 1461,
|
|
"end": 1561,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 108
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 1461,
|
|
"end": 1467,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 14
|
|
},
|
|
"identifierName": "assert"
|
|
},
|
|
"name": "assert"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "LogicalExpression",
|
|
"start": 1468,
|
|
"end": 1537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 84
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start": 1468,
|
|
"end": 1497,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 44
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 1468,
|
|
"end": 1474,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 21
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"operator": "instanceof",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 1486,
|
|
"end": 1497,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 44
|
|
},
|
|
"identifierName": "AtlasSprite"
|
|
},
|
|
"name": "AtlasSprite"
|
|
}
|
|
},
|
|
"operator": "||",
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"start": 1501,
|
|
"end": 1537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 84
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 1501,
|
|
"end": 1507,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 54
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"operator": "===",
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"start": 1512,
|
|
"end": 1537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 84
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 1512,
|
|
"end": 1516,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 63
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 1517,
|
|
"end": 1537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 64
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 84
|
|
},
|
|
"identifierName": "spriteNotFoundSprite"
|
|
},
|
|
"name": "spriteNotFoundSprite"
|
|
},
|
|
"computed": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 1539,
|
|
"end": 1560,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 86
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 107
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "Not an atlas sprite",
|
|
"raw": "\"Not an atlas sprite\""
|
|
},
|
|
"value": "Not an atlas sprite"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 1572,
|
|
"end": 1615,
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 51
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start": 1607,
|
|
"end": 1613,
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 49
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite",
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* @type {AtlasSprite} ",
|
|
"start": 1579,
|
|
"end": 1605,
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 41
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 1606
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns an atlas sprite from the cache\r\n * @param {string} key\r\n * @returns {AtlasSprite}\r\n ",
|
|
"start": 1258,
|
|
"end": 1376,
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns a regular sprite from the cache\r\n * @param {string} key\r\n * @returns {RegularSprite}\r\n ",
|
|
"start": 1630,
|
|
"end": 1751,
|
|
"loc": {
|
|
"start": {
|
|
"line": 57,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 1757,
|
|
"end": 2046,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 1757,
|
|
"end": 1773,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 20
|
|
},
|
|
"identifierName": "getRegularSprite"
|
|
},
|
|
"name": "getRegularSprite",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1774,
|
|
"end": 1777,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 24
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 1779,
|
|
"end": 2046,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 1790,
|
|
"end": 1833,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 51
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 1796,
|
|
"end": 1832,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 50
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 1796,
|
|
"end": 1802,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 20
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 1805,
|
|
"end": 1832,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 50
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 1805,
|
|
"end": 1827,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 45
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 1805,
|
|
"end": 1809,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 1810,
|
|
"end": 1827,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 45
|
|
},
|
|
"identifierName": "getSpriteInternal"
|
|
},
|
|
"name": "getSpriteInternal"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 1828,
|
|
"end": 1831,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 49
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 1843,
|
|
"end": 1984,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 10
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 1843,
|
|
"end": 1983,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 9
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 1843,
|
|
"end": 1849,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 14
|
|
},
|
|
"identifierName": "assert"
|
|
},
|
|
"name": "assert"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "LogicalExpression",
|
|
"start": 1864,
|
|
"end": 1935,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 83
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start": 1864,
|
|
"end": 1895,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 43
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 1864,
|
|
"end": 1870,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 18
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"operator": "instanceof",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 1882,
|
|
"end": 1895,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 43
|
|
},
|
|
"identifierName": "RegularSprite"
|
|
},
|
|
"name": "RegularSprite"
|
|
}
|
|
},
|
|
"operator": "||",
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"start": 1899,
|
|
"end": 1935,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 83
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 1899,
|
|
"end": 1905,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 53
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"operator": "===",
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"start": 1910,
|
|
"end": 1935,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 83
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 1910,
|
|
"end": 1914,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 62
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 1915,
|
|
"end": 1935,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 63
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 83
|
|
},
|
|
"identifierName": "spriteNotFoundSprite"
|
|
},
|
|
"name": "spriteNotFoundSprite"
|
|
},
|
|
"computed": false
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 1950,
|
|
"end": 1972,
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 34
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "Not a regular sprite",
|
|
"raw": "\"Not a regular sprite\""
|
|
},
|
|
"value": "Not a regular sprite"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 1994,
|
|
"end": 2039,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 53
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start": 2031,
|
|
"end": 2037,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 51
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite",
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* @type {RegularSprite} ",
|
|
"start": 2001,
|
|
"end": 2029,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 43
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 2030
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns a regular sprite from the cache\r\n * @param {string} key\r\n * @returns {RegularSprite}\r\n ",
|
|
"start": 1630,
|
|
"end": 1751,
|
|
"loc": {
|
|
"start": {
|
|
"line": 57,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n *\r\n * @param {string} key\r\n * @returns {Promise<HTMLImageElement|null>}\r\n ",
|
|
"start": 2054,
|
|
"end": 2152,
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 2158,
|
|
"end": 3863,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 2158,
|
|
"end": 2178,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 24
|
|
},
|
|
"identifierName": "internalPreloadImage"
|
|
},
|
|
"name": "internalPreloadImage",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2179,
|
|
"end": 2182,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 28
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 2184,
|
|
"end": 3863,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 2195,
|
|
"end": 2231,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 44
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 2201,
|
|
"end": 2230,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 43
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 2201,
|
|
"end": 2204,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 17
|
|
},
|
|
"identifierName": "url"
|
|
},
|
|
"name": "url"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 2207,
|
|
"end": 2230,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 43
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 2207,
|
|
"end": 2216,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 29
|
|
},
|
|
"identifierName": "cachebust"
|
|
},
|
|
"name": "cachebust"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "BinaryExpression",
|
|
"start": 2217,
|
|
"end": 2229,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 42
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "StringLiteral",
|
|
"start": 2217,
|
|
"end": 2223,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 36
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "res/",
|
|
"raw": "\"res/\""
|
|
},
|
|
"value": "res/"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 2226,
|
|
"end": 2229,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 42
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 2241,
|
|
"end": 2267,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 34
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 2247,
|
|
"end": 2266,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 33
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 2247,
|
|
"end": 2252,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 19
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"init": {
|
|
"type": "NewExpression",
|
|
"start": 2255,
|
|
"end": 2266,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 33
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 2259,
|
|
"end": 2264,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 31
|
|
},
|
|
"identifierName": "Image"
|
|
},
|
|
"name": "Image"
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 2279,
|
|
"end": 2298,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 27
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 2283,
|
|
"end": 2297,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 26
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 2283,
|
|
"end": 2293,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 22
|
|
},
|
|
"identifierName": "triesSoFar"
|
|
},
|
|
"name": "triesSoFar"
|
|
},
|
|
"init": {
|
|
"type": "NumericLiteral",
|
|
"start": 2296,
|
|
"end": 2297,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 26
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
}
|
|
],
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 2310,
|
|
"end": 3856,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 11
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"start": 2317,
|
|
"end": 3855,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 10
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 2317,
|
|
"end": 2329,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 27
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 2317,
|
|
"end": 2324,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 22
|
|
},
|
|
"identifierName": "Promise"
|
|
},
|
|
"name": "Promise"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 2325,
|
|
"end": 2329,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 27
|
|
},
|
|
"identifierName": "race"
|
|
},
|
|
"name": "race"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ArrayExpression",
|
|
"start": 2330,
|
|
"end": 3854,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 9
|
|
}
|
|
},
|
|
"elements": [
|
|
{
|
|
"type": "NewExpression",
|
|
"start": 2345,
|
|
"end": 2456,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 14
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 2349,
|
|
"end": 2356,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 23
|
|
},
|
|
"identifierName": "Promise"
|
|
},
|
|
"name": "Promise"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 2357,
|
|
"end": 2455,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 13
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2358,
|
|
"end": 2365,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 32
|
|
},
|
|
"identifierName": "resolve"
|
|
},
|
|
"name": "resolve"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2367,
|
|
"end": 2373,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 40
|
|
},
|
|
"identifierName": "reject"
|
|
},
|
|
"name": "reject"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 2378,
|
|
"end": 2455,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 13
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 2397,
|
|
"end": 2440,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 59
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 2397,
|
|
"end": 2439,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 58
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 2397,
|
|
"end": 2407,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 26
|
|
},
|
|
"identifierName": "setTimeout"
|
|
},
|
|
"name": "setTimeout"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2408,
|
|
"end": 2414,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 33
|
|
},
|
|
"identifierName": "reject"
|
|
},
|
|
"name": "reject"
|
|
},
|
|
{
|
|
"type": "ConditionalExpression",
|
|
"start": 2416,
|
|
"end": 2438,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 57
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "Identifier",
|
|
"start": 2416,
|
|
"end": 2424,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 43
|
|
},
|
|
"identifierName": "G_IS_DEV"
|
|
},
|
|
"name": "G_IS_DEV"
|
|
},
|
|
"consequent": {
|
|
"type": "NumericLiteral",
|
|
"start": 2427,
|
|
"end": 2430,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 49
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 500,
|
|
"raw": "500"
|
|
},
|
|
"value": 500
|
|
},
|
|
"alternate": {
|
|
"type": "NumericLiteral",
|
|
"start": 2433,
|
|
"end": 2438,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 57
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 10000,
|
|
"raw": "10000"
|
|
},
|
|
"value": 10000
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "NewExpression",
|
|
"start": 2473,
|
|
"end": 3842,
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 14
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 2477,
|
|
"end": 2484,
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 23
|
|
},
|
|
"identifierName": "Promise"
|
|
},
|
|
"name": "Promise"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 2485,
|
|
"end": 3841,
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 13
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 2485,
|
|
"end": 2492,
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 31
|
|
},
|
|
"identifierName": "resolve"
|
|
},
|
|
"name": "resolve"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 2496,
|
|
"end": 3841,
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 13
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 2515,
|
|
"end": 3168,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 18
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 2515,
|
|
"end": 3167,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 17
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 2515,
|
|
"end": 2527,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 28
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 2515,
|
|
"end": 2520,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 21
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 2521,
|
|
"end": 2527,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 28
|
|
},
|
|
"identifierName": "onload"
|
|
},
|
|
"name": "onload"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 2530,
|
|
"end": 3167,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 17
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 2536,
|
|
"end": 3167,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 17
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 2559,
|
|
"end": 2580,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 41
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 2559,
|
|
"end": 2579,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 40
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 2559,
|
|
"end": 2572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 33
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 2559,
|
|
"end": 2564,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 25
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 2565,
|
|
"end": 2572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 33
|
|
},
|
|
"identifierName": "onerror"
|
|
},
|
|
"name": "onerror"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "NullLiteral",
|
|
"start": 2575,
|
|
"end": 2579,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 40
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 2602,
|
|
"end": 2622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 40
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 2602,
|
|
"end": 2621,
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 39
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 2602,
|
|
"end": 2614,
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 32
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 2602,
|
|
"end": 2607,
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 25
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 2608,
|
|
"end": 2614,
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 32
|
|
},
|
|
"identifierName": "onload"
|
|
},
|
|
"name": "onload"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "NullLiteral",
|
|
"start": 2617,
|
|
"end": 2621,
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"start": 2646,
|
|
"end": 3111,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 21
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"start": 2650,
|
|
"end": 2684,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 58
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "UnaryExpression",
|
|
"start": 2650,
|
|
"end": 2669,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 43
|
|
}
|
|
},
|
|
"operator": "typeof",
|
|
"prefix": true,
|
|
"argument": {
|
|
"type": "MemberExpression",
|
|
"start": 2657,
|
|
"end": 2669,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 43
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 2657,
|
|
"end": 2662,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 36
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 2663,
|
|
"end": 2669,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 43
|
|
},
|
|
"identifierName": "decode"
|
|
},
|
|
"name": "decode"
|
|
},
|
|
"computed": false
|
|
},
|
|
"extra": {
|
|
"parenthesizedArgument": false
|
|
}
|
|
},
|
|
"operator": "===",
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 2674,
|
|
"end": 2684,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 58
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "function",
|
|
"raw": "\"function\""
|
|
},
|
|
"value": "function"
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"start": 2686,
|
|
"end": 3111,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 21
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 2959,
|
|
"end": 3088,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 99,
|
|
"column": 26
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 2959,
|
|
"end": 3087,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 99,
|
|
"column": 25
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 2959,
|
|
"end": 2978,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 43
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"start": 2959,
|
|
"end": 2973,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 38
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 2959,
|
|
"end": 2971,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 36
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 2959,
|
|
"end": 2964,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 29
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image",
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 2965,
|
|
"end": 2971,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 36
|
|
},
|
|
"identifierName": "decode"
|
|
},
|
|
"name": "decode"
|
|
},
|
|
"computed": false,
|
|
"leadingComments": null
|
|
},
|
|
"arguments": [],
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 2974,
|
|
"end": 2978,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 43
|
|
},
|
|
"identifierName": "then"
|
|
},
|
|
"name": "then"
|
|
},
|
|
"computed": false,
|
|
"leadingComments": null
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 3009,
|
|
"end": 3019,
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 97,
|
|
"column": 38
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": true,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "NullLiteral",
|
|
"start": 3015,
|
|
"end": 3019,
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 97,
|
|
"column": 38
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 3050,
|
|
"end": 3060,
|
|
"loc": {
|
|
"start": {
|
|
"line": 98,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 98,
|
|
"column": 38
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": true,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "NullLiteral",
|
|
"start": 3056,
|
|
"end": 3060,
|
|
"loc": {
|
|
"start": {
|
|
"line": 98,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 98,
|
|
"column": 38
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"leadingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " SAFARI: Image.decode() fails on safari with svgs -> we dont want to fail",
|
|
"start": 2713,
|
|
"end": 2788,
|
|
"loc": {
|
|
"start": {
|
|
"line": 93,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 93,
|
|
"column": 99
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " on that",
|
|
"start": 2814,
|
|
"end": 2824,
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " FIREFOX: Decode never returns if the image is in cache, so call it in background",
|
|
"start": 2850,
|
|
"end": 2933,
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 107
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"alternate": null
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3133,
|
|
"end": 3148,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 35
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 3133,
|
|
"end": 3147,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 34
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 3133,
|
|
"end": 3140,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 27
|
|
},
|
|
"identifierName": "resolve"
|
|
},
|
|
"name": "resolve"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 3141,
|
|
"end": 3146,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 33
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3188,
|
|
"end": 3790,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 18
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 3188,
|
|
"end": 3789,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 17
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 3188,
|
|
"end": 3201,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 29
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 3188,
|
|
"end": 3193,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 21
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 3194,
|
|
"end": 3201,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 29
|
|
},
|
|
"identifierName": "onerror"
|
|
},
|
|
"name": "onerror"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 3204,
|
|
"end": 3789,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 17
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 3204,
|
|
"end": 3210,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 38
|
|
},
|
|
"identifierName": "reason"
|
|
},
|
|
"name": "reason"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 3214,
|
|
"end": 3789,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 17
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3237,
|
|
"end": 3290,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 73
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 3237,
|
|
"end": 3289,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 72
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 3237,
|
|
"end": 3248,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 31
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 3237,
|
|
"end": 3243,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 26
|
|
},
|
|
"identifierName": "logger"
|
|
},
|
|
"name": "logger"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 3244,
|
|
"end": 3248,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 31
|
|
},
|
|
"identifierName": "warn"
|
|
},
|
|
"name": "warn"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "BinaryExpression",
|
|
"start": 3249,
|
|
"end": 3280,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 63
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start": 3249,
|
|
"end": 3273,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 56
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "StringLiteral",
|
|
"start": 3249,
|
|
"end": 3267,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 50
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "Failed to load '",
|
|
"raw": "\"Failed to load '\""
|
|
},
|
|
"value": "Failed to load '"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 3270,
|
|
"end": 3273,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 56
|
|
},
|
|
"identifierName": "url"
|
|
},
|
|
"name": "url"
|
|
}
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 3276,
|
|
"end": 3280,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 63
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "':",
|
|
"raw": "\"':\""
|
|
},
|
|
"value": "':"
|
|
}
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 3282,
|
|
"end": 3288,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 65
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 71
|
|
},
|
|
"identifierName": "reason"
|
|
},
|
|
"name": "reason"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"start": 3312,
|
|
"end": 3770,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 21
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"start": 3316,
|
|
"end": 3332,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 40
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "UpdateExpression",
|
|
"start": 3316,
|
|
"end": 3328,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 36
|
|
}
|
|
},
|
|
"operator": "++",
|
|
"prefix": true,
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start": 3318,
|
|
"end": 3328,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 36
|
|
},
|
|
"identifierName": "triesSoFar"
|
|
},
|
|
"name": "triesSoFar"
|
|
},
|
|
"extra": {
|
|
"parenthesizedArgument": false
|
|
}
|
|
},
|
|
"operator": "<",
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start": 3331,
|
|
"end": 3332,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 40
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 4,
|
|
"raw": "4"
|
|
},
|
|
"value": 4
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"start": 3334,
|
|
"end": 3496,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 21
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3361,
|
|
"end": 3408,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 71
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 3361,
|
|
"end": 3407,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 70
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 3361,
|
|
"end": 3371,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 34
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 3361,
|
|
"end": 3367,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 30
|
|
},
|
|
"identifierName": "logger"
|
|
},
|
|
"name": "logger"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 3368,
|
|
"end": 3371,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 34
|
|
},
|
|
"identifierName": "log"
|
|
},
|
|
"name": "log"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 3372,
|
|
"end": 3401,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 64
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "Retrying to load image from",
|
|
"raw": "\"Retrying to load image from\""
|
|
},
|
|
"value": "Retrying to load image from"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 3403,
|
|
"end": 3406,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 69
|
|
},
|
|
"identifierName": "url"
|
|
},
|
|
"name": "url"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3434,
|
|
"end": 3473,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 63
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 3434,
|
|
"end": 3472,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 62
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 3434,
|
|
"end": 3443,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 33
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 3434,
|
|
"end": 3439,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 29
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 3440,
|
|
"end": 3443,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 33
|
|
},
|
|
"identifierName": "src"
|
|
},
|
|
"name": "src"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"start": 3446,
|
|
"end": 3472,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 62
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start": 3446,
|
|
"end": 3459,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 49
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 3446,
|
|
"end": 3449,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 39
|
|
},
|
|
"identifierName": "url"
|
|
},
|
|
"name": "url"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 3452,
|
|
"end": 3459,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 49
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "?try=",
|
|
"raw": "\"?try=\""
|
|
},
|
|
"value": "?try="
|
|
}
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 3462,
|
|
"end": 3472,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 62
|
|
},
|
|
"identifierName": "triesSoFar"
|
|
},
|
|
"name": "triesSoFar"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"alternate": {
|
|
"type": "BlockStatement",
|
|
"start": 3502,
|
|
"end": 3770,
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 21
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3529,
|
|
"end": 3614,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 109
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 3529,
|
|
"end": 3613,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 108
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 3529,
|
|
"end": 3540,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 35
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 3529,
|
|
"end": 3535,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 30
|
|
},
|
|
"identifierName": "logger"
|
|
},
|
|
"name": "logger"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 3536,
|
|
"end": 3540,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 35
|
|
},
|
|
"identifierName": "warn"
|
|
},
|
|
"name": "warn"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 3541,
|
|
"end": 3557,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 52
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "Failed to load",
|
|
"raw": "\"Failed to load\""
|
|
},
|
|
"value": "Failed to load"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 3559,
|
|
"end": 3562,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 57
|
|
},
|
|
"identifierName": "url"
|
|
},
|
|
"name": "url"
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 3564,
|
|
"end": 3571,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 66
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "after",
|
|
"raw": "\"after\""
|
|
},
|
|
"value": "after"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 3573,
|
|
"end": 3583,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 78
|
|
},
|
|
"identifierName": "triesSoFar"
|
|
},
|
|
"name": "triesSoFar"
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 3585,
|
|
"end": 3604,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 80
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 99
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "tries with reason",
|
|
"raw": "\"tries with reason\""
|
|
},
|
|
"value": "tries with reason"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 3606,
|
|
"end": 3612,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 101
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 107
|
|
},
|
|
"identifierName": "reason"
|
|
},
|
|
"name": "reason"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3640,
|
|
"end": 3661,
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 45
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 3640,
|
|
"end": 3660,
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 44
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 3640,
|
|
"end": 3653,
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 37
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 3640,
|
|
"end": 3645,
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 29
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 3646,
|
|
"end": 3653,
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 37
|
|
},
|
|
"identifierName": "onerror"
|
|
},
|
|
"name": "onerror"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "NullLiteral",
|
|
"start": 3656,
|
|
"end": 3660,
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 44
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3687,
|
|
"end": 3707,
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 44
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 3687,
|
|
"end": 3706,
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 43
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 3687,
|
|
"end": 3699,
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 36
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 3687,
|
|
"end": 3692,
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 29
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 3693,
|
|
"end": 3699,
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 36
|
|
},
|
|
"identifierName": "onload"
|
|
},
|
|
"name": "onload"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "NullLiteral",
|
|
"start": 3702,
|
|
"end": 3706,
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 43
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3733,
|
|
"end": 3747,
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 38
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 3733,
|
|
"end": 3746,
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 37
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 3733,
|
|
"end": 3740,
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 31
|
|
},
|
|
"identifierName": "resolve"
|
|
},
|
|
"name": "resolve"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "NullLiteral",
|
|
"start": 3741,
|
|
"end": 3745,
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 36
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 3810,
|
|
"end": 3826,
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 32
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 3810,
|
|
"end": 3825,
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 31
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 3810,
|
|
"end": 3819,
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 25
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 3810,
|
|
"end": 3815,
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 21
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 3816,
|
|
"end": 3819,
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 25
|
|
},
|
|
"identifierName": "src"
|
|
},
|
|
"name": "src"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 3822,
|
|
"end": 3825,
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 31
|
|
},
|
|
"identifierName": "url"
|
|
},
|
|
"name": "url"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n *\r\n * @param {string} key\r\n * @returns {Promise<HTMLImageElement|null>}\r\n ",
|
|
"start": 2054,
|
|
"end": 2152,
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Preloads a sprite\r\n * @param {string} key\r\n * @returns {Promise<void>}\r\n ",
|
|
"start": 3871,
|
|
"end": 3970,
|
|
"loc": {
|
|
"start": {
|
|
"line": 122,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 3976,
|
|
"end": 4333,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 3976,
|
|
"end": 3992,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 20
|
|
},
|
|
"identifierName": "preloadCSSSprite"
|
|
},
|
|
"name": "preloadCSSSprite",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 3993,
|
|
"end": 3996,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 24
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 3998,
|
|
"end": 4333,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 4009,
|
|
"end": 4326,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 11
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"start": 4016,
|
|
"end": 4325,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 10
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4016,
|
|
"end": 4051,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 50
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"start": 4016,
|
|
"end": 4046,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 45
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4016,
|
|
"end": 4041,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 40
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 4016,
|
|
"end": 4020,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4021,
|
|
"end": 4041,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 40
|
|
},
|
|
"identifierName": "internalPreloadImage"
|
|
},
|
|
"name": "internalPreloadImage"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4042,
|
|
"end": 4045,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 44
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
}
|
|
]
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4047,
|
|
"end": 4051,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 50
|
|
},
|
|
"identifierName": "then"
|
|
},
|
|
"name": "then"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 4052,
|
|
"end": 4324,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 9
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4052,
|
|
"end": 4057,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 56
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 4061,
|
|
"end": 4324,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 9
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "IfStatement",
|
|
"start": 4076,
|
|
"end": 4272,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 132,
|
|
"column": 13
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "BinaryExpression",
|
|
"start": 4080,
|
|
"end": 4109,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 45
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "CallExpression",
|
|
"start": 4080,
|
|
"end": 4104,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 40
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4080,
|
|
"end": 4091,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 27
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 4080,
|
|
"end": 4083,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 19
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4084,
|
|
"end": 4091,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 27
|
|
},
|
|
"identifierName": "indexOf"
|
|
},
|
|
"name": "indexOf"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 4092,
|
|
"end": 4103,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 39
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "game_misc",
|
|
"raw": "\"game_misc\""
|
|
},
|
|
"value": "game_misc"
|
|
}
|
|
]
|
|
},
|
|
"operator": ">=",
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start": 4108,
|
|
"end": 4109,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 45
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"start": 4111,
|
|
"end": 4272,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 132,
|
|
"column": 13
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 4182,
|
|
"end": 4257,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 91
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 4182,
|
|
"end": 4256,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 90
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4182,
|
|
"end": 4198,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 32
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"start": 4182,
|
|
"end": 4194,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 28
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 4182,
|
|
"end": 4186,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 20
|
|
}
|
|
},
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4187,
|
|
"end": 4194,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 28
|
|
},
|
|
"identifierName": "sprites"
|
|
},
|
|
"name": "sprites"
|
|
},
|
|
"computed": false,
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4195,
|
|
"end": 4198,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 32
|
|
},
|
|
"identifierName": "set"
|
|
},
|
|
"name": "set"
|
|
},
|
|
"computed": false,
|
|
"leadingComments": null
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4199,
|
|
"end": 4202,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 36
|
|
},
|
|
"identifierName": "key"
|
|
},
|
|
"name": "key"
|
|
},
|
|
{
|
|
"type": "NewExpression",
|
|
"start": 4204,
|
|
"end": 4255,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 89
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 4208,
|
|
"end": 4221,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 55
|
|
},
|
|
"identifierName": "RegularSprite"
|
|
},
|
|
"name": "RegularSprite"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4222,
|
|
"end": 4227,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 56
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 61
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
{
|
|
"type": "MemberExpression",
|
|
"start": 4229,
|
|
"end": 4240,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 63
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 74
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 4229,
|
|
"end": 4234,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 63
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 68
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4235,
|
|
"end": 4240,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 69
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 74
|
|
},
|
|
"identifierName": "width"
|
|
},
|
|
"name": "width"
|
|
},
|
|
"computed": false
|
|
},
|
|
{
|
|
"type": "MemberExpression",
|
|
"start": 4242,
|
|
"end": 4254,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 76
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 88
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 4242,
|
|
"end": 4247,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 76
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 81
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4248,
|
|
"end": 4254,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 82
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 88
|
|
},
|
|
"identifierName": "height"
|
|
},
|
|
"name": "height"
|
|
},
|
|
"computed": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"leadingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " Allow access to regular sprites",
|
|
"start": 4130,
|
|
"end": 4164,
|
|
"loc": {
|
|
"start": {
|
|
"line": 130,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 130,
|
|
"column": 50
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"alternate": null
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 4286,
|
|
"end": 4313,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 39
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 4286,
|
|
"end": 4312,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 38
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4286,
|
|
"end": 4305,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 31
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"start": 4286,
|
|
"end": 4300,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 26
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 4286,
|
|
"end": 4290,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4291,
|
|
"end": 4300,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 26
|
|
},
|
|
"identifierName": "rawImages"
|
|
},
|
|
"name": "rawImages"
|
|
},
|
|
"computed": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4301,
|
|
"end": 4305,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 31
|
|
},
|
|
"identifierName": "push"
|
|
},
|
|
"name": "push"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4306,
|
|
"end": 4311,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 37
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Preloads a sprite\r\n * @param {string} key\r\n * @returns {Promise<void>}\r\n ",
|
|
"start": 3871,
|
|
"end": 3970,
|
|
"loc": {
|
|
"start": {
|
|
"line": 122,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Preloads an atlas\r\n * @param {import(\"./atlas_definitions\").AtlasDefinition} atlas\r\n * @returns {Promise<void>}\r\n ",
|
|
"start": 4341,
|
|
"end": 4481,
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 4487,
|
|
"end": 4748,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 148,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 4487,
|
|
"end": 4499,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 16
|
|
},
|
|
"identifierName": "preloadAtlas"
|
|
},
|
|
"name": "preloadAtlas",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4500,
|
|
"end": 4505,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 22
|
|
},
|
|
"identifierName": "atlas"
|
|
},
|
|
"name": "atlas"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 4507,
|
|
"end": 4748,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 148,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 4518,
|
|
"end": 4741,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 147,
|
|
"column": 11
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"start": 4525,
|
|
"end": 4740,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 147,
|
|
"column": 10
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4525,
|
|
"end": 4582,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 72
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "CallExpression",
|
|
"start": 4525,
|
|
"end": 4577,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 67
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4525,
|
|
"end": 4550,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 40
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 4525,
|
|
"end": 4529,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4530,
|
|
"end": 4550,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 40
|
|
},
|
|
"identifierName": "internalPreloadImage"
|
|
},
|
|
"name": "internalPreloadImage"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "CallExpression",
|
|
"start": 4551,
|
|
"end": 4576,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 66
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4551,
|
|
"end": 4574,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 64
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 4551,
|
|
"end": 4556,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 46
|
|
},
|
|
"identifierName": "atlas"
|
|
},
|
|
"name": "atlas"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4557,
|
|
"end": 4574,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 64
|
|
},
|
|
"identifierName": "getFullSourcePath"
|
|
},
|
|
"name": "getFullSourcePath"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": []
|
|
}
|
|
]
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4578,
|
|
"end": 4582,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 72
|
|
},
|
|
"identifierName": "then"
|
|
},
|
|
"name": "then"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 4583,
|
|
"end": 4739,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 73
|
|
},
|
|
"end": {
|
|
"line": 147,
|
|
"column": 9
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4583,
|
|
"end": 4588,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 73
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 78
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 4592,
|
|
"end": 4739,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 82
|
|
},
|
|
"end": {
|
|
"line": 147,
|
|
"column": 9
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 4634,
|
|
"end": 4669,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 47
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 4634,
|
|
"end": 4668,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 46
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 4634,
|
|
"end": 4645,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 23
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 4634,
|
|
"end": 4639,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 17
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image",
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4640,
|
|
"end": 4645,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 23
|
|
},
|
|
"identifierName": "label"
|
|
},
|
|
"name": "label"
|
|
},
|
|
"computed": false,
|
|
"leadingComments": null
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"start": 4648,
|
|
"end": 4668,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 46
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 4648,
|
|
"end": 4653,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 31
|
|
},
|
|
"identifierName": "atlas"
|
|
},
|
|
"name": "atlas"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4654,
|
|
"end": 4668,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 46
|
|
},
|
|
"identifierName": "sourceFileName"
|
|
},
|
|
"name": "sourceFileName"
|
|
},
|
|
"computed": false
|
|
},
|
|
"leadingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " @ts-ignore",
|
|
"start": 4607,
|
|
"end": 4620,
|
|
"loc": {
|
|
"start": {
|
|
"line": 144,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 144,
|
|
"column": 25
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"start": 4683,
|
|
"end": 4728,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 57
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "CallExpression",
|
|
"start": 4690,
|
|
"end": 4727,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 56
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4690,
|
|
"end": 4713,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 42
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 4690,
|
|
"end": 4694,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4695,
|
|
"end": 4713,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 42
|
|
},
|
|
"identifierName": "internalParseAtlas"
|
|
},
|
|
"name": "internalParseAtlas"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4714,
|
|
"end": 4719,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 48
|
|
},
|
|
"identifierName": "atlas"
|
|
},
|
|
"name": "atlas"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4721,
|
|
"end": 4726,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 55
|
|
},
|
|
"identifierName": "image"
|
|
},
|
|
"name": "image"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Preloads an atlas\r\n * @param {import(\"./atlas_definitions\").AtlasDefinition} atlas\r\n * @returns {Promise<void>}\r\n ",
|
|
"start": 4341,
|
|
"end": 4481,
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n *\r\n * @param {import(\"./atlas_definitions\").AtlasDefinition} atlas\r\n * @param {HTMLImageElement} loadedImage\r\n ",
|
|
"start": 4756,
|
|
"end": 4891,
|
|
"loc": {
|
|
"start": {
|
|
"line": 150,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 4897,
|
|
"end": 5866,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 181,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 4897,
|
|
"end": 4915,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 22
|
|
},
|
|
"identifierName": "internalParseAtlas"
|
|
},
|
|
"name": "internalParseAtlas",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "ObjectPattern",
|
|
"start": 4916,
|
|
"end": 4947,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 54
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 4918,
|
|
"end": 4933,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 40
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 4918,
|
|
"end": 4922,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 29
|
|
},
|
|
"identifierName": "meta"
|
|
},
|
|
"name": "meta"
|
|
},
|
|
"value": {
|
|
"type": "ObjectPattern",
|
|
"start": 4924,
|
|
"end": 4933,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 40
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 4926,
|
|
"end": 4931,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 38
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 4926,
|
|
"end": 4931,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 38
|
|
},
|
|
"identifierName": "scale"
|
|
},
|
|
"name": "scale"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 4926,
|
|
"end": 4931,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 38
|
|
},
|
|
"identifierName": "scale"
|
|
},
|
|
"name": "scale"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 4935,
|
|
"end": 4945,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 52
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 4935,
|
|
"end": 4945,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 52
|
|
},
|
|
"identifierName": "sourceData"
|
|
},
|
|
"name": "sourceData"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 4935,
|
|
"end": 4945,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 52
|
|
},
|
|
"identifierName": "sourceData"
|
|
},
|
|
"name": "sourceData"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4949,
|
|
"end": 4960,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 56
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 67
|
|
},
|
|
"identifierName": "loadedImage"
|
|
},
|
|
"name": "loadedImage"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 4962,
|
|
"end": 5866,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 69
|
|
},
|
|
"end": {
|
|
"line": 181,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 4973,
|
|
"end": 5006,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 41
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 4973,
|
|
"end": 5005,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 40
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 4973,
|
|
"end": 4992,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 27
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"start": 4973,
|
|
"end": 4987,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 22
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 4973,
|
|
"end": 4977,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4978,
|
|
"end": 4987,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 22
|
|
},
|
|
"identifierName": "rawImages"
|
|
},
|
|
"name": "rawImages"
|
|
},
|
|
"computed": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 4988,
|
|
"end": 4992,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 27
|
|
},
|
|
"identifierName": "push"
|
|
},
|
|
"name": "push"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 4993,
|
|
"end": 5004,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 39
|
|
},
|
|
"identifierName": "loadedImage"
|
|
},
|
|
"name": "loadedImage"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"start": 5018,
|
|
"end": 5859,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 180,
|
|
"column": 9
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"start": 5023,
|
|
"end": 5039,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 29
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 5029,
|
|
"end": 5039,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 29
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 5029,
|
|
"end": 5039,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 29
|
|
},
|
|
"identifierName": "spriteName"
|
|
},
|
|
"name": "spriteName"
|
|
},
|
|
"init": null
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 5043,
|
|
"end": 5053,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 43
|
|
},
|
|
"identifierName": "sourceData"
|
|
},
|
|
"name": "sourceData"
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 5055,
|
|
"end": 5859,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 180,
|
|
"column": 9
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 5070,
|
|
"end": 5141,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 83
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 5076,
|
|
"end": 5140,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 82
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "ObjectPattern",
|
|
"start": 5076,
|
|
"end": 5115,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 57
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5078,
|
|
"end": 5083,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 25
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5078,
|
|
"end": 5083,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 25
|
|
},
|
|
"identifierName": "frame"
|
|
},
|
|
"name": "frame"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 5078,
|
|
"end": 5083,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 25
|
|
},
|
|
"identifierName": "frame"
|
|
},
|
|
"name": "frame"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5085,
|
|
"end": 5095,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 37
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5085,
|
|
"end": 5095,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 37
|
|
},
|
|
"identifierName": "sourceSize"
|
|
},
|
|
"name": "sourceSize"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 5085,
|
|
"end": 5095,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 37
|
|
},
|
|
"identifierName": "sourceSize"
|
|
},
|
|
"name": "sourceSize"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5097,
|
|
"end": 5113,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 55
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": true,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5097,
|
|
"end": 5113,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 55
|
|
},
|
|
"identifierName": "spriteSourceSize"
|
|
},
|
|
"name": "spriteSourceSize"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 5097,
|
|
"end": 5113,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 55
|
|
},
|
|
"identifierName": "spriteSourceSize"
|
|
},
|
|
"name": "spriteSourceSize"
|
|
},
|
|
"extra": {
|
|
"shorthand": true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"init": {
|
|
"type": "MemberExpression",
|
|
"start": 5118,
|
|
"end": 5140,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 82
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5118,
|
|
"end": 5128,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 70
|
|
},
|
|
"identifierName": "sourceData"
|
|
},
|
|
"name": "sourceData"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5129,
|
|
"end": 5139,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 71
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 81
|
|
},
|
|
"identifierName": "spriteName"
|
|
},
|
|
"name": "spriteName"
|
|
},
|
|
"computed": true
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 5157,
|
|
"end": 5228,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 83
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 5161,
|
|
"end": 5227,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 82
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 5161,
|
|
"end": 5167,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 22
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 5198,
|
|
"end": 5226,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 81
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 5198,
|
|
"end": 5214,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 69
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"start": 5198,
|
|
"end": 5210,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 65
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 5198,
|
|
"end": 5202,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 57
|
|
}
|
|
},
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5203,
|
|
"end": 5210,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 65
|
|
},
|
|
"identifierName": "sprites"
|
|
},
|
|
"name": "sprites"
|
|
},
|
|
"computed": false,
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5211,
|
|
"end": 5214,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 69
|
|
},
|
|
"identifierName": "get"
|
|
},
|
|
"name": "get"
|
|
},
|
|
"computed": false,
|
|
"leadingComments": null
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 5215,
|
|
"end": 5225,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 70
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 80
|
|
},
|
|
"identifierName": "spriteName"
|
|
},
|
|
"name": "spriteName"
|
|
}
|
|
],
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* @type {AtlasSprite} ",
|
|
"start": 5170,
|
|
"end": 5196,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 51
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"extra": {
|
|
"parenthesized": true,
|
|
"parenStart": 5197
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let"
|
|
},
|
|
{
|
|
"type": "IfStatement",
|
|
"start": 5244,
|
|
"end": 5383,
|
|
"loc": {
|
|
"start": {
|
|
"line": 163,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 166,
|
|
"column": 13
|
|
}
|
|
},
|
|
"test": {
|
|
"type": "UnaryExpression",
|
|
"start": 5248,
|
|
"end": 5255,
|
|
"loc": {
|
|
"start": {
|
|
"line": 163,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 163,
|
|
"column": 23
|
|
}
|
|
},
|
|
"operator": "!",
|
|
"prefix": true,
|
|
"argument": {
|
|
"type": "Identifier",
|
|
"start": 5249,
|
|
"end": 5255,
|
|
"loc": {
|
|
"start": {
|
|
"line": 163,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 163,
|
|
"column": 23
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"extra": {
|
|
"parenthesizedArgument": false
|
|
}
|
|
},
|
|
"consequent": {
|
|
"type": "BlockStatement",
|
|
"start": 5257,
|
|
"end": 5383,
|
|
"loc": {
|
|
"start": {
|
|
"line": 163,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 166,
|
|
"column": 13
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 5276,
|
|
"end": 5313,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 53
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 5276,
|
|
"end": 5312,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 52
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 5276,
|
|
"end": 5282,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 22
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"right": {
|
|
"type": "NewExpression",
|
|
"start": 5285,
|
|
"end": 5312,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 52
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 5289,
|
|
"end": 5300,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 40
|
|
},
|
|
"identifierName": "AtlasSprite"
|
|
},
|
|
"name": "AtlasSprite"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 5301,
|
|
"end": 5311,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 51
|
|
},
|
|
"identifierName": "spriteName"
|
|
},
|
|
"name": "spriteName"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 5331,
|
|
"end": 5368,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 53
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 5331,
|
|
"end": 5367,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 52
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 5331,
|
|
"end": 5347,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 32
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"start": 5331,
|
|
"end": 5343,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 28
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 5331,
|
|
"end": 5335,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5336,
|
|
"end": 5343,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 28
|
|
},
|
|
"identifierName": "sprites"
|
|
},
|
|
"name": "sprites"
|
|
},
|
|
"computed": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5344,
|
|
"end": 5347,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 32
|
|
},
|
|
"identifierName": "set"
|
|
},
|
|
"name": "set"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 5348,
|
|
"end": 5358,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 43
|
|
},
|
|
"identifierName": "spriteName"
|
|
},
|
|
"name": "spriteName"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 5360,
|
|
"end": 5366,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 51
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"alternate": null
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 5399,
|
|
"end": 5795,
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 178,
|
|
"column": 15
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 5405,
|
|
"end": 5794,
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 178,
|
|
"column": 14
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 5405,
|
|
"end": 5409,
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 22
|
|
},
|
|
"identifierName": "link"
|
|
},
|
|
"name": "link"
|
|
},
|
|
"init": {
|
|
"type": "NewExpression",
|
|
"start": 5412,
|
|
"end": 5794,
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 178,
|
|
"column": 14
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 5416,
|
|
"end": 5431,
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 44
|
|
},
|
|
"identifierName": "SpriteAtlasLink"
|
|
},
|
|
"name": "SpriteAtlasLink"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ObjectExpression",
|
|
"start": 5432,
|
|
"end": 5793,
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 178,
|
|
"column": 13
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5451,
|
|
"end": 5467,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 32
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5451,
|
|
"end": 5458,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 23
|
|
},
|
|
"identifierName": "packedX"
|
|
},
|
|
"name": "packedX"
|
|
},
|
|
"value": {
|
|
"type": "MemberExpression",
|
|
"start": 5460,
|
|
"end": 5467,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 32
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5460,
|
|
"end": 5465,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 30
|
|
},
|
|
"identifierName": "frame"
|
|
},
|
|
"name": "frame"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5466,
|
|
"end": 5467,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 32
|
|
},
|
|
"identifierName": "x"
|
|
},
|
|
"name": "x"
|
|
},
|
|
"computed": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5486,
|
|
"end": 5502,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 32
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5486,
|
|
"end": 5493,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 23
|
|
},
|
|
"identifierName": "packedY"
|
|
},
|
|
"name": "packedY"
|
|
},
|
|
"value": {
|
|
"type": "MemberExpression",
|
|
"start": 5495,
|
|
"end": 5502,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 32
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5495,
|
|
"end": 5500,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 30
|
|
},
|
|
"identifierName": "frame"
|
|
},
|
|
"name": "frame"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5501,
|
|
"end": 5502,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 32
|
|
},
|
|
"identifierName": "y"
|
|
},
|
|
"name": "y"
|
|
},
|
|
"computed": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5521,
|
|
"end": 5537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 32
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5521,
|
|
"end": 5528,
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 23
|
|
},
|
|
"identifierName": "packedW"
|
|
},
|
|
"name": "packedW"
|
|
},
|
|
"value": {
|
|
"type": "MemberExpression",
|
|
"start": 5530,
|
|
"end": 5537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 32
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5530,
|
|
"end": 5535,
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 30
|
|
},
|
|
"identifierName": "frame"
|
|
},
|
|
"name": "frame"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5536,
|
|
"end": 5537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 32
|
|
},
|
|
"identifierName": "w"
|
|
},
|
|
"name": "w"
|
|
},
|
|
"computed": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5556,
|
|
"end": 5572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 172,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 32
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5556,
|
|
"end": 5563,
|
|
"loc": {
|
|
"start": {
|
|
"line": 172,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 23
|
|
},
|
|
"identifierName": "packedH"
|
|
},
|
|
"name": "packedH"
|
|
},
|
|
"value": {
|
|
"type": "MemberExpression",
|
|
"start": 5565,
|
|
"end": 5572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 172,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 32
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5565,
|
|
"end": 5570,
|
|
"loc": {
|
|
"start": {
|
|
"line": 172,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 30
|
|
},
|
|
"identifierName": "frame"
|
|
},
|
|
"name": "frame"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5571,
|
|
"end": 5572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 172,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 32
|
|
},
|
|
"identifierName": "h"
|
|
},
|
|
"name": "h"
|
|
},
|
|
"computed": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5591,
|
|
"end": 5622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 173,
|
|
"column": 47
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5591,
|
|
"end": 5602,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 173,
|
|
"column": 27
|
|
},
|
|
"identifierName": "packOffsetX"
|
|
},
|
|
"name": "packOffsetX"
|
|
},
|
|
"value": {
|
|
"type": "MemberExpression",
|
|
"start": 5604,
|
|
"end": 5622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 173,
|
|
"column": 47
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5604,
|
|
"end": 5620,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 173,
|
|
"column": 45
|
|
},
|
|
"identifierName": "spriteSourceSize"
|
|
},
|
|
"name": "spriteSourceSize"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5621,
|
|
"end": 5622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 173,
|
|
"column": 47
|
|
},
|
|
"identifierName": "x"
|
|
},
|
|
"name": "x"
|
|
},
|
|
"computed": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5641,
|
|
"end": 5672,
|
|
"loc": {
|
|
"start": {
|
|
"line": 174,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 174,
|
|
"column": 47
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5641,
|
|
"end": 5652,
|
|
"loc": {
|
|
"start": {
|
|
"line": 174,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 174,
|
|
"column": 27
|
|
},
|
|
"identifierName": "packOffsetY"
|
|
},
|
|
"name": "packOffsetY"
|
|
},
|
|
"value": {
|
|
"type": "MemberExpression",
|
|
"start": 5654,
|
|
"end": 5672,
|
|
"loc": {
|
|
"start": {
|
|
"line": 174,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 174,
|
|
"column": 47
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5654,
|
|
"end": 5670,
|
|
"loc": {
|
|
"start": {
|
|
"line": 174,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 174,
|
|
"column": 45
|
|
},
|
|
"identifierName": "spriteSourceSize"
|
|
},
|
|
"name": "spriteSourceSize"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5671,
|
|
"end": 5672,
|
|
"loc": {
|
|
"start": {
|
|
"line": 174,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 174,
|
|
"column": 47
|
|
},
|
|
"identifierName": "y"
|
|
},
|
|
"name": "y"
|
|
},
|
|
"computed": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5691,
|
|
"end": 5709,
|
|
"loc": {
|
|
"start": {
|
|
"line": 175,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 175,
|
|
"column": 34
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5691,
|
|
"end": 5696,
|
|
"loc": {
|
|
"start": {
|
|
"line": 175,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 175,
|
|
"column": 21
|
|
},
|
|
"identifierName": "atlas"
|
|
},
|
|
"name": "atlas"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 5698,
|
|
"end": 5709,
|
|
"loc": {
|
|
"start": {
|
|
"line": 175,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 175,
|
|
"column": 34
|
|
},
|
|
"identifierName": "loadedImage"
|
|
},
|
|
"name": "loadedImage"
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5728,
|
|
"end": 5743,
|
|
"loc": {
|
|
"start": {
|
|
"line": 176,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 31
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5728,
|
|
"end": 5729,
|
|
"loc": {
|
|
"start": {
|
|
"line": 176,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 17
|
|
},
|
|
"identifierName": "w"
|
|
},
|
|
"name": "w"
|
|
},
|
|
"value": {
|
|
"type": "MemberExpression",
|
|
"start": 5731,
|
|
"end": 5743,
|
|
"loc": {
|
|
"start": {
|
|
"line": 176,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 31
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5731,
|
|
"end": 5741,
|
|
"loc": {
|
|
"start": {
|
|
"line": 176,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 29
|
|
},
|
|
"identifierName": "sourceSize"
|
|
},
|
|
"name": "sourceSize"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5742,
|
|
"end": 5743,
|
|
"loc": {
|
|
"start": {
|
|
"line": 176,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 31
|
|
},
|
|
"identifierName": "w"
|
|
},
|
|
"name": "w"
|
|
},
|
|
"computed": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 5762,
|
|
"end": 5777,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 31
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5762,
|
|
"end": 5763,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 17
|
|
},
|
|
"identifierName": "h"
|
|
},
|
|
"name": "h"
|
|
},
|
|
"value": {
|
|
"type": "MemberExpression",
|
|
"start": 5765,
|
|
"end": 5777,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 31
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5765,
|
|
"end": 5775,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 29
|
|
},
|
|
"identifierName": "sourceSize"
|
|
},
|
|
"name": "sourceSize"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5776,
|
|
"end": 5777,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 31
|
|
},
|
|
"identifierName": "h"
|
|
},
|
|
"name": "h"
|
|
},
|
|
"computed": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 5809,
|
|
"end": 5848,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 51
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 5809,
|
|
"end": 5847,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 50
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 5809,
|
|
"end": 5840,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 43
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"start": 5809,
|
|
"end": 5833,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 36
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 5809,
|
|
"end": 5815,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 18
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5816,
|
|
"end": 5833,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 36
|
|
},
|
|
"identifierName": "linksByResolution"
|
|
},
|
|
"name": "linksByResolution"
|
|
},
|
|
"computed": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 5834,
|
|
"end": 5839,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 42
|
|
},
|
|
"identifierName": "scale"
|
|
},
|
|
"name": "scale"
|
|
},
|
|
"computed": true
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 5843,
|
|
"end": 5847,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 50
|
|
},
|
|
"identifierName": "link"
|
|
},
|
|
"name": "link"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
],
|
|
"directives": [],
|
|
"trailingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n *\r\n * @param {import(\"./atlas_definitions\").AtlasDefinition} atlas\r\n * @param {HTMLImageElement} loadedImage\r\n ",
|
|
"start": 4756,
|
|
"end": 4891,
|
|
"loc": {
|
|
"start": {
|
|
"line": 150,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Makes the canvas which shows the question mark, shown when a sprite was not found\r\n ",
|
|
"start": 5874,
|
|
"end": 5976,
|
|
"loc": {
|
|
"start": {
|
|
"line": 183,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 185,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"start": 5982,
|
|
"end": 7146,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 5
|
|
}
|
|
},
|
|
"static": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 5982,
|
|
"end": 6006,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 186,
|
|
"column": 28
|
|
},
|
|
"identifierName": "makeSpriteNotFoundCanvas"
|
|
},
|
|
"name": "makeSpriteNotFoundCanvas",
|
|
"leadingComments": null
|
|
},
|
|
"kind": "method",
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 6009,
|
|
"end": 7146,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 5
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 6020,
|
|
"end": 6037,
|
|
"loc": {
|
|
"start": {
|
|
"line": 187,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 187,
|
|
"column": 25
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 6026,
|
|
"end": 6036,
|
|
"loc": {
|
|
"start": {
|
|
"line": 187,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 187,
|
|
"column": 24
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 6026,
|
|
"end": 6030,
|
|
"loc": {
|
|
"start": {
|
|
"line": 187,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 187,
|
|
"column": 18
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
},
|
|
"init": {
|
|
"type": "NumericLiteral",
|
|
"start": 6033,
|
|
"end": 6036,
|
|
"loc": {
|
|
"start": {
|
|
"line": 187,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 187,
|
|
"column": 24
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 128,
|
|
"raw": "128"
|
|
},
|
|
"value": 128
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 6049,
|
|
"end": 6189,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 192,
|
|
"column": 11
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 6055,
|
|
"end": 6188,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 192,
|
|
"column": 10
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "ArrayPattern",
|
|
"start": 6055,
|
|
"end": 6072,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 31
|
|
}
|
|
},
|
|
"elements": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6056,
|
|
"end": 6062,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 21
|
|
},
|
|
"identifierName": "canvas"
|
|
},
|
|
"name": "canvas"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6064,
|
|
"end": 6071,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 30
|
|
},
|
|
"identifierName": "context"
|
|
},
|
|
"name": "context"
|
|
}
|
|
]
|
|
},
|
|
"init": {
|
|
"type": "CallExpression",
|
|
"start": 6075,
|
|
"end": 6188,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 192,
|
|
"column": 10
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 6075,
|
|
"end": 6094,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 53
|
|
},
|
|
"identifierName": "makeOffscreenBuffer"
|
|
},
|
|
"name": "makeOffscreenBuffer"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6095,
|
|
"end": 6099,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 58
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6101,
|
|
"end": 6105,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 64
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
},
|
|
{
|
|
"type": "ObjectExpression",
|
|
"start": 6107,
|
|
"end": 6187,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 192,
|
|
"column": 9
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 6122,
|
|
"end": 6135,
|
|
"loc": {
|
|
"start": {
|
|
"line": 190,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 190,
|
|
"column": 25
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 6122,
|
|
"end": 6128,
|
|
"loc": {
|
|
"start": {
|
|
"line": 190,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 190,
|
|
"column": 18
|
|
},
|
|
"identifierName": "smooth"
|
|
},
|
|
"name": "smooth"
|
|
},
|
|
"value": {
|
|
"type": "BooleanLiteral",
|
|
"start": 6130,
|
|
"end": 6135,
|
|
"loc": {
|
|
"start": {
|
|
"line": 190,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 190,
|
|
"column": 25
|
|
}
|
|
},
|
|
"value": false
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 6150,
|
|
"end": 6175,
|
|
"loc": {
|
|
"start": {
|
|
"line": 191,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 191,
|
|
"column": 37
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 6150,
|
|
"end": 6155,
|
|
"loc": {
|
|
"start": {
|
|
"line": 191,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 191,
|
|
"column": 17
|
|
},
|
|
"identifierName": "label"
|
|
},
|
|
"name": "label"
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"start": 6157,
|
|
"end": 6175,
|
|
"loc": {
|
|
"start": {
|
|
"line": 191,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 191,
|
|
"column": 37
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "not-found-sprite",
|
|
"raw": "\"not-found-sprite\""
|
|
},
|
|
"value": "not-found-sprite"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6199,
|
|
"end": 6226,
|
|
"loc": {
|
|
"start": {
|
|
"line": 193,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 193,
|
|
"column": 35
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 6199,
|
|
"end": 6225,
|
|
"loc": {
|
|
"start": {
|
|
"line": 193,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 193,
|
|
"column": 34
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 6199,
|
|
"end": 6216,
|
|
"loc": {
|
|
"start": {
|
|
"line": 193,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 193,
|
|
"column": 25
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 6199,
|
|
"end": 6206,
|
|
"loc": {
|
|
"start": {
|
|
"line": 193,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 193,
|
|
"column": 15
|
|
},
|
|
"identifierName": "context"
|
|
},
|
|
"name": "context"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6207,
|
|
"end": 6216,
|
|
"loc": {
|
|
"start": {
|
|
"line": 193,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 193,
|
|
"column": 25
|
|
},
|
|
"identifierName": "fillStyle"
|
|
},
|
|
"name": "fillStyle"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 6219,
|
|
"end": 6225,
|
|
"loc": {
|
|
"start": {
|
|
"line": 193,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 193,
|
|
"column": 34
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "#f77",
|
|
"raw": "\"#f77\""
|
|
},
|
|
"value": "#f77"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6236,
|
|
"end": 6271,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 43
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 6236,
|
|
"end": 6270,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 42
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 6236,
|
|
"end": 6252,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 24
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 6236,
|
|
"end": 6243,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 15
|
|
},
|
|
"identifierName": "context"
|
|
},
|
|
"name": "context"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6244,
|
|
"end": 6252,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 24
|
|
},
|
|
"identifierName": "fillRect"
|
|
},
|
|
"name": "fillRect"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "NumericLiteral",
|
|
"start": 6253,
|
|
"end": 6254,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 26
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
},
|
|
{
|
|
"type": "NumericLiteral",
|
|
"start": 6256,
|
|
"end": 6257,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 29
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6259,
|
|
"end": 6263,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 35
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6265,
|
|
"end": 6269,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 41
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6283,
|
|
"end": 6312,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 37
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 6283,
|
|
"end": 6311,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 36
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 6283,
|
|
"end": 6300,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 25
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 6283,
|
|
"end": 6290,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 15
|
|
},
|
|
"identifierName": "context"
|
|
},
|
|
"name": "context"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6291,
|
|
"end": 6300,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 25
|
|
},
|
|
"identifierName": "textAlign"
|
|
},
|
|
"name": "textAlign"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 6303,
|
|
"end": 6311,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 36
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "center",
|
|
"raw": "\"center\""
|
|
},
|
|
"value": "center"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6322,
|
|
"end": 6354,
|
|
"loc": {
|
|
"start": {
|
|
"line": 197,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 40
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 6322,
|
|
"end": 6353,
|
|
"loc": {
|
|
"start": {
|
|
"line": 197,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 39
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 6322,
|
|
"end": 6342,
|
|
"loc": {
|
|
"start": {
|
|
"line": 197,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 28
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 6322,
|
|
"end": 6329,
|
|
"loc": {
|
|
"start": {
|
|
"line": 197,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 15
|
|
},
|
|
"identifierName": "context"
|
|
},
|
|
"name": "context"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6330,
|
|
"end": 6342,
|
|
"loc": {
|
|
"start": {
|
|
"line": 197,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 28
|
|
},
|
|
"identifierName": "textBaseline"
|
|
},
|
|
"name": "textBaseline"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 6345,
|
|
"end": 6353,
|
|
"loc": {
|
|
"start": {
|
|
"line": 197,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 39
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "middle",
|
|
"raw": "\"middle\""
|
|
},
|
|
"value": "middle"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6364,
|
|
"end": 6391,
|
|
"loc": {
|
|
"start": {
|
|
"line": 198,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 198,
|
|
"column": 35
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 6364,
|
|
"end": 6390,
|
|
"loc": {
|
|
"start": {
|
|
"line": 198,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 198,
|
|
"column": 34
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 6364,
|
|
"end": 6381,
|
|
"loc": {
|
|
"start": {
|
|
"line": 198,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 198,
|
|
"column": 25
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 6364,
|
|
"end": 6371,
|
|
"loc": {
|
|
"start": {
|
|
"line": 198,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 198,
|
|
"column": 15
|
|
},
|
|
"identifierName": "context"
|
|
},
|
|
"name": "context"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6372,
|
|
"end": 6381,
|
|
"loc": {
|
|
"start": {
|
|
"line": 198,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 198,
|
|
"column": 25
|
|
},
|
|
"identifierName": "fillStyle"
|
|
},
|
|
"name": "fillStyle"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 6384,
|
|
"end": 6390,
|
|
"loc": {
|
|
"start": {
|
|
"line": 198,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 198,
|
|
"column": 34
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "#eee",
|
|
"raw": "\"#eee\""
|
|
},
|
|
"value": "#eee"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6401,
|
|
"end": 6429,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 199,
|
|
"column": 36
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 6401,
|
|
"end": 6428,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 199,
|
|
"column": 35
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 6401,
|
|
"end": 6413,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 199,
|
|
"column": 20
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 6401,
|
|
"end": 6408,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 199,
|
|
"column": 15
|
|
},
|
|
"identifierName": "context"
|
|
},
|
|
"name": "context"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6409,
|
|
"end": 6413,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 199,
|
|
"column": 20
|
|
},
|
|
"identifierName": "font"
|
|
},
|
|
"name": "font"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 6416,
|
|
"end": 6428,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 199,
|
|
"column": 35
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "25px Arial",
|
|
"raw": "\"25px Arial\""
|
|
},
|
|
"value": "25px Arial"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6439,
|
|
"end": 6483,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 52
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 6439,
|
|
"end": 6482,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 51
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 6439,
|
|
"end": 6455,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 24
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 6439,
|
|
"end": 6446,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 15
|
|
},
|
|
"identifierName": "context"
|
|
},
|
|
"name": "context"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6447,
|
|
"end": 6455,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 24
|
|
},
|
|
"identifierName": "fillText"
|
|
},
|
|
"name": "fillText"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 6456,
|
|
"end": 6461,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 30
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "???",
|
|
"raw": "\"???\""
|
|
},
|
|
"value": "???"
|
|
},
|
|
{
|
|
"type": "BinaryExpression",
|
|
"start": 6463,
|
|
"end": 6471,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 40
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 6463,
|
|
"end": 6467,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 36
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start": 6470,
|
|
"end": 6471,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 40
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 2,
|
|
"raw": "2"
|
|
},
|
|
"value": 2
|
|
}
|
|
},
|
|
{
|
|
"type": "BinaryExpression",
|
|
"start": 6473,
|
|
"end": 6481,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 50
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"start": 6473,
|
|
"end": 6477,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 46
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"type": "NumericLiteral",
|
|
"start": 6480,
|
|
"end": 6481,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 50
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 2,
|
|
"raw": "2"
|
|
},
|
|
"value": 2
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " TODO: Not sure why this is set here",
|
|
"start": 6495,
|
|
"end": 6533,
|
|
"loc": {
|
|
"start": {
|
|
"line": 202,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 202,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " @ts-ignore",
|
|
"start": 6543,
|
|
"end": 6556,
|
|
"loc": {
|
|
"start": {
|
|
"line": 203,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 203,
|
|
"column": 21
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6566,
|
|
"end": 6591,
|
|
"loc": {
|
|
"start": {
|
|
"line": 204,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 204,
|
|
"column": 33
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 6566,
|
|
"end": 6590,
|
|
"loc": {
|
|
"start": {
|
|
"line": 204,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 204,
|
|
"column": 32
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 6566,
|
|
"end": 6576,
|
|
"loc": {
|
|
"start": {
|
|
"line": 204,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 204,
|
|
"column": 18
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 6566,
|
|
"end": 6572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 204,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 204,
|
|
"column": 14
|
|
},
|
|
"identifierName": "canvas"
|
|
},
|
|
"name": "canvas",
|
|
"leadingComments": null
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6573,
|
|
"end": 6576,
|
|
"loc": {
|
|
"start": {
|
|
"line": 204,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 204,
|
|
"column": 18
|
|
},
|
|
"identifierName": "src"
|
|
},
|
|
"name": "src"
|
|
},
|
|
"computed": false,
|
|
"leadingComments": null
|
|
},
|
|
"right": {
|
|
"type": "StringLiteral",
|
|
"start": 6579,
|
|
"end": 6590,
|
|
"loc": {
|
|
"start": {
|
|
"line": 204,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 204,
|
|
"column": 32
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "not-found",
|
|
"raw": "\"not-found\""
|
|
},
|
|
"value": "not-found"
|
|
},
|
|
"leadingComments": null
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " TODO: Not sure why this is set here",
|
|
"start": 6495,
|
|
"end": 6533,
|
|
"loc": {
|
|
"start": {
|
|
"line": 202,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 202,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " @ts-ignore",
|
|
"start": 6543,
|
|
"end": 6556,
|
|
"loc": {
|
|
"start": {
|
|
"line": 203,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 203,
|
|
"column": 21
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 6603,
|
|
"end": 6647,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 52
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 6609,
|
|
"end": 6646,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 51
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 6609,
|
|
"end": 6615,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 20
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"init": {
|
|
"type": "NewExpression",
|
|
"start": 6618,
|
|
"end": 6646,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 51
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 6622,
|
|
"end": 6633,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 38
|
|
},
|
|
"identifierName": "AtlasSprite"
|
|
},
|
|
"name": "AtlasSprite"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 6634,
|
|
"end": 6645,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 50
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "not-found",
|
|
"raw": "\"not-found\""
|
|
},
|
|
"value": "not-found"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6657,
|
|
"end": 7092,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 219,
|
|
"column": 11
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start": 6657,
|
|
"end": 7091,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 219,
|
|
"column": 10
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 6657,
|
|
"end": 6700,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 51
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ArrayExpression",
|
|
"start": 6657,
|
|
"end": 6692,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 43
|
|
}
|
|
},
|
|
"elements": [
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 6658,
|
|
"end": 6663,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 14
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "0.1",
|
|
"raw": "\"0.1\""
|
|
},
|
|
"value": "0.1"
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 6665,
|
|
"end": 6671,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 22
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "0.25",
|
|
"raw": "\"0.25\""
|
|
},
|
|
"value": "0.25"
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 6673,
|
|
"end": 6678,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 29
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "0.5",
|
|
"raw": "\"0.5\""
|
|
},
|
|
"value": "0.5"
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 6680,
|
|
"end": 6686,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 37
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "0.75",
|
|
"raw": "\"0.75\""
|
|
},
|
|
"value": "0.75"
|
|
},
|
|
{
|
|
"type": "StringLiteral",
|
|
"start": 6688,
|
|
"end": 6691,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 42
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "1",
|
|
"raw": "\"1\""
|
|
},
|
|
"value": "1"
|
|
}
|
|
]
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6693,
|
|
"end": 6700,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 51
|
|
},
|
|
"identifierName": "forEach"
|
|
},
|
|
"name": "forEach"
|
|
},
|
|
"computed": false
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 6701,
|
|
"end": 7090,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 219,
|
|
"column": 9
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"expression": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 6701,
|
|
"end": 6711,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 62
|
|
},
|
|
"identifierName": "resolution"
|
|
},
|
|
"name": "resolution"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"start": 6715,
|
|
"end": 7090,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 219,
|
|
"column": 9
|
|
}
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 6730,
|
|
"end": 7079,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 15
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 6730,
|
|
"end": 7078,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 14
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 6730,
|
|
"end": 6766,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 48
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"start": 6730,
|
|
"end": 6754,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 36
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 6730,
|
|
"end": 6736,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 18
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6737,
|
|
"end": 6754,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 36
|
|
},
|
|
"identifierName": "linksByResolution"
|
|
},
|
|
"name": "linksByResolution"
|
|
},
|
|
"computed": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 6755,
|
|
"end": 6765,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 47
|
|
},
|
|
"identifierName": "resolution"
|
|
},
|
|
"name": "resolution"
|
|
},
|
|
"computed": true
|
|
},
|
|
"right": {
|
|
"type": "NewExpression",
|
|
"start": 6769,
|
|
"end": 7078,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 14
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 6773,
|
|
"end": 6788,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 70
|
|
},
|
|
"identifierName": "SpriteAtlasLink"
|
|
},
|
|
"name": "SpriteAtlasLink"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"type": "ObjectExpression",
|
|
"start": 6789,
|
|
"end": 7077,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 71
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 13
|
|
}
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 6808,
|
|
"end": 6818,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 26
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 6808,
|
|
"end": 6815,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 23
|
|
},
|
|
"identifierName": "packedX"
|
|
},
|
|
"name": "packedX"
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"start": 6817,
|
|
"end": 6818,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 26
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 6837,
|
|
"end": 6847,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 26
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 6837,
|
|
"end": 6844,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 23
|
|
},
|
|
"identifierName": "packedY"
|
|
},
|
|
"name": "packedY"
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"start": 6846,
|
|
"end": 6847,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 26
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 6866,
|
|
"end": 6873,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 23
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 6866,
|
|
"end": 6867,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 17
|
|
},
|
|
"identifierName": "w"
|
|
},
|
|
"name": "w"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 6869,
|
|
"end": 6873,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 23
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 6892,
|
|
"end": 6899,
|
|
"loc": {
|
|
"start": {
|
|
"line": 212,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 212,
|
|
"column": 23
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 6892,
|
|
"end": 6893,
|
|
"loc": {
|
|
"start": {
|
|
"line": 212,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 212,
|
|
"column": 17
|
|
},
|
|
"identifierName": "h"
|
|
},
|
|
"name": "h"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 6895,
|
|
"end": 6899,
|
|
"loc": {
|
|
"start": {
|
|
"line": 212,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 212,
|
|
"column": 23
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 6918,
|
|
"end": 6932,
|
|
"loc": {
|
|
"start": {
|
|
"line": 213,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 213,
|
|
"column": 30
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 6918,
|
|
"end": 6929,
|
|
"loc": {
|
|
"start": {
|
|
"line": 213,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 213,
|
|
"column": 27
|
|
},
|
|
"identifierName": "packOffsetX"
|
|
},
|
|
"name": "packOffsetX"
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"start": 6931,
|
|
"end": 6932,
|
|
"loc": {
|
|
"start": {
|
|
"line": 213,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 213,
|
|
"column": 30
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 6951,
|
|
"end": 6965,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 30
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 6951,
|
|
"end": 6962,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 27
|
|
},
|
|
"identifierName": "packOffsetY"
|
|
},
|
|
"name": "packOffsetY"
|
|
},
|
|
"value": {
|
|
"type": "NumericLiteral",
|
|
"start": 6964,
|
|
"end": 6965,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 30
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 6984,
|
|
"end": 6997,
|
|
"loc": {
|
|
"start": {
|
|
"line": 215,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 215,
|
|
"column": 29
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 6984,
|
|
"end": 6991,
|
|
"loc": {
|
|
"start": {
|
|
"line": 215,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 215,
|
|
"column": 23
|
|
},
|
|
"identifierName": "packedW"
|
|
},
|
|
"name": "packedW"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 6993,
|
|
"end": 6997,
|
|
"loc": {
|
|
"start": {
|
|
"line": 215,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 215,
|
|
"column": 29
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 7016,
|
|
"end": 7029,
|
|
"loc": {
|
|
"start": {
|
|
"line": 216,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 216,
|
|
"column": 29
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 7016,
|
|
"end": 7023,
|
|
"loc": {
|
|
"start": {
|
|
"line": 216,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 216,
|
|
"column": 23
|
|
},
|
|
"identifierName": "packedH"
|
|
},
|
|
"name": "packedH"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 7025,
|
|
"end": 7029,
|
|
"loc": {
|
|
"start": {
|
|
"line": 216,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 216,
|
|
"column": 29
|
|
},
|
|
"identifierName": "dims"
|
|
},
|
|
"name": "dims"
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start": 7048,
|
|
"end": 7061,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 29
|
|
}
|
|
},
|
|
"method": false,
|
|
"shorthand": false,
|
|
"computed": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start": 7048,
|
|
"end": 7053,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 21
|
|
},
|
|
"identifierName": "atlas"
|
|
},
|
|
"name": "atlas"
|
|
},
|
|
"value": {
|
|
"type": "Identifier",
|
|
"start": 7055,
|
|
"end": 7061,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 29
|
|
},
|
|
"identifierName": "canvas"
|
|
},
|
|
"name": "canvas"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 7104,
|
|
"end": 7139,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 43
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AssignmentExpression",
|
|
"start": 7104,
|
|
"end": 7138,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 42
|
|
}
|
|
},
|
|
"operator": "=",
|
|
"left": {
|
|
"type": "MemberExpression",
|
|
"start": 7104,
|
|
"end": 7129,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 33
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"start": 7104,
|
|
"end": 7108,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 7109,
|
|
"end": 7129,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 33
|
|
},
|
|
"identifierName": "spriteNotFoundSprite"
|
|
},
|
|
"name": "spriteNotFoundSprite"
|
|
},
|
|
"computed": false
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"start": 7132,
|
|
"end": 7138,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 42
|
|
},
|
|
"identifierName": "sprite"
|
|
},
|
|
"name": "sprite"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Makes the canvas which shows the question mark, shown when a sprite was not found\r\n ",
|
|
"start": 5874,
|
|
"end": 5976,
|
|
"loc": {
|
|
"start": {
|
|
"line": 183,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 185,
|
|
"column": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"__PseudoExport__": true,
|
|
"leadingComments": [],
|
|
"trailingComments": []
|
|
},
|
|
"leadingComments": null
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"comments": [
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* @type {Map<string, BaseSprite>} ",
|
|
"start": 379,
|
|
"end": 417,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * @param {import(\"../application\").Application} app\r\n ",
|
|
"start": 499,
|
|
"end": 569,
|
|
"loc": {
|
|
"start": {
|
|
"line": 20,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 22,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Fetches a given sprite from the cache\r\n * @param {string} key\r\n * @returns {BaseSprite}\r\n ",
|
|
"start": 680,
|
|
"end": 796,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " Only show error once",
|
|
"start": 958,
|
|
"end": 981,
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "logger.error(\"Sprite '\" + key + \"' not found!\");",
|
|
"start": 1046,
|
|
"end": 1098,
|
|
"loc": {
|
|
"start": {
|
|
"line": 39,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 68
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " Will be fixed right now it just spams errors",
|
|
"start": 1099,
|
|
"end": 1146,
|
|
"loc": {
|
|
"start": {
|
|
"line": 39,
|
|
"column": 69
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 116
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns an atlas sprite from the cache\r\n * @param {string} key\r\n * @returns {AtlasSprite}\r\n ",
|
|
"start": 1258,
|
|
"end": 1376,
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* @type {AtlasSprite} ",
|
|
"start": 1579,
|
|
"end": 1605,
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns a regular sprite from the cache\r\n * @param {string} key\r\n * @returns {RegularSprite}\r\n ",
|
|
"start": 1630,
|
|
"end": 1751,
|
|
"loc": {
|
|
"start": {
|
|
"line": 57,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* @type {RegularSprite} ",
|
|
"start": 2001,
|
|
"end": 2029,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n *\r\n * @param {string} key\r\n * @returns {Promise<HTMLImageElement|null>}\r\n ",
|
|
"start": 2054,
|
|
"end": 2152,
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " SAFARI: Image.decode() fails on safari with svgs -> we dont want to fail",
|
|
"start": 2713,
|
|
"end": 2788,
|
|
"loc": {
|
|
"start": {
|
|
"line": 93,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 93,
|
|
"column": 99
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " on that",
|
|
"start": 2814,
|
|
"end": 2824,
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " FIREFOX: Decode never returns if the image is in cache, so call it in background",
|
|
"start": 2850,
|
|
"end": 2933,
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 107
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Preloads a sprite\r\n * @param {string} key\r\n * @returns {Promise<void>}\r\n ",
|
|
"start": 3871,
|
|
"end": 3970,
|
|
"loc": {
|
|
"start": {
|
|
"line": 122,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " Allow access to regular sprites",
|
|
"start": 4130,
|
|
"end": 4164,
|
|
"loc": {
|
|
"start": {
|
|
"line": 130,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 130,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Preloads an atlas\r\n * @param {import(\"./atlas_definitions\").AtlasDefinition} atlas\r\n * @returns {Promise<void>}\r\n ",
|
|
"start": 4341,
|
|
"end": 4481,
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " @ts-ignore",
|
|
"start": 4607,
|
|
"end": 4620,
|
|
"loc": {
|
|
"start": {
|
|
"line": 144,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 144,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n *\r\n * @param {import(\"./atlas_definitions\").AtlasDefinition} atlas\r\n * @param {HTMLImageElement} loadedImage\r\n ",
|
|
"start": 4756,
|
|
"end": 4891,
|
|
"loc": {
|
|
"start": {
|
|
"line": 150,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* @type {AtlasSprite} ",
|
|
"start": 5170,
|
|
"end": 5196,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Makes the canvas which shows the question mark, shown when a sprite was not found\r\n ",
|
|
"start": 5874,
|
|
"end": 5976,
|
|
"loc": {
|
|
"start": {
|
|
"line": 183,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 185,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " TODO: Not sure why this is set here",
|
|
"start": 6495,
|
|
"end": 6533,
|
|
"loc": {
|
|
"start": {
|
|
"line": 202,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 202,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " @ts-ignore",
|
|
"start": 6543,
|
|
"end": 6556,
|
|
"loc": {
|
|
"start": {
|
|
"line": 203,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 203,
|
|
"column": 21
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"tokens": [
|
|
{
|
|
"type": {
|
|
"label": "import",
|
|
"keyword": "import",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "import",
|
|
"start": 0,
|
|
"end": 6,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 6
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7,
|
|
"end": 8,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 8
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "makeOffscreenBuffer",
|
|
"start": 9,
|
|
"end": 28,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 29,
|
|
"end": 30,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "from",
|
|
"start": 31,
|
|
"end": 35,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "./buffer_utils",
|
|
"start": 36,
|
|
"end": 52,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 52,
|
|
"end": 53,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 55,
|
|
"end": 61,
|
|
"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": 62,
|
|
"end": 63,
|
|
"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": "AtlasSprite",
|
|
"start": 64,
|
|
"end": 75,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 75,
|
|
"end": 76,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "BaseSprite",
|
|
"start": 77,
|
|
"end": 87,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 87,
|
|
"end": 88,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "RegularSprite",
|
|
"start": 89,
|
|
"end": 102,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 102,
|
|
"end": 103,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "SpriteAtlasLink",
|
|
"start": 104,
|
|
"end": 119,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 64
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 120,
|
|
"end": 121,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 65
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 66
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "from",
|
|
"start": 122,
|
|
"end": 126,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 67
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "./sprites",
|
|
"start": 127,
|
|
"end": 138,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 72
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 83
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 138,
|
|
"end": 139,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 83
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 84
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 141,
|
|
"end": 147,
|
|
"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": 148,
|
|
"end": 149,
|
|
"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": "cachebust",
|
|
"start": 150,
|
|
"end": 159,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 160,
|
|
"end": 161,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "from",
|
|
"start": 162,
|
|
"end": 166,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "./cachebust",
|
|
"start": 167,
|
|
"end": 180,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 180,
|
|
"end": 181,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "import",
|
|
"keyword": "import",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "import",
|
|
"start": 183,
|
|
"end": 189,
|
|
"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": 190,
|
|
"end": 191,
|
|
"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": "createLogger",
|
|
"start": 192,
|
|
"end": 204,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 205,
|
|
"end": 206,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "from",
|
|
"start": 207,
|
|
"end": 211,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "./logging",
|
|
"start": 212,
|
|
"end": 223,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 223,
|
|
"end": 224,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "const",
|
|
"keyword": "const",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "const",
|
|
"start": 228,
|
|
"end": 233,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "logger",
|
|
"start": 234,
|
|
"end": 240,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 241,
|
|
"end": 242,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "createLogger",
|
|
"start": 243,
|
|
"end": 255,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 255,
|
|
"end": 256,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "loader",
|
|
"start": 256,
|
|
"end": 264,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 264,
|
|
"end": 265,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 265,
|
|
"end": 266,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "const",
|
|
"keyword": "const",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "const",
|
|
"start": 270,
|
|
"end": 275,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "missingSpriteIds",
|
|
"start": 276,
|
|
"end": 292,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 293,
|
|
"end": 294,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 295,
|
|
"end": 296,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 296,
|
|
"end": 297,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 297,
|
|
"end": 298,
|
|
"loc": {
|
|
"start": {
|
|
"line": 8,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 302,
|
|
"end": 307,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "LoaderImpl",
|
|
"start": 308,
|
|
"end": 318,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 319,
|
|
"end": 320,
|
|
"loc": {
|
|
"start": {
|
|
"line": 10,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 10,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "constructor",
|
|
"start": 326,
|
|
"end": 337,
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 337,
|
|
"end": 338,
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 338,
|
|
"end": 339,
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 340,
|
|
"end": 341,
|
|
"loc": {
|
|
"start": {
|
|
"line": 11,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 11,
|
|
"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": 351,
|
|
"end": 355,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 355,
|
|
"end": 356,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "app",
|
|
"start": 356,
|
|
"end": 359,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 360,
|
|
"end": 361,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "null",
|
|
"keyword": "null",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "null",
|
|
"start": 362,
|
|
"end": 366,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 366,
|
|
"end": 367,
|
|
"loc": {
|
|
"start": {
|
|
"line": 12,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 12,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* @type {Map<string, BaseSprite>} ",
|
|
"start": 379,
|
|
"end": 417,
|
|
"loc": {
|
|
"start": {
|
|
"line": 14,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "this",
|
|
"keyword": "this",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "this",
|
|
"start": 427,
|
|
"end": 431,
|
|
"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": 431,
|
|
"end": 432,
|
|
"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": "sprites",
|
|
"start": 432,
|
|
"end": 439,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 440,
|
|
"end": 441,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "new",
|
|
"keyword": "new",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "new",
|
|
"start": 442,
|
|
"end": 445,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 23
|
|
},
|
|
"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": "Map",
|
|
"start": 446,
|
|
"end": 449,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 449,
|
|
"end": 450,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 450,
|
|
"end": 451,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 451,
|
|
"end": 452,
|
|
"loc": {
|
|
"start": {
|
|
"line": 15,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 15,
|
|
"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": 464,
|
|
"end": 468,
|
|
"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": 468,
|
|
"end": 469,
|
|
"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": "rawImages",
|
|
"start": 469,
|
|
"end": 478,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 479,
|
|
"end": 480,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "[",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 481,
|
|
"end": 482,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "]",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 482,
|
|
"end": 483,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 483,
|
|
"end": 484,
|
|
"loc": {
|
|
"start": {
|
|
"line": 17,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 490,
|
|
"end": 491,
|
|
"loc": {
|
|
"start": {
|
|
"line": 18,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 18,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * @param {import(\"../application\").Application} app\r\n ",
|
|
"start": 499,
|
|
"end": 569,
|
|
"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": "linkAppAfterBoot",
|
|
"start": 575,
|
|
"end": 591,
|
|
"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": 591,
|
|
"end": 592,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "app",
|
|
"start": 592,
|
|
"end": 595,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 595,
|
|
"end": 596,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 597,
|
|
"end": 598,
|
|
"loc": {
|
|
"start": {
|
|
"line": 23,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 23,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "this",
|
|
"keyword": "this",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "this",
|
|
"start": 608,
|
|
"end": 612,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 612,
|
|
"end": 613,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "app",
|
|
"start": 613,
|
|
"end": 616,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 617,
|
|
"end": 618,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "app",
|
|
"start": 619,
|
|
"end": 622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 622,
|
|
"end": 623,
|
|
"loc": {
|
|
"start": {
|
|
"line": 24,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 24,
|
|
"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": 633,
|
|
"end": 637,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 637,
|
|
"end": 638,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "makeSpriteNotFoundCanvas",
|
|
"start": 638,
|
|
"end": 662,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 662,
|
|
"end": 663,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 663,
|
|
"end": 664,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 664,
|
|
"end": 665,
|
|
"loc": {
|
|
"start": {
|
|
"line": 25,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 25,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 671,
|
|
"end": 672,
|
|
"loc": {
|
|
"start": {
|
|
"line": 26,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 26,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Fetches a given sprite from the cache\r\n * @param {string} key\r\n * @returns {BaseSprite}\r\n ",
|
|
"start": 680,
|
|
"end": 796,
|
|
"loc": {
|
|
"start": {
|
|
"line": 28,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 32,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getSpriteInternal",
|
|
"start": 802,
|
|
"end": 819,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 819,
|
|
"end": 820,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "key",
|
|
"start": 820,
|
|
"end": 823,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 823,
|
|
"end": 824,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 825,
|
|
"end": 826,
|
|
"loc": {
|
|
"start": {
|
|
"line": 33,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 33,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "const",
|
|
"keyword": "const",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "const",
|
|
"start": 836,
|
|
"end": 841,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprite",
|
|
"start": 842,
|
|
"end": 848,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 849,
|
|
"end": 850,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"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": 851,
|
|
"end": 855,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 855,
|
|
"end": 856,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprites",
|
|
"start": 856,
|
|
"end": 863,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 863,
|
|
"end": 864,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "get",
|
|
"start": 864,
|
|
"end": 867,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 867,
|
|
"end": 868,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "key",
|
|
"start": 868,
|
|
"end": 871,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 871,
|
|
"end": 872,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 872,
|
|
"end": 873,
|
|
"loc": {
|
|
"start": {
|
|
"line": 34,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 34,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "if",
|
|
"keyword": "if",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "if",
|
|
"start": 883,
|
|
"end": 885,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 886,
|
|
"end": 887,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "prefix",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "!",
|
|
"start": 887,
|
|
"end": 888,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprite",
|
|
"start": 888,
|
|
"end": 894,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 894,
|
|
"end": 895,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 896,
|
|
"end": 897,
|
|
"loc": {
|
|
"start": {
|
|
"line": 35,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 35,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "if",
|
|
"keyword": "if",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "if",
|
|
"start": 911,
|
|
"end": 913,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 914,
|
|
"end": 915,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "prefix",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "!",
|
|
"start": 915,
|
|
"end": 916,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "missingSpriteIds",
|
|
"start": 916,
|
|
"end": 932,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "[",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 932,
|
|
"end": 933,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "key",
|
|
"start": 933,
|
|
"end": 936,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "]",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 936,
|
|
"end": 937,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 937,
|
|
"end": 938,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 939,
|
|
"end": 940,
|
|
"loc": {
|
|
"start": {
|
|
"line": 36,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 36,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " Only show error once",
|
|
"start": 958,
|
|
"end": 981,
|
|
"loc": {
|
|
"start": {
|
|
"line": 37,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 37,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "missingSpriteIds",
|
|
"start": 999,
|
|
"end": 1015,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "[",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1015,
|
|
"end": 1016,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "key",
|
|
"start": 1016,
|
|
"end": 1019,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "]",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1019,
|
|
"end": 1020,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 1021,
|
|
"end": 1022,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 1023,
|
|
"end": 1027,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1027,
|
|
"end": 1028,
|
|
"loc": {
|
|
"start": {
|
|
"line": 38,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 38,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "logger.error(\"Sprite '\" + key + \"' not found!\");",
|
|
"start": 1046,
|
|
"end": 1098,
|
|
"loc": {
|
|
"start": {
|
|
"line": 39,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 68
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " Will be fixed right now it just spams errors",
|
|
"start": 1099,
|
|
"end": 1146,
|
|
"loc": {
|
|
"start": {
|
|
"line": 39,
|
|
"column": 69
|
|
},
|
|
"end": {
|
|
"line": 39,
|
|
"column": 116
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1160,
|
|
"end": 1161,
|
|
"loc": {
|
|
"start": {
|
|
"line": 40,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 40,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 1175,
|
|
"end": 1181,
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"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": 1182,
|
|
"end": 1186,
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1186,
|
|
"end": 1187,
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "spriteNotFoundSprite",
|
|
"start": 1187,
|
|
"end": 1207,
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1207,
|
|
"end": 1208,
|
|
"loc": {
|
|
"start": {
|
|
"line": 41,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 41,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1218,
|
|
"end": 1219,
|
|
"loc": {
|
|
"start": {
|
|
"line": 42,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 42,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "return",
|
|
"keyword": "return",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "return",
|
|
"start": 1229,
|
|
"end": 1235,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprite",
|
|
"start": 1236,
|
|
"end": 1242,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1242,
|
|
"end": 1243,
|
|
"loc": {
|
|
"start": {
|
|
"line": 43,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 43,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1249,
|
|
"end": 1250,
|
|
"loc": {
|
|
"start": {
|
|
"line": 44,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 44,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns an atlas sprite from the cache\r\n * @param {string} key\r\n * @returns {AtlasSprite}\r\n ",
|
|
"start": 1258,
|
|
"end": 1376,
|
|
"loc": {
|
|
"start": {
|
|
"line": 46,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 50,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getSprite",
|
|
"start": 1382,
|
|
"end": 1391,
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1391,
|
|
"end": 1392,
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "key",
|
|
"start": 1392,
|
|
"end": 1395,
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1395,
|
|
"end": 1396,
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1397,
|
|
"end": 1398,
|
|
"loc": {
|
|
"start": {
|
|
"line": 51,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 51,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 1408,
|
|
"end": 1413,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprite",
|
|
"start": 1414,
|
|
"end": 1420,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 1421,
|
|
"end": 1422,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"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": 1423,
|
|
"end": 1427,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1427,
|
|
"end": 1428,
|
|
"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": "getSpriteInternal",
|
|
"start": 1428,
|
|
"end": 1445,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1445,
|
|
"end": 1446,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "key",
|
|
"start": 1446,
|
|
"end": 1449,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 49
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1449,
|
|
"end": 1450,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1450,
|
|
"end": 1451,
|
|
"loc": {
|
|
"start": {
|
|
"line": 52,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 52,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "assert",
|
|
"start": 1461,
|
|
"end": 1467,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1467,
|
|
"end": 1468,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprite",
|
|
"start": 1468,
|
|
"end": 1474,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "instanceof",
|
|
"keyword": "instanceof",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": 7,
|
|
"updateContext": null
|
|
},
|
|
"value": "instanceof",
|
|
"start": 1475,
|
|
"end": 1485,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "AtlasSprite",
|
|
"start": 1486,
|
|
"end": 1497,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "||",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": 1,
|
|
"updateContext": null
|
|
},
|
|
"value": "||",
|
|
"start": 1498,
|
|
"end": 1500,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprite",
|
|
"start": 1501,
|
|
"end": 1507,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "==/!=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": 6,
|
|
"updateContext": null
|
|
},
|
|
"value": "===",
|
|
"start": 1508,
|
|
"end": 1511,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "this",
|
|
"keyword": "this",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "this",
|
|
"start": 1512,
|
|
"end": 1516,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 63
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1516,
|
|
"end": 1517,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 63
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 64
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "spriteNotFoundSprite",
|
|
"start": 1517,
|
|
"end": 1537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 64
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 84
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1537,
|
|
"end": 1538,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 84
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 85
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "Not an atlas sprite",
|
|
"start": 1539,
|
|
"end": 1560,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 86
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 107
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1560,
|
|
"end": 1561,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 107
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 108
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1561,
|
|
"end": 1562,
|
|
"loc": {
|
|
"start": {
|
|
"line": 53,
|
|
"column": 108
|
|
},
|
|
"end": {
|
|
"line": 53,
|
|
"column": 109
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 1572,
|
|
"end": 1578,
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* @type {AtlasSprite} ",
|
|
"start": 1579,
|
|
"end": 1605,
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1606,
|
|
"end": 1607,
|
|
"loc": {
|
|
"start": {
|
|
"line": 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": "sprite",
|
|
"start": 1607,
|
|
"end": 1613,
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 49
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1613,
|
|
"end": 1614,
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1614,
|
|
"end": 1615,
|
|
"loc": {
|
|
"start": {
|
|
"line": 54,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 54,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1621,
|
|
"end": 1622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 55,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 55,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Returns a regular sprite from the cache\r\n * @param {string} key\r\n * @returns {RegularSprite}\r\n ",
|
|
"start": 1630,
|
|
"end": 1751,
|
|
"loc": {
|
|
"start": {
|
|
"line": 57,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 61,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getRegularSprite",
|
|
"start": 1757,
|
|
"end": 1773,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1773,
|
|
"end": 1774,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "key",
|
|
"start": 1774,
|
|
"end": 1777,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1777,
|
|
"end": 1778,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1779,
|
|
"end": 1780,
|
|
"loc": {
|
|
"start": {
|
|
"line": 62,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 62,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 1790,
|
|
"end": 1795,
|
|
"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": "sprite",
|
|
"start": 1796,
|
|
"end": 1802,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 1803,
|
|
"end": 1804,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"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": 1805,
|
|
"end": 1809,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1809,
|
|
"end": 1810,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getSpriteInternal",
|
|
"start": 1810,
|
|
"end": 1827,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1827,
|
|
"end": 1828,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "key",
|
|
"start": 1828,
|
|
"end": 1831,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 49
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1831,
|
|
"end": 1832,
|
|
"loc": {
|
|
"start": {
|
|
"line": 63,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 63,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1832,
|
|
"end": 1833,
|
|
"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": "assert",
|
|
"start": 1843,
|
|
"end": 1849,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1849,
|
|
"end": 1850,
|
|
"loc": {
|
|
"start": {
|
|
"line": 64,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 64,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprite",
|
|
"start": 1864,
|
|
"end": 1870,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "instanceof",
|
|
"keyword": "instanceof",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": 7,
|
|
"updateContext": null
|
|
},
|
|
"value": "instanceof",
|
|
"start": 1871,
|
|
"end": 1881,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "RegularSprite",
|
|
"start": 1882,
|
|
"end": 1895,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "||",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": 1,
|
|
"updateContext": null
|
|
},
|
|
"value": "||",
|
|
"start": 1896,
|
|
"end": 1898,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprite",
|
|
"start": 1899,
|
|
"end": 1905,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "==/!=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": 6,
|
|
"updateContext": null
|
|
},
|
|
"value": "===",
|
|
"start": 1906,
|
|
"end": 1909,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 57
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "this",
|
|
"keyword": "this",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "this",
|
|
"start": 1910,
|
|
"end": 1914,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 62
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1914,
|
|
"end": 1915,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 63
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "spriteNotFoundSprite",
|
|
"start": 1915,
|
|
"end": 1935,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 63
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 83
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1935,
|
|
"end": 1936,
|
|
"loc": {
|
|
"start": {
|
|
"line": 65,
|
|
"column": 83
|
|
},
|
|
"end": {
|
|
"line": 65,
|
|
"column": 84
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "Not a regular sprite",
|
|
"start": 1950,
|
|
"end": 1972,
|
|
"loc": {
|
|
"start": {
|
|
"line": 66,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 66,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 1982,
|
|
"end": 1983,
|
|
"loc": {
|
|
"start": {
|
|
"line": 67,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 1983,
|
|
"end": 1984,
|
|
"loc": {
|
|
"start": {
|
|
"line": 67,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 67,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 1994,
|
|
"end": 2000,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* @type {RegularSprite} ",
|
|
"start": 2001,
|
|
"end": 2029,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2030,
|
|
"end": 2031,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprite",
|
|
"start": 2031,
|
|
"end": 2037,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2037,
|
|
"end": 2038,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2038,
|
|
"end": 2039,
|
|
"loc": {
|
|
"start": {
|
|
"line": 68,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 68,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2045,
|
|
"end": 2046,
|
|
"loc": {
|
|
"start": {
|
|
"line": 69,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 69,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n *\r\n * @param {string} key\r\n * @returns {Promise<HTMLImageElement|null>}\r\n ",
|
|
"start": 2054,
|
|
"end": 2152,
|
|
"loc": {
|
|
"start": {
|
|
"line": 71,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 75,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "internalPreloadImage",
|
|
"start": 2158,
|
|
"end": 2178,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2178,
|
|
"end": 2179,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "key",
|
|
"start": 2179,
|
|
"end": 2182,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2182,
|
|
"end": 2183,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2184,
|
|
"end": 2185,
|
|
"loc": {
|
|
"start": {
|
|
"line": 76,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 76,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 77,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "url",
|
|
"start": 2201,
|
|
"end": 2204,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 2205,
|
|
"end": 2206,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "cachebust",
|
|
"start": 2207,
|
|
"end": 2216,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2216,
|
|
"end": 2217,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "res/",
|
|
"start": 2217,
|
|
"end": 2223,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "+",
|
|
"start": 2224,
|
|
"end": 2225,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "key",
|
|
"start": 2226,
|
|
"end": 2229,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2229,
|
|
"end": 2230,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2230,
|
|
"end": 2231,
|
|
"loc": {
|
|
"start": {
|
|
"line": 77,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 77,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 2241,
|
|
"end": 2246,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 2247,
|
|
"end": 2252,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 2253,
|
|
"end": 2254,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "new",
|
|
"keyword": "new",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "new",
|
|
"start": 2255,
|
|
"end": 2258,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "Image",
|
|
"start": 2259,
|
|
"end": 2264,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2264,
|
|
"end": 2265,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2265,
|
|
"end": 2266,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2266,
|
|
"end": 2267,
|
|
"loc": {
|
|
"start": {
|
|
"line": 78,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 78,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 2279,
|
|
"end": 2282,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "triesSoFar",
|
|
"start": 2283,
|
|
"end": 2293,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 2294,
|
|
"end": 2295,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 0,
|
|
"start": 2296,
|
|
"end": 2297,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2297,
|
|
"end": 2298,
|
|
"loc": {
|
|
"start": {
|
|
"line": 80,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 80,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "return",
|
|
"keyword": "return",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "return",
|
|
"start": 2310,
|
|
"end": 2316,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "Promise",
|
|
"start": 2317,
|
|
"end": 2324,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2324,
|
|
"end": 2325,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "race",
|
|
"start": 2325,
|
|
"end": 2329,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2329,
|
|
"end": 2330,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "[",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2330,
|
|
"end": 2331,
|
|
"loc": {
|
|
"start": {
|
|
"line": 82,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 82,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "new",
|
|
"keyword": "new",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "new",
|
|
"start": 2345,
|
|
"end": 2348,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "Promise",
|
|
"start": 2349,
|
|
"end": 2356,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2356,
|
|
"end": 2357,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2357,
|
|
"end": 2358,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "resolve",
|
|
"start": 2358,
|
|
"end": 2365,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2365,
|
|
"end": 2366,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "reject",
|
|
"start": 2367,
|
|
"end": 2373,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2373,
|
|
"end": 2374,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2375,
|
|
"end": 2377,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2378,
|
|
"end": 2379,
|
|
"loc": {
|
|
"start": {
|
|
"line": 83,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 83,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "setTimeout",
|
|
"start": 2397,
|
|
"end": 2407,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2407,
|
|
"end": 2408,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "reject",
|
|
"start": 2408,
|
|
"end": 2414,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2414,
|
|
"end": 2415,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "G_IS_DEV",
|
|
"start": 2416,
|
|
"end": 2424,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "?",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2425,
|
|
"end": 2426,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 500,
|
|
"start": 2427,
|
|
"end": 2430,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 49
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2431,
|
|
"end": 2432,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 10000,
|
|
"start": 2433,
|
|
"end": 2438,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 57
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2438,
|
|
"end": 2439,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2439,
|
|
"end": 2440,
|
|
"loc": {
|
|
"start": {
|
|
"line": 84,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 84,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2454,
|
|
"end": 2455,
|
|
"loc": {
|
|
"start": {
|
|
"line": 85,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2455,
|
|
"end": 2456,
|
|
"loc": {
|
|
"start": {
|
|
"line": 85,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2456,
|
|
"end": 2457,
|
|
"loc": {
|
|
"start": {
|
|
"line": 85,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 85,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "new",
|
|
"keyword": "new",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "new",
|
|
"start": 2473,
|
|
"end": 2476,
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "Promise",
|
|
"start": 2477,
|
|
"end": 2484,
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2484,
|
|
"end": 2485,
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "resolve",
|
|
"start": 2485,
|
|
"end": 2492,
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2493,
|
|
"end": 2495,
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2496,
|
|
"end": 2497,
|
|
"loc": {
|
|
"start": {
|
|
"line": 87,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 87,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 2515,
|
|
"end": 2520,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2520,
|
|
"end": 2521,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "onload",
|
|
"start": 2521,
|
|
"end": 2527,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 2528,
|
|
"end": 2529,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2530,
|
|
"end": 2531,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2531,
|
|
"end": 2532,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2533,
|
|
"end": 2535,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2536,
|
|
"end": 2537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 88,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 88,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 2559,
|
|
"end": 2564,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2564,
|
|
"end": 2565,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "onerror",
|
|
"start": 2565,
|
|
"end": 2572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 2573,
|
|
"end": 2574,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "null",
|
|
"keyword": "null",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "null",
|
|
"start": 2575,
|
|
"end": 2579,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2579,
|
|
"end": 2580,
|
|
"loc": {
|
|
"start": {
|
|
"line": 89,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 89,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 2602,
|
|
"end": 2607,
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2607,
|
|
"end": 2608,
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "onload",
|
|
"start": 2608,
|
|
"end": 2614,
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 2615,
|
|
"end": 2616,
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "null",
|
|
"keyword": "null",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "null",
|
|
"start": 2617,
|
|
"end": 2621,
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2621,
|
|
"end": 2622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 90,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 90,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 2646,
|
|
"end": 2648,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2649,
|
|
"end": 2650,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "typeof",
|
|
"keyword": "typeof",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "typeof",
|
|
"start": 2650,
|
|
"end": 2656,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 2657,
|
|
"end": 2662,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2662,
|
|
"end": 2663,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "decode",
|
|
"start": 2663,
|
|
"end": 2669,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "==/!=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": 6,
|
|
"updateContext": null
|
|
},
|
|
"value": "===",
|
|
"start": 2670,
|
|
"end": 2673,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 44
|
|
},
|
|
"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": "function",
|
|
"start": 2674,
|
|
"end": 2684,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2684,
|
|
"end": 2685,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2686,
|
|
"end": 2687,
|
|
"loc": {
|
|
"start": {
|
|
"line": 92,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 92,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " SAFARI: Image.decode() fails on safari with svgs -> we dont want to fail",
|
|
"start": 2713,
|
|
"end": 2788,
|
|
"loc": {
|
|
"start": {
|
|
"line": 93,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 93,
|
|
"column": 99
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " on that",
|
|
"start": 2814,
|
|
"end": 2824,
|
|
"loc": {
|
|
"start": {
|
|
"line": 94,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 94,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " FIREFOX: Decode never returns if the image is in cache, so call it in background",
|
|
"start": 2850,
|
|
"end": 2933,
|
|
"loc": {
|
|
"start": {
|
|
"line": 95,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 95,
|
|
"column": 107
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 2959,
|
|
"end": 2964,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2964,
|
|
"end": 2965,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "decode",
|
|
"start": 2965,
|
|
"end": 2971,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2971,
|
|
"end": 2972,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2972,
|
|
"end": 2973,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 2973,
|
|
"end": 2974,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "then",
|
|
"start": 2974,
|
|
"end": 2978,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 2978,
|
|
"end": 2979,
|
|
"loc": {
|
|
"start": {
|
|
"line": 96,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 96,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3009,
|
|
"end": 3010,
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 97,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3010,
|
|
"end": 3011,
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 97,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3012,
|
|
"end": 3014,
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 97,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "null",
|
|
"keyword": "null",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "null",
|
|
"start": 3015,
|
|
"end": 3019,
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 97,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3019,
|
|
"end": 3020,
|
|
"loc": {
|
|
"start": {
|
|
"line": 97,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 97,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3050,
|
|
"end": 3051,
|
|
"loc": {
|
|
"start": {
|
|
"line": 98,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 98,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3051,
|
|
"end": 3052,
|
|
"loc": {
|
|
"start": {
|
|
"line": 98,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 98,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3053,
|
|
"end": 3055,
|
|
"loc": {
|
|
"start": {
|
|
"line": 98,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 98,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "null",
|
|
"keyword": "null",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "null",
|
|
"start": 3056,
|
|
"end": 3060,
|
|
"loc": {
|
|
"start": {
|
|
"line": 98,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 98,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3086,
|
|
"end": 3087,
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 99,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3087,
|
|
"end": 3088,
|
|
"loc": {
|
|
"start": {
|
|
"line": 99,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 99,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3110,
|
|
"end": 3111,
|
|
"loc": {
|
|
"start": {
|
|
"line": 100,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 100,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "resolve",
|
|
"start": 3133,
|
|
"end": 3140,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3140,
|
|
"end": 3141,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 3141,
|
|
"end": 3146,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3146,
|
|
"end": 3147,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3147,
|
|
"end": 3148,
|
|
"loc": {
|
|
"start": {
|
|
"line": 101,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 101,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3166,
|
|
"end": 3167,
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3167,
|
|
"end": 3168,
|
|
"loc": {
|
|
"start": {
|
|
"line": 102,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 102,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 3188,
|
|
"end": 3193,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3193,
|
|
"end": 3194,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "onerror",
|
|
"start": 3194,
|
|
"end": 3201,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 3202,
|
|
"end": 3203,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "reason",
|
|
"start": 3204,
|
|
"end": 3210,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3211,
|
|
"end": 3213,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3214,
|
|
"end": 3215,
|
|
"loc": {
|
|
"start": {
|
|
"line": 104,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 104,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "logger",
|
|
"start": 3237,
|
|
"end": 3243,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3243,
|
|
"end": 3244,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "warn",
|
|
"start": 3244,
|
|
"end": 3248,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3248,
|
|
"end": 3249,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "Failed to load '",
|
|
"start": 3249,
|
|
"end": 3267,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "+",
|
|
"start": 3268,
|
|
"end": 3269,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "url",
|
|
"start": 3270,
|
|
"end": 3273,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "+",
|
|
"start": 3274,
|
|
"end": 3275,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "':",
|
|
"start": 3276,
|
|
"end": 3280,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 63
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3280,
|
|
"end": 3281,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 63
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 64
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "reason",
|
|
"start": 3282,
|
|
"end": 3288,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 65
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3288,
|
|
"end": 3289,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 71
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 72
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3289,
|
|
"end": 3290,
|
|
"loc": {
|
|
"start": {
|
|
"line": 105,
|
|
"column": 72
|
|
},
|
|
"end": {
|
|
"line": 105,
|
|
"column": 73
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 3312,
|
|
"end": 3314,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3315,
|
|
"end": 3316,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "++/--",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": true,
|
|
"binop": null
|
|
},
|
|
"value": "++",
|
|
"start": 3316,
|
|
"end": 3318,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "triesSoFar",
|
|
"start": 3318,
|
|
"end": 3328,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "</>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": 7,
|
|
"updateContext": null
|
|
},
|
|
"value": "<",
|
|
"start": 3329,
|
|
"end": 3330,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 4,
|
|
"start": 3331,
|
|
"end": 3332,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3332,
|
|
"end": 3333,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3334,
|
|
"end": 3335,
|
|
"loc": {
|
|
"start": {
|
|
"line": 106,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 106,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "logger",
|
|
"start": 3361,
|
|
"end": 3367,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3367,
|
|
"end": 3368,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "log",
|
|
"start": 3368,
|
|
"end": 3371,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3371,
|
|
"end": 3372,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "Retrying to load image from",
|
|
"start": 3372,
|
|
"end": 3401,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 64
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3401,
|
|
"end": 3402,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 64
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 65
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "url",
|
|
"start": 3403,
|
|
"end": 3406,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3406,
|
|
"end": 3407,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 69
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 70
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3407,
|
|
"end": 3408,
|
|
"loc": {
|
|
"start": {
|
|
"line": 107,
|
|
"column": 70
|
|
},
|
|
"end": {
|
|
"line": 107,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 3434,
|
|
"end": 3439,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3439,
|
|
"end": 3440,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "src",
|
|
"start": 3440,
|
|
"end": 3443,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 3444,
|
|
"end": 3445,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "url",
|
|
"start": 3446,
|
|
"end": 3449,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "+",
|
|
"start": 3450,
|
|
"end": 3451,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "?try=",
|
|
"start": 3452,
|
|
"end": 3459,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 49
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "+/-",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": 9,
|
|
"updateContext": null
|
|
},
|
|
"value": "+",
|
|
"start": 3460,
|
|
"end": 3461,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "triesSoFar",
|
|
"start": 3462,
|
|
"end": 3472,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 62
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3472,
|
|
"end": 3473,
|
|
"loc": {
|
|
"start": {
|
|
"line": 108,
|
|
"column": 62
|
|
},
|
|
"end": {
|
|
"line": 108,
|
|
"column": 63
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3495,
|
|
"end": 3496,
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "else",
|
|
"keyword": "else",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "else",
|
|
"start": 3497,
|
|
"end": 3501,
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3502,
|
|
"end": 3503,
|
|
"loc": {
|
|
"start": {
|
|
"line": 109,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 109,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "logger",
|
|
"start": 3529,
|
|
"end": 3535,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3535,
|
|
"end": 3536,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "warn",
|
|
"start": 3536,
|
|
"end": 3540,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3540,
|
|
"end": 3541,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "Failed to load",
|
|
"start": 3541,
|
|
"end": 3557,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3557,
|
|
"end": 3558,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "url",
|
|
"start": 3559,
|
|
"end": 3562,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 57
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3562,
|
|
"end": 3563,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "after",
|
|
"start": 3564,
|
|
"end": 3571,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 59
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 66
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3571,
|
|
"end": 3572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "triesSoFar",
|
|
"start": 3573,
|
|
"end": 3583,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 78
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3583,
|
|
"end": 3584,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 78
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 79
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "tries with reason",
|
|
"start": 3585,
|
|
"end": 3604,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 80
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 99
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3604,
|
|
"end": 3605,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 99
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 100
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "reason",
|
|
"start": 3606,
|
|
"end": 3612,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 101
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 107
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3612,
|
|
"end": 3613,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 107
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 108
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3613,
|
|
"end": 3614,
|
|
"loc": {
|
|
"start": {
|
|
"line": 110,
|
|
"column": 108
|
|
},
|
|
"end": {
|
|
"line": 110,
|
|
"column": 109
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 3640,
|
|
"end": 3645,
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3645,
|
|
"end": 3646,
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "onerror",
|
|
"start": 3646,
|
|
"end": 3653,
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 3654,
|
|
"end": 3655,
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "null",
|
|
"keyword": "null",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "null",
|
|
"start": 3656,
|
|
"end": 3660,
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3660,
|
|
"end": 3661,
|
|
"loc": {
|
|
"start": {
|
|
"line": 111,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 111,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 3687,
|
|
"end": 3692,
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3692,
|
|
"end": 3693,
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "onload",
|
|
"start": 3693,
|
|
"end": 3699,
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 3700,
|
|
"end": 3701,
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "null",
|
|
"keyword": "null",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "null",
|
|
"start": 3702,
|
|
"end": 3706,
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3706,
|
|
"end": 3707,
|
|
"loc": {
|
|
"start": {
|
|
"line": 112,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 112,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "resolve",
|
|
"start": 3733,
|
|
"end": 3740,
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3740,
|
|
"end": 3741,
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "null",
|
|
"keyword": "null",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "null",
|
|
"start": 3741,
|
|
"end": 3745,
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3745,
|
|
"end": 3746,
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3746,
|
|
"end": 3747,
|
|
"loc": {
|
|
"start": {
|
|
"line": 113,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 113,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3769,
|
|
"end": 3770,
|
|
"loc": {
|
|
"start": {
|
|
"line": 114,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 114,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3788,
|
|
"end": 3789,
|
|
"loc": {
|
|
"start": {
|
|
"line": 115,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3789,
|
|
"end": 3790,
|
|
"loc": {
|
|
"start": {
|
|
"line": 115,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 115,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 3810,
|
|
"end": 3815,
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3815,
|
|
"end": 3816,
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "src",
|
|
"start": 3816,
|
|
"end": 3819,
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 3820,
|
|
"end": 3821,
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "url",
|
|
"start": 3822,
|
|
"end": 3825,
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3825,
|
|
"end": 3826,
|
|
"loc": {
|
|
"start": {
|
|
"line": 117,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 117,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3840,
|
|
"end": 3841,
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3841,
|
|
"end": 3842,
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3842,
|
|
"end": 3843,
|
|
"loc": {
|
|
"start": {
|
|
"line": 118,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 118,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "]",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3853,
|
|
"end": 3854,
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3854,
|
|
"end": 3855,
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 3855,
|
|
"end": 3856,
|
|
"loc": {
|
|
"start": {
|
|
"line": 119,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 119,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3862,
|
|
"end": 3863,
|
|
"loc": {
|
|
"start": {
|
|
"line": 120,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 120,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Preloads a sprite\r\n * @param {string} key\r\n * @returns {Promise<void>}\r\n ",
|
|
"start": 3871,
|
|
"end": 3970,
|
|
"loc": {
|
|
"start": {
|
|
"line": 122,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 126,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "preloadCSSSprite",
|
|
"start": 3976,
|
|
"end": 3992,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3992,
|
|
"end": 3993,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "key",
|
|
"start": 3993,
|
|
"end": 3996,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3996,
|
|
"end": 3997,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 3998,
|
|
"end": 3999,
|
|
"loc": {
|
|
"start": {
|
|
"line": 127,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 127,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "return",
|
|
"keyword": "return",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "return",
|
|
"start": 4009,
|
|
"end": 4015,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"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": 4016,
|
|
"end": 4020,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4020,
|
|
"end": 4021,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "internalPreloadImage",
|
|
"start": 4021,
|
|
"end": 4041,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4041,
|
|
"end": 4042,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "key",
|
|
"start": 4042,
|
|
"end": 4045,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4045,
|
|
"end": 4046,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4046,
|
|
"end": 4047,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "then",
|
|
"start": 4047,
|
|
"end": 4051,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4051,
|
|
"end": 4052,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 4052,
|
|
"end": 4057,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4058,
|
|
"end": 4060,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4061,
|
|
"end": 4062,
|
|
"loc": {
|
|
"start": {
|
|
"line": 128,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 128,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 4076,
|
|
"end": 4078,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4079,
|
|
"end": 4080,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "key",
|
|
"start": 4080,
|
|
"end": 4083,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4083,
|
|
"end": 4084,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "indexOf",
|
|
"start": 4084,
|
|
"end": 4091,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4091,
|
|
"end": 4092,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "game_misc",
|
|
"start": 4092,
|
|
"end": 4103,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4103,
|
|
"end": 4104,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "</>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": 7,
|
|
"updateContext": null
|
|
},
|
|
"value": ">=",
|
|
"start": 4105,
|
|
"end": 4107,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 0,
|
|
"start": 4108,
|
|
"end": 4109,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4109,
|
|
"end": 4110,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4111,
|
|
"end": 4112,
|
|
"loc": {
|
|
"start": {
|
|
"line": 129,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 129,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " Allow access to regular sprites",
|
|
"start": 4130,
|
|
"end": 4164,
|
|
"loc": {
|
|
"start": {
|
|
"line": 130,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 130,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "this",
|
|
"keyword": "this",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "this",
|
|
"start": 4182,
|
|
"end": 4186,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4186,
|
|
"end": 4187,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprites",
|
|
"start": 4187,
|
|
"end": 4194,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4194,
|
|
"end": 4195,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "set",
|
|
"start": 4195,
|
|
"end": 4198,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4198,
|
|
"end": 4199,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "key",
|
|
"start": 4199,
|
|
"end": 4202,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4202,
|
|
"end": 4203,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "new",
|
|
"keyword": "new",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "new",
|
|
"start": 4204,
|
|
"end": 4207,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "RegularSprite",
|
|
"start": 4208,
|
|
"end": 4221,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4221,
|
|
"end": 4222,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 4222,
|
|
"end": 4227,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 56
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 61
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4227,
|
|
"end": 4228,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 61
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 62
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 4229,
|
|
"end": 4234,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 63
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 68
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4234,
|
|
"end": 4235,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "width",
|
|
"start": 4235,
|
|
"end": 4240,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 69
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 74
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4240,
|
|
"end": 4241,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 74
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 75
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 4242,
|
|
"end": 4247,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 76
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 81
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4247,
|
|
"end": 4248,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 81
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 82
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "height",
|
|
"start": 4248,
|
|
"end": 4254,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 82
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 88
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4254,
|
|
"end": 4255,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 88
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 89
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4255,
|
|
"end": 4256,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 89
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 90
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4256,
|
|
"end": 4257,
|
|
"loc": {
|
|
"start": {
|
|
"line": 131,
|
|
"column": 90
|
|
},
|
|
"end": {
|
|
"line": 131,
|
|
"column": 91
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4271,
|
|
"end": 4272,
|
|
"loc": {
|
|
"start": {
|
|
"line": 132,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 132,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "this",
|
|
"keyword": "this",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "this",
|
|
"start": 4286,
|
|
"end": 4290,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4290,
|
|
"end": 4291,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "rawImages",
|
|
"start": 4291,
|
|
"end": 4300,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4300,
|
|
"end": 4301,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "push",
|
|
"start": 4301,
|
|
"end": 4305,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4305,
|
|
"end": 4306,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 4306,
|
|
"end": 4311,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4311,
|
|
"end": 4312,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4312,
|
|
"end": 4313,
|
|
"loc": {
|
|
"start": {
|
|
"line": 133,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 133,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4323,
|
|
"end": 4324,
|
|
"loc": {
|
|
"start": {
|
|
"line": 134,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4324,
|
|
"end": 4325,
|
|
"loc": {
|
|
"start": {
|
|
"line": 134,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4325,
|
|
"end": 4326,
|
|
"loc": {
|
|
"start": {
|
|
"line": 134,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 134,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4332,
|
|
"end": 4333,
|
|
"loc": {
|
|
"start": {
|
|
"line": 135,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 135,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Preloads an atlas\r\n * @param {import(\"./atlas_definitions\").AtlasDefinition} atlas\r\n * @returns {Promise<void>}\r\n ",
|
|
"start": 4341,
|
|
"end": 4481,
|
|
"loc": {
|
|
"start": {
|
|
"line": 137,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 141,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "preloadAtlas",
|
|
"start": 4487,
|
|
"end": 4499,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4499,
|
|
"end": 4500,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "atlas",
|
|
"start": 4500,
|
|
"end": 4505,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4505,
|
|
"end": 4506,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4507,
|
|
"end": 4508,
|
|
"loc": {
|
|
"start": {
|
|
"line": 142,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 142,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "return",
|
|
"keyword": "return",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "return",
|
|
"start": 4518,
|
|
"end": 4524,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"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": 4525,
|
|
"end": 4529,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4529,
|
|
"end": 4530,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "internalPreloadImage",
|
|
"start": 4530,
|
|
"end": 4550,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4550,
|
|
"end": 4551,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "atlas",
|
|
"start": 4551,
|
|
"end": 4556,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4556,
|
|
"end": 4557,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "getFullSourcePath",
|
|
"start": 4557,
|
|
"end": 4574,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 64
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4574,
|
|
"end": 4575,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 64
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 65
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4575,
|
|
"end": 4576,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 65
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 66
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4576,
|
|
"end": 4577,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4577,
|
|
"end": 4578,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 67
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 68
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "then",
|
|
"start": 4578,
|
|
"end": 4582,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 68
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 72
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4582,
|
|
"end": 4583,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 72
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 73
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 4583,
|
|
"end": 4588,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 73
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 78
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4589,
|
|
"end": 4591,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 79
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 81
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4592,
|
|
"end": 4593,
|
|
"loc": {
|
|
"start": {
|
|
"line": 143,
|
|
"column": 82
|
|
},
|
|
"end": {
|
|
"line": 143,
|
|
"column": 83
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " @ts-ignore",
|
|
"start": 4607,
|
|
"end": 4620,
|
|
"loc": {
|
|
"start": {
|
|
"line": 144,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 144,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 4634,
|
|
"end": 4639,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4639,
|
|
"end": 4640,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "label",
|
|
"start": 4640,
|
|
"end": 4645,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 4646,
|
|
"end": 4647,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "atlas",
|
|
"start": 4648,
|
|
"end": 4653,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4653,
|
|
"end": 4654,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sourceFileName",
|
|
"start": 4654,
|
|
"end": 4668,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4668,
|
|
"end": 4669,
|
|
"loc": {
|
|
"start": {
|
|
"line": 145,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 145,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 4683,
|
|
"end": 4689,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"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": 4690,
|
|
"end": 4694,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4694,
|
|
"end": 4695,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "internalParseAtlas",
|
|
"start": 4695,
|
|
"end": 4713,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4713,
|
|
"end": 4714,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "atlas",
|
|
"start": 4714,
|
|
"end": 4719,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4719,
|
|
"end": 4720,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 49
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "image",
|
|
"start": 4721,
|
|
"end": 4726,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4726,
|
|
"end": 4727,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 56
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4727,
|
|
"end": 4728,
|
|
"loc": {
|
|
"start": {
|
|
"line": 146,
|
|
"column": 56
|
|
},
|
|
"end": {
|
|
"line": 146,
|
|
"column": 57
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4738,
|
|
"end": 4739,
|
|
"loc": {
|
|
"start": {
|
|
"line": 147,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 147,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4739,
|
|
"end": 4740,
|
|
"loc": {
|
|
"start": {
|
|
"line": 147,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 147,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4740,
|
|
"end": 4741,
|
|
"loc": {
|
|
"start": {
|
|
"line": 147,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 147,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4747,
|
|
"end": 4748,
|
|
"loc": {
|
|
"start": {
|
|
"line": 148,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 148,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n *\r\n * @param {import(\"./atlas_definitions\").AtlasDefinition} atlas\r\n * @param {HTMLImageElement} loadedImage\r\n ",
|
|
"start": 4756,
|
|
"end": 4891,
|
|
"loc": {
|
|
"start": {
|
|
"line": 150,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 154,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "internalParseAtlas",
|
|
"start": 4897,
|
|
"end": 4915,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4915,
|
|
"end": 4916,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4916,
|
|
"end": 4917,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "meta",
|
|
"start": 4918,
|
|
"end": 4922,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4922,
|
|
"end": 4923,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4924,
|
|
"end": 4925,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "scale",
|
|
"start": 4926,
|
|
"end": 4931,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4932,
|
|
"end": 4933,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4933,
|
|
"end": 4934,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sourceData",
|
|
"start": 4935,
|
|
"end": 4945,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4946,
|
|
"end": 4947,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4947,
|
|
"end": 4948,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "loadedImage",
|
|
"start": 4949,
|
|
"end": 4960,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 56
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4960,
|
|
"end": 4961,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 67
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"column": 68
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4962,
|
|
"end": 4963,
|
|
"loc": {
|
|
"start": {
|
|
"line": 155,
|
|
"column": 69
|
|
},
|
|
"end": {
|
|
"line": 155,
|
|
"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": 4973,
|
|
"end": 4977,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4977,
|
|
"end": 4978,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "rawImages",
|
|
"start": 4978,
|
|
"end": 4987,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 4987,
|
|
"end": 4988,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "push",
|
|
"start": 4988,
|
|
"end": 4992,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 4992,
|
|
"end": 4993,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "loadedImage",
|
|
"start": 4993,
|
|
"end": 5004,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5004,
|
|
"end": 5005,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5005,
|
|
"end": 5006,
|
|
"loc": {
|
|
"start": {
|
|
"line": 156,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 156,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 5018,
|
|
"end": 5021,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5022,
|
|
"end": 5023,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "const",
|
|
"keyword": "const",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "const",
|
|
"start": 5023,
|
|
"end": 5028,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "spriteName",
|
|
"start": 5029,
|
|
"end": 5039,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "in",
|
|
"keyword": "in",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": 7,
|
|
"updateContext": null
|
|
},
|
|
"value": "in",
|
|
"start": 5040,
|
|
"end": 5042,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sourceData",
|
|
"start": 5043,
|
|
"end": 5053,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5053,
|
|
"end": 5054,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5055,
|
|
"end": 5056,
|
|
"loc": {
|
|
"start": {
|
|
"line": 158,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 158,
|
|
"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": 5070,
|
|
"end": 5075,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5076,
|
|
"end": 5077,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "frame",
|
|
"start": 5078,
|
|
"end": 5083,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5083,
|
|
"end": 5084,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sourceSize",
|
|
"start": 5085,
|
|
"end": 5095,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5095,
|
|
"end": 5096,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "spriteSourceSize",
|
|
"start": 5097,
|
|
"end": 5113,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 55
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5114,
|
|
"end": 5115,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 56
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 57
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 5116,
|
|
"end": 5117,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sourceData",
|
|
"start": 5118,
|
|
"end": 5128,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 70
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "[",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5128,
|
|
"end": 5129,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 70
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "spriteName",
|
|
"start": 5129,
|
|
"end": 5139,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 71
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 81
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "]",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5139,
|
|
"end": 5140,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 81
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 82
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5140,
|
|
"end": 5141,
|
|
"loc": {
|
|
"start": {
|
|
"line": 159,
|
|
"column": 82
|
|
},
|
|
"end": {
|
|
"line": 159,
|
|
"column": 83
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 5157,
|
|
"end": 5160,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprite",
|
|
"start": 5161,
|
|
"end": 5167,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 5168,
|
|
"end": 5169,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "* @type {AtlasSprite} ",
|
|
"start": 5170,
|
|
"end": 5196,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5197,
|
|
"end": 5198,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"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": 5198,
|
|
"end": 5202,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 57
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5202,
|
|
"end": 5203,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprites",
|
|
"start": 5203,
|
|
"end": 5210,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 65
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5210,
|
|
"end": 5211,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 65
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 66
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "get",
|
|
"start": 5211,
|
|
"end": 5214,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 69
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5214,
|
|
"end": 5215,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 69
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 70
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "spriteName",
|
|
"start": 5215,
|
|
"end": 5225,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 70
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 80
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5225,
|
|
"end": 5226,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 80
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 81
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5226,
|
|
"end": 5227,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 81
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 82
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5227,
|
|
"end": 5228,
|
|
"loc": {
|
|
"start": {
|
|
"line": 161,
|
|
"column": 82
|
|
},
|
|
"end": {
|
|
"line": 161,
|
|
"column": 83
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 5244,
|
|
"end": 5246,
|
|
"loc": {
|
|
"start": {
|
|
"line": 163,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 163,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5247,
|
|
"end": 5248,
|
|
"loc": {
|
|
"start": {
|
|
"line": 163,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 163,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "prefix",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": true,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "!",
|
|
"start": 5248,
|
|
"end": 5249,
|
|
"loc": {
|
|
"start": {
|
|
"line": 163,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 163,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprite",
|
|
"start": 5249,
|
|
"end": 5255,
|
|
"loc": {
|
|
"start": {
|
|
"line": 163,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 163,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5255,
|
|
"end": 5256,
|
|
"loc": {
|
|
"start": {
|
|
"line": 163,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 163,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5257,
|
|
"end": 5258,
|
|
"loc": {
|
|
"start": {
|
|
"line": 163,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 163,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprite",
|
|
"start": 5276,
|
|
"end": 5282,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 5283,
|
|
"end": 5284,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "new",
|
|
"keyword": "new",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "new",
|
|
"start": 5285,
|
|
"end": 5288,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "AtlasSprite",
|
|
"start": 5289,
|
|
"end": 5300,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5300,
|
|
"end": 5301,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "spriteName",
|
|
"start": 5301,
|
|
"end": 5311,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5311,
|
|
"end": 5312,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5312,
|
|
"end": 5313,
|
|
"loc": {
|
|
"start": {
|
|
"line": 164,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 164,
|
|
"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": 5331,
|
|
"end": 5335,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5335,
|
|
"end": 5336,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprites",
|
|
"start": 5336,
|
|
"end": 5343,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5343,
|
|
"end": 5344,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "set",
|
|
"start": 5344,
|
|
"end": 5347,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5347,
|
|
"end": 5348,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "spriteName",
|
|
"start": 5348,
|
|
"end": 5358,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5358,
|
|
"end": 5359,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprite",
|
|
"start": 5360,
|
|
"end": 5366,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5366,
|
|
"end": 5367,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5367,
|
|
"end": 5368,
|
|
"loc": {
|
|
"start": {
|
|
"line": 165,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 165,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5382,
|
|
"end": 5383,
|
|
"loc": {
|
|
"start": {
|
|
"line": 166,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 166,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "const",
|
|
"keyword": "const",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "const",
|
|
"start": 5399,
|
|
"end": 5404,
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "link",
|
|
"start": 5405,
|
|
"end": 5409,
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 5410,
|
|
"end": 5411,
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "new",
|
|
"keyword": "new",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "new",
|
|
"start": 5412,
|
|
"end": 5415,
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "SpriteAtlasLink",
|
|
"start": 5416,
|
|
"end": 5431,
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5431,
|
|
"end": 5432,
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5432,
|
|
"end": 5433,
|
|
"loc": {
|
|
"start": {
|
|
"line": 168,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 168,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "packedX",
|
|
"start": 5451,
|
|
"end": 5458,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5458,
|
|
"end": 5459,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "frame",
|
|
"start": 5460,
|
|
"end": 5465,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5465,
|
|
"end": 5466,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "x",
|
|
"start": 5466,
|
|
"end": 5467,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5467,
|
|
"end": 5468,
|
|
"loc": {
|
|
"start": {
|
|
"line": 169,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 169,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "packedY",
|
|
"start": 5486,
|
|
"end": 5493,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5493,
|
|
"end": 5494,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "frame",
|
|
"start": 5495,
|
|
"end": 5500,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5500,
|
|
"end": 5501,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "y",
|
|
"start": 5501,
|
|
"end": 5502,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5502,
|
|
"end": 5503,
|
|
"loc": {
|
|
"start": {
|
|
"line": 170,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 170,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "packedW",
|
|
"start": 5521,
|
|
"end": 5528,
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5528,
|
|
"end": 5529,
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "frame",
|
|
"start": 5530,
|
|
"end": 5535,
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5535,
|
|
"end": 5536,
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "w",
|
|
"start": 5536,
|
|
"end": 5537,
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5537,
|
|
"end": 5538,
|
|
"loc": {
|
|
"start": {
|
|
"line": 171,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 171,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "packedH",
|
|
"start": 5556,
|
|
"end": 5563,
|
|
"loc": {
|
|
"start": {
|
|
"line": 172,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5563,
|
|
"end": 5564,
|
|
"loc": {
|
|
"start": {
|
|
"line": 172,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "frame",
|
|
"start": 5565,
|
|
"end": 5570,
|
|
"loc": {
|
|
"start": {
|
|
"line": 172,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5570,
|
|
"end": 5571,
|
|
"loc": {
|
|
"start": {
|
|
"line": 172,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "h",
|
|
"start": 5571,
|
|
"end": 5572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 172,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5572,
|
|
"end": 5573,
|
|
"loc": {
|
|
"start": {
|
|
"line": 172,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 172,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "packOffsetX",
|
|
"start": 5591,
|
|
"end": 5602,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 173,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5602,
|
|
"end": 5603,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 173,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "spriteSourceSize",
|
|
"start": 5604,
|
|
"end": 5620,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 173,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5620,
|
|
"end": 5621,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 173,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "x",
|
|
"start": 5621,
|
|
"end": 5622,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 173,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5622,
|
|
"end": 5623,
|
|
"loc": {
|
|
"start": {
|
|
"line": 173,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 173,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "packOffsetY",
|
|
"start": 5641,
|
|
"end": 5652,
|
|
"loc": {
|
|
"start": {
|
|
"line": 174,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 174,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5652,
|
|
"end": 5653,
|
|
"loc": {
|
|
"start": {
|
|
"line": 174,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 174,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "spriteSourceSize",
|
|
"start": 5654,
|
|
"end": 5670,
|
|
"loc": {
|
|
"start": {
|
|
"line": 174,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 174,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5670,
|
|
"end": 5671,
|
|
"loc": {
|
|
"start": {
|
|
"line": 174,
|
|
"column": 45
|
|
},
|
|
"end": {
|
|
"line": 174,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "y",
|
|
"start": 5671,
|
|
"end": 5672,
|
|
"loc": {
|
|
"start": {
|
|
"line": 174,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 174,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5672,
|
|
"end": 5673,
|
|
"loc": {
|
|
"start": {
|
|
"line": 174,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 174,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "atlas",
|
|
"start": 5691,
|
|
"end": 5696,
|
|
"loc": {
|
|
"start": {
|
|
"line": 175,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 175,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5696,
|
|
"end": 5697,
|
|
"loc": {
|
|
"start": {
|
|
"line": 175,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 175,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "loadedImage",
|
|
"start": 5698,
|
|
"end": 5709,
|
|
"loc": {
|
|
"start": {
|
|
"line": 175,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 175,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5709,
|
|
"end": 5710,
|
|
"loc": {
|
|
"start": {
|
|
"line": 175,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 175,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "w",
|
|
"start": 5728,
|
|
"end": 5729,
|
|
"loc": {
|
|
"start": {
|
|
"line": 176,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5729,
|
|
"end": 5730,
|
|
"loc": {
|
|
"start": {
|
|
"line": 176,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sourceSize",
|
|
"start": 5731,
|
|
"end": 5741,
|
|
"loc": {
|
|
"start": {
|
|
"line": 176,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5741,
|
|
"end": 5742,
|
|
"loc": {
|
|
"start": {
|
|
"line": 176,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "w",
|
|
"start": 5742,
|
|
"end": 5743,
|
|
"loc": {
|
|
"start": {
|
|
"line": 176,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5743,
|
|
"end": 5744,
|
|
"loc": {
|
|
"start": {
|
|
"line": 176,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 176,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "h",
|
|
"start": 5762,
|
|
"end": 5763,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5763,
|
|
"end": 5764,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sourceSize",
|
|
"start": 5765,
|
|
"end": 5775,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5775,
|
|
"end": 5776,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "h",
|
|
"start": 5776,
|
|
"end": 5777,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5777,
|
|
"end": 5778,
|
|
"loc": {
|
|
"start": {
|
|
"line": 177,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 177,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5792,
|
|
"end": 5793,
|
|
"loc": {
|
|
"start": {
|
|
"line": 178,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 178,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5793,
|
|
"end": 5794,
|
|
"loc": {
|
|
"start": {
|
|
"line": 178,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 178,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5794,
|
|
"end": 5795,
|
|
"loc": {
|
|
"start": {
|
|
"line": 178,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 178,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprite",
|
|
"start": 5809,
|
|
"end": 5815,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5815,
|
|
"end": 5816,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "linksByResolution",
|
|
"start": 5816,
|
|
"end": 5833,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "[",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5833,
|
|
"end": 5834,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "scale",
|
|
"start": 5834,
|
|
"end": 5839,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "]",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5839,
|
|
"end": 5840,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 5841,
|
|
"end": 5842,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 45
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "link",
|
|
"start": 5843,
|
|
"end": 5847,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 5847,
|
|
"end": 5848,
|
|
"loc": {
|
|
"start": {
|
|
"line": 179,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 179,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5858,
|
|
"end": 5859,
|
|
"loc": {
|
|
"start": {
|
|
"line": 180,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 180,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 5865,
|
|
"end": 5866,
|
|
"loc": {
|
|
"start": {
|
|
"line": 181,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 181,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentBlock",
|
|
"value": "*\r\n * Makes the canvas which shows the question mark, shown when a sprite was not found\r\n ",
|
|
"start": 5874,
|
|
"end": 5976,
|
|
"loc": {
|
|
"start": {
|
|
"line": 183,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 185,
|
|
"column": 7
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "makeSpriteNotFoundCanvas",
|
|
"start": 5982,
|
|
"end": 6006,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 186,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6006,
|
|
"end": 6007,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 186,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6007,
|
|
"end": 6008,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 186,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6009,
|
|
"end": 6010,
|
|
"loc": {
|
|
"start": {
|
|
"line": 186,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 186,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "const",
|
|
"keyword": "const",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "const",
|
|
"start": 6020,
|
|
"end": 6025,
|
|
"loc": {
|
|
"start": {
|
|
"line": 187,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 187,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "dims",
|
|
"start": 6026,
|
|
"end": 6030,
|
|
"loc": {
|
|
"start": {
|
|
"line": 187,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 187,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 6031,
|
|
"end": 6032,
|
|
"loc": {
|
|
"start": {
|
|
"line": 187,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 187,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 128,
|
|
"start": 6033,
|
|
"end": 6036,
|
|
"loc": {
|
|
"start": {
|
|
"line": 187,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 187,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6036,
|
|
"end": 6037,
|
|
"loc": {
|
|
"start": {
|
|
"line": 187,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 187,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"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": 6049,
|
|
"end": 6054,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "[",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6055,
|
|
"end": 6056,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "canvas",
|
|
"start": 6056,
|
|
"end": 6062,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6062,
|
|
"end": 6063,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "context",
|
|
"start": 6064,
|
|
"end": 6071,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "]",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6071,
|
|
"end": 6072,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 6073,
|
|
"end": 6074,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "makeOffscreenBuffer",
|
|
"start": 6075,
|
|
"end": 6094,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 53
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6094,
|
|
"end": 6095,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 53
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "dims",
|
|
"start": 6095,
|
|
"end": 6099,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 58
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6099,
|
|
"end": 6100,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 58
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 59
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "dims",
|
|
"start": 6101,
|
|
"end": 6105,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 60
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 64
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6105,
|
|
"end": 6106,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 64
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 65
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6107,
|
|
"end": 6108,
|
|
"loc": {
|
|
"start": {
|
|
"line": 189,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 189,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "smooth",
|
|
"start": 6122,
|
|
"end": 6128,
|
|
"loc": {
|
|
"start": {
|
|
"line": 190,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 190,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6128,
|
|
"end": 6129,
|
|
"loc": {
|
|
"start": {
|
|
"line": 190,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 190,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "false",
|
|
"keyword": "false",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "false",
|
|
"start": 6130,
|
|
"end": 6135,
|
|
"loc": {
|
|
"start": {
|
|
"line": 190,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 190,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6135,
|
|
"end": 6136,
|
|
"loc": {
|
|
"start": {
|
|
"line": 190,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 190,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "label",
|
|
"start": 6150,
|
|
"end": 6155,
|
|
"loc": {
|
|
"start": {
|
|
"line": 191,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 191,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6155,
|
|
"end": 6156,
|
|
"loc": {
|
|
"start": {
|
|
"line": 191,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 191,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "not-found-sprite",
|
|
"start": 6157,
|
|
"end": 6175,
|
|
"loc": {
|
|
"start": {
|
|
"line": 191,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 191,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6175,
|
|
"end": 6176,
|
|
"loc": {
|
|
"start": {
|
|
"line": 191,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 191,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6186,
|
|
"end": 6187,
|
|
"loc": {
|
|
"start": {
|
|
"line": 192,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 192,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6187,
|
|
"end": 6188,
|
|
"loc": {
|
|
"start": {
|
|
"line": 192,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 192,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6188,
|
|
"end": 6189,
|
|
"loc": {
|
|
"start": {
|
|
"line": 192,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 192,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "context",
|
|
"start": 6199,
|
|
"end": 6206,
|
|
"loc": {
|
|
"start": {
|
|
"line": 193,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 193,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6206,
|
|
"end": 6207,
|
|
"loc": {
|
|
"start": {
|
|
"line": 193,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 193,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "fillStyle",
|
|
"start": 6207,
|
|
"end": 6216,
|
|
"loc": {
|
|
"start": {
|
|
"line": 193,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 193,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 6217,
|
|
"end": 6218,
|
|
"loc": {
|
|
"start": {
|
|
"line": 193,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 193,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "#f77",
|
|
"start": 6219,
|
|
"end": 6225,
|
|
"loc": {
|
|
"start": {
|
|
"line": 193,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 193,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6225,
|
|
"end": 6226,
|
|
"loc": {
|
|
"start": {
|
|
"line": 193,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 193,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "context",
|
|
"start": 6236,
|
|
"end": 6243,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6243,
|
|
"end": 6244,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "fillRect",
|
|
"start": 6244,
|
|
"end": 6252,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6252,
|
|
"end": 6253,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"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": 6253,
|
|
"end": 6254,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6254,
|
|
"end": 6255,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 0,
|
|
"start": 6256,
|
|
"end": 6257,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6257,
|
|
"end": 6258,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "dims",
|
|
"start": 6259,
|
|
"end": 6263,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6263,
|
|
"end": 6264,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "dims",
|
|
"start": 6265,
|
|
"end": 6269,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6269,
|
|
"end": 6270,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 41
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6270,
|
|
"end": 6271,
|
|
"loc": {
|
|
"start": {
|
|
"line": 194,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 194,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "context",
|
|
"start": 6283,
|
|
"end": 6290,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6290,
|
|
"end": 6291,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "textAlign",
|
|
"start": 6291,
|
|
"end": 6300,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 6301,
|
|
"end": 6302,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "center",
|
|
"start": 6303,
|
|
"end": 6311,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6311,
|
|
"end": 6312,
|
|
"loc": {
|
|
"start": {
|
|
"line": 196,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 196,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "context",
|
|
"start": 6322,
|
|
"end": 6329,
|
|
"loc": {
|
|
"start": {
|
|
"line": 197,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6329,
|
|
"end": 6330,
|
|
"loc": {
|
|
"start": {
|
|
"line": 197,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "textBaseline",
|
|
"start": 6330,
|
|
"end": 6342,
|
|
"loc": {
|
|
"start": {
|
|
"line": 197,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 28
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 6343,
|
|
"end": 6344,
|
|
"loc": {
|
|
"start": {
|
|
"line": 197,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "middle",
|
|
"start": 6345,
|
|
"end": 6353,
|
|
"loc": {
|
|
"start": {
|
|
"line": 197,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6353,
|
|
"end": 6354,
|
|
"loc": {
|
|
"start": {
|
|
"line": 197,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 197,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "context",
|
|
"start": 6364,
|
|
"end": 6371,
|
|
"loc": {
|
|
"start": {
|
|
"line": 198,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 198,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6371,
|
|
"end": 6372,
|
|
"loc": {
|
|
"start": {
|
|
"line": 198,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 198,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "fillStyle",
|
|
"start": 6372,
|
|
"end": 6381,
|
|
"loc": {
|
|
"start": {
|
|
"line": 198,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 198,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 6382,
|
|
"end": 6383,
|
|
"loc": {
|
|
"start": {
|
|
"line": 198,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 198,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "#eee",
|
|
"start": 6384,
|
|
"end": 6390,
|
|
"loc": {
|
|
"start": {
|
|
"line": 198,
|
|
"column": 28
|
|
},
|
|
"end": {
|
|
"line": 198,
|
|
"column": 34
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6390,
|
|
"end": 6391,
|
|
"loc": {
|
|
"start": {
|
|
"line": 198,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 198,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "context",
|
|
"start": 6401,
|
|
"end": 6408,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 199,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6408,
|
|
"end": 6409,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 199,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "font",
|
|
"start": 6409,
|
|
"end": 6413,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 199,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 6414,
|
|
"end": 6415,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 199,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "25px Arial",
|
|
"start": 6416,
|
|
"end": 6428,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 199,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6428,
|
|
"end": 6429,
|
|
"loc": {
|
|
"start": {
|
|
"line": 199,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 199,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "context",
|
|
"start": 6439,
|
|
"end": 6446,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6446,
|
|
"end": 6447,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 16
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "fillText",
|
|
"start": 6447,
|
|
"end": 6455,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6455,
|
|
"end": 6456,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "???",
|
|
"start": 6456,
|
|
"end": 6461,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6461,
|
|
"end": 6462,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "dims",
|
|
"start": 6463,
|
|
"end": 6467,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "/",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": 10,
|
|
"updateContext": null
|
|
},
|
|
"value": "/",
|
|
"start": 6468,
|
|
"end": 6469,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 2,
|
|
"start": 6470,
|
|
"end": 6471,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 40
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6471,
|
|
"end": 6472,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 41
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "dims",
|
|
"start": 6473,
|
|
"end": 6477,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "/",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": 10,
|
|
"updateContext": null
|
|
},
|
|
"value": "/",
|
|
"start": 6478,
|
|
"end": 6479,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 2,
|
|
"start": 6480,
|
|
"end": 6481,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6481,
|
|
"end": 6482,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6482,
|
|
"end": 6483,
|
|
"loc": {
|
|
"start": {
|
|
"line": 200,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 200,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " TODO: Not sure why this is set here",
|
|
"start": 6495,
|
|
"end": 6533,
|
|
"loc": {
|
|
"start": {
|
|
"line": 202,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 202,
|
|
"column": 46
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " @ts-ignore",
|
|
"start": 6543,
|
|
"end": 6556,
|
|
"loc": {
|
|
"start": {
|
|
"line": 203,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 203,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "canvas",
|
|
"start": 6566,
|
|
"end": 6572,
|
|
"loc": {
|
|
"start": {
|
|
"line": 204,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 204,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6572,
|
|
"end": 6573,
|
|
"loc": {
|
|
"start": {
|
|
"line": 204,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 204,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "src",
|
|
"start": 6573,
|
|
"end": 6576,
|
|
"loc": {
|
|
"start": {
|
|
"line": 204,
|
|
"column": 15
|
|
},
|
|
"end": {
|
|
"line": 204,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 6577,
|
|
"end": 6578,
|
|
"loc": {
|
|
"start": {
|
|
"line": 204,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 204,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "not-found",
|
|
"start": 6579,
|
|
"end": 6590,
|
|
"loc": {
|
|
"start": {
|
|
"line": 204,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 204,
|
|
"column": 32
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6590,
|
|
"end": 6591,
|
|
"loc": {
|
|
"start": {
|
|
"line": 204,
|
|
"column": 32
|
|
},
|
|
"end": {
|
|
"line": 204,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "const",
|
|
"keyword": "const",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "const",
|
|
"start": 6603,
|
|
"end": 6608,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprite",
|
|
"start": 6609,
|
|
"end": 6615,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 20
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 6616,
|
|
"end": 6617,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "new",
|
|
"keyword": "new",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "new",
|
|
"start": 6618,
|
|
"end": 6621,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "AtlasSprite",
|
|
"start": 6622,
|
|
"end": 6633,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6633,
|
|
"end": 6634,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "not-found",
|
|
"start": 6634,
|
|
"end": 6645,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6645,
|
|
"end": 6646,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 50
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6646,
|
|
"end": 6647,
|
|
"loc": {
|
|
"start": {
|
|
"line": 206,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 206,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "[",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6657,
|
|
"end": 6658,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "0.1",
|
|
"start": 6658,
|
|
"end": 6663,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6663,
|
|
"end": 6664,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "0.25",
|
|
"start": 6665,
|
|
"end": 6671,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6671,
|
|
"end": 6672,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "0.5",
|
|
"start": 6673,
|
|
"end": 6678,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 24
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6678,
|
|
"end": 6679,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "0.75",
|
|
"start": 6680,
|
|
"end": 6686,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 31
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6686,
|
|
"end": 6687,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "string",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "1",
|
|
"start": 6688,
|
|
"end": 6691,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "]",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6691,
|
|
"end": 6692,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6692,
|
|
"end": 6693,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 43
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 44
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "forEach",
|
|
"start": 6693,
|
|
"end": 6700,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 51
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6700,
|
|
"end": 6701,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 52
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "resolution",
|
|
"start": 6701,
|
|
"end": 6711,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 52
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 62
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=>",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6712,
|
|
"end": 6714,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 63
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 65
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6715,
|
|
"end": 6716,
|
|
"loc": {
|
|
"start": {
|
|
"line": 207,
|
|
"column": 66
|
|
},
|
|
"end": {
|
|
"line": 207,
|
|
"column": 67
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprite",
|
|
"start": 6730,
|
|
"end": 6736,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6736,
|
|
"end": 6737,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 18
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "linksByResolution",
|
|
"start": 6737,
|
|
"end": 6754,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "[",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6754,
|
|
"end": 6755,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "resolution",
|
|
"start": 6755,
|
|
"end": 6765,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 47
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "]",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6765,
|
|
"end": 6766,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 47
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 48
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 6767,
|
|
"end": 6768,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 49
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 50
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "new",
|
|
"keyword": "new",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "new",
|
|
"start": 6769,
|
|
"end": 6772,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 51
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 54
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "SpriteAtlasLink",
|
|
"start": 6773,
|
|
"end": 6788,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 55
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 70
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6788,
|
|
"end": 6789,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 70
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 71
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "{",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 6789,
|
|
"end": 6790,
|
|
"loc": {
|
|
"start": {
|
|
"line": 208,
|
|
"column": 71
|
|
},
|
|
"end": {
|
|
"line": 208,
|
|
"column": 72
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "packedX",
|
|
"start": 6808,
|
|
"end": 6815,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6815,
|
|
"end": 6816,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 0,
|
|
"start": 6817,
|
|
"end": 6818,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6818,
|
|
"end": 6819,
|
|
"loc": {
|
|
"start": {
|
|
"line": 209,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 209,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "packedY",
|
|
"start": 6837,
|
|
"end": 6844,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6844,
|
|
"end": 6845,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "num",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": 0,
|
|
"start": 6846,
|
|
"end": 6847,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 26
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6847,
|
|
"end": 6848,
|
|
"loc": {
|
|
"start": {
|
|
"line": 210,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 210,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "w",
|
|
"start": 6866,
|
|
"end": 6867,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6867,
|
|
"end": 6868,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "dims",
|
|
"start": 6869,
|
|
"end": 6873,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6873,
|
|
"end": 6874,
|
|
"loc": {
|
|
"start": {
|
|
"line": 211,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 211,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "h",
|
|
"start": 6892,
|
|
"end": 6893,
|
|
"loc": {
|
|
"start": {
|
|
"line": 212,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 212,
|
|
"column": 17
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6893,
|
|
"end": 6894,
|
|
"loc": {
|
|
"start": {
|
|
"line": 212,
|
|
"column": 17
|
|
},
|
|
"end": {
|
|
"line": 212,
|
|
"column": 18
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "dims",
|
|
"start": 6895,
|
|
"end": 6899,
|
|
"loc": {
|
|
"start": {
|
|
"line": 212,
|
|
"column": 19
|
|
},
|
|
"end": {
|
|
"line": 212,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6899,
|
|
"end": 6900,
|
|
"loc": {
|
|
"start": {
|
|
"line": 212,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 212,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "packOffsetX",
|
|
"start": 6918,
|
|
"end": 6929,
|
|
"loc": {
|
|
"start": {
|
|
"line": 213,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 213,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6929,
|
|
"end": 6930,
|
|
"loc": {
|
|
"start": {
|
|
"line": 213,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 213,
|
|
"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": 6931,
|
|
"end": 6932,
|
|
"loc": {
|
|
"start": {
|
|
"line": 213,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 213,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6932,
|
|
"end": 6933,
|
|
"loc": {
|
|
"start": {
|
|
"line": 213,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 213,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "packOffsetY",
|
|
"start": 6951,
|
|
"end": 6962,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 27
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6962,
|
|
"end": 6963,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 27
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"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": 6964,
|
|
"end": 6965,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6965,
|
|
"end": 6966,
|
|
"loc": {
|
|
"start": {
|
|
"line": 214,
|
|
"column": 30
|
|
},
|
|
"end": {
|
|
"line": 214,
|
|
"column": 31
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "packedW",
|
|
"start": 6984,
|
|
"end": 6991,
|
|
"loc": {
|
|
"start": {
|
|
"line": 215,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 215,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6991,
|
|
"end": 6992,
|
|
"loc": {
|
|
"start": {
|
|
"line": 215,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 215,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "dims",
|
|
"start": 6993,
|
|
"end": 6997,
|
|
"loc": {
|
|
"start": {
|
|
"line": 215,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 215,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 6997,
|
|
"end": 6998,
|
|
"loc": {
|
|
"start": {
|
|
"line": 215,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 215,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "packedH",
|
|
"start": 7016,
|
|
"end": 7023,
|
|
"loc": {
|
|
"start": {
|
|
"line": 216,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 216,
|
|
"column": 23
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7023,
|
|
"end": 7024,
|
|
"loc": {
|
|
"start": {
|
|
"line": 216,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 216,
|
|
"column": 24
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "dims",
|
|
"start": 7025,
|
|
"end": 7029,
|
|
"loc": {
|
|
"start": {
|
|
"line": 216,
|
|
"column": 25
|
|
},
|
|
"end": {
|
|
"line": 216,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7029,
|
|
"end": 7030,
|
|
"loc": {
|
|
"start": {
|
|
"line": 216,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 216,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "atlas",
|
|
"start": 7048,
|
|
"end": 7053,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 16
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ":",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7053,
|
|
"end": 7054,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 22
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "canvas",
|
|
"start": 7055,
|
|
"end": 7061,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 23
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 29
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ",",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7061,
|
|
"end": 7062,
|
|
"loc": {
|
|
"start": {
|
|
"line": 217,
|
|
"column": 29
|
|
},
|
|
"end": {
|
|
"line": 217,
|
|
"column": 30
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7076,
|
|
"end": 7077,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7077,
|
|
"end": 7078,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 14
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7078,
|
|
"end": 7079,
|
|
"loc": {
|
|
"start": {
|
|
"line": 218,
|
|
"column": 14
|
|
},
|
|
"end": {
|
|
"line": 218,
|
|
"column": 15
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7089,
|
|
"end": 7090,
|
|
"loc": {
|
|
"start": {
|
|
"line": 219,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 219,
|
|
"column": 9
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7090,
|
|
"end": 7091,
|
|
"loc": {
|
|
"start": {
|
|
"line": 219,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 219,
|
|
"column": 10
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7091,
|
|
"end": 7092,
|
|
"loc": {
|
|
"start": {
|
|
"line": 219,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 219,
|
|
"column": 11
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "this",
|
|
"keyword": "this",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "this",
|
|
"start": 7104,
|
|
"end": 7108,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ".",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7108,
|
|
"end": 7109,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 13
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "spriteNotFoundSprite",
|
|
"start": 7109,
|
|
"end": 7129,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 33
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 7130,
|
|
"end": 7131,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 34
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 35
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "sprite",
|
|
"start": 7132,
|
|
"end": 7138,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 42
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7138,
|
|
"end": 7139,
|
|
"loc": {
|
|
"start": {
|
|
"line": 221,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 221,
|
|
"column": 43
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7145,
|
|
"end": 7146,
|
|
"loc": {
|
|
"start": {
|
|
"line": 222,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 222,
|
|
"column": 5
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "}",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7148,
|
|
"end": 7149,
|
|
"loc": {
|
|
"start": {
|
|
"line": 223,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 223,
|
|
"column": 1
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "export",
|
|
"keyword": "export",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "export",
|
|
"start": 7153,
|
|
"end": 7159,
|
|
"loc": {
|
|
"start": {
|
|
"line": 225,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 225,
|
|
"column": 6
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "const",
|
|
"keyword": "const",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "const",
|
|
"start": 7160,
|
|
"end": 7165,
|
|
"loc": {
|
|
"start": {
|
|
"line": 225,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 225,
|
|
"column": 12
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "Loader",
|
|
"start": 7166,
|
|
"end": 7172,
|
|
"loc": {
|
|
"start": {
|
|
"line": 225,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 225,
|
|
"column": 19
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "=",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": true,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "=",
|
|
"start": 7173,
|
|
"end": 7174,
|
|
"loc": {
|
|
"start": {
|
|
"line": 225,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 225,
|
|
"column": 21
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "new",
|
|
"keyword": "new",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"value": "new",
|
|
"start": 7175,
|
|
"end": 7178,
|
|
"loc": {
|
|
"start": {
|
|
"line": 225,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 225,
|
|
"column": 25
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "name",
|
|
"beforeExpr": false,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"value": "LoaderImpl",
|
|
"start": 7179,
|
|
"end": 7189,
|
|
"loc": {
|
|
"start": {
|
|
"line": 225,
|
|
"column": 26
|
|
},
|
|
"end": {
|
|
"line": 225,
|
|
"column": 36
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "(",
|
|
"beforeExpr": true,
|
|
"startsExpr": true,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7189,
|
|
"end": 7190,
|
|
"loc": {
|
|
"start": {
|
|
"line": 225,
|
|
"column": 36
|
|
},
|
|
"end": {
|
|
"line": 225,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ")",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null
|
|
},
|
|
"start": 7190,
|
|
"end": 7191,
|
|
"loc": {
|
|
"start": {
|
|
"line": 225,
|
|
"column": 37
|
|
},
|
|
"end": {
|
|
"line": 225,
|
|
"column": 38
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": ";",
|
|
"beforeExpr": true,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7191,
|
|
"end": 7192,
|
|
"loc": {
|
|
"start": {
|
|
"line": 225,
|
|
"column": 38
|
|
},
|
|
"end": {
|
|
"line": 225,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": {
|
|
"label": "eof",
|
|
"beforeExpr": false,
|
|
"startsExpr": false,
|
|
"rightAssociative": false,
|
|
"isLoop": false,
|
|
"isAssign": false,
|
|
"prefix": false,
|
|
"postfix": false,
|
|
"binop": null,
|
|
"updateContext": null
|
|
},
|
|
"start": 7192,
|
|
"end": 7192,
|
|
"loc": {
|
|
"start": {
|
|
"line": 225,
|
|
"column": 39
|
|
},
|
|
"end": {
|
|
"line": 225,
|
|
"column": 39
|
|
}
|
|
}
|
|
}
|
|
]
|
|
} |