1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00
tobspr_shapez.io/docs/ast/source/game/base_item.js.json
2021-02-26 15:20:37 +01:00

8863 lines
212 KiB
JSON

{
"type": "File",
"start": 0,
"end": 2401,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 103,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 2401,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 103,
"column": 1
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 46,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 46
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 9,
"end": 21,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 21
}
},
"imported": {
"type": "Identifier",
"start": 9,
"end": 21,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 21
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"local": {
"type": "Identifier",
"start": 9,
"end": 21,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 21
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
}
}
],
"source": {
"type": "StringLiteral",
"start": 29,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 29
},
"end": {
"line": 1,
"column": 45
}
},
"extra": {
"rawValue": "../core/config",
"raw": "\"../core/config\""
},
"value": "../core/config"
}
},
{
"type": "ImportDeclaration",
"start": 48,
"end": 105,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 57
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 57,
"end": 71,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 23
}
},
"imported": {
"type": "Identifier",
"start": 57,
"end": 71,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 23
},
"identifierName": "DrawParameters"
},
"name": "DrawParameters"
},
"local": {
"type": "Identifier",
"start": 57,
"end": 71,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 23
},
"identifierName": "DrawParameters"
},
"name": "DrawParameters"
}
}
],
"source": {
"type": "StringLiteral",
"start": 79,
"end": 104,
"loc": {
"start": {
"line": 2,
"column": 31
},
"end": {
"line": 2,
"column": 56
}
},
"extra": {
"rawValue": "../core/draw_parameters",
"raw": "\"../core/draw_parameters\""
},
"value": "../core/draw_parameters"
}
},
{
"type": "ImportDeclaration",
"start": 107,
"end": 175,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 68
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 116,
"end": 139,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 32
}
},
"imported": {
"type": "Identifier",
"start": 116,
"end": 139,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 32
},
"identifierName": "BasicSerializableObject"
},
"name": "BasicSerializableObject"
},
"local": {
"type": "Identifier",
"start": 116,
"end": 139,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 32
},
"identifierName": "BasicSerializableObject"
},
"name": "BasicSerializableObject"
}
}
],
"source": {
"type": "StringLiteral",
"start": 147,
"end": 174,
"loc": {
"start": {
"line": 3,
"column": 40
},
"end": {
"line": 3,
"column": 67
}
},
"extra": {
"rawValue": "../savegame/serialization",
"raw": "\"../savegame/serialization\""
},
"value": "../savegame/serialization"
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Class for items on belts etc. Not an entity for performance reasons\r\n ",
"start": 179,
"end": 259,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 261,
"end": 2401,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 103,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "ClassDeclaration",
"start": 268,
"end": 2401,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 103,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 274,
"end": 282,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 21
},
"identifierName": "BaseItem"
},
"name": "BaseItem",
"leadingComments": null
},
"superClass": {
"type": "Identifier",
"start": 291,
"end": 314,
"loc": {
"start": {
"line": 8,
"column": 30
},
"end": {
"line": 8,
"column": 53
},
"identifierName": "BasicSerializableObject"
},
"name": "BasicSerializableObject"
},
"body": {
"type": "ClassBody",
"start": 315,
"end": 2401,
"loc": {
"start": {
"line": 8,
"column": 54
},
"end": {
"line": 103,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 322,
"end": 362,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 11,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 322,
"end": 333,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor"
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 336,
"end": 362,
"loc": {
"start": {
"line": 9,
"column": 18
},
"end": {
"line": 11,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 347,
"end": 355,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 16
}
},
"expression": {
"type": "CallExpression",
"start": 347,
"end": 354,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 15
}
},
"callee": {
"type": "Super",
"start": 347,
"end": 352,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 13
}
}
},
"arguments": []
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 370,
"end": 422,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 15,
"column": 5
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 377,
"end": 382,
"loc": {
"start": {
"line": 13,
"column": 11
},
"end": {
"line": 13,
"column": 16
},
"identifierName": "getId"
},
"name": "getId"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 385,
"end": 422,
"loc": {
"start": {
"line": 13,
"column": 19
},
"end": {
"line": 15,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 396,
"end": 415,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 27
}
},
"argument": {
"type": "StringLiteral",
"start": 403,
"end": 414,
"loc": {
"start": {
"line": 14,
"column": 15
},
"end": {
"line": 14,
"column": 26
}
},
"extra": {
"rawValue": "base_item",
"raw": "\"base_item\""
},
"value": "base_item"
}
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "* @returns {object} ",
"start": 430,
"end": 454,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 28
}
}
}
]
},
{
"type": "ClassMethod",
"start": 460,
"end": 507,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 20,
"column": 5
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 467,
"end": 476,
"loc": {
"start": {
"line": 18,
"column": 11
},
"end": {
"line": 18,
"column": 20
},
"identifierName": "getSchema"
},
"name": "getSchema"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 479,
"end": 507,
"loc": {
"start": {
"line": 18,
"column": 23
},
"end": {
"line": 20,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 490,
"end": 500,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 18
}
},
"argument": {
"type": "ObjectExpression",
"start": 497,
"end": 499,
"loc": {
"start": {
"line": 19,
"column": 15
},
"end": {
"line": 19,
"column": 17
}
},
"properties": []
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @returns {object} ",
"start": 430,
"end": 454,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 28
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "* @returns {ItemType} *",
"start": 515,
"end": 542,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 31
}
}
}
]
},
{
"type": "ClassMethod",
"start": 548,
"end": 614,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 26,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 548,
"end": 559,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 15
},
"identifierName": "getItemType"
},
"name": "getItemType",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 562,
"end": 614,
"loc": {
"start": {
"line": 23,
"column": 18
},
"end": {
"line": 26,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 573,
"end": 582,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 17
}
},
"expression": {
"type": "Identifier",
"start": 573,
"end": 581,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 16
},
"identifierName": "abstract"
},
"name": "abstract"
}
},
{
"type": "ReturnStatement",
"start": 592,
"end": 607,
"loc": {
"start": {
"line": 25,
"column": 8
},
"end": {
"line": 25,
"column": 23
}
},
"argument": {
"type": "StringLiteral",
"start": 599,
"end": 606,
"loc": {
"start": {
"line": 25,
"column": 15
},
"end": {
"line": 25,
"column": 22
}
},
"extra": {
"rawValue": "shape",
"raw": "\"shape\""
},
"value": "shape"
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @returns {ItemType} *",
"start": 515,
"end": 542,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 31
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns a string id of the item\r\n * @returns {string}\r\n ",
"start": 622,
"end": 700,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 31,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 706,
"end": 772,
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 35,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 706,
"end": 722,
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 32,
"column": 20
},
"identifierName": "getAsCopyableKey"
},
"name": "getAsCopyableKey",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 725,
"end": 772,
"loc": {
"start": {
"line": 32,
"column": 23
},
"end": {
"line": 35,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 736,
"end": 745,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 17
}
},
"expression": {
"type": "Identifier",
"start": 736,
"end": 744,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 16
},
"identifierName": "abstract"
},
"name": "abstract"
}
},
{
"type": "ReturnStatement",
"start": 755,
"end": 765,
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 18
}
},
"argument": {
"type": "StringLiteral",
"start": 762,
"end": 764,
"loc": {
"start": {
"line": 34,
"column": 15
},
"end": {
"line": 34,
"column": 17
}
},
"extra": {
"rawValue": "",
"raw": "\"\""
},
"value": ""
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns a string id of the item\r\n * @returns {string}\r\n ",
"start": 622,
"end": 700,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 31,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if the item equals the other itme\r\n * @param {BaseItem} other\r\n * @returns {boolean}\r\n ",
"start": 780,
"end": 901,
"loc": {
"start": {
"line": 37,
"column": 4
},
"end": {
"line": 41,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 907,
"end": 1066,
"loc": {
"start": {
"line": 42,
"column": 4
},
"end": {
"line": 47,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 907,
"end": 913,
"loc": {
"start": {
"line": 42,
"column": 4
},
"end": {
"line": 42,
"column": 10
},
"identifierName": "equals"
},
"name": "equals",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 914,
"end": 919,
"loc": {
"start": {
"line": 42,
"column": 11
},
"end": {
"line": 42,
"column": 16
},
"identifierName": "other"
},
"name": "other"
}
],
"body": {
"type": "BlockStatement",
"start": 921,
"end": 1066,
"loc": {
"start": {
"line": 42,
"column": 18
},
"end": {
"line": 47,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 932,
"end": 1019,
"loc": {
"start": {
"line": 43,
"column": 8
},
"end": {
"line": 45,
"column": 9
}
},
"test": {
"type": "BinaryExpression",
"start": 936,
"end": 978,
"loc": {
"start": {
"line": 43,
"column": 12
},
"end": {
"line": 43,
"column": 54
}
},
"left": {
"type": "CallExpression",
"start": 936,
"end": 954,
"loc": {
"start": {
"line": 43,
"column": 12
},
"end": {
"line": 43,
"column": 30
}
},
"callee": {
"type": "MemberExpression",
"start": 936,
"end": 952,
"loc": {
"start": {
"line": 43,
"column": 12
},
"end": {
"line": 43,
"column": 28
}
},
"object": {
"type": "ThisExpression",
"start": 936,
"end": 940,
"loc": {
"start": {
"line": 43,
"column": 12
},
"end": {
"line": 43,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 941,
"end": 952,
"loc": {
"start": {
"line": 43,
"column": 17
},
"end": {
"line": 43,
"column": 28
},
"identifierName": "getItemType"
},
"name": "getItemType"
},
"computed": false
},
"arguments": []
},
"operator": "!==",
"right": {
"type": "CallExpression",
"start": 959,
"end": 978,
"loc": {
"start": {
"line": 43,
"column": 35
},
"end": {
"line": 43,
"column": 54
}
},
"callee": {
"type": "MemberExpression",
"start": 959,
"end": 976,
"loc": {
"start": {
"line": 43,
"column": 35
},
"end": {
"line": 43,
"column": 52
}
},
"object": {
"type": "Identifier",
"start": 959,
"end": 964,
"loc": {
"start": {
"line": 43,
"column": 35
},
"end": {
"line": 43,
"column": 40
},
"identifierName": "other"
},
"name": "other"
},
"property": {
"type": "Identifier",
"start": 965,
"end": 976,
"loc": {
"start": {
"line": 43,
"column": 41
},
"end": {
"line": 43,
"column": 52
},
"identifierName": "getItemType"
},
"name": "getItemType"
},
"computed": false
},
"arguments": []
}
},
"consequent": {
"type": "BlockStatement",
"start": 980,
"end": 1019,
"loc": {
"start": {
"line": 43,
"column": 56
},
"end": {
"line": 45,
"column": 9
}
},
"body": [
{
"type": "ReturnStatement",
"start": 995,
"end": 1008,
"loc": {
"start": {
"line": 44,
"column": 12
},
"end": {
"line": 44,
"column": 25
}
},
"argument": {
"type": "BooleanLiteral",
"start": 1002,
"end": 1007,
"loc": {
"start": {
"line": 44,
"column": 19
},
"end": {
"line": 44,
"column": 24
}
},
"value": false
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "ReturnStatement",
"start": 1029,
"end": 1059,
"loc": {
"start": {
"line": 46,
"column": 8
},
"end": {
"line": 46,
"column": 38
}
},
"argument": {
"type": "CallExpression",
"start": 1036,
"end": 1058,
"loc": {
"start": {
"line": 46,
"column": 15
},
"end": {
"line": 46,
"column": 37
}
},
"callee": {
"type": "MemberExpression",
"start": 1036,
"end": 1051,
"loc": {
"start": {
"line": 46,
"column": 15
},
"end": {
"line": 46,
"column": 30
}
},
"object": {
"type": "ThisExpression",
"start": 1036,
"end": 1040,
"loc": {
"start": {
"line": 46,
"column": 15
},
"end": {
"line": 46,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 1041,
"end": 1051,
"loc": {
"start": {
"line": 46,
"column": 20
},
"end": {
"line": 46,
"column": 30
},
"identifierName": "equalsImpl"
},
"name": "equalsImpl"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1052,
"end": 1057,
"loc": {
"start": {
"line": 46,
"column": 31
},
"end": {
"line": 46,
"column": 36
},
"identifierName": "other"
},
"name": "other"
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if the item equals the other itme\r\n * @param {BaseItem} other\r\n * @returns {boolean}\r\n ",
"start": 780,
"end": 901,
"loc": {
"start": {
"line": 37,
"column": 4
},
"end": {
"line": 41,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Override for custom comparison\r\n * @abstract\r\n * @param {BaseItem} other\r\n * @returns {boolean}\r\n ",
"start": 1074,
"end": 1202,
"loc": {
"start": {
"line": 49,
"column": 4
},
"end": {
"line": 54,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1208,
"end": 1276,
"loc": {
"start": {
"line": 55,
"column": 4
},
"end": {
"line": 58,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1208,
"end": 1218,
"loc": {
"start": {
"line": 55,
"column": 4
},
"end": {
"line": 55,
"column": 14
},
"identifierName": "equalsImpl"
},
"name": "equalsImpl",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1219,
"end": 1224,
"loc": {
"start": {
"line": 55,
"column": 15
},
"end": {
"line": 55,
"column": 20
},
"identifierName": "other"
},
"name": "other"
}
],
"body": {
"type": "BlockStatement",
"start": 1226,
"end": 1276,
"loc": {
"start": {
"line": 55,
"column": 22
},
"end": {
"line": 58,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1237,
"end": 1246,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 17
}
},
"expression": {
"type": "Identifier",
"start": 1237,
"end": 1245,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 16
},
"identifierName": "abstract"
},
"name": "abstract"
}
},
{
"type": "ReturnStatement",
"start": 1256,
"end": 1269,
"loc": {
"start": {
"line": 57,
"column": 8
},
"end": {
"line": 57,
"column": 21
}
},
"argument": {
"type": "BooleanLiteral",
"start": 1263,
"end": 1268,
"loc": {
"start": {
"line": 57,
"column": 15
},
"end": {
"line": 57,
"column": 20
}
},
"value": false
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Override for custom comparison\r\n * @abstract\r\n * @param {BaseItem} other\r\n * @returns {boolean}\r\n ",
"start": 1074,
"end": 1202,
"loc": {
"start": {
"line": 49,
"column": 4
},
"end": {
"line": 54,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Draws the item to a canvas\r\n * @param {CanvasRenderingContext2D} context\r\n * @param {number} size\r\n ",
"start": 1284,
"end": 1410,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 64,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1416,
"end": 1479,
"loc": {
"start": {
"line": 65,
"column": 4
},
"end": {
"line": 67,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1416,
"end": 1436,
"loc": {
"start": {
"line": 65,
"column": 4
},
"end": {
"line": 65,
"column": 24
},
"identifierName": "drawFullSizeOnCanvas"
},
"name": "drawFullSizeOnCanvas",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1437,
"end": 1444,
"loc": {
"start": {
"line": 65,
"column": 25
},
"end": {
"line": 65,
"column": 32
},
"identifierName": "context"
},
"name": "context"
},
{
"type": "Identifier",
"start": 1446,
"end": 1450,
"loc": {
"start": {
"line": 65,
"column": 34
},
"end": {
"line": 65,
"column": 38
},
"identifierName": "size"
},
"name": "size"
}
],
"body": {
"type": "BlockStatement",
"start": 1452,
"end": 1479,
"loc": {
"start": {
"line": 65,
"column": 40
},
"end": {
"line": 67,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1463,
"end": 1472,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 17
}
},
"expression": {
"type": "Identifier",
"start": 1463,
"end": 1471,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 16
},
"identifierName": "abstract"
},
"name": "abstract"
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Draws the item to a canvas\r\n * @param {CanvasRenderingContext2D} context\r\n * @param {number} size\r\n ",
"start": 1284,
"end": 1410,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 64,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Draws the item at the given position\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {DrawParameters} parameters\r\n * @param {number=} diameter\r\n ",
"start": 1487,
"end": 1673,
"loc": {
"start": {
"line": 69,
"column": 4
},
"end": {
"line": 75,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1679,
"end": 2010,
"loc": {
"start": {
"line": 76,
"column": 4
},
"end": {
"line": 86,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1679,
"end": 1702,
"loc": {
"start": {
"line": 76,
"column": 4
},
"end": {
"line": 76,
"column": 27
},
"identifierName": "drawItemCenteredClipped"
},
"name": "drawItemCenteredClipped",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1713,
"end": 1714,
"loc": {
"start": {
"line": 77,
"column": 8
},
"end": {
"line": 77,
"column": 9
},
"identifierName": "x"
},
"name": "x"
},
{
"type": "Identifier",
"start": 1725,
"end": 1726,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 9
},
"identifierName": "y"
},
"name": "y"
},
{
"type": "Identifier",
"start": 1737,
"end": 1747,
"loc": {
"start": {
"line": 79,
"column": 8
},
"end": {
"line": 79,
"column": 18
},
"identifierName": "parameters"
},
"name": "parameters"
},
{
"type": "AssignmentPattern",
"start": 1758,
"end": 1801,
"loc": {
"start": {
"line": 80,
"column": 8
},
"end": {
"line": 80,
"column": 51
}
},
"left": {
"type": "Identifier",
"start": 1758,
"end": 1766,
"loc": {
"start": {
"line": 80,
"column": 8
},
"end": {
"line": 80,
"column": 16
},
"identifierName": "diameter"
},
"name": "diameter"
},
"right": {
"type": "MemberExpression",
"start": 1769,
"end": 1801,
"loc": {
"start": {
"line": 80,
"column": 19
},
"end": {
"line": 80,
"column": 51
}
},
"object": {
"type": "Identifier",
"start": 1769,
"end": 1781,
"loc": {
"start": {
"line": 80,
"column": 19
},
"end": {
"line": 80,
"column": 31
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"property": {
"type": "Identifier",
"start": 1782,
"end": 1801,
"loc": {
"start": {
"line": 80,
"column": 32
},
"end": {
"line": 80,
"column": 51
},
"identifierName": "defaultItemDiameter"
},
"name": "defaultItemDiameter"
},
"computed": false
}
},
{
"type": "AssignmentPattern",
"start": 1812,
"end": 1829,
"loc": {
"start": {
"line": 81,
"column": 8
},
"end": {
"line": 81,
"column": 25
}
},
"left": {
"type": "Identifier",
"start": 1812,
"end": 1822,
"loc": {
"start": {
"line": 81,
"column": 8
},
"end": {
"line": 81,
"column": 18
},
"identifierName": "background"
},
"name": "background"
},
"right": {
"type": "BooleanLiteral",
"start": 1825,
"end": 1829,
"loc": {
"start": {
"line": 81,
"column": 21
},
"end": {
"line": 81,
"column": 25
}
},
"value": true
}
}
],
"body": {
"type": "BlockStatement",
"start": 1837,
"end": 2010,
"loc": {
"start": {
"line": 82,
"column": 6
},
"end": {
"line": 86,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 1848,
"end": 2003,
"loc": {
"start": {
"line": 83,
"column": 8
},
"end": {
"line": 85,
"column": 9
}
},
"test": {
"type": "CallExpression",
"start": 1852,
"end": 1909,
"loc": {
"start": {
"line": 83,
"column": 12
},
"end": {
"line": 83,
"column": 69
}
},
"callee": {
"type": "MemberExpression",
"start": 1852,
"end": 1889,
"loc": {
"start": {
"line": 83,
"column": 12
},
"end": {
"line": 83,
"column": 49
}
},
"object": {
"type": "MemberExpression",
"start": 1852,
"end": 1874,
"loc": {
"start": {
"line": 83,
"column": 12
},
"end": {
"line": 83,
"column": 34
}
},
"object": {
"type": "Identifier",
"start": 1852,
"end": 1862,
"loc": {
"start": {
"line": 83,
"column": 12
},
"end": {
"line": 83,
"column": 22
},
"identifierName": "parameters"
},
"name": "parameters"
},
"property": {
"type": "Identifier",
"start": 1863,
"end": 1874,
"loc": {
"start": {
"line": 83,
"column": 23
},
"end": {
"line": 83,
"column": 34
},
"identifierName": "visibleRect"
},
"name": "visibleRect"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1875,
"end": 1889,
"loc": {
"start": {
"line": 83,
"column": 35
},
"end": {
"line": 83,
"column": 49
},
"identifierName": "containsCircle"
},
"name": "containsCircle"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1890,
"end": 1891,
"loc": {
"start": {
"line": 83,
"column": 50
},
"end": {
"line": 83,
"column": 51
},
"identifierName": "x"
},
"name": "x"
},
{
"type": "Identifier",
"start": 1893,
"end": 1894,
"loc": {
"start": {
"line": 83,
"column": 53
},
"end": {
"line": 83,
"column": 54
},
"identifierName": "y"
},
"name": "y"
},
{
"type": "BinaryExpression",
"start": 1896,
"end": 1908,
"loc": {
"start": {
"line": 83,
"column": 56
},
"end": {
"line": 83,
"column": 68
}
},
"left": {
"type": "Identifier",
"start": 1896,
"end": 1904,
"loc": {
"start": {
"line": 83,
"column": 56
},
"end": {
"line": 83,
"column": 64
},
"identifierName": "diameter"
},
"name": "diameter"
},
"operator": "/",
"right": {
"type": "NumericLiteral",
"start": 1907,
"end": 1908,
"loc": {
"start": {
"line": 83,
"column": 67
},
"end": {
"line": 83,
"column": 68
}
},
"extra": {
"rawValue": 2,
"raw": "2"
},
"value": 2
}
}
]
},
"consequent": {
"type": "BlockStatement",
"start": 1911,
"end": 2003,
"loc": {
"start": {
"line": 83,
"column": 71
},
"end": {
"line": 85,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1926,
"end": 1992,
"loc": {
"start": {
"line": 84,
"column": 12
},
"end": {
"line": 84,
"column": 78
}
},
"expression": {
"type": "CallExpression",
"start": 1926,
"end": 1991,
"loc": {
"start": {
"line": 84,
"column": 12
},
"end": {
"line": 84,
"column": 77
}
},
"callee": {
"type": "MemberExpression",
"start": 1926,
"end": 1951,
"loc": {
"start": {
"line": 84,
"column": 12
},
"end": {
"line": 84,
"column": 37
}
},
"object": {
"type": "ThisExpression",
"start": 1926,
"end": 1930,
"loc": {
"start": {
"line": 84,
"column": 12
},
"end": {
"line": 84,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 1931,
"end": 1951,
"loc": {
"start": {
"line": 84,
"column": 17
},
"end": {
"line": 84,
"column": 37
},
"identifierName": "drawItemCenteredImpl"
},
"name": "drawItemCenteredImpl"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1952,
"end": 1953,
"loc": {
"start": {
"line": 84,
"column": 38
},
"end": {
"line": 84,
"column": 39
},
"identifierName": "x"
},
"name": "x"
},
{
"type": "Identifier",
"start": 1955,
"end": 1956,
"loc": {
"start": {
"line": 84,
"column": 41
},
"end": {
"line": 84,
"column": 42
},
"identifierName": "y"
},
"name": "y"
},
{
"type": "Identifier",
"start": 1958,
"end": 1968,
"loc": {
"start": {
"line": 84,
"column": 44
},
"end": {
"line": 84,
"column": 54
},
"identifierName": "parameters"
},
"name": "parameters"
},
{
"type": "Identifier",
"start": 1970,
"end": 1978,
"loc": {
"start": {
"line": 84,
"column": 56
},
"end": {
"line": 84,
"column": 64
},
"identifierName": "diameter"
},
"name": "diameter"
},
{
"type": "Identifier",
"start": 1980,
"end": 1990,
"loc": {
"start": {
"line": 84,
"column": 66
},
"end": {
"line": 84,
"column": 76
},
"identifierName": "background"
},
"name": "background"
}
]
}
}
],
"directives": []
},
"alternate": null
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Draws the item at the given position\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {DrawParameters} parameters\r\n * @param {number=} diameter\r\n ",
"start": 1487,
"end": 1673,
"loc": {
"start": {
"line": 69,
"column": 4
},
"end": {
"line": 75,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * INTERNAL\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {DrawParameters} parameters\r\n * @param {number=} diameter\r\n ",
"start": 2018,
"end": 2176,
"loc": {
"start": {
"line": 88,
"column": 4
},
"end": {
"line": 94,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 2182,
"end": 2312,
"loc": {
"start": {
"line": 95,
"column": 4
},
"end": {
"line": 97,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2182,
"end": 2202,
"loc": {
"start": {
"line": 95,
"column": 4
},
"end": {
"line": 95,
"column": 24
},
"identifierName": "drawItemCenteredImpl"
},
"name": "drawItemCenteredImpl",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 2203,
"end": 2204,
"loc": {
"start": {
"line": 95,
"column": 25
},
"end": {
"line": 95,
"column": 26
},
"identifierName": "x"
},
"name": "x"
},
{
"type": "Identifier",
"start": 2206,
"end": 2207,
"loc": {
"start": {
"line": 95,
"column": 28
},
"end": {
"line": 95,
"column": 29
},
"identifierName": "y"
},
"name": "y"
},
{
"type": "Identifier",
"start": 2209,
"end": 2219,
"loc": {
"start": {
"line": 95,
"column": 31
},
"end": {
"line": 95,
"column": 41
},
"identifierName": "parameters"
},
"name": "parameters"
},
{
"type": "AssignmentPattern",
"start": 2221,
"end": 2264,
"loc": {
"start": {
"line": 95,
"column": 43
},
"end": {
"line": 95,
"column": 86
}
},
"left": {
"type": "Identifier",
"start": 2221,
"end": 2229,
"loc": {
"start": {
"line": 95,
"column": 43
},
"end": {
"line": 95,
"column": 51
},
"identifierName": "diameter"
},
"name": "diameter"
},
"right": {
"type": "MemberExpression",
"start": 2232,
"end": 2264,
"loc": {
"start": {
"line": 95,
"column": 54
},
"end": {
"line": 95,
"column": 86
}
},
"object": {
"type": "Identifier",
"start": 2232,
"end": 2244,
"loc": {
"start": {
"line": 95,
"column": 54
},
"end": {
"line": 95,
"column": 66
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"property": {
"type": "Identifier",
"start": 2245,
"end": 2264,
"loc": {
"start": {
"line": 95,
"column": 67
},
"end": {
"line": 95,
"column": 86
},
"identifierName": "defaultItemDiameter"
},
"name": "defaultItemDiameter"
},
"computed": false
}
},
{
"type": "AssignmentPattern",
"start": 2266,
"end": 2283,
"loc": {
"start": {
"line": 95,
"column": 88
},
"end": {
"line": 95,
"column": 105
}
},
"left": {
"type": "Identifier",
"start": 2266,
"end": 2276,
"loc": {
"start": {
"line": 95,
"column": 88
},
"end": {
"line": 95,
"column": 98
},
"identifierName": "background"
},
"name": "background"
},
"right": {
"type": "BooleanLiteral",
"start": 2279,
"end": 2283,
"loc": {
"start": {
"line": 95,
"column": 101
},
"end": {
"line": 95,
"column": 105
}
},
"value": true
}
}
],
"body": {
"type": "BlockStatement",
"start": 2285,
"end": 2312,
"loc": {
"start": {
"line": 95,
"column": 107
},
"end": {
"line": 97,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2296,
"end": 2305,
"loc": {
"start": {
"line": 96,
"column": 8
},
"end": {
"line": 96,
"column": 17
}
},
"expression": {
"type": "Identifier",
"start": 2296,
"end": 2304,
"loc": {
"start": {
"line": 96,
"column": 8
},
"end": {
"line": 96,
"column": 16
},
"identifierName": "abstract"
},
"name": "abstract"
}
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * INTERNAL\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {DrawParameters} parameters\r\n * @param {number=} diameter\r\n ",
"start": 2018,
"end": 2176,
"loc": {
"start": {
"line": 88,
"column": 4
},
"end": {
"line": 94,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 2320,
"end": 2398,
"loc": {
"start": {
"line": 99,
"column": 4
},
"end": {
"line": 102,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2320,
"end": 2348,
"loc": {
"start": {
"line": 99,
"column": 4
},
"end": {
"line": 99,
"column": 32
},
"identifierName": "getBackgroundColorAsResource"
},
"name": "getBackgroundColorAsResource"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 2351,
"end": 2398,
"loc": {
"start": {
"line": 99,
"column": 35
},
"end": {
"line": 102,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2362,
"end": 2371,
"loc": {
"start": {
"line": 100,
"column": 8
},
"end": {
"line": 100,
"column": 17
}
},
"expression": {
"type": "Identifier",
"start": 2362,
"end": 2370,
"loc": {
"start": {
"line": 100,
"column": 8
},
"end": {
"line": 100,
"column": 16
},
"identifierName": "abstract"
},
"name": "abstract"
}
},
{
"type": "ReturnStatement",
"start": 2381,
"end": 2391,
"loc": {
"start": {
"line": 101,
"column": 8
},
"end": {
"line": 101,
"column": 18
}
},
"argument": {
"type": "StringLiteral",
"start": 2388,
"end": 2390,
"loc": {
"start": {
"line": 101,
"column": 15
},
"end": {
"line": 101,
"column": 17
}
},
"extra": {
"rawValue": "",
"raw": "\"\""
},
"value": ""
}
}
],
"directives": []
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Class for items on belts etc. Not an entity for performance reasons\r\n ",
"start": 179,
"end": 259,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
}
],
"trailingComments": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Class for items on belts etc. Not an entity for performance reasons\r\n ",
"start": 179,
"end": 259,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "*\r\n * Class for items on belts etc. Not an entity for performance reasons\r\n ",
"start": 179,
"end": 259,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "* @returns {object} ",
"start": 430,
"end": 454,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 28
}
}
},
{
"type": "CommentBlock",
"value": "* @returns {ItemType} *",
"start": 515,
"end": 542,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 31
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns a string id of the item\r\n * @returns {string}\r\n ",
"start": 622,
"end": 700,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 31,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if the item equals the other itme\r\n * @param {BaseItem} other\r\n * @returns {boolean}\r\n ",
"start": 780,
"end": 901,
"loc": {
"start": {
"line": 37,
"column": 4
},
"end": {
"line": 41,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Override for custom comparison\r\n * @abstract\r\n * @param {BaseItem} other\r\n * @returns {boolean}\r\n ",
"start": 1074,
"end": 1202,
"loc": {
"start": {
"line": 49,
"column": 4
},
"end": {
"line": 54,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Draws the item to a canvas\r\n * @param {CanvasRenderingContext2D} context\r\n * @param {number} size\r\n ",
"start": 1284,
"end": 1410,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 64,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Draws the item at the given position\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {DrawParameters} parameters\r\n * @param {number=} diameter\r\n ",
"start": 1487,
"end": 1673,
"loc": {
"start": {
"line": 69,
"column": 4
},
"end": {
"line": 75,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * INTERNAL\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {DrawParameters} parameters\r\n * @param {number=} diameter\r\n ",
"start": 2018,
"end": 2176,
"loc": {
"start": {
"line": 88,
"column": 4
},
"end": {
"line": 94,
"column": 7
}
}
}
],
"tokens": [
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 0,
"end": 6,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 6
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7,
"end": 8,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 9,
"end": 21,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 22,
"end": 23,
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 24,
"end": 28,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 28
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../core/config",
"start": 29,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 29
},
"end": {
"line": 1,
"column": 45
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 45,
"end": 46,
"loc": {
"start": {
"line": 1,
"column": 45
},
"end": {
"line": 1,
"column": 46
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 48,
"end": 54,
"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": 55,
"end": 56,
"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": "DrawParameters",
"start": 57,
"end": 71,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 23
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 72,
"end": 73,
"loc": {
"start": {
"line": 2,
"column": 24
},
"end": {
"line": 2,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 74,
"end": 78,
"loc": {
"start": {
"line": 2,
"column": 26
},
"end": {
"line": 2,
"column": 30
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../core/draw_parameters",
"start": 79,
"end": 104,
"loc": {
"start": {
"line": 2,
"column": 31
},
"end": {
"line": 2,
"column": 56
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 104,
"end": 105,
"loc": {
"start": {
"line": 2,
"column": 56
},
"end": {
"line": 2,
"column": 57
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 107,
"end": 113,
"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": 114,
"end": 115,
"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": "BasicSerializableObject",
"start": 116,
"end": 139,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 32
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 140,
"end": 141,
"loc": {
"start": {
"line": 3,
"column": 33
},
"end": {
"line": 3,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 142,
"end": 146,
"loc": {
"start": {
"line": 3,
"column": 35
},
"end": {
"line": 3,
"column": 39
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../savegame/serialization",
"start": 147,
"end": 174,
"loc": {
"start": {
"line": 3,
"column": 40
},
"end": {
"line": 3,
"column": 67
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 174,
"end": 175,
"loc": {
"start": {
"line": 3,
"column": 67
},
"end": {
"line": 3,
"column": 68
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Class for items on belts etc. Not an entity for performance reasons\r\n ",
"start": 179,
"end": 259,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 7,
"column": 3
}
}
},
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 261,
"end": 267,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 6
}
}
},
{
"type": {
"label": "class",
"keyword": "class",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "class",
"start": 268,
"end": 273,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 8,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "BaseItem",
"start": 274,
"end": 282,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 21
}
}
},
{
"type": {
"label": "extends",
"keyword": "extends",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "extends",
"start": 283,
"end": 290,
"loc": {
"start": {
"line": 8,
"column": 22
},
"end": {
"line": 8,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "BasicSerializableObject",
"start": 291,
"end": 314,
"loc": {
"start": {
"line": 8,
"column": 30
},
"end": {
"line": 8,
"column": 53
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 315,
"end": 316,
"loc": {
"start": {
"line": 8,
"column": 54
},
"end": {
"line": 8,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 322,
"end": 333,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 333,
"end": 334,
"loc": {
"start": {
"line": 9,
"column": 15
},
"end": {
"line": 9,
"column": 16
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 334,
"end": 335,
"loc": {
"start": {
"line": 9,
"column": 16
},
"end": {
"line": 9,
"column": 17
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 336,
"end": 337,
"loc": {
"start": {
"line": 9,
"column": 18
},
"end": {
"line": 9,
"column": 19
}
}
},
{
"type": {
"label": "super",
"keyword": "super",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "super",
"start": 347,
"end": 352,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 352,
"end": 353,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 14
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 353,
"end": 354,
"loc": {
"start": {
"line": 10,
"column": 14
},
"end": {
"line": 10,
"column": 15
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 354,
"end": 355,
"loc": {
"start": {
"line": 10,
"column": 15
},
"end": {
"line": 10,
"column": 16
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 361,
"end": 362,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "static",
"start": 370,
"end": 376,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getId",
"start": 377,
"end": 382,
"loc": {
"start": {
"line": 13,
"column": 11
},
"end": {
"line": 13,
"column": 16
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 382,
"end": 383,
"loc": {
"start": {
"line": 13,
"column": 16
},
"end": {
"line": 13,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 383,
"end": 384,
"loc": {
"start": {
"line": 13,
"column": 17
},
"end": {
"line": 13,
"column": 18
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 385,
"end": 386,
"loc": {
"start": {
"line": 13,
"column": 19
},
"end": {
"line": 13,
"column": 20
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 396,
"end": 402,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 14
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "base_item",
"start": 403,
"end": 414,
"loc": {
"start": {
"line": 14,
"column": 15
},
"end": {
"line": 14,
"column": 26
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 414,
"end": 415,
"loc": {
"start": {
"line": 14,
"column": 26
},
"end": {
"line": 14,
"column": 27
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 421,
"end": 422,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "* @returns {object} ",
"start": 430,
"end": 454,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "static",
"start": 460,
"end": 466,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 18,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getSchema",
"start": 467,
"end": 476,
"loc": {
"start": {
"line": 18,
"column": 11
},
"end": {
"line": 18,
"column": 20
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 476,
"end": 477,
"loc": {
"start": {
"line": 18,
"column": 20
},
"end": {
"line": 18,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 477,
"end": 478,
"loc": {
"start": {
"line": 18,
"column": 21
},
"end": {
"line": 18,
"column": 22
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 479,
"end": 480,
"loc": {
"start": {
"line": 18,
"column": 23
},
"end": {
"line": 18,
"column": 24
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 490,
"end": 496,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 14
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 497,
"end": 498,
"loc": {
"start": {
"line": 19,
"column": 15
},
"end": {
"line": 19,
"column": 16
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 498,
"end": 499,
"loc": {
"start": {
"line": 19,
"column": 16
},
"end": {
"line": 19,
"column": 17
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 499,
"end": 500,
"loc": {
"start": {
"line": 19,
"column": 17
},
"end": {
"line": 19,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 506,
"end": 507,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "* @returns {ItemType} *",
"start": 515,
"end": 542,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getItemType",
"start": 548,
"end": 559,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 23,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 559,
"end": 560,
"loc": {
"start": {
"line": 23,
"column": 15
},
"end": {
"line": 23,
"column": 16
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 560,
"end": 561,
"loc": {
"start": {
"line": 23,
"column": 16
},
"end": {
"line": 23,
"column": 17
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 562,
"end": 563,
"loc": {
"start": {
"line": 23,
"column": 18
},
"end": {
"line": 23,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "abstract",
"start": 573,
"end": 581,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 16
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 581,
"end": 582,
"loc": {
"start": {
"line": 24,
"column": 16
},
"end": {
"line": 24,
"column": 17
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 592,
"end": 598,
"loc": {
"start": {
"line": 25,
"column": 8
},
"end": {
"line": 25,
"column": 14
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "shape",
"start": 599,
"end": 606,
"loc": {
"start": {
"line": 25,
"column": 15
},
"end": {
"line": 25,
"column": 22
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 606,
"end": 607,
"loc": {
"start": {
"line": 25,
"column": 22
},
"end": {
"line": 25,
"column": 23
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 613,
"end": 614,
"loc": {
"start": {
"line": 26,
"column": 4
},
"end": {
"line": 26,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns a string id of the item\r\n * @returns {string}\r\n ",
"start": 622,
"end": 700,
"loc": {
"start": {
"line": 28,
"column": 4
},
"end": {
"line": 31,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getAsCopyableKey",
"start": 706,
"end": 722,
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 32,
"column": 20
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 722,
"end": 723,
"loc": {
"start": {
"line": 32,
"column": 20
},
"end": {
"line": 32,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 723,
"end": 724,
"loc": {
"start": {
"line": 32,
"column": 21
},
"end": {
"line": 32,
"column": 22
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 725,
"end": 726,
"loc": {
"start": {
"line": 32,
"column": 23
},
"end": {
"line": 32,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "abstract",
"start": 736,
"end": 744,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 16
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 744,
"end": 745,
"loc": {
"start": {
"line": 33,
"column": 16
},
"end": {
"line": 33,
"column": 17
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 755,
"end": 761,
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 14
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "",
"start": 762,
"end": 764,
"loc": {
"start": {
"line": 34,
"column": 15
},
"end": {
"line": 34,
"column": 17
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 764,
"end": 765,
"loc": {
"start": {
"line": 34,
"column": 17
},
"end": {
"line": 34,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 771,
"end": 772,
"loc": {
"start": {
"line": 35,
"column": 4
},
"end": {
"line": 35,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if the item equals the other itme\r\n * @param {BaseItem} other\r\n * @returns {boolean}\r\n ",
"start": 780,
"end": 901,
"loc": {
"start": {
"line": 37,
"column": 4
},
"end": {
"line": 41,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "equals",
"start": 907,
"end": 913,
"loc": {
"start": {
"line": 42,
"column": 4
},
"end": {
"line": 42,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 913,
"end": 914,
"loc": {
"start": {
"line": 42,
"column": 10
},
"end": {
"line": 42,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "other",
"start": 914,
"end": 919,
"loc": {
"start": {
"line": 42,
"column": 11
},
"end": {
"line": 42,
"column": 16
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 919,
"end": 920,
"loc": {
"start": {
"line": 42,
"column": 16
},
"end": {
"line": 42,
"column": 17
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 921,
"end": 922,
"loc": {
"start": {
"line": 42,
"column": 18
},
"end": {
"line": 42,
"column": 19
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 932,
"end": 934,
"loc": {
"start": {
"line": 43,
"column": 8
},
"end": {
"line": 43,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 935,
"end": 936,
"loc": {
"start": {
"line": 43,
"column": 11
},
"end": {
"line": 43,
"column": 12
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 936,
"end": 940,
"loc": {
"start": {
"line": 43,
"column": 12
},
"end": {
"line": 43,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 940,
"end": 941,
"loc": {
"start": {
"line": 43,
"column": 16
},
"end": {
"line": 43,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getItemType",
"start": 941,
"end": 952,
"loc": {
"start": {
"line": 43,
"column": 17
},
"end": {
"line": 43,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 952,
"end": 953,
"loc": {
"start": {
"line": 43,
"column": 28
},
"end": {
"line": 43,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 953,
"end": 954,
"loc": {
"start": {
"line": 43,
"column": 29
},
"end": {
"line": 43,
"column": 30
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 955,
"end": 958,
"loc": {
"start": {
"line": 43,
"column": 31
},
"end": {
"line": 43,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "other",
"start": 959,
"end": 964,
"loc": {
"start": {
"line": 43,
"column": 35
},
"end": {
"line": 43,
"column": 40
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 964,
"end": 965,
"loc": {
"start": {
"line": 43,
"column": 40
},
"end": {
"line": 43,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getItemType",
"start": 965,
"end": 976,
"loc": {
"start": {
"line": 43,
"column": 41
},
"end": {
"line": 43,
"column": 52
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 976,
"end": 977,
"loc": {
"start": {
"line": 43,
"column": 52
},
"end": {
"line": 43,
"column": 53
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 977,
"end": 978,
"loc": {
"start": {
"line": 43,
"column": 53
},
"end": {
"line": 43,
"column": 54
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 978,
"end": 979,
"loc": {
"start": {
"line": 43,
"column": 54
},
"end": {
"line": 43,
"column": 55
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 980,
"end": 981,
"loc": {
"start": {
"line": 43,
"column": 56
},
"end": {
"line": 43,
"column": 57
}
}
},
{
"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": 995,
"end": 1001,
"loc": {
"start": {
"line": 44,
"column": 12
},
"end": {
"line": 44,
"column": 18
}
}
},
{
"type": {
"label": "false",
"keyword": "false",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "false",
"start": 1002,
"end": 1007,
"loc": {
"start": {
"line": 44,
"column": 19
},
"end": {
"line": 44,
"column": 24
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1007,
"end": 1008,
"loc": {
"start": {
"line": 44,
"column": 24
},
"end": {
"line": 44,
"column": 25
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1018,
"end": 1019,
"loc": {
"start": {
"line": 45,
"column": 8
},
"end": {
"line": 45,
"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": 1029,
"end": 1035,
"loc": {
"start": {
"line": 46,
"column": 8
},
"end": {
"line": 46,
"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": 1036,
"end": 1040,
"loc": {
"start": {
"line": 46,
"column": 15
},
"end": {
"line": 46,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1040,
"end": 1041,
"loc": {
"start": {
"line": 46,
"column": 19
},
"end": {
"line": 46,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "equalsImpl",
"start": 1041,
"end": 1051,
"loc": {
"start": {
"line": 46,
"column": 20
},
"end": {
"line": 46,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1051,
"end": 1052,
"loc": {
"start": {
"line": 46,
"column": 30
},
"end": {
"line": 46,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "other",
"start": 1052,
"end": 1057,
"loc": {
"start": {
"line": 46,
"column": 31
},
"end": {
"line": 46,
"column": 36
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1057,
"end": 1058,
"loc": {
"start": {
"line": 46,
"column": 36
},
"end": {
"line": 46,
"column": 37
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1058,
"end": 1059,
"loc": {
"start": {
"line": 46,
"column": 37
},
"end": {
"line": 46,
"column": 38
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1065,
"end": 1066,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 47,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Override for custom comparison\r\n * @abstract\r\n * @param {BaseItem} other\r\n * @returns {boolean}\r\n ",
"start": 1074,
"end": 1202,
"loc": {
"start": {
"line": 49,
"column": 4
},
"end": {
"line": 54,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "equalsImpl",
"start": 1208,
"end": 1218,
"loc": {
"start": {
"line": 55,
"column": 4
},
"end": {
"line": 55,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1218,
"end": 1219,
"loc": {
"start": {
"line": 55,
"column": 14
},
"end": {
"line": 55,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "other",
"start": 1219,
"end": 1224,
"loc": {
"start": {
"line": 55,
"column": 15
},
"end": {
"line": 55,
"column": 20
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1224,
"end": 1225,
"loc": {
"start": {
"line": 55,
"column": 20
},
"end": {
"line": 55,
"column": 21
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1226,
"end": 1227,
"loc": {
"start": {
"line": 55,
"column": 22
},
"end": {
"line": 55,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "abstract",
"start": 1237,
"end": 1245,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 16
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1245,
"end": 1246,
"loc": {
"start": {
"line": 56,
"column": 16
},
"end": {
"line": 56,
"column": 17
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 1256,
"end": 1262,
"loc": {
"start": {
"line": 57,
"column": 8
},
"end": {
"line": 57,
"column": 14
}
}
},
{
"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": 1263,
"end": 1268,
"loc": {
"start": {
"line": 57,
"column": 15
},
"end": {
"line": 57,
"column": 20
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1268,
"end": 1269,
"loc": {
"start": {
"line": 57,
"column": 20
},
"end": {
"line": 57,
"column": 21
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1275,
"end": 1276,
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 58,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Draws the item to a canvas\r\n * @param {CanvasRenderingContext2D} context\r\n * @param {number} size\r\n ",
"start": 1284,
"end": 1410,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 64,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "drawFullSizeOnCanvas",
"start": 1416,
"end": 1436,
"loc": {
"start": {
"line": 65,
"column": 4
},
"end": {
"line": 65,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1436,
"end": 1437,
"loc": {
"start": {
"line": 65,
"column": 24
},
"end": {
"line": 65,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "context",
"start": 1437,
"end": 1444,
"loc": {
"start": {
"line": 65,
"column": 25
},
"end": {
"line": 65,
"column": 32
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1444,
"end": 1445,
"loc": {
"start": {
"line": 65,
"column": 32
},
"end": {
"line": 65,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "size",
"start": 1446,
"end": 1450,
"loc": {
"start": {
"line": 65,
"column": 34
},
"end": {
"line": 65,
"column": 38
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1450,
"end": 1451,
"loc": {
"start": {
"line": 65,
"column": 38
},
"end": {
"line": 65,
"column": 39
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1452,
"end": 1453,
"loc": {
"start": {
"line": 65,
"column": 40
},
"end": {
"line": 65,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "abstract",
"start": 1463,
"end": 1471,
"loc": {
"start": {
"line": 66,
"column": 8
},
"end": {
"line": 66,
"column": 16
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1471,
"end": 1472,
"loc": {
"start": {
"line": 66,
"column": 16
},
"end": {
"line": 66,
"column": 17
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1478,
"end": 1479,
"loc": {
"start": {
"line": 67,
"column": 4
},
"end": {
"line": 67,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Draws the item at the given position\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {DrawParameters} parameters\r\n * @param {number=} diameter\r\n ",
"start": 1487,
"end": 1673,
"loc": {
"start": {
"line": 69,
"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": "drawItemCenteredClipped",
"start": 1679,
"end": 1702,
"loc": {
"start": {
"line": 76,
"column": 4
},
"end": {
"line": 76,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1702,
"end": 1703,
"loc": {
"start": {
"line": 76,
"column": 27
},
"end": {
"line": 76,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 1713,
"end": 1714,
"loc": {
"start": {
"line": 77,
"column": 8
},
"end": {
"line": 77,
"column": 9
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1714,
"end": 1715,
"loc": {
"start": {
"line": 77,
"column": 9
},
"end": {
"line": 77,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 1725,
"end": 1726,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 9
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1726,
"end": 1727,
"loc": {
"start": {
"line": 78,
"column": 9
},
"end": {
"line": 78,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parameters",
"start": 1737,
"end": 1747,
"loc": {
"start": {
"line": 79,
"column": 8
},
"end": {
"line": 79,
"column": 18
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1747,
"end": 1748,
"loc": {
"start": {
"line": 79,
"column": 18
},
"end": {
"line": 79,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "diameter",
"start": 1758,
"end": 1766,
"loc": {
"start": {
"line": 80,
"column": 8
},
"end": {
"line": 80,
"column": 16
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1767,
"end": 1768,
"loc": {
"start": {
"line": 80,
"column": 17
},
"end": {
"line": 80,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 1769,
"end": 1781,
"loc": {
"start": {
"line": 80,
"column": 19
},
"end": {
"line": 80,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1781,
"end": 1782,
"loc": {
"start": {
"line": 80,
"column": 31
},
"end": {
"line": 80,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "defaultItemDiameter",
"start": 1782,
"end": 1801,
"loc": {
"start": {
"line": 80,
"column": 32
},
"end": {
"line": 80,
"column": 51
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1801,
"end": 1802,
"loc": {
"start": {
"line": 80,
"column": 51
},
"end": {
"line": 80,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "background",
"start": 1812,
"end": 1822,
"loc": {
"start": {
"line": 81,
"column": 8
},
"end": {
"line": 81,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1823,
"end": 1824,
"loc": {
"start": {
"line": 81,
"column": 19
},
"end": {
"line": 81,
"column": 20
}
}
},
{
"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": 1825,
"end": 1829,
"loc": {
"start": {
"line": 81,
"column": 21
},
"end": {
"line": 81,
"column": 25
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1835,
"end": 1836,
"loc": {
"start": {
"line": 82,
"column": 4
},
"end": {
"line": 82,
"column": 5
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1837,
"end": 1838,
"loc": {
"start": {
"line": 82,
"column": 6
},
"end": {
"line": 82,
"column": 7
}
}
},
{
"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": 1848,
"end": 1850,
"loc": {
"start": {
"line": 83,
"column": 8
},
"end": {
"line": 83,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1851,
"end": 1852,
"loc": {
"start": {
"line": 83,
"column": 11
},
"end": {
"line": 83,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parameters",
"start": 1852,
"end": 1862,
"loc": {
"start": {
"line": 83,
"column": 12
},
"end": {
"line": 83,
"column": 22
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1862,
"end": 1863,
"loc": {
"start": {
"line": 83,
"column": 22
},
"end": {
"line": 83,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "visibleRect",
"start": 1863,
"end": 1874,
"loc": {
"start": {
"line": 83,
"column": 23
},
"end": {
"line": 83,
"column": 34
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1874,
"end": 1875,
"loc": {
"start": {
"line": 83,
"column": 34
},
"end": {
"line": 83,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "containsCircle",
"start": 1875,
"end": 1889,
"loc": {
"start": {
"line": 83,
"column": 35
},
"end": {
"line": 83,
"column": 49
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1889,
"end": 1890,
"loc": {
"start": {
"line": 83,
"column": 49
},
"end": {
"line": 83,
"column": 50
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 1890,
"end": 1891,
"loc": {
"start": {
"line": 83,
"column": 50
},
"end": {
"line": 83,
"column": 51
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1891,
"end": 1892,
"loc": {
"start": {
"line": 83,
"column": 51
},
"end": {
"line": 83,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 1893,
"end": 1894,
"loc": {
"start": {
"line": 83,
"column": 53
},
"end": {
"line": 83,
"column": 54
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1894,
"end": 1895,
"loc": {
"start": {
"line": 83,
"column": 54
},
"end": {
"line": 83,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "diameter",
"start": 1896,
"end": 1904,
"loc": {
"start": {
"line": 83,
"column": 56
},
"end": {
"line": 83,
"column": 64
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 1905,
"end": 1906,
"loc": {
"start": {
"line": 83,
"column": 65
},
"end": {
"line": 83,
"column": 66
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 2,
"start": 1907,
"end": 1908,
"loc": {
"start": {
"line": 83,
"column": 67
},
"end": {
"line": 83,
"column": 68
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1908,
"end": 1909,
"loc": {
"start": {
"line": 83,
"column": 68
},
"end": {
"line": 83,
"column": 69
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1909,
"end": 1910,
"loc": {
"start": {
"line": 83,
"column": 69
},
"end": {
"line": 83,
"column": 70
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1911,
"end": 1912,
"loc": {
"start": {
"line": 83,
"column": 71
},
"end": {
"line": 83,
"column": 72
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1926,
"end": 1930,
"loc": {
"start": {
"line": 84,
"column": 12
},
"end": {
"line": 84,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1930,
"end": 1931,
"loc": {
"start": {
"line": 84,
"column": 16
},
"end": {
"line": 84,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "drawItemCenteredImpl",
"start": 1931,
"end": 1951,
"loc": {
"start": {
"line": 84,
"column": 17
},
"end": {
"line": 84,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1951,
"end": 1952,
"loc": {
"start": {
"line": 84,
"column": 37
},
"end": {
"line": 84,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 1952,
"end": 1953,
"loc": {
"start": {
"line": 84,
"column": 38
},
"end": {
"line": 84,
"column": 39
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1953,
"end": 1954,
"loc": {
"start": {
"line": 84,
"column": 39
},
"end": {
"line": 84,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 1955,
"end": 1956,
"loc": {
"start": {
"line": 84,
"column": 41
},
"end": {
"line": 84,
"column": 42
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1956,
"end": 1957,
"loc": {
"start": {
"line": 84,
"column": 42
},
"end": {
"line": 84,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parameters",
"start": 1958,
"end": 1968,
"loc": {
"start": {
"line": 84,
"column": 44
},
"end": {
"line": 84,
"column": 54
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1968,
"end": 1969,
"loc": {
"start": {
"line": 84,
"column": 54
},
"end": {
"line": 84,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "diameter",
"start": 1970,
"end": 1978,
"loc": {
"start": {
"line": 84,
"column": 56
},
"end": {
"line": 84,
"column": 64
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1978,
"end": 1979,
"loc": {
"start": {
"line": 84,
"column": 64
},
"end": {
"line": 84,
"column": 65
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "background",
"start": 1980,
"end": 1990,
"loc": {
"start": {
"line": 84,
"column": 66
},
"end": {
"line": 84,
"column": 76
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1990,
"end": 1991,
"loc": {
"start": {
"line": 84,
"column": 76
},
"end": {
"line": 84,
"column": 77
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1991,
"end": 1992,
"loc": {
"start": {
"line": 84,
"column": 77
},
"end": {
"line": 84,
"column": 78
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2002,
"end": 2003,
"loc": {
"start": {
"line": 85,
"column": 8
},
"end": {
"line": 85,
"column": 9
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2009,
"end": 2010,
"loc": {
"start": {
"line": 86,
"column": 4
},
"end": {
"line": 86,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * INTERNAL\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {DrawParameters} parameters\r\n * @param {number=} diameter\r\n ",
"start": 2018,
"end": 2176,
"loc": {
"start": {
"line": 88,
"column": 4
},
"end": {
"line": 94,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "drawItemCenteredImpl",
"start": 2182,
"end": 2202,
"loc": {
"start": {
"line": 95,
"column": 4
},
"end": {
"line": 95,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2202,
"end": 2203,
"loc": {
"start": {
"line": 95,
"column": 24
},
"end": {
"line": 95,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 2203,
"end": 2204,
"loc": {
"start": {
"line": 95,
"column": 25
},
"end": {
"line": 95,
"column": 26
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2204,
"end": 2205,
"loc": {
"start": {
"line": 95,
"column": 26
},
"end": {
"line": 95,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 2206,
"end": 2207,
"loc": {
"start": {
"line": 95,
"column": 28
},
"end": {
"line": 95,
"column": 29
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2207,
"end": 2208,
"loc": {
"start": {
"line": 95,
"column": 29
},
"end": {
"line": 95,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parameters",
"start": 2209,
"end": 2219,
"loc": {
"start": {
"line": 95,
"column": 31
},
"end": {
"line": 95,
"column": 41
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2219,
"end": 2220,
"loc": {
"start": {
"line": 95,
"column": 41
},
"end": {
"line": 95,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "diameter",
"start": 2221,
"end": 2229,
"loc": {
"start": {
"line": 95,
"column": 43
},
"end": {
"line": 95,
"column": 51
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2230,
"end": 2231,
"loc": {
"start": {
"line": 95,
"column": 52
},
"end": {
"line": 95,
"column": 53
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 2232,
"end": 2244,
"loc": {
"start": {
"line": 95,
"column": 54
},
"end": {
"line": 95,
"column": 66
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2244,
"end": 2245,
"loc": {
"start": {
"line": 95,
"column": 66
},
"end": {
"line": 95,
"column": 67
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "defaultItemDiameter",
"start": 2245,
"end": 2264,
"loc": {
"start": {
"line": 95,
"column": 67
},
"end": {
"line": 95,
"column": 86
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2264,
"end": 2265,
"loc": {
"start": {
"line": 95,
"column": 86
},
"end": {
"line": 95,
"column": 87
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "background",
"start": 2266,
"end": 2276,
"loc": {
"start": {
"line": 95,
"column": 88
},
"end": {
"line": 95,
"column": 98
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2277,
"end": 2278,
"loc": {
"start": {
"line": 95,
"column": 99
},
"end": {
"line": 95,
"column": 100
}
}
},
{
"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": 2279,
"end": 2283,
"loc": {
"start": {
"line": 95,
"column": 101
},
"end": {
"line": 95,
"column": 105
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2283,
"end": 2284,
"loc": {
"start": {
"line": 95,
"column": 105
},
"end": {
"line": 95,
"column": 106
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2285,
"end": 2286,
"loc": {
"start": {
"line": 95,
"column": 107
},
"end": {
"line": 95,
"column": 108
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "abstract",
"start": 2296,
"end": 2304,
"loc": {
"start": {
"line": 96,
"column": 8
},
"end": {
"line": 96,
"column": 16
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2304,
"end": 2305,
"loc": {
"start": {
"line": 96,
"column": 16
},
"end": {
"line": 96,
"column": 17
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2311,
"end": 2312,
"loc": {
"start": {
"line": 97,
"column": 4
},
"end": {
"line": 97,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getBackgroundColorAsResource",
"start": 2320,
"end": 2348,
"loc": {
"start": {
"line": 99,
"column": 4
},
"end": {
"line": 99,
"column": 32
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2348,
"end": 2349,
"loc": {
"start": {
"line": 99,
"column": 32
},
"end": {
"line": 99,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2349,
"end": 2350,
"loc": {
"start": {
"line": 99,
"column": 33
},
"end": {
"line": 99,
"column": 34
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2351,
"end": 2352,
"loc": {
"start": {
"line": 99,
"column": 35
},
"end": {
"line": 99,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "abstract",
"start": 2362,
"end": 2370,
"loc": {
"start": {
"line": 100,
"column": 8
},
"end": {
"line": 100,
"column": 16
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2370,
"end": 2371,
"loc": {
"start": {
"line": 100,
"column": 16
},
"end": {
"line": 100,
"column": 17
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 2381,
"end": 2387,
"loc": {
"start": {
"line": 101,
"column": 8
},
"end": {
"line": 101,
"column": 14
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "",
"start": 2388,
"end": 2390,
"loc": {
"start": {
"line": 101,
"column": 15
},
"end": {
"line": 101,
"column": 17
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2390,
"end": 2391,
"loc": {
"start": {
"line": 101,
"column": 17
},
"end": {
"line": 101,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2397,
"end": 2398,
"loc": {
"start": {
"line": 102,
"column": 4
},
"end": {
"line": 102,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2400,
"end": 2401,
"loc": {
"start": {
"line": 103,
"column": 0
},
"end": {
"line": 103,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2401,
"end": 2401,
"loc": {
"start": {
"line": 103,
"column": 1
},
"end": {
"line": 103,
"column": 1
}
}
}
]
}