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/core/rectangle.js.json
2021-02-26 15:20:37 +01:00

52824 lines
1.3 MiB

{
"type": "File",
"start": 0,
"end": 9076,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 358,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 9076,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 358,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 40,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 40
}
},
"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": 39,
"loc": {
"start": {
"line": 1,
"column": 29
},
"end": {
"line": 1,
"column": 39
}
},
"extra": {
"rawValue": "./config",
"raw": "\"./config\""
},
"value": "./config"
}
},
{
"type": "ImportDeclaration",
"start": 42,
"end": 97,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 55
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 51,
"end": 65,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 23
}
},
"imported": {
"type": "Identifier",
"start": 51,
"end": 65,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 23
},
"identifierName": "epsilonCompare"
},
"name": "epsilonCompare"
},
"local": {
"type": "Identifier",
"start": 51,
"end": 65,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 23
},
"identifierName": "epsilonCompare"
},
"name": "epsilonCompare"
}
},
{
"type": "ImportSpecifier",
"start": 67,
"end": 79,
"loc": {
"start": {
"line": 2,
"column": 25
},
"end": {
"line": 2,
"column": 37
}
},
"imported": {
"type": "Identifier",
"start": 67,
"end": 79,
"loc": {
"start": {
"line": 2,
"column": 25
},
"end": {
"line": 2,
"column": 37
},
"identifierName": "round2Digits"
},
"name": "round2Digits"
},
"local": {
"type": "Identifier",
"start": 67,
"end": 79,
"loc": {
"start": {
"line": 2,
"column": 25
},
"end": {
"line": 2,
"column": 37
},
"identifierName": "round2Digits"
},
"name": "round2Digits"
}
}
],
"source": {
"type": "StringLiteral",
"start": 87,
"end": 96,
"loc": {
"start": {
"line": 2,
"column": 45
},
"end": {
"line": 2,
"column": 54
}
},
"extra": {
"rawValue": "./utils",
"raw": "\"./utils\""
},
"value": "./utils"
}
},
{
"type": "ImportDeclaration",
"start": 99,
"end": 133,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 34
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 108,
"end": 114,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 15
}
},
"imported": {
"type": "Identifier",
"start": 108,
"end": 114,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 15
},
"identifierName": "Vector"
},
"name": "Vector"
},
"local": {
"type": "Identifier",
"start": 108,
"end": 114,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 15
},
"identifierName": "Vector"
},
"name": "Vector"
}
}
],
"source": {
"type": "StringLiteral",
"start": 122,
"end": 132,
"loc": {
"start": {
"line": 3,
"column": 23
},
"end": {
"line": 3,
"column": 33
}
},
"extra": {
"rawValue": "./vector",
"raw": "\"./vector\""
},
"value": "./vector"
}
},
{
"type": "ExportNamedDeclaration",
"start": 137,
"end": 9074,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 357,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "ClassDeclaration",
"start": 144,
"end": 9074,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 357,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 150,
"end": 159,
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 22
},
"identifierName": "Rectangle"
},
"name": "Rectangle"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 160,
"end": 9074,
"loc": {
"start": {
"line": 5,
"column": 23
},
"end": {
"line": 357,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 167,
"end": 299,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 11,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 167,
"end": 178,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor"
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "AssignmentPattern",
"start": 179,
"end": 184,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 21
}
},
"left": {
"type": "Identifier",
"start": 179,
"end": 180,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 17
},
"identifierName": "x"
},
"name": "x"
},
"right": {
"type": "NumericLiteral",
"start": 183,
"end": 184,
"loc": {
"start": {
"line": 6,
"column": 20
},
"end": {
"line": 6,
"column": 21
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
},
{
"type": "AssignmentPattern",
"start": 186,
"end": 191,
"loc": {
"start": {
"line": 6,
"column": 23
},
"end": {
"line": 6,
"column": 28
}
},
"left": {
"type": "Identifier",
"start": 186,
"end": 187,
"loc": {
"start": {
"line": 6,
"column": 23
},
"end": {
"line": 6,
"column": 24
},
"identifierName": "y"
},
"name": "y"
},
"right": {
"type": "NumericLiteral",
"start": 190,
"end": 191,
"loc": {
"start": {
"line": 6,
"column": 27
},
"end": {
"line": 6,
"column": 28
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
},
{
"type": "AssignmentPattern",
"start": 193,
"end": 198,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 6,
"column": 35
}
},
"left": {
"type": "Identifier",
"start": 193,
"end": 194,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 6,
"column": 31
},
"identifierName": "w"
},
"name": "w"
},
"right": {
"type": "NumericLiteral",
"start": 197,
"end": 198,
"loc": {
"start": {
"line": 6,
"column": 34
},
"end": {
"line": 6,
"column": 35
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
},
{
"type": "AssignmentPattern",
"start": 200,
"end": 205,
"loc": {
"start": {
"line": 6,
"column": 37
},
"end": {
"line": 6,
"column": 42
}
},
"left": {
"type": "Identifier",
"start": 200,
"end": 201,
"loc": {
"start": {
"line": 6,
"column": 37
},
"end": {
"line": 6,
"column": 38
},
"identifierName": "h"
},
"name": "h"
},
"right": {
"type": "NumericLiteral",
"start": 204,
"end": 205,
"loc": {
"start": {
"line": 6,
"column": 41
},
"end": {
"line": 6,
"column": 42
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
],
"body": {
"type": "BlockStatement",
"start": 207,
"end": 299,
"loc": {
"start": {
"line": 6,
"column": 44
},
"end": {
"line": 11,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 218,
"end": 229,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 19
}
},
"expression": {
"type": "AssignmentExpression",
"start": 218,
"end": 228,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 18
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 218,
"end": 224,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 14
}
},
"object": {
"type": "ThisExpression",
"start": 218,
"end": 222,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 223,
"end": 224,
"loc": {
"start": {
"line": 7,
"column": 13
},
"end": {
"line": 7,
"column": 14
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 227,
"end": 228,
"loc": {
"start": {
"line": 7,
"column": 17
},
"end": {
"line": 7,
"column": 18
},
"identifierName": "x"
},
"name": "x"
}
}
},
{
"type": "ExpressionStatement",
"start": 239,
"end": 250,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 19
}
},
"expression": {
"type": "AssignmentExpression",
"start": 239,
"end": 249,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 18
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 239,
"end": 245,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 14
}
},
"object": {
"type": "ThisExpression",
"start": 239,
"end": 243,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 244,
"end": 245,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 14
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 248,
"end": 249,
"loc": {
"start": {
"line": 8,
"column": 17
},
"end": {
"line": 8,
"column": 18
},
"identifierName": "y"
},
"name": "y"
}
}
},
{
"type": "ExpressionStatement",
"start": 260,
"end": 271,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 19
}
},
"expression": {
"type": "AssignmentExpression",
"start": 260,
"end": 270,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 18
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 260,
"end": 266,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 14
}
},
"object": {
"type": "ThisExpression",
"start": 260,
"end": 264,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 265,
"end": 266,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 14
},
"identifierName": "w"
},
"name": "w"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 269,
"end": 270,
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 9,
"column": 18
},
"identifierName": "w"
},
"name": "w"
}
}
},
{
"type": "ExpressionStatement",
"start": 281,
"end": 292,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 19
}
},
"expression": {
"type": "AssignmentExpression",
"start": 281,
"end": 291,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 18
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 281,
"end": 287,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 14
}
},
"object": {
"type": "ThisExpression",
"start": 281,
"end": 285,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 286,
"end": 287,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 14
},
"identifierName": "h"
},
"name": "h"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 290,
"end": 291,
"loc": {
"start": {
"line": 10,
"column": 17
},
"end": {
"line": 10,
"column": 18
},
"identifierName": "h"
},
"name": "h"
}
}
}
],
"directives": [],
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Creates a rectangle from top right bottom and left offsets\r\n * @param {number} top\r\n * @param {number} right\r\n * @param {number} bottom\r\n * @param {number} left\r\n ",
"start": 307,
"end": 504,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 19,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 510,
"end": 630,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 22,
"column": 5
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 517,
"end": 525,
"loc": {
"start": {
"line": 20,
"column": 11
},
"end": {
"line": 20,
"column": 19
},
"identifierName": "fromTRBL"
},
"name": "fromTRBL"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 526,
"end": 529,
"loc": {
"start": {
"line": 20,
"column": 20
},
"end": {
"line": 20,
"column": 23
},
"identifierName": "top"
},
"name": "top"
},
{
"type": "Identifier",
"start": 531,
"end": 536,
"loc": {
"start": {
"line": 20,
"column": 25
},
"end": {
"line": 20,
"column": 30
},
"identifierName": "right"
},
"name": "right"
},
{
"type": "Identifier",
"start": 538,
"end": 544,
"loc": {
"start": {
"line": 20,
"column": 32
},
"end": {
"line": 20,
"column": 38
},
"identifierName": "bottom"
},
"name": "bottom"
},
{
"type": "Identifier",
"start": 546,
"end": 550,
"loc": {
"start": {
"line": 20,
"column": 40
},
"end": {
"line": 20,
"column": 44
},
"identifierName": "left"
},
"name": "left"
}
],
"body": {
"type": "BlockStatement",
"start": 552,
"end": 630,
"loc": {
"start": {
"line": 20,
"column": 46
},
"end": {
"line": 22,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 563,
"end": 623,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 68
}
},
"argument": {
"type": "NewExpression",
"start": 570,
"end": 622,
"loc": {
"start": {
"line": 21,
"column": 15
},
"end": {
"line": 21,
"column": 67
}
},
"callee": {
"type": "Identifier",
"start": 574,
"end": 583,
"loc": {
"start": {
"line": 21,
"column": 19
},
"end": {
"line": 21,
"column": 28
},
"identifierName": "Rectangle"
},
"name": "Rectangle"
},
"arguments": [
{
"type": "Identifier",
"start": 584,
"end": 588,
"loc": {
"start": {
"line": 21,
"column": 29
},
"end": {
"line": 21,
"column": 33
},
"identifierName": "left"
},
"name": "left"
},
{
"type": "Identifier",
"start": 590,
"end": 593,
"loc": {
"start": {
"line": 21,
"column": 35
},
"end": {
"line": 21,
"column": 38
},
"identifierName": "top"
},
"name": "top"
},
{
"type": "BinaryExpression",
"start": 595,
"end": 607,
"loc": {
"start": {
"line": 21,
"column": 40
},
"end": {
"line": 21,
"column": 52
}
},
"left": {
"type": "Identifier",
"start": 595,
"end": 600,
"loc": {
"start": {
"line": 21,
"column": 40
},
"end": {
"line": 21,
"column": 45
},
"identifierName": "right"
},
"name": "right"
},
"operator": "-",
"right": {
"type": "Identifier",
"start": 603,
"end": 607,
"loc": {
"start": {
"line": 21,
"column": 48
},
"end": {
"line": 21,
"column": 52
},
"identifierName": "left"
},
"name": "left"
}
},
{
"type": "BinaryExpression",
"start": 609,
"end": 621,
"loc": {
"start": {
"line": 21,
"column": 54
},
"end": {
"line": 21,
"column": 66
}
},
"left": {
"type": "Identifier",
"start": 609,
"end": 615,
"loc": {
"start": {
"line": 21,
"column": 54
},
"end": {
"line": 21,
"column": 60
},
"identifierName": "bottom"
},
"name": "bottom"
},
"operator": "-",
"right": {
"type": "Identifier",
"start": 618,
"end": 621,
"loc": {
"start": {
"line": 21,
"column": 63
},
"end": {
"line": 21,
"column": 66
},
"identifierName": "top"
},
"name": "top"
}
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Creates a rectangle from top right bottom and left offsets\r\n * @param {number} top\r\n * @param {number} right\r\n * @param {number} bottom\r\n * @param {number} left\r\n ",
"start": 307,
"end": 504,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 19,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Constructs a new square rectangle\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {number} size\r\n ",
"start": 638,
"end": 773,
"loc": {
"start": {
"line": 24,
"column": 4
},
"end": {
"line": 29,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 779,
"end": 866,
"loc": {
"start": {
"line": 30,
"column": 4
},
"end": {
"line": 32,
"column": 5
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 786,
"end": 796,
"loc": {
"start": {
"line": 30,
"column": 11
},
"end": {
"line": 30,
"column": 21
},
"identifierName": "fromSquare"
},
"name": "fromSquare"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 797,
"end": 798,
"loc": {
"start": {
"line": 30,
"column": 22
},
"end": {
"line": 30,
"column": 23
},
"identifierName": "x"
},
"name": "x"
},
{
"type": "Identifier",
"start": 800,
"end": 801,
"loc": {
"start": {
"line": 30,
"column": 25
},
"end": {
"line": 30,
"column": 26
},
"identifierName": "y"
},
"name": "y"
},
{
"type": "Identifier",
"start": 803,
"end": 807,
"loc": {
"start": {
"line": 30,
"column": 28
},
"end": {
"line": 30,
"column": 32
},
"identifierName": "size"
},
"name": "size"
}
],
"body": {
"type": "BlockStatement",
"start": 809,
"end": 866,
"loc": {
"start": {
"line": 30,
"column": 34
},
"end": {
"line": 32,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 820,
"end": 859,
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 31,
"column": 47
}
},
"argument": {
"type": "NewExpression",
"start": 827,
"end": 858,
"loc": {
"start": {
"line": 31,
"column": 15
},
"end": {
"line": 31,
"column": 46
}
},
"callee": {
"type": "Identifier",
"start": 831,
"end": 840,
"loc": {
"start": {
"line": 31,
"column": 19
},
"end": {
"line": 31,
"column": 28
},
"identifierName": "Rectangle"
},
"name": "Rectangle"
},
"arguments": [
{
"type": "Identifier",
"start": 841,
"end": 842,
"loc": {
"start": {
"line": 31,
"column": 29
},
"end": {
"line": 31,
"column": 30
},
"identifierName": "x"
},
"name": "x"
},
{
"type": "Identifier",
"start": 844,
"end": 845,
"loc": {
"start": {
"line": 31,
"column": 32
},
"end": {
"line": 31,
"column": 33
},
"identifierName": "y"
},
"name": "y"
},
{
"type": "Identifier",
"start": 847,
"end": 851,
"loc": {
"start": {
"line": 31,
"column": 35
},
"end": {
"line": 31,
"column": 39
},
"identifierName": "size"
},
"name": "size"
},
{
"type": "Identifier",
"start": 853,
"end": 857,
"loc": {
"start": {
"line": 31,
"column": 41
},
"end": {
"line": 31,
"column": 45
},
"identifierName": "size"
},
"name": "size"
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Constructs a new square rectangle\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {number} size\r\n ",
"start": 638,
"end": 773,
"loc": {
"start": {
"line": 24,
"column": 4
},
"end": {
"line": 29,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n *\r\n * @param {Vector} p1\r\n * @param {Vector} p2\r\n ",
"start": 874,
"end": 948,
"loc": {
"start": {
"line": 34,
"column": 4
},
"end": {
"line": 38,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 954,
"end": 1239,
"loc": {
"start": {
"line": 39,
"column": 4
},
"end": {
"line": 45,
"column": 5
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 961,
"end": 974,
"loc": {
"start": {
"line": 39,
"column": 11
},
"end": {
"line": 39,
"column": 24
},
"identifierName": "fromTwoPoints"
},
"name": "fromTwoPoints"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 975,
"end": 977,
"loc": {
"start": {
"line": 39,
"column": 25
},
"end": {
"line": 39,
"column": 27
},
"identifierName": "p1"
},
"name": "p1"
},
{
"type": "Identifier",
"start": 979,
"end": 981,
"loc": {
"start": {
"line": 39,
"column": 29
},
"end": {
"line": 39,
"column": 31
},
"identifierName": "p2"
},
"name": "p2"
}
],
"body": {
"type": "BlockStatement",
"start": 983,
"end": 1239,
"loc": {
"start": {
"line": 39,
"column": 33
},
"end": {
"line": 45,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 994,
"end": 1028,
"loc": {
"start": {
"line": 40,
"column": 8
},
"end": {
"line": 40,
"column": 42
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1000,
"end": 1027,
"loc": {
"start": {
"line": 40,
"column": 14
},
"end": {
"line": 40,
"column": 41
}
},
"id": {
"type": "Identifier",
"start": 1000,
"end": 1004,
"loc": {
"start": {
"line": 40,
"column": 14
},
"end": {
"line": 40,
"column": 18
},
"identifierName": "left"
},
"name": "left"
},
"init": {
"type": "CallExpression",
"start": 1007,
"end": 1027,
"loc": {
"start": {
"line": 40,
"column": 21
},
"end": {
"line": 40,
"column": 41
}
},
"callee": {
"type": "MemberExpression",
"start": 1007,
"end": 1015,
"loc": {
"start": {
"line": 40,
"column": 21
},
"end": {
"line": 40,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 1007,
"end": 1011,
"loc": {
"start": {
"line": 40,
"column": 21
},
"end": {
"line": 40,
"column": 25
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 1012,
"end": 1015,
"loc": {
"start": {
"line": 40,
"column": 26
},
"end": {
"line": 40,
"column": 29
},
"identifierName": "min"
},
"name": "min"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 1016,
"end": 1020,
"loc": {
"start": {
"line": 40,
"column": 30
},
"end": {
"line": 40,
"column": 34
}
},
"object": {
"type": "Identifier",
"start": 1016,
"end": 1018,
"loc": {
"start": {
"line": 40,
"column": 30
},
"end": {
"line": 40,
"column": 32
},
"identifierName": "p1"
},
"name": "p1"
},
"property": {
"type": "Identifier",
"start": 1019,
"end": 1020,
"loc": {
"start": {
"line": 40,
"column": 33
},
"end": {
"line": 40,
"column": 34
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 1022,
"end": 1026,
"loc": {
"start": {
"line": 40,
"column": 36
},
"end": {
"line": 40,
"column": 40
}
},
"object": {
"type": "Identifier",
"start": 1022,
"end": 1024,
"loc": {
"start": {
"line": 40,
"column": 36
},
"end": {
"line": 40,
"column": 38
},
"identifierName": "p2"
},
"name": "p2"
},
"property": {
"type": "Identifier",
"start": 1025,
"end": 1026,
"loc": {
"start": {
"line": 40,
"column": 39
},
"end": {
"line": 40,
"column": 40
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
}
]
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 1038,
"end": 1071,
"loc": {
"start": {
"line": 41,
"column": 8
},
"end": {
"line": 41,
"column": 41
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1044,
"end": 1070,
"loc": {
"start": {
"line": 41,
"column": 14
},
"end": {
"line": 41,
"column": 40
}
},
"id": {
"type": "Identifier",
"start": 1044,
"end": 1047,
"loc": {
"start": {
"line": 41,
"column": 14
},
"end": {
"line": 41,
"column": 17
},
"identifierName": "top"
},
"name": "top"
},
"init": {
"type": "CallExpression",
"start": 1050,
"end": 1070,
"loc": {
"start": {
"line": 41,
"column": 20
},
"end": {
"line": 41,
"column": 40
}
},
"callee": {
"type": "MemberExpression",
"start": 1050,
"end": 1058,
"loc": {
"start": {
"line": 41,
"column": 20
},
"end": {
"line": 41,
"column": 28
}
},
"object": {
"type": "Identifier",
"start": 1050,
"end": 1054,
"loc": {
"start": {
"line": 41,
"column": 20
},
"end": {
"line": 41,
"column": 24
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 1055,
"end": 1058,
"loc": {
"start": {
"line": 41,
"column": 25
},
"end": {
"line": 41,
"column": 28
},
"identifierName": "min"
},
"name": "min"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 1059,
"end": 1063,
"loc": {
"start": {
"line": 41,
"column": 29
},
"end": {
"line": 41,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 1059,
"end": 1061,
"loc": {
"start": {
"line": 41,
"column": 29
},
"end": {
"line": 41,
"column": 31
},
"identifierName": "p1"
},
"name": "p1"
},
"property": {
"type": "Identifier",
"start": 1062,
"end": 1063,
"loc": {
"start": {
"line": 41,
"column": 32
},
"end": {
"line": 41,
"column": 33
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 1065,
"end": 1069,
"loc": {
"start": {
"line": 41,
"column": 35
},
"end": {
"line": 41,
"column": 39
}
},
"object": {
"type": "Identifier",
"start": 1065,
"end": 1067,
"loc": {
"start": {
"line": 41,
"column": 35
},
"end": {
"line": 41,
"column": 37
},
"identifierName": "p2"
},
"name": "p2"
},
"property": {
"type": "Identifier",
"start": 1068,
"end": 1069,
"loc": {
"start": {
"line": 41,
"column": 38
},
"end": {
"line": 41,
"column": 39
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
}
]
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 1081,
"end": 1116,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 43
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1087,
"end": 1115,
"loc": {
"start": {
"line": 42,
"column": 14
},
"end": {
"line": 42,
"column": 42
}
},
"id": {
"type": "Identifier",
"start": 1087,
"end": 1092,
"loc": {
"start": {
"line": 42,
"column": 14
},
"end": {
"line": 42,
"column": 19
},
"identifierName": "right"
},
"name": "right"
},
"init": {
"type": "CallExpression",
"start": 1095,
"end": 1115,
"loc": {
"start": {
"line": 42,
"column": 22
},
"end": {
"line": 42,
"column": 42
}
},
"callee": {
"type": "MemberExpression",
"start": 1095,
"end": 1103,
"loc": {
"start": {
"line": 42,
"column": 22
},
"end": {
"line": 42,
"column": 30
}
},
"object": {
"type": "Identifier",
"start": 1095,
"end": 1099,
"loc": {
"start": {
"line": 42,
"column": 22
},
"end": {
"line": 42,
"column": 26
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 1100,
"end": 1103,
"loc": {
"start": {
"line": 42,
"column": 27
},
"end": {
"line": 42,
"column": 30
},
"identifierName": "max"
},
"name": "max"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 1104,
"end": 1108,
"loc": {
"start": {
"line": 42,
"column": 31
},
"end": {
"line": 42,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 1104,
"end": 1106,
"loc": {
"start": {
"line": 42,
"column": 31
},
"end": {
"line": 42,
"column": 33
},
"identifierName": "p1"
},
"name": "p1"
},
"property": {
"type": "Identifier",
"start": 1107,
"end": 1108,
"loc": {
"start": {
"line": 42,
"column": 34
},
"end": {
"line": 42,
"column": 35
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 1110,
"end": 1114,
"loc": {
"start": {
"line": 42,
"column": 37
},
"end": {
"line": 42,
"column": 41
}
},
"object": {
"type": "Identifier",
"start": 1110,
"end": 1112,
"loc": {
"start": {
"line": 42,
"column": 37
},
"end": {
"line": 42,
"column": 39
},
"identifierName": "p2"
},
"name": "p2"
},
"property": {
"type": "Identifier",
"start": 1113,
"end": 1114,
"loc": {
"start": {
"line": 42,
"column": 40
},
"end": {
"line": 42,
"column": 41
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
}
]
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 1126,
"end": 1162,
"loc": {
"start": {
"line": 43,
"column": 8
},
"end": {
"line": 43,
"column": 44
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1132,
"end": 1161,
"loc": {
"start": {
"line": 43,
"column": 14
},
"end": {
"line": 43,
"column": 43
}
},
"id": {
"type": "Identifier",
"start": 1132,
"end": 1138,
"loc": {
"start": {
"line": 43,
"column": 14
},
"end": {
"line": 43,
"column": 20
},
"identifierName": "bottom"
},
"name": "bottom"
},
"init": {
"type": "CallExpression",
"start": 1141,
"end": 1161,
"loc": {
"start": {
"line": 43,
"column": 23
},
"end": {
"line": 43,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
"start": 1141,
"end": 1149,
"loc": {
"start": {
"line": 43,
"column": 23
},
"end": {
"line": 43,
"column": 31
}
},
"object": {
"type": "Identifier",
"start": 1141,
"end": 1145,
"loc": {
"start": {
"line": 43,
"column": 23
},
"end": {
"line": 43,
"column": 27
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 1146,
"end": 1149,
"loc": {
"start": {
"line": 43,
"column": 28
},
"end": {
"line": 43,
"column": 31
},
"identifierName": "max"
},
"name": "max"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 1150,
"end": 1154,
"loc": {
"start": {
"line": 43,
"column": 32
},
"end": {
"line": 43,
"column": 36
}
},
"object": {
"type": "Identifier",
"start": 1150,
"end": 1152,
"loc": {
"start": {
"line": 43,
"column": 32
},
"end": {
"line": 43,
"column": 34
},
"identifierName": "p1"
},
"name": "p1"
},
"property": {
"type": "Identifier",
"start": 1153,
"end": 1154,
"loc": {
"start": {
"line": 43,
"column": 35
},
"end": {
"line": 43,
"column": 36
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 1156,
"end": 1160,
"loc": {
"start": {
"line": 43,
"column": 38
},
"end": {
"line": 43,
"column": 42
}
},
"object": {
"type": "Identifier",
"start": 1156,
"end": 1158,
"loc": {
"start": {
"line": 43,
"column": 38
},
"end": {
"line": 43,
"column": 40
},
"identifierName": "p2"
},
"name": "p2"
},
"property": {
"type": "Identifier",
"start": 1159,
"end": 1160,
"loc": {
"start": {
"line": 43,
"column": 41
},
"end": {
"line": 43,
"column": 42
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
}
]
}
}
],
"kind": "const"
},
{
"type": "ReturnStatement",
"start": 1172,
"end": 1232,
"loc": {
"start": {
"line": 44,
"column": 8
},
"end": {
"line": 44,
"column": 68
}
},
"argument": {
"type": "NewExpression",
"start": 1179,
"end": 1231,
"loc": {
"start": {
"line": 44,
"column": 15
},
"end": {
"line": 44,
"column": 67
}
},
"callee": {
"type": "Identifier",
"start": 1183,
"end": 1192,
"loc": {
"start": {
"line": 44,
"column": 19
},
"end": {
"line": 44,
"column": 28
},
"identifierName": "Rectangle"
},
"name": "Rectangle"
},
"arguments": [
{
"type": "Identifier",
"start": 1193,
"end": 1197,
"loc": {
"start": {
"line": 44,
"column": 29
},
"end": {
"line": 44,
"column": 33
},
"identifierName": "left"
},
"name": "left"
},
{
"type": "Identifier",
"start": 1199,
"end": 1202,
"loc": {
"start": {
"line": 44,
"column": 35
},
"end": {
"line": 44,
"column": 38
},
"identifierName": "top"
},
"name": "top"
},
{
"type": "BinaryExpression",
"start": 1204,
"end": 1216,
"loc": {
"start": {
"line": 44,
"column": 40
},
"end": {
"line": 44,
"column": 52
}
},
"left": {
"type": "Identifier",
"start": 1204,
"end": 1209,
"loc": {
"start": {
"line": 44,
"column": 40
},
"end": {
"line": 44,
"column": 45
},
"identifierName": "right"
},
"name": "right"
},
"operator": "-",
"right": {
"type": "Identifier",
"start": 1212,
"end": 1216,
"loc": {
"start": {
"line": 44,
"column": 48
},
"end": {
"line": 44,
"column": 52
},
"identifierName": "left"
},
"name": "left"
}
},
{
"type": "BinaryExpression",
"start": 1218,
"end": 1230,
"loc": {
"start": {
"line": 44,
"column": 54
},
"end": {
"line": 44,
"column": 66
}
},
"left": {
"type": "Identifier",
"start": 1218,
"end": 1224,
"loc": {
"start": {
"line": 44,
"column": 54
},
"end": {
"line": 44,
"column": 60
},
"identifierName": "bottom"
},
"name": "bottom"
},
"operator": "-",
"right": {
"type": "Identifier",
"start": 1227,
"end": 1230,
"loc": {
"start": {
"line": 44,
"column": 63
},
"end": {
"line": 44,
"column": 66
},
"identifierName": "top"
},
"name": "top"
}
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n *\r\n * @param {Vector} p1\r\n * @param {Vector} p2\r\n ",
"start": 874,
"end": 948,
"loc": {
"start": {
"line": 34,
"column": 4
},
"end": {
"line": 38,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if a intersects b\r\n * @param {Rectangle} a\r\n * @param {Rectangle} b\r\n ",
"start": 1247,
"end": 1351,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 51,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1357,
"end": 1487,
"loc": {
"start": {
"line": 52,
"column": 4
},
"end": {
"line": 54,
"column": 5
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 1364,
"end": 1374,
"loc": {
"start": {
"line": 52,
"column": 11
},
"end": {
"line": 52,
"column": 21
},
"identifierName": "intersects"
},
"name": "intersects"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1375,
"end": 1376,
"loc": {
"start": {
"line": 52,
"column": 22
},
"end": {
"line": 52,
"column": 23
},
"identifierName": "a"
},
"name": "a"
},
{
"type": "Identifier",
"start": 1378,
"end": 1379,
"loc": {
"start": {
"line": 52,
"column": 25
},
"end": {
"line": 52,
"column": 26
},
"identifierName": "b"
},
"name": "b"
}
],
"body": {
"type": "BlockStatement",
"start": 1381,
"end": 1487,
"loc": {
"start": {
"line": 52,
"column": 28
},
"end": {
"line": 54,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 1392,
"end": 1480,
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 96
}
},
"argument": {
"type": "LogicalExpression",
"start": 1399,
"end": 1479,
"loc": {
"start": {
"line": 53,
"column": 15
},
"end": {
"line": 53,
"column": 95
}
},
"left": {
"type": "LogicalExpression",
"start": 1399,
"end": 1458,
"loc": {
"start": {
"line": 53,
"column": 15
},
"end": {
"line": 53,
"column": 74
}
},
"left": {
"type": "LogicalExpression",
"start": 1399,
"end": 1437,
"loc": {
"start": {
"line": 53,
"column": 15
},
"end": {
"line": 53,
"column": 53
}
},
"left": {
"type": "BinaryExpression",
"start": 1399,
"end": 1416,
"loc": {
"start": {
"line": 53,
"column": 15
},
"end": {
"line": 53,
"column": 32
}
},
"left": {
"type": "MemberExpression",
"start": 1399,
"end": 1405,
"loc": {
"start": {
"line": 53,
"column": 15
},
"end": {
"line": 53,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 1399,
"end": 1400,
"loc": {
"start": {
"line": 53,
"column": 15
},
"end": {
"line": 53,
"column": 16
},
"identifierName": "a"
},
"name": "a"
},
"property": {
"type": "Identifier",
"start": 1401,
"end": 1405,
"loc": {
"start": {
"line": 53,
"column": 17
},
"end": {
"line": 53,
"column": 21
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"operator": "<=",
"right": {
"type": "MemberExpression",
"start": 1409,
"end": 1416,
"loc": {
"start": {
"line": 53,
"column": 25
},
"end": {
"line": 53,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 1409,
"end": 1410,
"loc": {
"start": {
"line": 53,
"column": 25
},
"end": {
"line": 53,
"column": 26
},
"identifierName": "b"
},
"name": "b"
},
"property": {
"type": "Identifier",
"start": 1411,
"end": 1416,
"loc": {
"start": {
"line": 53,
"column": 27
},
"end": {
"line": 53,
"column": 32
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 1420,
"end": 1437,
"loc": {
"start": {
"line": 53,
"column": 36
},
"end": {
"line": 53,
"column": 53
}
},
"left": {
"type": "MemberExpression",
"start": 1420,
"end": 1426,
"loc": {
"start": {
"line": 53,
"column": 36
},
"end": {
"line": 53,
"column": 42
}
},
"object": {
"type": "Identifier",
"start": 1420,
"end": 1421,
"loc": {
"start": {
"line": 53,
"column": 36
},
"end": {
"line": 53,
"column": 37
},
"identifierName": "b"
},
"name": "b"
},
"property": {
"type": "Identifier",
"start": 1422,
"end": 1426,
"loc": {
"start": {
"line": 53,
"column": 38
},
"end": {
"line": 53,
"column": 42
},
"identifierName": "left"
},
"name": "left"
},
"computed": false
},
"operator": "<=",
"right": {
"type": "MemberExpression",
"start": 1430,
"end": 1437,
"loc": {
"start": {
"line": 53,
"column": 46
},
"end": {
"line": 53,
"column": 53
}
},
"object": {
"type": "Identifier",
"start": 1430,
"end": 1431,
"loc": {
"start": {
"line": 53,
"column": 46
},
"end": {
"line": 53,
"column": 47
},
"identifierName": "a"
},
"name": "a"
},
"property": {
"type": "Identifier",
"start": 1432,
"end": 1437,
"loc": {
"start": {
"line": 53,
"column": 48
},
"end": {
"line": 53,
"column": 53
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 1441,
"end": 1458,
"loc": {
"start": {
"line": 53,
"column": 57
},
"end": {
"line": 53,
"column": 74
}
},
"left": {
"type": "MemberExpression",
"start": 1441,
"end": 1446,
"loc": {
"start": {
"line": 53,
"column": 57
},
"end": {
"line": 53,
"column": 62
}
},
"object": {
"type": "Identifier",
"start": 1441,
"end": 1442,
"loc": {
"start": {
"line": 53,
"column": 57
},
"end": {
"line": 53,
"column": 58
},
"identifierName": "a"
},
"name": "a"
},
"property": {
"type": "Identifier",
"start": 1443,
"end": 1446,
"loc": {
"start": {
"line": 53,
"column": 59
},
"end": {
"line": 53,
"column": 62
},
"identifierName": "top"
},
"name": "top"
},
"computed": false
},
"operator": "<=",
"right": {
"type": "MemberExpression",
"start": 1450,
"end": 1458,
"loc": {
"start": {
"line": 53,
"column": 66
},
"end": {
"line": 53,
"column": 74
}
},
"object": {
"type": "Identifier",
"start": 1450,
"end": 1451,
"loc": {
"start": {
"line": 53,
"column": 66
},
"end": {
"line": 53,
"column": 67
},
"identifierName": "b"
},
"name": "b"
},
"property": {
"type": "Identifier",
"start": 1452,
"end": 1458,
"loc": {
"start": {
"line": 53,
"column": 68
},
"end": {
"line": 53,
"column": 74
},
"identifierName": "bottom"
},
"name": "bottom"
},
"computed": false
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 1462,
"end": 1479,
"loc": {
"start": {
"line": 53,
"column": 78
},
"end": {
"line": 53,
"column": 95
}
},
"left": {
"type": "MemberExpression",
"start": 1462,
"end": 1467,
"loc": {
"start": {
"line": 53,
"column": 78
},
"end": {
"line": 53,
"column": 83
}
},
"object": {
"type": "Identifier",
"start": 1462,
"end": 1463,
"loc": {
"start": {
"line": 53,
"column": 78
},
"end": {
"line": 53,
"column": 79
},
"identifierName": "b"
},
"name": "b"
},
"property": {
"type": "Identifier",
"start": 1464,
"end": 1467,
"loc": {
"start": {
"line": 53,
"column": 80
},
"end": {
"line": 53,
"column": 83
},
"identifierName": "top"
},
"name": "top"
},
"computed": false
},
"operator": "<=",
"right": {
"type": "MemberExpression",
"start": 1471,
"end": 1479,
"loc": {
"start": {
"line": 53,
"column": 87
},
"end": {
"line": 53,
"column": 95
}
},
"object": {
"type": "Identifier",
"start": 1471,
"end": 1472,
"loc": {
"start": {
"line": 53,
"column": 87
},
"end": {
"line": 53,
"column": 88
},
"identifierName": "a"
},
"name": "a"
},
"property": {
"type": "Identifier",
"start": 1473,
"end": 1479,
"loc": {
"start": {
"line": 53,
"column": 89
},
"end": {
"line": 53,
"column": 95
},
"identifierName": "bottom"
},
"name": "bottom"
},
"computed": false
}
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if a intersects b\r\n * @param {Rectangle} a\r\n * @param {Rectangle} b\r\n ",
"start": 1247,
"end": 1351,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 51,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Copies this instance\r\n * @returns {Rectangle}\r\n ",
"start": 1495,
"end": 1565,
"loc": {
"start": {
"line": 56,
"column": 4
},
"end": {
"line": 59,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1571,
"end": 1650,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 62,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1571,
"end": 1576,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 60,
"column": 9
},
"identifierName": "clone"
},
"name": "clone",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 1579,
"end": 1650,
"loc": {
"start": {
"line": 60,
"column": 12
},
"end": {
"line": 62,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 1590,
"end": 1643,
"loc": {
"start": {
"line": 61,
"column": 8
},
"end": {
"line": 61,
"column": 61
}
},
"argument": {
"type": "NewExpression",
"start": 1597,
"end": 1642,
"loc": {
"start": {
"line": 61,
"column": 15
},
"end": {
"line": 61,
"column": 60
}
},
"callee": {
"type": "Identifier",
"start": 1601,
"end": 1610,
"loc": {
"start": {
"line": 61,
"column": 19
},
"end": {
"line": 61,
"column": 28
},
"identifierName": "Rectangle"
},
"name": "Rectangle"
},
"arguments": [
{
"type": "MemberExpression",
"start": 1611,
"end": 1617,
"loc": {
"start": {
"line": 61,
"column": 29
},
"end": {
"line": 61,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 1611,
"end": 1615,
"loc": {
"start": {
"line": 61,
"column": 29
},
"end": {
"line": 61,
"column": 33
}
}
},
"property": {
"type": "Identifier",
"start": 1616,
"end": 1617,
"loc": {
"start": {
"line": 61,
"column": 34
},
"end": {
"line": 61,
"column": 35
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 1619,
"end": 1625,
"loc": {
"start": {
"line": 61,
"column": 37
},
"end": {
"line": 61,
"column": 43
}
},
"object": {
"type": "ThisExpression",
"start": 1619,
"end": 1623,
"loc": {
"start": {
"line": 61,
"column": 37
},
"end": {
"line": 61,
"column": 41
}
}
},
"property": {
"type": "Identifier",
"start": 1624,
"end": 1625,
"loc": {
"start": {
"line": 61,
"column": 42
},
"end": {
"line": 61,
"column": 43
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 1627,
"end": 1633,
"loc": {
"start": {
"line": 61,
"column": 45
},
"end": {
"line": 61,
"column": 51
}
},
"object": {
"type": "ThisExpression",
"start": 1627,
"end": 1631,
"loc": {
"start": {
"line": 61,
"column": 45
},
"end": {
"line": 61,
"column": 49
}
}
},
"property": {
"type": "Identifier",
"start": 1632,
"end": 1633,
"loc": {
"start": {
"line": 61,
"column": 50
},
"end": {
"line": 61,
"column": 51
},
"identifierName": "w"
},
"name": "w"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 1635,
"end": 1641,
"loc": {
"start": {
"line": 61,
"column": 53
},
"end": {
"line": 61,
"column": 59
}
},
"object": {
"type": "ThisExpression",
"start": 1635,
"end": 1639,
"loc": {
"start": {
"line": 61,
"column": 53
},
"end": {
"line": 61,
"column": 57
}
}
},
"property": {
"type": "Identifier",
"start": 1640,
"end": 1641,
"loc": {
"start": {
"line": 61,
"column": 58
},
"end": {
"line": 61,
"column": 59
},
"identifierName": "h"
},
"name": "h"
},
"computed": false
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Copies this instance\r\n * @returns {Rectangle}\r\n ",
"start": 1495,
"end": 1565,
"loc": {
"start": {
"line": 56,
"column": 4
},
"end": {
"line": 59,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if this rectangle is empty\r\n * @returns {boolean}\r\n ",
"start": 1658,
"end": 1740,
"loc": {
"start": {
"line": 64,
"column": 4
},
"end": {
"line": 67,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 1746,
"end": 1816,
"loc": {
"start": {
"line": 68,
"column": 4
},
"end": {
"line": 70,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1746,
"end": 1753,
"loc": {
"start": {
"line": 68,
"column": 4
},
"end": {
"line": 68,
"column": 11
},
"identifierName": "isEmpty"
},
"name": "isEmpty",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 1756,
"end": 1816,
"loc": {
"start": {
"line": 68,
"column": 14
},
"end": {
"line": 70,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 1767,
"end": 1809,
"loc": {
"start": {
"line": 69,
"column": 8
},
"end": {
"line": 69,
"column": 50
}
},
"argument": {
"type": "CallExpression",
"start": 1774,
"end": 1808,
"loc": {
"start": {
"line": 69,
"column": 15
},
"end": {
"line": 69,
"column": 49
}
},
"callee": {
"type": "Identifier",
"start": 1774,
"end": 1788,
"loc": {
"start": {
"line": 69,
"column": 15
},
"end": {
"line": 69,
"column": 29
},
"identifierName": "epsilonCompare"
},
"name": "epsilonCompare"
},
"arguments": [
{
"type": "BinaryExpression",
"start": 1789,
"end": 1804,
"loc": {
"start": {
"line": 69,
"column": 30
},
"end": {
"line": 69,
"column": 45
}
},
"left": {
"type": "MemberExpression",
"start": 1789,
"end": 1795,
"loc": {
"start": {
"line": 69,
"column": 30
},
"end": {
"line": 69,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 1789,
"end": 1793,
"loc": {
"start": {
"line": 69,
"column": 30
},
"end": {
"line": 69,
"column": 34
}
}
},
"property": {
"type": "Identifier",
"start": 1794,
"end": 1795,
"loc": {
"start": {
"line": 69,
"column": 35
},
"end": {
"line": 69,
"column": 36
},
"identifierName": "w"
},
"name": "w"
},
"computed": false
},
"operator": "*",
"right": {
"type": "MemberExpression",
"start": 1798,
"end": 1804,
"loc": {
"start": {
"line": 69,
"column": 39
},
"end": {
"line": 69,
"column": 45
}
},
"object": {
"type": "ThisExpression",
"start": 1798,
"end": 1802,
"loc": {
"start": {
"line": 69,
"column": 39
},
"end": {
"line": 69,
"column": 43
}
}
},
"property": {
"type": "Identifier",
"start": 1803,
"end": 1804,
"loc": {
"start": {
"line": 69,
"column": 44
},
"end": {
"line": 69,
"column": 45
},
"identifierName": "h"
},
"name": "h"
},
"computed": false
}
},
{
"type": "NumericLiteral",
"start": 1806,
"end": 1807,
"loc": {
"start": {
"line": 69,
"column": 47
},
"end": {
"line": 69,
"column": 48
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if this rectangle is empty\r\n * @returns {boolean}\r\n ",
"start": 1658,
"end": 1740,
"loc": {
"start": {
"line": 64,
"column": 4
},
"end": {
"line": 67,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if this rectangle is equal to the other while taking an epsilon into account\r\n * @param {Rectangle} other\r\n * @param {number} epsilon\r\n ",
"start": 1824,
"end": 1994,
"loc": {
"start": {
"line": 72,
"column": 4
},
"end": {
"line": 76,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 2000,
"end": 2293,
"loc": {
"start": {
"line": 77,
"column": 4
},
"end": {
"line": 84,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2000,
"end": 2013,
"loc": {
"start": {
"line": 77,
"column": 4
},
"end": {
"line": 77,
"column": 17
},
"identifierName": "equalsEpsilon"
},
"name": "equalsEpsilon",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 2014,
"end": 2019,
"loc": {
"start": {
"line": 77,
"column": 18
},
"end": {
"line": 77,
"column": 23
},
"identifierName": "other"
},
"name": "other"
},
{
"type": "Identifier",
"start": 2021,
"end": 2028,
"loc": {
"start": {
"line": 77,
"column": 25
},
"end": {
"line": 77,
"column": 32
},
"identifierName": "epsilon"
},
"name": "epsilon"
}
],
"body": {
"type": "BlockStatement",
"start": 2030,
"end": 2293,
"loc": {
"start": {
"line": 77,
"column": 34
},
"end": {
"line": 84,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2041,
"end": 2286,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 83,
"column": 10
}
},
"argument": {
"type": "LogicalExpression",
"start": 2063,
"end": 2274,
"loc": {
"start": {
"line": 79,
"column": 12
},
"end": {
"line": 82,
"column": 52
}
},
"left": {
"type": "LogicalExpression",
"start": 2063,
"end": 2217,
"loc": {
"start": {
"line": 79,
"column": 12
},
"end": {
"line": 81,
"column": 52
}
},
"left": {
"type": "LogicalExpression",
"start": 2063,
"end": 2160,
"loc": {
"start": {
"line": 79,
"column": 12
},
"end": {
"line": 80,
"column": 52
}
},
"left": {
"type": "CallExpression",
"start": 2063,
"end": 2103,
"loc": {
"start": {
"line": 79,
"column": 12
},
"end": {
"line": 79,
"column": 52
}
},
"callee": {
"type": "Identifier",
"start": 2063,
"end": 2077,
"loc": {
"start": {
"line": 79,
"column": 12
},
"end": {
"line": 79,
"column": 26
},
"identifierName": "epsilonCompare"
},
"name": "epsilonCompare"
},
"arguments": [
{
"type": "MemberExpression",
"start": 2078,
"end": 2084,
"loc": {
"start": {
"line": 79,
"column": 27
},
"end": {
"line": 79,
"column": 33
}
},
"object": {
"type": "ThisExpression",
"start": 2078,
"end": 2082,
"loc": {
"start": {
"line": 79,
"column": 27
},
"end": {
"line": 79,
"column": 31
}
}
},
"property": {
"type": "Identifier",
"start": 2083,
"end": 2084,
"loc": {
"start": {
"line": 79,
"column": 32
},
"end": {
"line": 79,
"column": 33
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 2086,
"end": 2093,
"loc": {
"start": {
"line": 79,
"column": 35
},
"end": {
"line": 79,
"column": 42
}
},
"object": {
"type": "Identifier",
"start": 2086,
"end": 2091,
"loc": {
"start": {
"line": 79,
"column": 35
},
"end": {
"line": 79,
"column": 40
},
"identifierName": "other"
},
"name": "other"
},
"property": {
"type": "Identifier",
"start": 2092,
"end": 2093,
"loc": {
"start": {
"line": 79,
"column": 41
},
"end": {
"line": 79,
"column": 42
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
{
"type": "Identifier",
"start": 2095,
"end": 2102,
"loc": {
"start": {
"line": 79,
"column": 44
},
"end": {
"line": 79,
"column": 51
},
"identifierName": "epsilon"
},
"name": "epsilon"
}
]
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 2120,
"end": 2160,
"loc": {
"start": {
"line": 80,
"column": 12
},
"end": {
"line": 80,
"column": 52
}
},
"callee": {
"type": "Identifier",
"start": 2120,
"end": 2134,
"loc": {
"start": {
"line": 80,
"column": 12
},
"end": {
"line": 80,
"column": 26
},
"identifierName": "epsilonCompare"
},
"name": "epsilonCompare"
},
"arguments": [
{
"type": "MemberExpression",
"start": 2135,
"end": 2141,
"loc": {
"start": {
"line": 80,
"column": 27
},
"end": {
"line": 80,
"column": 33
}
},
"object": {
"type": "ThisExpression",
"start": 2135,
"end": 2139,
"loc": {
"start": {
"line": 80,
"column": 27
},
"end": {
"line": 80,
"column": 31
}
}
},
"property": {
"type": "Identifier",
"start": 2140,
"end": 2141,
"loc": {
"start": {
"line": 80,
"column": 32
},
"end": {
"line": 80,
"column": 33
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 2143,
"end": 2150,
"loc": {
"start": {
"line": 80,
"column": 35
},
"end": {
"line": 80,
"column": 42
}
},
"object": {
"type": "Identifier",
"start": 2143,
"end": 2148,
"loc": {
"start": {
"line": 80,
"column": 35
},
"end": {
"line": 80,
"column": 40
},
"identifierName": "other"
},
"name": "other"
},
"property": {
"type": "Identifier",
"start": 2149,
"end": 2150,
"loc": {
"start": {
"line": 80,
"column": 41
},
"end": {
"line": 80,
"column": 42
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
{
"type": "Identifier",
"start": 2152,
"end": 2159,
"loc": {
"start": {
"line": 80,
"column": 44
},
"end": {
"line": 80,
"column": 51
},
"identifierName": "epsilon"
},
"name": "epsilon"
}
]
}
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 2177,
"end": 2217,
"loc": {
"start": {
"line": 81,
"column": 12
},
"end": {
"line": 81,
"column": 52
}
},
"callee": {
"type": "Identifier",
"start": 2177,
"end": 2191,
"loc": {
"start": {
"line": 81,
"column": 12
},
"end": {
"line": 81,
"column": 26
},
"identifierName": "epsilonCompare"
},
"name": "epsilonCompare"
},
"arguments": [
{
"type": "MemberExpression",
"start": 2192,
"end": 2198,
"loc": {
"start": {
"line": 81,
"column": 27
},
"end": {
"line": 81,
"column": 33
}
},
"object": {
"type": "ThisExpression",
"start": 2192,
"end": 2196,
"loc": {
"start": {
"line": 81,
"column": 27
},
"end": {
"line": 81,
"column": 31
}
}
},
"property": {
"type": "Identifier",
"start": 2197,
"end": 2198,
"loc": {
"start": {
"line": 81,
"column": 32
},
"end": {
"line": 81,
"column": 33
},
"identifierName": "w"
},
"name": "w"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 2200,
"end": 2207,
"loc": {
"start": {
"line": 81,
"column": 35
},
"end": {
"line": 81,
"column": 42
}
},
"object": {
"type": "Identifier",
"start": 2200,
"end": 2205,
"loc": {
"start": {
"line": 81,
"column": 35
},
"end": {
"line": 81,
"column": 40
},
"identifierName": "other"
},
"name": "other"
},
"property": {
"type": "Identifier",
"start": 2206,
"end": 2207,
"loc": {
"start": {
"line": 81,
"column": 41
},
"end": {
"line": 81,
"column": 42
},
"identifierName": "w"
},
"name": "w"
},
"computed": false
},
{
"type": "Identifier",
"start": 2209,
"end": 2216,
"loc": {
"start": {
"line": 81,
"column": 44
},
"end": {
"line": 81,
"column": 51
},
"identifierName": "epsilon"
},
"name": "epsilon"
}
]
}
},
"operator": "&&",
"right": {
"type": "CallExpression",
"start": 2234,
"end": 2274,
"loc": {
"start": {
"line": 82,
"column": 12
},
"end": {
"line": 82,
"column": 52
}
},
"callee": {
"type": "Identifier",
"start": 2234,
"end": 2248,
"loc": {
"start": {
"line": 82,
"column": 12
},
"end": {
"line": 82,
"column": 26
},
"identifierName": "epsilonCompare"
},
"name": "epsilonCompare"
},
"arguments": [
{
"type": "MemberExpression",
"start": 2249,
"end": 2255,
"loc": {
"start": {
"line": 82,
"column": 27
},
"end": {
"line": 82,
"column": 33
}
},
"object": {
"type": "ThisExpression",
"start": 2249,
"end": 2253,
"loc": {
"start": {
"line": 82,
"column": 27
},
"end": {
"line": 82,
"column": 31
}
}
},
"property": {
"type": "Identifier",
"start": 2254,
"end": 2255,
"loc": {
"start": {
"line": 82,
"column": 32
},
"end": {
"line": 82,
"column": 33
},
"identifierName": "h"
},
"name": "h"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 2257,
"end": 2264,
"loc": {
"start": {
"line": 82,
"column": 35
},
"end": {
"line": 82,
"column": 42
}
},
"object": {
"type": "Identifier",
"start": 2257,
"end": 2262,
"loc": {
"start": {
"line": 82,
"column": 35
},
"end": {
"line": 82,
"column": 40
},
"identifierName": "other"
},
"name": "other"
},
"property": {
"type": "Identifier",
"start": 2263,
"end": 2264,
"loc": {
"start": {
"line": 82,
"column": 41
},
"end": {
"line": 82,
"column": 42
},
"identifierName": "h"
},
"name": "h"
},
"computed": false
},
{
"type": "Identifier",
"start": 2266,
"end": 2273,
"loc": {
"start": {
"line": 82,
"column": 44
},
"end": {
"line": 82,
"column": 51
},
"identifierName": "epsilon"
},
"name": "epsilon"
}
]
},
"extra": {
"parenthesized": true,
"parenStart": 2048
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if this rectangle is equal to the other while taking an epsilon into account\r\n * @param {Rectangle} other\r\n * @param {number} epsilon\r\n ",
"start": 1824,
"end": 1994,
"loc": {
"start": {
"line": 72,
"column": 4
},
"end": {
"line": 76,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @returns {number}\r\n ",
"start": 2301,
"end": 2339,
"loc": {
"start": {
"line": 86,
"column": 4
},
"end": {
"line": 88,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 2345,
"end": 2384,
"loc": {
"start": {
"line": 89,
"column": 4
},
"end": {
"line": 91,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2345,
"end": 2349,
"loc": {
"start": {
"line": 89,
"column": 4
},
"end": {
"line": 89,
"column": 8
},
"identifierName": "left"
},
"name": "left",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 2352,
"end": 2384,
"loc": {
"start": {
"line": 89,
"column": 11
},
"end": {
"line": 91,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2363,
"end": 2377,
"loc": {
"start": {
"line": 90,
"column": 8
},
"end": {
"line": 90,
"column": 22
}
},
"argument": {
"type": "MemberExpression",
"start": 2370,
"end": 2376,
"loc": {
"start": {
"line": 90,
"column": 15
},
"end": {
"line": 90,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 2370,
"end": 2374,
"loc": {
"start": {
"line": 90,
"column": 15
},
"end": {
"line": 90,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 2375,
"end": 2376,
"loc": {
"start": {
"line": 90,
"column": 20
},
"end": {
"line": 90,
"column": 21
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @returns {number}\r\n ",
"start": 2301,
"end": 2339,
"loc": {
"start": {
"line": 86,
"column": 4
},
"end": {
"line": 88,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @returns {number}\r\n ",
"start": 2392,
"end": 2430,
"loc": {
"start": {
"line": 93,
"column": 4
},
"end": {
"line": 95,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 2436,
"end": 2485,
"loc": {
"start": {
"line": 96,
"column": 4
},
"end": {
"line": 98,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2436,
"end": 2441,
"loc": {
"start": {
"line": 96,
"column": 4
},
"end": {
"line": 96,
"column": 9
},
"identifierName": "right"
},
"name": "right",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 2444,
"end": 2485,
"loc": {
"start": {
"line": 96,
"column": 12
},
"end": {
"line": 98,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2455,
"end": 2478,
"loc": {
"start": {
"line": 97,
"column": 8
},
"end": {
"line": 97,
"column": 31
}
},
"argument": {
"type": "BinaryExpression",
"start": 2462,
"end": 2477,
"loc": {
"start": {
"line": 97,
"column": 15
},
"end": {
"line": 97,
"column": 30
}
},
"left": {
"type": "MemberExpression",
"start": 2462,
"end": 2468,
"loc": {
"start": {
"line": 97,
"column": 15
},
"end": {
"line": 97,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 2462,
"end": 2466,
"loc": {
"start": {
"line": 97,
"column": 15
},
"end": {
"line": 97,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 2467,
"end": 2468,
"loc": {
"start": {
"line": 97,
"column": 20
},
"end": {
"line": 97,
"column": 21
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
"operator": "+",
"right": {
"type": "MemberExpression",
"start": 2471,
"end": 2477,
"loc": {
"start": {
"line": 97,
"column": 24
},
"end": {
"line": 97,
"column": 30
}
},
"object": {
"type": "ThisExpression",
"start": 2471,
"end": 2475,
"loc": {
"start": {
"line": 97,
"column": 24
},
"end": {
"line": 97,
"column": 28
}
}
},
"property": {
"type": "Identifier",
"start": 2476,
"end": 2477,
"loc": {
"start": {
"line": 97,
"column": 29
},
"end": {
"line": 97,
"column": 30
},
"identifierName": "w"
},
"name": "w"
},
"computed": false
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @returns {number}\r\n ",
"start": 2392,
"end": 2430,
"loc": {
"start": {
"line": 93,
"column": 4
},
"end": {
"line": 95,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @returns {number}\r\n ",
"start": 2493,
"end": 2531,
"loc": {
"start": {
"line": 100,
"column": 4
},
"end": {
"line": 102,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 2537,
"end": 2575,
"loc": {
"start": {
"line": 103,
"column": 4
},
"end": {
"line": 105,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2537,
"end": 2540,
"loc": {
"start": {
"line": 103,
"column": 4
},
"end": {
"line": 103,
"column": 7
},
"identifierName": "top"
},
"name": "top",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 2543,
"end": 2575,
"loc": {
"start": {
"line": 103,
"column": 10
},
"end": {
"line": 105,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2554,
"end": 2568,
"loc": {
"start": {
"line": 104,
"column": 8
},
"end": {
"line": 104,
"column": 22
}
},
"argument": {
"type": "MemberExpression",
"start": 2561,
"end": 2567,
"loc": {
"start": {
"line": 104,
"column": 15
},
"end": {
"line": 104,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 2561,
"end": 2565,
"loc": {
"start": {
"line": 104,
"column": 15
},
"end": {
"line": 104,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 2566,
"end": 2567,
"loc": {
"start": {
"line": 104,
"column": 20
},
"end": {
"line": 104,
"column": 21
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @returns {number}\r\n ",
"start": 2493,
"end": 2531,
"loc": {
"start": {
"line": 100,
"column": 4
},
"end": {
"line": 102,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @returns {number}\r\n ",
"start": 2583,
"end": 2621,
"loc": {
"start": {
"line": 107,
"column": 4
},
"end": {
"line": 109,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 2627,
"end": 2677,
"loc": {
"start": {
"line": 110,
"column": 4
},
"end": {
"line": 112,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2627,
"end": 2633,
"loc": {
"start": {
"line": 110,
"column": 4
},
"end": {
"line": 110,
"column": 10
},
"identifierName": "bottom"
},
"name": "bottom",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 2636,
"end": 2677,
"loc": {
"start": {
"line": 110,
"column": 13
},
"end": {
"line": 112,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2647,
"end": 2670,
"loc": {
"start": {
"line": 111,
"column": 8
},
"end": {
"line": 111,
"column": 31
}
},
"argument": {
"type": "BinaryExpression",
"start": 2654,
"end": 2669,
"loc": {
"start": {
"line": 111,
"column": 15
},
"end": {
"line": 111,
"column": 30
}
},
"left": {
"type": "MemberExpression",
"start": 2654,
"end": 2660,
"loc": {
"start": {
"line": 111,
"column": 15
},
"end": {
"line": 111,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 2654,
"end": 2658,
"loc": {
"start": {
"line": 111,
"column": 15
},
"end": {
"line": 111,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 2659,
"end": 2660,
"loc": {
"start": {
"line": 111,
"column": 20
},
"end": {
"line": 111,
"column": 21
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
"operator": "+",
"right": {
"type": "MemberExpression",
"start": 2663,
"end": 2669,
"loc": {
"start": {
"line": 111,
"column": 24
},
"end": {
"line": 111,
"column": 30
}
},
"object": {
"type": "ThisExpression",
"start": 2663,
"end": 2667,
"loc": {
"start": {
"line": 111,
"column": 24
},
"end": {
"line": 111,
"column": 28
}
}
},
"property": {
"type": "Identifier",
"start": 2668,
"end": 2669,
"loc": {
"start": {
"line": 111,
"column": 29
},
"end": {
"line": 111,
"column": 30
},
"identifierName": "h"
},
"name": "h"
},
"computed": false
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * @returns {number}\r\n ",
"start": 2583,
"end": 2621,
"loc": {
"start": {
"line": 107,
"column": 4
},
"end": {
"line": 109,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns Top, Right, Bottom, Left\r\n * @returns {[number, number, number, number]}\r\n ",
"start": 2685,
"end": 2790,
"loc": {
"start": {
"line": 114,
"column": 4
},
"end": {
"line": 117,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 2796,
"end": 2874,
"loc": {
"start": {
"line": 118,
"column": 4
},
"end": {
"line": 120,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2796,
"end": 2800,
"loc": {
"start": {
"line": 118,
"column": 4
},
"end": {
"line": 118,
"column": 8
},
"identifierName": "trbl"
},
"name": "trbl",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 2803,
"end": 2874,
"loc": {
"start": {
"line": 118,
"column": 11
},
"end": {
"line": 120,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2814,
"end": 2867,
"loc": {
"start": {
"line": 119,
"column": 8
},
"end": {
"line": 119,
"column": 61
}
},
"argument": {
"type": "ArrayExpression",
"start": 2821,
"end": 2866,
"loc": {
"start": {
"line": 119,
"column": 15
},
"end": {
"line": 119,
"column": 60
}
},
"elements": [
{
"type": "MemberExpression",
"start": 2822,
"end": 2828,
"loc": {
"start": {
"line": 119,
"column": 16
},
"end": {
"line": 119,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 2822,
"end": 2826,
"loc": {
"start": {
"line": 119,
"column": 16
},
"end": {
"line": 119,
"column": 20
}
}
},
"property": {
"type": "Identifier",
"start": 2827,
"end": 2828,
"loc": {
"start": {
"line": 119,
"column": 21
},
"end": {
"line": 119,
"column": 22
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
{
"type": "CallExpression",
"start": 2830,
"end": 2842,
"loc": {
"start": {
"line": 119,
"column": 24
},
"end": {
"line": 119,
"column": 36
}
},
"callee": {
"type": "MemberExpression",
"start": 2830,
"end": 2840,
"loc": {
"start": {
"line": 119,
"column": 24
},
"end": {
"line": 119,
"column": 34
}
},
"object": {
"type": "ThisExpression",
"start": 2830,
"end": 2834,
"loc": {
"start": {
"line": 119,
"column": 24
},
"end": {
"line": 119,
"column": 28
}
}
},
"property": {
"type": "Identifier",
"start": 2835,
"end": 2840,
"loc": {
"start": {
"line": 119,
"column": 29
},
"end": {
"line": 119,
"column": 34
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"arguments": []
},
{
"type": "CallExpression",
"start": 2844,
"end": 2857,
"loc": {
"start": {
"line": 119,
"column": 38
},
"end": {
"line": 119,
"column": 51
}
},
"callee": {
"type": "MemberExpression",
"start": 2844,
"end": 2855,
"loc": {
"start": {
"line": 119,
"column": 38
},
"end": {
"line": 119,
"column": 49
}
},
"object": {
"type": "ThisExpression",
"start": 2844,
"end": 2848,
"loc": {
"start": {
"line": 119,
"column": 38
},
"end": {
"line": 119,
"column": 42
}
}
},
"property": {
"type": "Identifier",
"start": 2849,
"end": 2855,
"loc": {
"start": {
"line": 119,
"column": 43
},
"end": {
"line": 119,
"column": 49
},
"identifierName": "bottom"
},
"name": "bottom"
},
"computed": false
},
"arguments": []
},
{
"type": "MemberExpression",
"start": 2859,
"end": 2865,
"loc": {
"start": {
"line": 119,
"column": 53
},
"end": {
"line": 119,
"column": 59
}
},
"object": {
"type": "ThisExpression",
"start": 2859,
"end": 2863,
"loc": {
"start": {
"line": 119,
"column": 53
},
"end": {
"line": 119,
"column": 57
}
}
},
"property": {
"type": "Identifier",
"start": 2864,
"end": 2865,
"loc": {
"start": {
"line": 119,
"column": 58
},
"end": {
"line": 119,
"column": 59
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns Top, Right, Bottom, Left\r\n * @returns {[number, number, number, number]}\r\n ",
"start": 2685,
"end": 2790,
"loc": {
"start": {
"line": 114,
"column": 4
},
"end": {
"line": 117,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns the center of the rect\r\n * @returns {Vector}\r\n ",
"start": 2882,
"end": 2959,
"loc": {
"start": {
"line": 122,
"column": 4
},
"end": {
"line": 125,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 2965,
"end": 3055,
"loc": {
"start": {
"line": 126,
"column": 4
},
"end": {
"line": 128,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2965,
"end": 2974,
"loc": {
"start": {
"line": 126,
"column": 4
},
"end": {
"line": 126,
"column": 13
},
"identifierName": "getCenter"
},
"name": "getCenter",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 2977,
"end": 3055,
"loc": {
"start": {
"line": 126,
"column": 16
},
"end": {
"line": 128,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2988,
"end": 3048,
"loc": {
"start": {
"line": 127,
"column": 8
},
"end": {
"line": 127,
"column": 68
}
},
"argument": {
"type": "NewExpression",
"start": 2995,
"end": 3047,
"loc": {
"start": {
"line": 127,
"column": 15
},
"end": {
"line": 127,
"column": 67
}
},
"callee": {
"type": "Identifier",
"start": 2999,
"end": 3005,
"loc": {
"start": {
"line": 127,
"column": 19
},
"end": {
"line": 127,
"column": 25
},
"identifierName": "Vector"
},
"name": "Vector"
},
"arguments": [
{
"type": "BinaryExpression",
"start": 3006,
"end": 3025,
"loc": {
"start": {
"line": 127,
"column": 26
},
"end": {
"line": 127,
"column": 45
}
},
"left": {
"type": "MemberExpression",
"start": 3006,
"end": 3012,
"loc": {
"start": {
"line": 127,
"column": 26
},
"end": {
"line": 127,
"column": 32
}
},
"object": {
"type": "ThisExpression",
"start": 3006,
"end": 3010,
"loc": {
"start": {
"line": 127,
"column": 26
},
"end": {
"line": 127,
"column": 30
}
}
},
"property": {
"type": "Identifier",
"start": 3011,
"end": 3012,
"loc": {
"start": {
"line": 127,
"column": 31
},
"end": {
"line": 127,
"column": 32
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
"operator": "+",
"right": {
"type": "BinaryExpression",
"start": 3015,
"end": 3025,
"loc": {
"start": {
"line": 127,
"column": 35
},
"end": {
"line": 127,
"column": 45
}
},
"left": {
"type": "MemberExpression",
"start": 3015,
"end": 3021,
"loc": {
"start": {
"line": 127,
"column": 35
},
"end": {
"line": 127,
"column": 41
}
},
"object": {
"type": "ThisExpression",
"start": 3015,
"end": 3019,
"loc": {
"start": {
"line": 127,
"column": 35
},
"end": {
"line": 127,
"column": 39
}
}
},
"property": {
"type": "Identifier",
"start": 3020,
"end": 3021,
"loc": {
"start": {
"line": 127,
"column": 40
},
"end": {
"line": 127,
"column": 41
},
"identifierName": "w"
},
"name": "w"
},
"computed": false
},
"operator": "/",
"right": {
"type": "NumericLiteral",
"start": 3024,
"end": 3025,
"loc": {
"start": {
"line": 127,
"column": 44
},
"end": {
"line": 127,
"column": 45
}
},
"extra": {
"rawValue": 2,
"raw": "2"
},
"value": 2
}
}
},
{
"type": "BinaryExpression",
"start": 3027,
"end": 3046,
"loc": {
"start": {
"line": 127,
"column": 47
},
"end": {
"line": 127,
"column": 66
}
},
"left": {
"type": "MemberExpression",
"start": 3027,
"end": 3033,
"loc": {
"start": {
"line": 127,
"column": 47
},
"end": {
"line": 127,
"column": 53
}
},
"object": {
"type": "ThisExpression",
"start": 3027,
"end": 3031,
"loc": {
"start": {
"line": 127,
"column": 47
},
"end": {
"line": 127,
"column": 51
}
}
},
"property": {
"type": "Identifier",
"start": 3032,
"end": 3033,
"loc": {
"start": {
"line": 127,
"column": 52
},
"end": {
"line": 127,
"column": 53
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
"operator": "+",
"right": {
"type": "BinaryExpression",
"start": 3036,
"end": 3046,
"loc": {
"start": {
"line": 127,
"column": 56
},
"end": {
"line": 127,
"column": 66
}
},
"left": {
"type": "MemberExpression",
"start": 3036,
"end": 3042,
"loc": {
"start": {
"line": 127,
"column": 56
},
"end": {
"line": 127,
"column": 62
}
},
"object": {
"type": "ThisExpression",
"start": 3036,
"end": 3040,
"loc": {
"start": {
"line": 127,
"column": 56
},
"end": {
"line": 127,
"column": 60
}
}
},
"property": {
"type": "Identifier",
"start": 3041,
"end": 3042,
"loc": {
"start": {
"line": 127,
"column": 61
},
"end": {
"line": 127,
"column": 62
},
"identifierName": "h"
},
"name": "h"
},
"computed": false
},
"operator": "/",
"right": {
"type": "NumericLiteral",
"start": 3045,
"end": 3046,
"loc": {
"start": {
"line": 127,
"column": 65
},
"end": {
"line": 127,
"column": 66
}
},
"extra": {
"rawValue": 2,
"raw": "2"
},
"value": 2
}
}
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns the center of the rect\r\n * @returns {Vector}\r\n ",
"start": 2882,
"end": 2959,
"loc": {
"start": {
"line": 122,
"column": 4
},
"end": {
"line": 125,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Sets the right side of the rect without moving it\r\n * @param {number} right\r\n ",
"start": 3063,
"end": 3163,
"loc": {
"start": {
"line": 130,
"column": 4
},
"end": {
"line": 133,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 3169,
"end": 3227,
"loc": {
"start": {
"line": 134,
"column": 4
},
"end": {
"line": 136,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3169,
"end": 3177,
"loc": {
"start": {
"line": 134,
"column": 4
},
"end": {
"line": 134,
"column": 12
},
"identifierName": "setRight"
},
"name": "setRight",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 3178,
"end": 3183,
"loc": {
"start": {
"line": 134,
"column": 13
},
"end": {
"line": 134,
"column": 18
},
"identifierName": "right"
},
"name": "right"
}
],
"body": {
"type": "BlockStatement",
"start": 3185,
"end": 3227,
"loc": {
"start": {
"line": 134,
"column": 20
},
"end": {
"line": 136,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 3196,
"end": 3220,
"loc": {
"start": {
"line": 135,
"column": 8
},
"end": {
"line": 135,
"column": 32
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3196,
"end": 3219,
"loc": {
"start": {
"line": 135,
"column": 8
},
"end": {
"line": 135,
"column": 31
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3196,
"end": 3202,
"loc": {
"start": {
"line": 135,
"column": 8
},
"end": {
"line": 135,
"column": 14
}
},
"object": {
"type": "ThisExpression",
"start": 3196,
"end": 3200,
"loc": {
"start": {
"line": 135,
"column": 8
},
"end": {
"line": 135,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3201,
"end": 3202,
"loc": {
"start": {
"line": 135,
"column": 13
},
"end": {
"line": 135,
"column": 14
},
"identifierName": "w"
},
"name": "w"
},
"computed": false
},
"right": {
"type": "BinaryExpression",
"start": 3205,
"end": 3219,
"loc": {
"start": {
"line": 135,
"column": 17
},
"end": {
"line": 135,
"column": 31
}
},
"left": {
"type": "Identifier",
"start": 3205,
"end": 3210,
"loc": {
"start": {
"line": 135,
"column": 17
},
"end": {
"line": 135,
"column": 22
},
"identifierName": "right"
},
"name": "right"
},
"operator": "-",
"right": {
"type": "MemberExpression",
"start": 3213,
"end": 3219,
"loc": {
"start": {
"line": 135,
"column": 25
},
"end": {
"line": 135,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 3213,
"end": 3217,
"loc": {
"start": {
"line": 135,
"column": 25
},
"end": {
"line": 135,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"start": 3218,
"end": 3219,
"loc": {
"start": {
"line": 135,
"column": 30
},
"end": {
"line": 135,
"column": 31
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
}
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Sets the right side of the rect without moving it\r\n * @param {number} right\r\n ",
"start": 3063,
"end": 3163,
"loc": {
"start": {
"line": 130,
"column": 4
},
"end": {
"line": 133,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Sets the bottom side of the rect without moving it\r\n * @param {number} bottom\r\n ",
"start": 3235,
"end": 3337,
"loc": {
"start": {
"line": 138,
"column": 4
},
"end": {
"line": 141,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 3343,
"end": 3404,
"loc": {
"start": {
"line": 142,
"column": 4
},
"end": {
"line": 144,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3343,
"end": 3352,
"loc": {
"start": {
"line": 142,
"column": 4
},
"end": {
"line": 142,
"column": 13
},
"identifierName": "setBottom"
},
"name": "setBottom",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 3353,
"end": 3359,
"loc": {
"start": {
"line": 142,
"column": 14
},
"end": {
"line": 142,
"column": 20
},
"identifierName": "bottom"
},
"name": "bottom"
}
],
"body": {
"type": "BlockStatement",
"start": 3361,
"end": 3404,
"loc": {
"start": {
"line": 142,
"column": 22
},
"end": {
"line": 144,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 3372,
"end": 3397,
"loc": {
"start": {
"line": 143,
"column": 8
},
"end": {
"line": 143,
"column": 33
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3372,
"end": 3396,
"loc": {
"start": {
"line": 143,
"column": 8
},
"end": {
"line": 143,
"column": 32
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3372,
"end": 3378,
"loc": {
"start": {
"line": 143,
"column": 8
},
"end": {
"line": 143,
"column": 14
}
},
"object": {
"type": "ThisExpression",
"start": 3372,
"end": 3376,
"loc": {
"start": {
"line": 143,
"column": 8
},
"end": {
"line": 143,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3377,
"end": 3378,
"loc": {
"start": {
"line": 143,
"column": 13
},
"end": {
"line": 143,
"column": 14
},
"identifierName": "h"
},
"name": "h"
},
"computed": false
},
"right": {
"type": "BinaryExpression",
"start": 3381,
"end": 3396,
"loc": {
"start": {
"line": 143,
"column": 17
},
"end": {
"line": 143,
"column": 32
}
},
"left": {
"type": "Identifier",
"start": 3381,
"end": 3387,
"loc": {
"start": {
"line": 143,
"column": 17
},
"end": {
"line": 143,
"column": 23
},
"identifierName": "bottom"
},
"name": "bottom"
},
"operator": "-",
"right": {
"type": "MemberExpression",
"start": 3390,
"end": 3396,
"loc": {
"start": {
"line": 143,
"column": 26
},
"end": {
"line": 143,
"column": 32
}
},
"object": {
"type": "ThisExpression",
"start": 3390,
"end": 3394,
"loc": {
"start": {
"line": 143,
"column": 26
},
"end": {
"line": 143,
"column": 30
}
}
},
"property": {
"type": "Identifier",
"start": 3395,
"end": 3396,
"loc": {
"start": {
"line": 143,
"column": 31
},
"end": {
"line": 143,
"column": 32
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
}
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Sets the bottom side of the rect without moving it\r\n * @param {number} bottom\r\n ",
"start": 3235,
"end": 3337,
"loc": {
"start": {
"line": 138,
"column": 4
},
"end": {
"line": 141,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Sets the top side of the rect without scaling it\r\n * @param {number} top\r\n ",
"start": 3412,
"end": 3509,
"loc": {
"start": {
"line": 146,
"column": 4
},
"end": {
"line": 149,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 3515,
"end": 3630,
"loc": {
"start": {
"line": 150,
"column": 4
},
"end": {
"line": 154,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3515,
"end": 3521,
"loc": {
"start": {
"line": 150,
"column": 4
},
"end": {
"line": 150,
"column": 10
},
"identifierName": "setTop"
},
"name": "setTop",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 3522,
"end": 3525,
"loc": {
"start": {
"line": 150,
"column": 11
},
"end": {
"line": 150,
"column": 14
},
"identifierName": "top"
},
"name": "top"
}
],
"body": {
"type": "BlockStatement",
"start": 3527,
"end": 3630,
"loc": {
"start": {
"line": 150,
"column": 16
},
"end": {
"line": 154,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 3538,
"end": 3567,
"loc": {
"start": {
"line": 151,
"column": 8
},
"end": {
"line": 151,
"column": 37
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 3544,
"end": 3566,
"loc": {
"start": {
"line": 151,
"column": 14
},
"end": {
"line": 151,
"column": 36
}
},
"id": {
"type": "Identifier",
"start": 3544,
"end": 3550,
"loc": {
"start": {
"line": 151,
"column": 14
},
"end": {
"line": 151,
"column": 20
},
"identifierName": "bottom"
},
"name": "bottom"
},
"init": {
"type": "CallExpression",
"start": 3553,
"end": 3566,
"loc": {
"start": {
"line": 151,
"column": 23
},
"end": {
"line": 151,
"column": 36
}
},
"callee": {
"type": "MemberExpression",
"start": 3553,
"end": 3564,
"loc": {
"start": {
"line": 151,
"column": 23
},
"end": {
"line": 151,
"column": 34
}
},
"object": {
"type": "ThisExpression",
"start": 3553,
"end": 3557,
"loc": {
"start": {
"line": 151,
"column": 23
},
"end": {
"line": 151,
"column": 27
}
}
},
"property": {
"type": "Identifier",
"start": 3558,
"end": 3564,
"loc": {
"start": {
"line": 151,
"column": 28
},
"end": {
"line": 151,
"column": 34
},
"identifierName": "bottom"
},
"name": "bottom"
},
"computed": false
},
"arguments": []
}
}
],
"kind": "const"
},
{
"type": "ExpressionStatement",
"start": 3577,
"end": 3590,
"loc": {
"start": {
"line": 152,
"column": 8
},
"end": {
"line": 152,
"column": 21
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3577,
"end": 3589,
"loc": {
"start": {
"line": 152,
"column": 8
},
"end": {
"line": 152,
"column": 20
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3577,
"end": 3583,
"loc": {
"start": {
"line": 152,
"column": 8
},
"end": {
"line": 152,
"column": 14
}
},
"object": {
"type": "ThisExpression",
"start": 3577,
"end": 3581,
"loc": {
"start": {
"line": 152,
"column": 8
},
"end": {
"line": 152,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3582,
"end": 3583,
"loc": {
"start": {
"line": 152,
"column": 13
},
"end": {
"line": 152,
"column": 14
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 3586,
"end": 3589,
"loc": {
"start": {
"line": 152,
"column": 17
},
"end": {
"line": 152,
"column": 20
},
"identifierName": "top"
},
"name": "top"
}
}
},
{
"type": "ExpressionStatement",
"start": 3600,
"end": 3623,
"loc": {
"start": {
"line": 153,
"column": 8
},
"end": {
"line": 153,
"column": 31
}
},
"expression": {
"type": "CallExpression",
"start": 3600,
"end": 3622,
"loc": {
"start": {
"line": 153,
"column": 8
},
"end": {
"line": 153,
"column": 30
}
},
"callee": {
"type": "MemberExpression",
"start": 3600,
"end": 3614,
"loc": {
"start": {
"line": 153,
"column": 8
},
"end": {
"line": 153,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 3600,
"end": 3604,
"loc": {
"start": {
"line": 153,
"column": 8
},
"end": {
"line": 153,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3605,
"end": 3614,
"loc": {
"start": {
"line": 153,
"column": 13
},
"end": {
"line": 153,
"column": 22
},
"identifierName": "setBottom"
},
"name": "setBottom"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 3615,
"end": 3621,
"loc": {
"start": {
"line": 153,
"column": 23
},
"end": {
"line": 153,
"column": 29
},
"identifierName": "bottom"
},
"name": "bottom"
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Sets the top side of the rect without scaling it\r\n * @param {number} top\r\n ",
"start": 3412,
"end": 3509,
"loc": {
"start": {
"line": 146,
"column": 4
},
"end": {
"line": 149,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Sets the left side of the rect without scaling it\r\n * @param {number} left\r\n ",
"start": 3638,
"end": 3737,
"loc": {
"start": {
"line": 156,
"column": 4
},
"end": {
"line": 159,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 3743,
"end": 3857,
"loc": {
"start": {
"line": 160,
"column": 4
},
"end": {
"line": 164,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3743,
"end": 3750,
"loc": {
"start": {
"line": 160,
"column": 4
},
"end": {
"line": 160,
"column": 11
},
"identifierName": "setLeft"
},
"name": "setLeft",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 3751,
"end": 3755,
"loc": {
"start": {
"line": 160,
"column": 12
},
"end": {
"line": 160,
"column": 16
},
"identifierName": "left"
},
"name": "left"
}
],
"body": {
"type": "BlockStatement",
"start": 3757,
"end": 3857,
"loc": {
"start": {
"line": 160,
"column": 18
},
"end": {
"line": 164,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 3768,
"end": 3795,
"loc": {
"start": {
"line": 161,
"column": 8
},
"end": {
"line": 161,
"column": 35
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 3774,
"end": 3794,
"loc": {
"start": {
"line": 161,
"column": 14
},
"end": {
"line": 161,
"column": 34
}
},
"id": {
"type": "Identifier",
"start": 3774,
"end": 3779,
"loc": {
"start": {
"line": 161,
"column": 14
},
"end": {
"line": 161,
"column": 19
},
"identifierName": "right"
},
"name": "right"
},
"init": {
"type": "CallExpression",
"start": 3782,
"end": 3794,
"loc": {
"start": {
"line": 161,
"column": 22
},
"end": {
"line": 161,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 3782,
"end": 3792,
"loc": {
"start": {
"line": 161,
"column": 22
},
"end": {
"line": 161,
"column": 32
}
},
"object": {
"type": "ThisExpression",
"start": 3782,
"end": 3786,
"loc": {
"start": {
"line": 161,
"column": 22
},
"end": {
"line": 161,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"start": 3787,
"end": 3792,
"loc": {
"start": {
"line": 161,
"column": 27
},
"end": {
"line": 161,
"column": 32
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"arguments": []
}
}
],
"kind": "const"
},
{
"type": "ExpressionStatement",
"start": 3805,
"end": 3819,
"loc": {
"start": {
"line": 162,
"column": 8
},
"end": {
"line": 162,
"column": 22
}
},
"expression": {
"type": "AssignmentExpression",
"start": 3805,
"end": 3818,
"loc": {
"start": {
"line": 162,
"column": 8
},
"end": {
"line": 162,
"column": 21
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 3805,
"end": 3811,
"loc": {
"start": {
"line": 162,
"column": 8
},
"end": {
"line": 162,
"column": 14
}
},
"object": {
"type": "ThisExpression",
"start": 3805,
"end": 3809,
"loc": {
"start": {
"line": 162,
"column": 8
},
"end": {
"line": 162,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3810,
"end": 3811,
"loc": {
"start": {
"line": 162,
"column": 13
},
"end": {
"line": 162,
"column": 14
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 3814,
"end": 3818,
"loc": {
"start": {
"line": 162,
"column": 17
},
"end": {
"line": 162,
"column": 21
},
"identifierName": "left"
},
"name": "left"
}
}
},
{
"type": "ExpressionStatement",
"start": 3829,
"end": 3850,
"loc": {
"start": {
"line": 163,
"column": 8
},
"end": {
"line": 163,
"column": 29
}
},
"expression": {
"type": "CallExpression",
"start": 3829,
"end": 3849,
"loc": {
"start": {
"line": 163,
"column": 8
},
"end": {
"line": 163,
"column": 28
}
},
"callee": {
"type": "MemberExpression",
"start": 3829,
"end": 3842,
"loc": {
"start": {
"line": 163,
"column": 8
},
"end": {
"line": 163,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 3829,
"end": 3833,
"loc": {
"start": {
"line": 163,
"column": 8
},
"end": {
"line": 163,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 3834,
"end": 3842,
"loc": {
"start": {
"line": 163,
"column": 13
},
"end": {
"line": 163,
"column": 21
},
"identifierName": "setRight"
},
"name": "setRight"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 3843,
"end": 3848,
"loc": {
"start": {
"line": 163,
"column": 22
},
"end": {
"line": 163,
"column": 27
},
"identifierName": "right"
},
"name": "right"
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Sets the left side of the rect without scaling it\r\n * @param {number} left\r\n ",
"start": 3638,
"end": 3737,
"loc": {
"start": {
"line": 156,
"column": 4
},
"end": {
"line": 159,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns the top left point\r\n * @returns {Vector}\r\n ",
"start": 3865,
"end": 3938,
"loc": {
"start": {
"line": 166,
"column": 4
},
"end": {
"line": 169,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 3944,
"end": 4006,
"loc": {
"start": {
"line": 170,
"column": 4
},
"end": {
"line": 172,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 3944,
"end": 3951,
"loc": {
"start": {
"line": 170,
"column": 4
},
"end": {
"line": 170,
"column": 11
},
"identifierName": "topLeft"
},
"name": "topLeft",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 3954,
"end": 4006,
"loc": {
"start": {
"line": 170,
"column": 14
},
"end": {
"line": 172,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 3965,
"end": 3999,
"loc": {
"start": {
"line": 171,
"column": 8
},
"end": {
"line": 171,
"column": 42
}
},
"argument": {
"type": "NewExpression",
"start": 3972,
"end": 3998,
"loc": {
"start": {
"line": 171,
"column": 15
},
"end": {
"line": 171,
"column": 41
}
},
"callee": {
"type": "Identifier",
"start": 3976,
"end": 3982,
"loc": {
"start": {
"line": 171,
"column": 19
},
"end": {
"line": 171,
"column": 25
},
"identifierName": "Vector"
},
"name": "Vector"
},
"arguments": [
{
"type": "MemberExpression",
"start": 3983,
"end": 3989,
"loc": {
"start": {
"line": 171,
"column": 26
},
"end": {
"line": 171,
"column": 32
}
},
"object": {
"type": "ThisExpression",
"start": 3983,
"end": 3987,
"loc": {
"start": {
"line": 171,
"column": 26
},
"end": {
"line": 171,
"column": 30
}
}
},
"property": {
"type": "Identifier",
"start": 3988,
"end": 3989,
"loc": {
"start": {
"line": 171,
"column": 31
},
"end": {
"line": 171,
"column": 32
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 3991,
"end": 3997,
"loc": {
"start": {
"line": 171,
"column": 34
},
"end": {
"line": 171,
"column": 40
}
},
"object": {
"type": "ThisExpression",
"start": 3991,
"end": 3995,
"loc": {
"start": {
"line": 171,
"column": 34
},
"end": {
"line": 171,
"column": 38
}
}
},
"property": {
"type": "Identifier",
"start": 3996,
"end": 3997,
"loc": {
"start": {
"line": 171,
"column": 39
},
"end": {
"line": 171,
"column": 40
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns the top left point\r\n * @returns {Vector}\r\n ",
"start": 3865,
"end": 3938,
"loc": {
"start": {
"line": 166,
"column": 4
},
"end": {
"line": 169,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns the bottom left point\r\n * @returns {Vector}\r\n ",
"start": 4014,
"end": 4090,
"loc": {
"start": {
"line": 174,
"column": 4
},
"end": {
"line": 177,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 4096,
"end": 4175,
"loc": {
"start": {
"line": 178,
"column": 4
},
"end": {
"line": 180,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 4096,
"end": 4107,
"loc": {
"start": {
"line": 178,
"column": 4
},
"end": {
"line": 178,
"column": 15
},
"identifierName": "bottomRight"
},
"name": "bottomRight",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 4110,
"end": 4175,
"loc": {
"start": {
"line": 178,
"column": 18
},
"end": {
"line": 180,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 4121,
"end": 4168,
"loc": {
"start": {
"line": 179,
"column": 8
},
"end": {
"line": 179,
"column": 55
}
},
"argument": {
"type": "NewExpression",
"start": 4128,
"end": 4167,
"loc": {
"start": {
"line": 179,
"column": 15
},
"end": {
"line": 179,
"column": 54
}
},
"callee": {
"type": "Identifier",
"start": 4132,
"end": 4138,
"loc": {
"start": {
"line": 179,
"column": 19
},
"end": {
"line": 179,
"column": 25
},
"identifierName": "Vector"
},
"name": "Vector"
},
"arguments": [
{
"type": "CallExpression",
"start": 4139,
"end": 4151,
"loc": {
"start": {
"line": 179,
"column": 26
},
"end": {
"line": 179,
"column": 38
}
},
"callee": {
"type": "MemberExpression",
"start": 4139,
"end": 4149,
"loc": {
"start": {
"line": 179,
"column": 26
},
"end": {
"line": 179,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 4139,
"end": 4143,
"loc": {
"start": {
"line": 179,
"column": 26
},
"end": {
"line": 179,
"column": 30
}
}
},
"property": {
"type": "Identifier",
"start": 4144,
"end": 4149,
"loc": {
"start": {
"line": 179,
"column": 31
},
"end": {
"line": 179,
"column": 36
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"arguments": []
},
{
"type": "CallExpression",
"start": 4153,
"end": 4166,
"loc": {
"start": {
"line": 179,
"column": 40
},
"end": {
"line": 179,
"column": 53
}
},
"callee": {
"type": "MemberExpression",
"start": 4153,
"end": 4164,
"loc": {
"start": {
"line": 179,
"column": 40
},
"end": {
"line": 179,
"column": 51
}
},
"object": {
"type": "ThisExpression",
"start": 4153,
"end": 4157,
"loc": {
"start": {
"line": 179,
"column": 40
},
"end": {
"line": 179,
"column": 44
}
}
},
"property": {
"type": "Identifier",
"start": 4158,
"end": 4164,
"loc": {
"start": {
"line": 179,
"column": 45
},
"end": {
"line": 179,
"column": 51
},
"identifierName": "bottom"
},
"name": "bottom"
},
"computed": false
},
"arguments": []
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns the bottom left point\r\n * @returns {Vector}\r\n ",
"start": 4014,
"end": 4090,
"loc": {
"start": {
"line": 174,
"column": 4
},
"end": {
"line": 177,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Moves the rectangle by the given parameters\r\n * @param {number} x\r\n * @param {number} y\r\n ",
"start": 4183,
"end": 4299,
"loc": {
"start": {
"line": 182,
"column": 4
},
"end": {
"line": 186,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 4305,
"end": 4370,
"loc": {
"start": {
"line": 187,
"column": 4
},
"end": {
"line": 190,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 4305,
"end": 4311,
"loc": {
"start": {
"line": 187,
"column": 4
},
"end": {
"line": 187,
"column": 10
},
"identifierName": "moveBy"
},
"name": "moveBy",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 4312,
"end": 4313,
"loc": {
"start": {
"line": 187,
"column": 11
},
"end": {
"line": 187,
"column": 12
},
"identifierName": "x"
},
"name": "x"
},
{
"type": "Identifier",
"start": 4315,
"end": 4316,
"loc": {
"start": {
"line": 187,
"column": 14
},
"end": {
"line": 187,
"column": 15
},
"identifierName": "y"
},
"name": "y"
}
],
"body": {
"type": "BlockStatement",
"start": 4318,
"end": 4370,
"loc": {
"start": {
"line": 187,
"column": 17
},
"end": {
"line": 190,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 4329,
"end": 4341,
"loc": {
"start": {
"line": 188,
"column": 8
},
"end": {
"line": 188,
"column": 20
}
},
"expression": {
"type": "AssignmentExpression",
"start": 4329,
"end": 4340,
"loc": {
"start": {
"line": 188,
"column": 8
},
"end": {
"line": 188,
"column": 19
}
},
"operator": "+=",
"left": {
"type": "MemberExpression",
"start": 4329,
"end": 4335,
"loc": {
"start": {
"line": 188,
"column": 8
},
"end": {
"line": 188,
"column": 14
}
},
"object": {
"type": "ThisExpression",
"start": 4329,
"end": 4333,
"loc": {
"start": {
"line": 188,
"column": 8
},
"end": {
"line": 188,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 4334,
"end": 4335,
"loc": {
"start": {
"line": 188,
"column": 13
},
"end": {
"line": 188,
"column": 14
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 4339,
"end": 4340,
"loc": {
"start": {
"line": 188,
"column": 18
},
"end": {
"line": 188,
"column": 19
},
"identifierName": "x"
},
"name": "x"
}
}
},
{
"type": "ExpressionStatement",
"start": 4351,
"end": 4363,
"loc": {
"start": {
"line": 189,
"column": 8
},
"end": {
"line": 189,
"column": 20
}
},
"expression": {
"type": "AssignmentExpression",
"start": 4351,
"end": 4362,
"loc": {
"start": {
"line": 189,
"column": 8
},
"end": {
"line": 189,
"column": 19
}
},
"operator": "+=",
"left": {
"type": "MemberExpression",
"start": 4351,
"end": 4357,
"loc": {
"start": {
"line": 189,
"column": 8
},
"end": {
"line": 189,
"column": 14
}
},
"object": {
"type": "ThisExpression",
"start": 4351,
"end": 4355,
"loc": {
"start": {
"line": 189,
"column": 8
},
"end": {
"line": 189,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 4356,
"end": 4357,
"loc": {
"start": {
"line": 189,
"column": 13
},
"end": {
"line": 189,
"column": 14
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 4361,
"end": 4362,
"loc": {
"start": {
"line": 189,
"column": 18
},
"end": {
"line": 189,
"column": 19
},
"identifierName": "y"
},
"name": "y"
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Moves the rectangle by the given parameters\r\n * @param {number} x\r\n * @param {number} y\r\n ",
"start": 4183,
"end": 4299,
"loc": {
"start": {
"line": 182,
"column": 4
},
"end": {
"line": 186,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Moves the rectangle by the given vector\r\n * @param {Vector} vec\r\n ",
"start": 4378,
"end": 4466,
"loc": {
"start": {
"line": 192,
"column": 4
},
"end": {
"line": 195,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 4472,
"end": 4550,
"loc": {
"start": {
"line": 196,
"column": 4
},
"end": {
"line": 199,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 4472,
"end": 4484,
"loc": {
"start": {
"line": 196,
"column": 4
},
"end": {
"line": 196,
"column": 16
},
"identifierName": "moveByVector"
},
"name": "moveByVector",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 4485,
"end": 4488,
"loc": {
"start": {
"line": 196,
"column": 17
},
"end": {
"line": 196,
"column": 20
},
"identifierName": "vec"
},
"name": "vec"
}
],
"body": {
"type": "BlockStatement",
"start": 4490,
"end": 4550,
"loc": {
"start": {
"line": 196,
"column": 22
},
"end": {
"line": 199,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 4501,
"end": 4517,
"loc": {
"start": {
"line": 197,
"column": 8
},
"end": {
"line": 197,
"column": 24
}
},
"expression": {
"type": "AssignmentExpression",
"start": 4501,
"end": 4516,
"loc": {
"start": {
"line": 197,
"column": 8
},
"end": {
"line": 197,
"column": 23
}
},
"operator": "+=",
"left": {
"type": "MemberExpression",
"start": 4501,
"end": 4507,
"loc": {
"start": {
"line": 197,
"column": 8
},
"end": {
"line": 197,
"column": 14
}
},
"object": {
"type": "ThisExpression",
"start": 4501,
"end": 4505,
"loc": {
"start": {
"line": 197,
"column": 8
},
"end": {
"line": 197,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 4506,
"end": 4507,
"loc": {
"start": {
"line": 197,
"column": 13
},
"end": {
"line": 197,
"column": 14
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
"right": {
"type": "MemberExpression",
"start": 4511,
"end": 4516,
"loc": {
"start": {
"line": 197,
"column": 18
},
"end": {
"line": 197,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 4511,
"end": 4514,
"loc": {
"start": {
"line": 197,
"column": 18
},
"end": {
"line": 197,
"column": 21
},
"identifierName": "vec"
},
"name": "vec"
},
"property": {
"type": "Identifier",
"start": 4515,
"end": 4516,
"loc": {
"start": {
"line": 197,
"column": 22
},
"end": {
"line": 197,
"column": 23
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
}
}
},
{
"type": "ExpressionStatement",
"start": 4527,
"end": 4543,
"loc": {
"start": {
"line": 198,
"column": 8
},
"end": {
"line": 198,
"column": 24
}
},
"expression": {
"type": "AssignmentExpression",
"start": 4527,
"end": 4542,
"loc": {
"start": {
"line": 198,
"column": 8
},
"end": {
"line": 198,
"column": 23
}
},
"operator": "+=",
"left": {
"type": "MemberExpression",
"start": 4527,
"end": 4533,
"loc": {
"start": {
"line": 198,
"column": 8
},
"end": {
"line": 198,
"column": 14
}
},
"object": {
"type": "ThisExpression",
"start": 4527,
"end": 4531,
"loc": {
"start": {
"line": 198,
"column": 8
},
"end": {
"line": 198,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 4532,
"end": 4533,
"loc": {
"start": {
"line": 198,
"column": 13
},
"end": {
"line": 198,
"column": 14
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
"right": {
"type": "MemberExpression",
"start": 4537,
"end": 4542,
"loc": {
"start": {
"line": 198,
"column": 18
},
"end": {
"line": 198,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 4537,
"end": 4540,
"loc": {
"start": {
"line": 198,
"column": 18
},
"end": {
"line": 198,
"column": 21
},
"identifierName": "vec"
},
"name": "vec"
},
"property": {
"type": "Identifier",
"start": 4541,
"end": 4542,
"loc": {
"start": {
"line": 198,
"column": 22
},
"end": {
"line": 198,
"column": 23
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Moves the rectangle by the given vector\r\n * @param {Vector} vec\r\n ",
"start": 4378,
"end": 4466,
"loc": {
"start": {
"line": 192,
"column": 4
},
"end": {
"line": 195,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Scales every parameter (w, h, x, y) by the given factor. Useful to transform from world to\r\n * tile space and vice versa\r\n * @param {number} factor\r\n ",
"start": 4558,
"end": 4734,
"loc": {
"start": {
"line": 201,
"column": 4
},
"end": {
"line": 205,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 4740,
"end": 4865,
"loc": {
"start": {
"line": 206,
"column": 4
},
"end": {
"line": 208,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 4740,
"end": 4749,
"loc": {
"start": {
"line": 206,
"column": 4
},
"end": {
"line": 206,
"column": 13
},
"identifierName": "allScaled"
},
"name": "allScaled",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 4750,
"end": 4756,
"loc": {
"start": {
"line": 206,
"column": 14
},
"end": {
"line": 206,
"column": 20
},
"identifierName": "factor"
},
"name": "factor"
}
],
"body": {
"type": "BlockStatement",
"start": 4758,
"end": 4865,
"loc": {
"start": {
"line": 206,
"column": 22
},
"end": {
"line": 208,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 4769,
"end": 4858,
"loc": {
"start": {
"line": 207,
"column": 8
},
"end": {
"line": 207,
"column": 97
}
},
"argument": {
"type": "NewExpression",
"start": 4776,
"end": 4857,
"loc": {
"start": {
"line": 207,
"column": 15
},
"end": {
"line": 207,
"column": 96
}
},
"callee": {
"type": "Identifier",
"start": 4780,
"end": 4789,
"loc": {
"start": {
"line": 207,
"column": 19
},
"end": {
"line": 207,
"column": 28
},
"identifierName": "Rectangle"
},
"name": "Rectangle"
},
"arguments": [
{
"type": "BinaryExpression",
"start": 4790,
"end": 4805,
"loc": {
"start": {
"line": 207,
"column": 29
},
"end": {
"line": 207,
"column": 44
}
},
"left": {
"type": "MemberExpression",
"start": 4790,
"end": 4796,
"loc": {
"start": {
"line": 207,
"column": 29
},
"end": {
"line": 207,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 4790,
"end": 4794,
"loc": {
"start": {
"line": 207,
"column": 29
},
"end": {
"line": 207,
"column": 33
}
}
},
"property": {
"type": "Identifier",
"start": 4795,
"end": 4796,
"loc": {
"start": {
"line": 207,
"column": 34
},
"end": {
"line": 207,
"column": 35
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 4799,
"end": 4805,
"loc": {
"start": {
"line": 207,
"column": 38
},
"end": {
"line": 207,
"column": 44
},
"identifierName": "factor"
},
"name": "factor"
}
},
{
"type": "BinaryExpression",
"start": 4807,
"end": 4822,
"loc": {
"start": {
"line": 207,
"column": 46
},
"end": {
"line": 207,
"column": 61
}
},
"left": {
"type": "MemberExpression",
"start": 4807,
"end": 4813,
"loc": {
"start": {
"line": 207,
"column": 46
},
"end": {
"line": 207,
"column": 52
}
},
"object": {
"type": "ThisExpression",
"start": 4807,
"end": 4811,
"loc": {
"start": {
"line": 207,
"column": 46
},
"end": {
"line": 207,
"column": 50
}
}
},
"property": {
"type": "Identifier",
"start": 4812,
"end": 4813,
"loc": {
"start": {
"line": 207,
"column": 51
},
"end": {
"line": 207,
"column": 52
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 4816,
"end": 4822,
"loc": {
"start": {
"line": 207,
"column": 55
},
"end": {
"line": 207,
"column": 61
},
"identifierName": "factor"
},
"name": "factor"
}
},
{
"type": "BinaryExpression",
"start": 4824,
"end": 4839,
"loc": {
"start": {
"line": 207,
"column": 63
},
"end": {
"line": 207,
"column": 78
}
},
"left": {
"type": "MemberExpression",
"start": 4824,
"end": 4830,
"loc": {
"start": {
"line": 207,
"column": 63
},
"end": {
"line": 207,
"column": 69
}
},
"object": {
"type": "ThisExpression",
"start": 4824,
"end": 4828,
"loc": {
"start": {
"line": 207,
"column": 63
},
"end": {
"line": 207,
"column": 67
}
}
},
"property": {
"type": "Identifier",
"start": 4829,
"end": 4830,
"loc": {
"start": {
"line": 207,
"column": 68
},
"end": {
"line": 207,
"column": 69
},
"identifierName": "w"
},
"name": "w"
},
"computed": false
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 4833,
"end": 4839,
"loc": {
"start": {
"line": 207,
"column": 72
},
"end": {
"line": 207,
"column": 78
},
"identifierName": "factor"
},
"name": "factor"
}
},
{
"type": "BinaryExpression",
"start": 4841,
"end": 4856,
"loc": {
"start": {
"line": 207,
"column": 80
},
"end": {
"line": 207,
"column": 95
}
},
"left": {
"type": "MemberExpression",
"start": 4841,
"end": 4847,
"loc": {
"start": {
"line": 207,
"column": 80
},
"end": {
"line": 207,
"column": 86
}
},
"object": {
"type": "ThisExpression",
"start": 4841,
"end": 4845,
"loc": {
"start": {
"line": 207,
"column": 80
},
"end": {
"line": 207,
"column": 84
}
}
},
"property": {
"type": "Identifier",
"start": 4846,
"end": 4847,
"loc": {
"start": {
"line": 207,
"column": 85
},
"end": {
"line": 207,
"column": 86
},
"identifierName": "h"
},
"name": "h"
},
"computed": false
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 4850,
"end": 4856,
"loc": {
"start": {
"line": 207,
"column": 89
},
"end": {
"line": 207,
"column": 95
},
"identifierName": "factor"
},
"name": "factor"
}
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Scales every parameter (w, h, x, y) by the given factor. Useful to transform from world to\r\n * tile space and vice versa\r\n * @param {number} factor\r\n ",
"start": 4558,
"end": 4734,
"loc": {
"start": {
"line": 201,
"column": 4
},
"end": {
"line": 205,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Expands the rectangle in all directions\r\n * @param {number} amount\r\n * @returns {Rectangle} new rectangle\r\n ",
"start": 4873,
"end": 5007,
"loc": {
"start": {
"line": 210,
"column": 4
},
"end": {
"line": 214,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 5013,
"end": 5160,
"loc": {
"start": {
"line": 215,
"column": 4
},
"end": {
"line": 217,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 5013,
"end": 5036,
"loc": {
"start": {
"line": 215,
"column": 4
},
"end": {
"line": 215,
"column": 27
},
"identifierName": "expandedInAllDirections"
},
"name": "expandedInAllDirections",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 5037,
"end": 5043,
"loc": {
"start": {
"line": 215,
"column": 28
},
"end": {
"line": 215,
"column": 34
},
"identifierName": "amount"
},
"name": "amount"
}
],
"body": {
"type": "BlockStatement",
"start": 5045,
"end": 5160,
"loc": {
"start": {
"line": 215,
"column": 36
},
"end": {
"line": 217,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 5056,
"end": 5153,
"loc": {
"start": {
"line": 216,
"column": 8
},
"end": {
"line": 216,
"column": 105
}
},
"argument": {
"type": "NewExpression",
"start": 5063,
"end": 5152,
"loc": {
"start": {
"line": 216,
"column": 15
},
"end": {
"line": 216,
"column": 104
}
},
"callee": {
"type": "Identifier",
"start": 5067,
"end": 5076,
"loc": {
"start": {
"line": 216,
"column": 19
},
"end": {
"line": 216,
"column": 28
},
"identifierName": "Rectangle"
},
"name": "Rectangle"
},
"arguments": [
{
"type": "BinaryExpression",
"start": 5077,
"end": 5092,
"loc": {
"start": {
"line": 216,
"column": 29
},
"end": {
"line": 216,
"column": 44
}
},
"left": {
"type": "MemberExpression",
"start": 5077,
"end": 5083,
"loc": {
"start": {
"line": 216,
"column": 29
},
"end": {
"line": 216,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 5077,
"end": 5081,
"loc": {
"start": {
"line": 216,
"column": 29
},
"end": {
"line": 216,
"column": 33
}
}
},
"property": {
"type": "Identifier",
"start": 5082,
"end": 5083,
"loc": {
"start": {
"line": 216,
"column": 34
},
"end": {
"line": 216,
"column": 35
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
"operator": "-",
"right": {
"type": "Identifier",
"start": 5086,
"end": 5092,
"loc": {
"start": {
"line": 216,
"column": 38
},
"end": {
"line": 216,
"column": 44
},
"identifierName": "amount"
},
"name": "amount"
}
},
{
"type": "BinaryExpression",
"start": 5094,
"end": 5109,
"loc": {
"start": {
"line": 216,
"column": 46
},
"end": {
"line": 216,
"column": 61
}
},
"left": {
"type": "MemberExpression",
"start": 5094,
"end": 5100,
"loc": {
"start": {
"line": 216,
"column": 46
},
"end": {
"line": 216,
"column": 52
}
},
"object": {
"type": "ThisExpression",
"start": 5094,
"end": 5098,
"loc": {
"start": {
"line": 216,
"column": 46
},
"end": {
"line": 216,
"column": 50
}
}
},
"property": {
"type": "Identifier",
"start": 5099,
"end": 5100,
"loc": {
"start": {
"line": 216,
"column": 51
},
"end": {
"line": 216,
"column": 52
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
"operator": "-",
"right": {
"type": "Identifier",
"start": 5103,
"end": 5109,
"loc": {
"start": {
"line": 216,
"column": 55
},
"end": {
"line": 216,
"column": 61
},
"identifierName": "amount"
},
"name": "amount"
}
},
{
"type": "BinaryExpression",
"start": 5111,
"end": 5130,
"loc": {
"start": {
"line": 216,
"column": 63
},
"end": {
"line": 216,
"column": 82
}
},
"left": {
"type": "MemberExpression",
"start": 5111,
"end": 5117,
"loc": {
"start": {
"line": 216,
"column": 63
},
"end": {
"line": 216,
"column": 69
}
},
"object": {
"type": "ThisExpression",
"start": 5111,
"end": 5115,
"loc": {
"start": {
"line": 216,
"column": 63
},
"end": {
"line": 216,
"column": 67
}
}
},
"property": {
"type": "Identifier",
"start": 5116,
"end": 5117,
"loc": {
"start": {
"line": 216,
"column": 68
},
"end": {
"line": 216,
"column": 69
},
"identifierName": "w"
},
"name": "w"
},
"computed": false
},
"operator": "+",
"right": {
"type": "BinaryExpression",
"start": 5120,
"end": 5130,
"loc": {
"start": {
"line": 216,
"column": 72
},
"end": {
"line": 216,
"column": 82
}
},
"left": {
"type": "NumericLiteral",
"start": 5120,
"end": 5121,
"loc": {
"start": {
"line": 216,
"column": 72
},
"end": {
"line": 216,
"column": 73
}
},
"extra": {
"rawValue": 2,
"raw": "2"
},
"value": 2
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 5124,
"end": 5130,
"loc": {
"start": {
"line": 216,
"column": 76
},
"end": {
"line": 216,
"column": 82
},
"identifierName": "amount"
},
"name": "amount"
}
}
},
{
"type": "BinaryExpression",
"start": 5132,
"end": 5151,
"loc": {
"start": {
"line": 216,
"column": 84
},
"end": {
"line": 216,
"column": 103
}
},
"left": {
"type": "MemberExpression",
"start": 5132,
"end": 5138,
"loc": {
"start": {
"line": 216,
"column": 84
},
"end": {
"line": 216,
"column": 90
}
},
"object": {
"type": "ThisExpression",
"start": 5132,
"end": 5136,
"loc": {
"start": {
"line": 216,
"column": 84
},
"end": {
"line": 216,
"column": 88
}
}
},
"property": {
"type": "Identifier",
"start": 5137,
"end": 5138,
"loc": {
"start": {
"line": 216,
"column": 89
},
"end": {
"line": 216,
"column": 90
},
"identifierName": "h"
},
"name": "h"
},
"computed": false
},
"operator": "+",
"right": {
"type": "BinaryExpression",
"start": 5141,
"end": 5151,
"loc": {
"start": {
"line": 216,
"column": 93
},
"end": {
"line": 216,
"column": 103
}
},
"left": {
"type": "NumericLiteral",
"start": 5141,
"end": 5142,
"loc": {
"start": {
"line": 216,
"column": 93
},
"end": {
"line": 216,
"column": 94
}
},
"extra": {
"rawValue": 2,
"raw": "2"
},
"value": 2
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 5145,
"end": 5151,
"loc": {
"start": {
"line": 216,
"column": 97
},
"end": {
"line": 216,
"column": 103
},
"identifierName": "amount"
},
"name": "amount"
}
}
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Expands the rectangle in all directions\r\n * @param {number} amount\r\n * @returns {Rectangle} new rectangle\r\n ",
"start": 4873,
"end": 5007,
"loc": {
"start": {
"line": 210,
"column": 4
},
"end": {
"line": 214,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if the given rectangle is contained\r\n * @param {Rectangle} rect\r\n * @returns {boolean}\r\n ",
"start": 5168,
"end": 5291,
"loc": {
"start": {
"line": 219,
"column": 4
},
"end": {
"line": 223,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 5297,
"end": 5509,
"loc": {
"start": {
"line": 224,
"column": 4
},
"end": {
"line": 231,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 5297,
"end": 5309,
"loc": {
"start": {
"line": 224,
"column": 4
},
"end": {
"line": 224,
"column": 16
},
"identifierName": "containsRect"
},
"name": "containsRect",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 5310,
"end": 5314,
"loc": {
"start": {
"line": 224,
"column": 17
},
"end": {
"line": 224,
"column": 21
},
"identifierName": "rect"
},
"name": "rect"
}
],
"body": {
"type": "BlockStatement",
"start": 5316,
"end": 5509,
"loc": {
"start": {
"line": 224,
"column": 23
},
"end": {
"line": 231,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 5327,
"end": 5502,
"loc": {
"start": {
"line": 225,
"column": 8
},
"end": {
"line": 230,
"column": 10
}
},
"argument": {
"type": "LogicalExpression",
"start": 5349,
"end": 5490,
"loc": {
"start": {
"line": 226,
"column": 12
},
"end": {
"line": 229,
"column": 35
}
},
"left": {
"type": "LogicalExpression",
"start": 5349,
"end": 5450,
"loc": {
"start": {
"line": 226,
"column": 12
},
"end": {
"line": 228,
"column": 35
}
},
"left": {
"type": "LogicalExpression",
"start": 5349,
"end": 5410,
"loc": {
"start": {
"line": 226,
"column": 12
},
"end": {
"line": 227,
"column": 34
}
},
"left": {
"type": "BinaryExpression",
"start": 5349,
"end": 5371,
"loc": {
"start": {
"line": 226,
"column": 12
},
"end": {
"line": 226,
"column": 34
}
},
"left": {
"type": "MemberExpression",
"start": 5349,
"end": 5355,
"loc": {
"start": {
"line": 226,
"column": 12
},
"end": {
"line": 226,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 5349,
"end": 5353,
"loc": {
"start": {
"line": 226,
"column": 12
},
"end": {
"line": 226,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 5354,
"end": 5355,
"loc": {
"start": {
"line": 226,
"column": 17
},
"end": {
"line": 226,
"column": 18
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
"operator": "<=",
"right": {
"type": "CallExpression",
"start": 5359,
"end": 5371,
"loc": {
"start": {
"line": 226,
"column": 22
},
"end": {
"line": 226,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 5359,
"end": 5369,
"loc": {
"start": {
"line": 226,
"column": 22
},
"end": {
"line": 226,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 5359,
"end": 5363,
"loc": {
"start": {
"line": 226,
"column": 22
},
"end": {
"line": 226,
"column": 26
},
"identifierName": "rect"
},
"name": "rect"
},
"property": {
"type": "Identifier",
"start": 5364,
"end": 5369,
"loc": {
"start": {
"line": 226,
"column": 27
},
"end": {
"line": 226,
"column": 32
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"arguments": []
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 5388,
"end": 5410,
"loc": {
"start": {
"line": 227,
"column": 12
},
"end": {
"line": 227,
"column": 34
}
},
"left": {
"type": "MemberExpression",
"start": 5388,
"end": 5394,
"loc": {
"start": {
"line": 227,
"column": 12
},
"end": {
"line": 227,
"column": 18
}
},
"object": {
"type": "Identifier",
"start": 5388,
"end": 5392,
"loc": {
"start": {
"line": 227,
"column": 12
},
"end": {
"line": 227,
"column": 16
},
"identifierName": "rect"
},
"name": "rect"
},
"property": {
"type": "Identifier",
"start": 5393,
"end": 5394,
"loc": {
"start": {
"line": 227,
"column": 17
},
"end": {
"line": 227,
"column": 18
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
"operator": "<=",
"right": {
"type": "CallExpression",
"start": 5398,
"end": 5410,
"loc": {
"start": {
"line": 227,
"column": 22
},
"end": {
"line": 227,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 5398,
"end": 5408,
"loc": {
"start": {
"line": 227,
"column": 22
},
"end": {
"line": 227,
"column": 32
}
},
"object": {
"type": "ThisExpression",
"start": 5398,
"end": 5402,
"loc": {
"start": {
"line": 227,
"column": 22
},
"end": {
"line": 227,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"start": 5403,
"end": 5408,
"loc": {
"start": {
"line": 227,
"column": 27
},
"end": {
"line": 227,
"column": 32
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"arguments": []
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 5427,
"end": 5450,
"loc": {
"start": {
"line": 228,
"column": 12
},
"end": {
"line": 228,
"column": 35
}
},
"left": {
"type": "MemberExpression",
"start": 5427,
"end": 5433,
"loc": {
"start": {
"line": 228,
"column": 12
},
"end": {
"line": 228,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 5427,
"end": 5431,
"loc": {
"start": {
"line": 228,
"column": 12
},
"end": {
"line": 228,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 5432,
"end": 5433,
"loc": {
"start": {
"line": 228,
"column": 17
},
"end": {
"line": 228,
"column": 18
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
"operator": "<=",
"right": {
"type": "CallExpression",
"start": 5437,
"end": 5450,
"loc": {
"start": {
"line": 228,
"column": 22
},
"end": {
"line": 228,
"column": 35
}
},
"callee": {
"type": "MemberExpression",
"start": 5437,
"end": 5448,
"loc": {
"start": {
"line": 228,
"column": 22
},
"end": {
"line": 228,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 5437,
"end": 5441,
"loc": {
"start": {
"line": 228,
"column": 22
},
"end": {
"line": 228,
"column": 26
},
"identifierName": "rect"
},
"name": "rect"
},
"property": {
"type": "Identifier",
"start": 5442,
"end": 5448,
"loc": {
"start": {
"line": 228,
"column": 27
},
"end": {
"line": 228,
"column": 33
},
"identifierName": "bottom"
},
"name": "bottom"
},
"computed": false
},
"arguments": []
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 5467,
"end": 5490,
"loc": {
"start": {
"line": 229,
"column": 12
},
"end": {
"line": 229,
"column": 35
}
},
"left": {
"type": "MemberExpression",
"start": 5467,
"end": 5473,
"loc": {
"start": {
"line": 229,
"column": 12
},
"end": {
"line": 229,
"column": 18
}
},
"object": {
"type": "Identifier",
"start": 5467,
"end": 5471,
"loc": {
"start": {
"line": 229,
"column": 12
},
"end": {
"line": 229,
"column": 16
},
"identifierName": "rect"
},
"name": "rect"
},
"property": {
"type": "Identifier",
"start": 5472,
"end": 5473,
"loc": {
"start": {
"line": 229,
"column": 17
},
"end": {
"line": 229,
"column": 18
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
"operator": "<=",
"right": {
"type": "CallExpression",
"start": 5477,
"end": 5490,
"loc": {
"start": {
"line": 229,
"column": 22
},
"end": {
"line": 229,
"column": 35
}
},
"callee": {
"type": "MemberExpression",
"start": 5477,
"end": 5488,
"loc": {
"start": {
"line": 229,
"column": 22
},
"end": {
"line": 229,
"column": 33
}
},
"object": {
"type": "ThisExpression",
"start": 5477,
"end": 5481,
"loc": {
"start": {
"line": 229,
"column": 22
},
"end": {
"line": 229,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"start": 5482,
"end": 5488,
"loc": {
"start": {
"line": 229,
"column": 27
},
"end": {
"line": 229,
"column": 33
},
"identifierName": "bottom"
},
"name": "bottom"
},
"computed": false
},
"arguments": []
}
},
"extra": {
"parenthesized": true,
"parenStart": 5334
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if the given rectangle is contained\r\n * @param {Rectangle} rect\r\n * @returns {boolean}\r\n ",
"start": 5168,
"end": 5291,
"loc": {
"start": {
"line": 219,
"column": 4
},
"end": {
"line": 223,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if this rectangle contains the other rectangle specified by the parameters\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {number} w\r\n * @param {number} h\r\n * @returns {boolean}\r\n ",
"start": 5517,
"end": 5751,
"loc": {
"start": {
"line": 233,
"column": 4
},
"end": {
"line": 240,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 5757,
"end": 5892,
"loc": {
"start": {
"line": 241,
"column": 4
},
"end": {
"line": 243,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 5757,
"end": 5776,
"loc": {
"start": {
"line": 241,
"column": 4
},
"end": {
"line": 241,
"column": 23
},
"identifierName": "containsRect4Params"
},
"name": "containsRect4Params",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 5777,
"end": 5778,
"loc": {
"start": {
"line": 241,
"column": 24
},
"end": {
"line": 241,
"column": 25
},
"identifierName": "x"
},
"name": "x"
},
{
"type": "Identifier",
"start": 5780,
"end": 5781,
"loc": {
"start": {
"line": 241,
"column": 27
},
"end": {
"line": 241,
"column": 28
},
"identifierName": "y"
},
"name": "y"
},
{
"type": "Identifier",
"start": 5783,
"end": 5784,
"loc": {
"start": {
"line": 241,
"column": 30
},
"end": {
"line": 241,
"column": 31
},
"identifierName": "w"
},
"name": "w"
},
{
"type": "Identifier",
"start": 5786,
"end": 5787,
"loc": {
"start": {
"line": 241,
"column": 33
},
"end": {
"line": 241,
"column": 34
},
"identifierName": "h"
},
"name": "h"
}
],
"body": {
"type": "BlockStatement",
"start": 5789,
"end": 5892,
"loc": {
"start": {
"line": 241,
"column": 36
},
"end": {
"line": 243,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 5800,
"end": 5885,
"loc": {
"start": {
"line": 242,
"column": 8
},
"end": {
"line": 242,
"column": 93
}
},
"argument": {
"type": "LogicalExpression",
"start": 5807,
"end": 5884,
"loc": {
"start": {
"line": 242,
"column": 15
},
"end": {
"line": 242,
"column": 92
}
},
"left": {
"type": "LogicalExpression",
"start": 5807,
"end": 5862,
"loc": {
"start": {
"line": 242,
"column": 15
},
"end": {
"line": 242,
"column": 70
}
},
"left": {
"type": "LogicalExpression",
"start": 5807,
"end": 5843,
"loc": {
"start": {
"line": 242,
"column": 15
},
"end": {
"line": 242,
"column": 51
}
},
"left": {
"type": "BinaryExpression",
"start": 5807,
"end": 5822,
"loc": {
"start": {
"line": 242,
"column": 15
},
"end": {
"line": 242,
"column": 30
}
},
"left": {
"type": "MemberExpression",
"start": 5807,
"end": 5813,
"loc": {
"start": {
"line": 242,
"column": 15
},
"end": {
"line": 242,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 5807,
"end": 5811,
"loc": {
"start": {
"line": 242,
"column": 15
},
"end": {
"line": 242,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 5812,
"end": 5813,
"loc": {
"start": {
"line": 242,
"column": 20
},
"end": {
"line": 242,
"column": 21
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
"operator": "<=",
"right": {
"type": "BinaryExpression",
"start": 5817,
"end": 5822,
"loc": {
"start": {
"line": 242,
"column": 25
},
"end": {
"line": 242,
"column": 30
}
},
"left": {
"type": "Identifier",
"start": 5817,
"end": 5818,
"loc": {
"start": {
"line": 242,
"column": 25
},
"end": {
"line": 242,
"column": 26
},
"identifierName": "x"
},
"name": "x"
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 5821,
"end": 5822,
"loc": {
"start": {
"line": 242,
"column": 29
},
"end": {
"line": 242,
"column": 30
},
"identifierName": "w"
},
"name": "w"
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 5826,
"end": 5843,
"loc": {
"start": {
"line": 242,
"column": 34
},
"end": {
"line": 242,
"column": 51
}
},
"left": {
"type": "Identifier",
"start": 5826,
"end": 5827,
"loc": {
"start": {
"line": 242,
"column": 34
},
"end": {
"line": 242,
"column": 35
},
"identifierName": "x"
},
"name": "x"
},
"operator": "<=",
"right": {
"type": "CallExpression",
"start": 5831,
"end": 5843,
"loc": {
"start": {
"line": 242,
"column": 39
},
"end": {
"line": 242,
"column": 51
}
},
"callee": {
"type": "MemberExpression",
"start": 5831,
"end": 5841,
"loc": {
"start": {
"line": 242,
"column": 39
},
"end": {
"line": 242,
"column": 49
}
},
"object": {
"type": "ThisExpression",
"start": 5831,
"end": 5835,
"loc": {
"start": {
"line": 242,
"column": 39
},
"end": {
"line": 242,
"column": 43
}
}
},
"property": {
"type": "Identifier",
"start": 5836,
"end": 5841,
"loc": {
"start": {
"line": 242,
"column": 44
},
"end": {
"line": 242,
"column": 49
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"arguments": []
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 5847,
"end": 5862,
"loc": {
"start": {
"line": 242,
"column": 55
},
"end": {
"line": 242,
"column": 70
}
},
"left": {
"type": "MemberExpression",
"start": 5847,
"end": 5853,
"loc": {
"start": {
"line": 242,
"column": 55
},
"end": {
"line": 242,
"column": 61
}
},
"object": {
"type": "ThisExpression",
"start": 5847,
"end": 5851,
"loc": {
"start": {
"line": 242,
"column": 55
},
"end": {
"line": 242,
"column": 59
}
}
},
"property": {
"type": "Identifier",
"start": 5852,
"end": 5853,
"loc": {
"start": {
"line": 242,
"column": 60
},
"end": {
"line": 242,
"column": 61
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
"operator": "<=",
"right": {
"type": "BinaryExpression",
"start": 5857,
"end": 5862,
"loc": {
"start": {
"line": 242,
"column": 65
},
"end": {
"line": 242,
"column": 70
}
},
"left": {
"type": "Identifier",
"start": 5857,
"end": 5858,
"loc": {
"start": {
"line": 242,
"column": 65
},
"end": {
"line": 242,
"column": 66
},
"identifierName": "y"
},
"name": "y"
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 5861,
"end": 5862,
"loc": {
"start": {
"line": 242,
"column": 69
},
"end": {
"line": 242,
"column": 70
},
"identifierName": "h"
},
"name": "h"
}
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 5866,
"end": 5884,
"loc": {
"start": {
"line": 242,
"column": 74
},
"end": {
"line": 242,
"column": 92
}
},
"left": {
"type": "Identifier",
"start": 5866,
"end": 5867,
"loc": {
"start": {
"line": 242,
"column": 74
},
"end": {
"line": 242,
"column": 75
},
"identifierName": "y"
},
"name": "y"
},
"operator": "<=",
"right": {
"type": "CallExpression",
"start": 5871,
"end": 5884,
"loc": {
"start": {
"line": 242,
"column": 79
},
"end": {
"line": 242,
"column": 92
}
},
"callee": {
"type": "MemberExpression",
"start": 5871,
"end": 5882,
"loc": {
"start": {
"line": 242,
"column": 79
},
"end": {
"line": 242,
"column": 90
}
},
"object": {
"type": "ThisExpression",
"start": 5871,
"end": 5875,
"loc": {
"start": {
"line": 242,
"column": 79
},
"end": {
"line": 242,
"column": 83
}
}
},
"property": {
"type": "Identifier",
"start": 5876,
"end": 5882,
"loc": {
"start": {
"line": 242,
"column": 84
},
"end": {
"line": 242,
"column": 90
},
"identifierName": "bottom"
},
"name": "bottom"
},
"computed": false
},
"arguments": []
}
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if this rectangle contains the other rectangle specified by the parameters\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {number} w\r\n * @param {number} h\r\n * @returns {boolean}\r\n ",
"start": 5517,
"end": 5751,
"loc": {
"start": {
"line": 233,
"column": 4
},
"end": {
"line": 240,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if the rectangle contains the given circle at (x, y) with the radius (radius)\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {number} radius\r\n * @returns {boolean}\r\n ",
"start": 5900,
"end": 6116,
"loc": {
"start": {
"line": 245,
"column": 4
},
"end": {
"line": 251,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 6122,
"end": 6347,
"loc": {
"start": {
"line": 252,
"column": 4
},
"end": {
"line": 259,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 6122,
"end": 6136,
"loc": {
"start": {
"line": 252,
"column": 4
},
"end": {
"line": 252,
"column": 18
},
"identifierName": "containsCircle"
},
"name": "containsCircle",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 6137,
"end": 6138,
"loc": {
"start": {
"line": 252,
"column": 19
},
"end": {
"line": 252,
"column": 20
},
"identifierName": "x"
},
"name": "x"
},
{
"type": "Identifier",
"start": 6140,
"end": 6141,
"loc": {
"start": {
"line": 252,
"column": 22
},
"end": {
"line": 252,
"column": 23
},
"identifierName": "y"
},
"name": "y"
},
{
"type": "Identifier",
"start": 6143,
"end": 6149,
"loc": {
"start": {
"line": 252,
"column": 25
},
"end": {
"line": 252,
"column": 31
},
"identifierName": "radius"
},
"name": "radius"
}
],
"body": {
"type": "BlockStatement",
"start": 6151,
"end": 6347,
"loc": {
"start": {
"line": 252,
"column": 33
},
"end": {
"line": 259,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 6162,
"end": 6340,
"loc": {
"start": {
"line": 253,
"column": 8
},
"end": {
"line": 258,
"column": 10
}
},
"argument": {
"type": "LogicalExpression",
"start": 6184,
"end": 6328,
"loc": {
"start": {
"line": 254,
"column": 12
},
"end": {
"line": 257,
"column": 39
}
},
"left": {
"type": "LogicalExpression",
"start": 6184,
"end": 6284,
"loc": {
"start": {
"line": 254,
"column": 12
},
"end": {
"line": 256,
"column": 32
}
},
"left": {
"type": "LogicalExpression",
"start": 6184,
"end": 6247,
"loc": {
"start": {
"line": 254,
"column": 12
},
"end": {
"line": 255,
"column": 38
}
},
"left": {
"type": "BinaryExpression",
"start": 6184,
"end": 6204,
"loc": {
"start": {
"line": 254,
"column": 12
},
"end": {
"line": 254,
"column": 32
}
},
"left": {
"type": "MemberExpression",
"start": 6184,
"end": 6190,
"loc": {
"start": {
"line": 254,
"column": 12
},
"end": {
"line": 254,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 6184,
"end": 6188,
"loc": {
"start": {
"line": 254,
"column": 12
},
"end": {
"line": 254,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 6189,
"end": 6190,
"loc": {
"start": {
"line": 254,
"column": 17
},
"end": {
"line": 254,
"column": 18
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
"operator": "<=",
"right": {
"type": "BinaryExpression",
"start": 6194,
"end": 6204,
"loc": {
"start": {
"line": 254,
"column": 22
},
"end": {
"line": 254,
"column": 32
}
},
"left": {
"type": "Identifier",
"start": 6194,
"end": 6195,
"loc": {
"start": {
"line": 254,
"column": 22
},
"end": {
"line": 254,
"column": 23
},
"identifierName": "x"
},
"name": "x"
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 6198,
"end": 6204,
"loc": {
"start": {
"line": 254,
"column": 26
},
"end": {
"line": 254,
"column": 32
},
"identifierName": "radius"
},
"name": "radius"
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 6221,
"end": 6247,
"loc": {
"start": {
"line": 255,
"column": 12
},
"end": {
"line": 255,
"column": 38
}
},
"left": {
"type": "BinaryExpression",
"start": 6221,
"end": 6231,
"loc": {
"start": {
"line": 255,
"column": 12
},
"end": {
"line": 255,
"column": 22
}
},
"left": {
"type": "Identifier",
"start": 6221,
"end": 6222,
"loc": {
"start": {
"line": 255,
"column": 12
},
"end": {
"line": 255,
"column": 13
},
"identifierName": "x"
},
"name": "x"
},
"operator": "-",
"right": {
"type": "Identifier",
"start": 6225,
"end": 6231,
"loc": {
"start": {
"line": 255,
"column": 16
},
"end": {
"line": 255,
"column": 22
},
"identifierName": "radius"
},
"name": "radius"
}
},
"operator": "<=",
"right": {
"type": "CallExpression",
"start": 6235,
"end": 6247,
"loc": {
"start": {
"line": 255,
"column": 26
},
"end": {
"line": 255,
"column": 38
}
},
"callee": {
"type": "MemberExpression",
"start": 6235,
"end": 6245,
"loc": {
"start": {
"line": 255,
"column": 26
},
"end": {
"line": 255,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 6235,
"end": 6239,
"loc": {
"start": {
"line": 255,
"column": 26
},
"end": {
"line": 255,
"column": 30
}
}
},
"property": {
"type": "Identifier",
"start": 6240,
"end": 6245,
"loc": {
"start": {
"line": 255,
"column": 31
},
"end": {
"line": 255,
"column": 36
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"arguments": []
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 6264,
"end": 6284,
"loc": {
"start": {
"line": 256,
"column": 12
},
"end": {
"line": 256,
"column": 32
}
},
"left": {
"type": "MemberExpression",
"start": 6264,
"end": 6270,
"loc": {
"start": {
"line": 256,
"column": 12
},
"end": {
"line": 256,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 6264,
"end": 6268,
"loc": {
"start": {
"line": 256,
"column": 12
},
"end": {
"line": 256,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 6269,
"end": 6270,
"loc": {
"start": {
"line": 256,
"column": 17
},
"end": {
"line": 256,
"column": 18
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
"operator": "<=",
"right": {
"type": "BinaryExpression",
"start": 6274,
"end": 6284,
"loc": {
"start": {
"line": 256,
"column": 22
},
"end": {
"line": 256,
"column": 32
}
},
"left": {
"type": "Identifier",
"start": 6274,
"end": 6275,
"loc": {
"start": {
"line": 256,
"column": 22
},
"end": {
"line": 256,
"column": 23
},
"identifierName": "y"
},
"name": "y"
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 6278,
"end": 6284,
"loc": {
"start": {
"line": 256,
"column": 26
},
"end": {
"line": 256,
"column": 32
},
"identifierName": "radius"
},
"name": "radius"
}
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 6301,
"end": 6328,
"loc": {
"start": {
"line": 257,
"column": 12
},
"end": {
"line": 257,
"column": 39
}
},
"left": {
"type": "BinaryExpression",
"start": 6301,
"end": 6311,
"loc": {
"start": {
"line": 257,
"column": 12
},
"end": {
"line": 257,
"column": 22
}
},
"left": {
"type": "Identifier",
"start": 6301,
"end": 6302,
"loc": {
"start": {
"line": 257,
"column": 12
},
"end": {
"line": 257,
"column": 13
},
"identifierName": "y"
},
"name": "y"
},
"operator": "-",
"right": {
"type": "Identifier",
"start": 6305,
"end": 6311,
"loc": {
"start": {
"line": 257,
"column": 16
},
"end": {
"line": 257,
"column": 22
},
"identifierName": "radius"
},
"name": "radius"
}
},
"operator": "<=",
"right": {
"type": "CallExpression",
"start": 6315,
"end": 6328,
"loc": {
"start": {
"line": 257,
"column": 26
},
"end": {
"line": 257,
"column": 39
}
},
"callee": {
"type": "MemberExpression",
"start": 6315,
"end": 6326,
"loc": {
"start": {
"line": 257,
"column": 26
},
"end": {
"line": 257,
"column": 37
}
},
"object": {
"type": "ThisExpression",
"start": 6315,
"end": 6319,
"loc": {
"start": {
"line": 257,
"column": 26
},
"end": {
"line": 257,
"column": 30
}
}
},
"property": {
"type": "Identifier",
"start": 6320,
"end": 6326,
"loc": {
"start": {
"line": 257,
"column": 31
},
"end": {
"line": 257,
"column": 37
},
"identifierName": "bottom"
},
"name": "bottom"
},
"computed": false
},
"arguments": []
}
},
"extra": {
"parenthesized": true,
"parenStart": 6169
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if the rectangle contains the given circle at (x, y) with the radius (radius)\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {number} radius\r\n * @returns {boolean}\r\n ",
"start": 5900,
"end": 6116,
"loc": {
"start": {
"line": 245,
"column": 4
},
"end": {
"line": 251,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if hte rectangle contains the given point\r\n * @param {number} x\r\n * @param {number} y\r\n * @returns {boolean}\r\n ",
"start": 6355,
"end": 6504,
"loc": {
"start": {
"line": 261,
"column": 4
},
"end": {
"line": 266,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 6510,
"end": 6623,
"loc": {
"start": {
"line": 267,
"column": 4
},
"end": {
"line": 269,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 6510,
"end": 6523,
"loc": {
"start": {
"line": 267,
"column": 4
},
"end": {
"line": 267,
"column": 17
},
"identifierName": "containsPoint"
},
"name": "containsPoint",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 6524,
"end": 6525,
"loc": {
"start": {
"line": 267,
"column": 18
},
"end": {
"line": 267,
"column": 19
},
"identifierName": "x"
},
"name": "x"
},
{
"type": "Identifier",
"start": 6527,
"end": 6528,
"loc": {
"start": {
"line": 267,
"column": 21
},
"end": {
"line": 267,
"column": 22
},
"identifierName": "y"
},
"name": "y"
}
],
"body": {
"type": "BlockStatement",
"start": 6530,
"end": 6623,
"loc": {
"start": {
"line": 267,
"column": 24
},
"end": {
"line": 269,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 6541,
"end": 6616,
"loc": {
"start": {
"line": 268,
"column": 8
},
"end": {
"line": 268,
"column": 83
}
},
"argument": {
"type": "LogicalExpression",
"start": 6548,
"end": 6615,
"loc": {
"start": {
"line": 268,
"column": 15
},
"end": {
"line": 268,
"column": 82
}
},
"left": {
"type": "LogicalExpression",
"start": 6548,
"end": 6594,
"loc": {
"start": {
"line": 268,
"column": 15
},
"end": {
"line": 268,
"column": 61
}
},
"left": {
"type": "LogicalExpression",
"start": 6548,
"end": 6579,
"loc": {
"start": {
"line": 268,
"column": 15
},
"end": {
"line": 268,
"column": 46
}
},
"left": {
"type": "BinaryExpression",
"start": 6548,
"end": 6559,
"loc": {
"start": {
"line": 268,
"column": 15
},
"end": {
"line": 268,
"column": 26
}
},
"left": {
"type": "Identifier",
"start": 6548,
"end": 6549,
"loc": {
"start": {
"line": 268,
"column": 15
},
"end": {
"line": 268,
"column": 16
},
"identifierName": "x"
},
"name": "x"
},
"operator": ">=",
"right": {
"type": "MemberExpression",
"start": 6553,
"end": 6559,
"loc": {
"start": {
"line": 268,
"column": 20
},
"end": {
"line": 268,
"column": 26
}
},
"object": {
"type": "ThisExpression",
"start": 6553,
"end": 6557,
"loc": {
"start": {
"line": 268,
"column": 20
},
"end": {
"line": 268,
"column": 24
}
}
},
"property": {
"type": "Identifier",
"start": 6558,
"end": 6559,
"loc": {
"start": {
"line": 268,
"column": 25
},
"end": {
"line": 268,
"column": 26
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 6563,
"end": 6579,
"loc": {
"start": {
"line": 268,
"column": 30
},
"end": {
"line": 268,
"column": 46
}
},
"left": {
"type": "Identifier",
"start": 6563,
"end": 6564,
"loc": {
"start": {
"line": 268,
"column": 30
},
"end": {
"line": 268,
"column": 31
},
"identifierName": "x"
},
"name": "x"
},
"operator": "<",
"right": {
"type": "CallExpression",
"start": 6567,
"end": 6579,
"loc": {
"start": {
"line": 268,
"column": 34
},
"end": {
"line": 268,
"column": 46
}
},
"callee": {
"type": "MemberExpression",
"start": 6567,
"end": 6577,
"loc": {
"start": {
"line": 268,
"column": 34
},
"end": {
"line": 268,
"column": 44
}
},
"object": {
"type": "ThisExpression",
"start": 6567,
"end": 6571,
"loc": {
"start": {
"line": 268,
"column": 34
},
"end": {
"line": 268,
"column": 38
}
}
},
"property": {
"type": "Identifier",
"start": 6572,
"end": 6577,
"loc": {
"start": {
"line": 268,
"column": 39
},
"end": {
"line": 268,
"column": 44
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"arguments": []
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 6583,
"end": 6594,
"loc": {
"start": {
"line": 268,
"column": 50
},
"end": {
"line": 268,
"column": 61
}
},
"left": {
"type": "Identifier",
"start": 6583,
"end": 6584,
"loc": {
"start": {
"line": 268,
"column": 50
},
"end": {
"line": 268,
"column": 51
},
"identifierName": "y"
},
"name": "y"
},
"operator": ">=",
"right": {
"type": "MemberExpression",
"start": 6588,
"end": 6594,
"loc": {
"start": {
"line": 268,
"column": 55
},
"end": {
"line": 268,
"column": 61
}
},
"object": {
"type": "ThisExpression",
"start": 6588,
"end": 6592,
"loc": {
"start": {
"line": 268,
"column": 55
},
"end": {
"line": 268,
"column": 59
}
}
},
"property": {
"type": "Identifier",
"start": 6593,
"end": 6594,
"loc": {
"start": {
"line": 268,
"column": 60
},
"end": {
"line": 268,
"column": 61
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start": 6598,
"end": 6615,
"loc": {
"start": {
"line": 268,
"column": 65
},
"end": {
"line": 268,
"column": 82
}
},
"left": {
"type": "Identifier",
"start": 6598,
"end": 6599,
"loc": {
"start": {
"line": 268,
"column": 65
},
"end": {
"line": 268,
"column": 66
},
"identifierName": "y"
},
"name": "y"
},
"operator": "<",
"right": {
"type": "CallExpression",
"start": 6602,
"end": 6615,
"loc": {
"start": {
"line": 268,
"column": 69
},
"end": {
"line": 268,
"column": 82
}
},
"callee": {
"type": "MemberExpression",
"start": 6602,
"end": 6613,
"loc": {
"start": {
"line": 268,
"column": 69
},
"end": {
"line": 268,
"column": 80
}
},
"object": {
"type": "ThisExpression",
"start": 6602,
"end": 6606,
"loc": {
"start": {
"line": 268,
"column": 69
},
"end": {
"line": 268,
"column": 73
}
}
},
"property": {
"type": "Identifier",
"start": 6607,
"end": 6613,
"loc": {
"start": {
"line": 268,
"column": 74
},
"end": {
"line": 268,
"column": 80
},
"identifierName": "bottom"
},
"name": "bottom"
},
"computed": false
},
"arguments": []
}
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns if hte rectangle contains the given point\r\n * @param {number} x\r\n * @param {number} y\r\n * @returns {boolean}\r\n ",
"start": 6355,
"end": 6504,
"loc": {
"start": {
"line": 261,
"column": 4
},
"end": {
"line": 266,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns the shared area with another rectangle, or null if there is no intersection\r\n * @param {Rectangle} rect\r\n * @returns {Rectangle|null}\r\n ",
"start": 6631,
"end": 6801,
"loc": {
"start": {
"line": 271,
"column": 4
},
"end": {
"line": 275,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 6807,
"end": 7219,
"loc": {
"start": {
"line": 276,
"column": 4
},
"end": {
"line": 288,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 6807,
"end": 6822,
"loc": {
"start": {
"line": 276,
"column": 4
},
"end": {
"line": 276,
"column": 19
},
"identifierName": "getIntersection"
},
"name": "getIntersection",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 6823,
"end": 6827,
"loc": {
"start": {
"line": 276,
"column": 20
},
"end": {
"line": 276,
"column": 24
},
"identifierName": "rect"
},
"name": "rect"
}
],
"body": {
"type": "BlockStatement",
"start": 6829,
"end": 7219,
"loc": {
"start": {
"line": 276,
"column": 26
},
"end": {
"line": 288,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 6840,
"end": 6878,
"loc": {
"start": {
"line": 277,
"column": 8
},
"end": {
"line": 277,
"column": 46
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 6846,
"end": 6877,
"loc": {
"start": {
"line": 277,
"column": 14
},
"end": {
"line": 277,
"column": 45
}
},
"id": {
"type": "Identifier",
"start": 6846,
"end": 6850,
"loc": {
"start": {
"line": 277,
"column": 14
},
"end": {
"line": 277,
"column": 18
},
"identifierName": "left"
},
"name": "left"
},
"init": {
"type": "CallExpression",
"start": 6853,
"end": 6877,
"loc": {
"start": {
"line": 277,
"column": 21
},
"end": {
"line": 277,
"column": 45
}
},
"callee": {
"type": "MemberExpression",
"start": 6853,
"end": 6861,
"loc": {
"start": {
"line": 277,
"column": 21
},
"end": {
"line": 277,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 6853,
"end": 6857,
"loc": {
"start": {
"line": 277,
"column": 21
},
"end": {
"line": 277,
"column": 25
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 6858,
"end": 6861,
"loc": {
"start": {
"line": 277,
"column": 26
},
"end": {
"line": 277,
"column": 29
},
"identifierName": "max"
},
"name": "max"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 6862,
"end": 6868,
"loc": {
"start": {
"line": 277,
"column": 30
},
"end": {
"line": 277,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 6862,
"end": 6866,
"loc": {
"start": {
"line": 277,
"column": 30
},
"end": {
"line": 277,
"column": 34
}
}
},
"property": {
"type": "Identifier",
"start": 6867,
"end": 6868,
"loc": {
"start": {
"line": 277,
"column": 35
},
"end": {
"line": 277,
"column": 36
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 6870,
"end": 6876,
"loc": {
"start": {
"line": 277,
"column": 38
},
"end": {
"line": 277,
"column": 44
}
},
"object": {
"type": "Identifier",
"start": 6870,
"end": 6874,
"loc": {
"start": {
"line": 277,
"column": 38
},
"end": {
"line": 277,
"column": 42
},
"identifierName": "rect"
},
"name": "rect"
},
"property": {
"type": "Identifier",
"start": 6875,
"end": 6876,
"loc": {
"start": {
"line": 277,
"column": 43
},
"end": {
"line": 277,
"column": 44
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
}
]
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 6888,
"end": 6925,
"loc": {
"start": {
"line": 278,
"column": 8
},
"end": {
"line": 278,
"column": 45
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 6894,
"end": 6924,
"loc": {
"start": {
"line": 278,
"column": 14
},
"end": {
"line": 278,
"column": 44
}
},
"id": {
"type": "Identifier",
"start": 6894,
"end": 6897,
"loc": {
"start": {
"line": 278,
"column": 14
},
"end": {
"line": 278,
"column": 17
},
"identifierName": "top"
},
"name": "top"
},
"init": {
"type": "CallExpression",
"start": 6900,
"end": 6924,
"loc": {
"start": {
"line": 278,
"column": 20
},
"end": {
"line": 278,
"column": 44
}
},
"callee": {
"type": "MemberExpression",
"start": 6900,
"end": 6908,
"loc": {
"start": {
"line": 278,
"column": 20
},
"end": {
"line": 278,
"column": 28
}
},
"object": {
"type": "Identifier",
"start": 6900,
"end": 6904,
"loc": {
"start": {
"line": 278,
"column": 20
},
"end": {
"line": 278,
"column": 24
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 6905,
"end": 6908,
"loc": {
"start": {
"line": 278,
"column": 25
},
"end": {
"line": 278,
"column": 28
},
"identifierName": "max"
},
"name": "max"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 6909,
"end": 6915,
"loc": {
"start": {
"line": 278,
"column": 29
},
"end": {
"line": 278,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 6909,
"end": 6913,
"loc": {
"start": {
"line": 278,
"column": 29
},
"end": {
"line": 278,
"column": 33
}
}
},
"property": {
"type": "Identifier",
"start": 6914,
"end": 6915,
"loc": {
"start": {
"line": 278,
"column": 34
},
"end": {
"line": 278,
"column": 35
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 6917,
"end": 6923,
"loc": {
"start": {
"line": 278,
"column": 37
},
"end": {
"line": 278,
"column": 43
}
},
"object": {
"type": "Identifier",
"start": 6917,
"end": 6921,
"loc": {
"start": {
"line": 278,
"column": 37
},
"end": {
"line": 278,
"column": 41
},
"identifierName": "rect"
},
"name": "rect"
},
"property": {
"type": "Identifier",
"start": 6922,
"end": 6923,
"loc": {
"start": {
"line": 278,
"column": 42
},
"end": {
"line": 278,
"column": 43
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
}
]
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 6937,
"end": 6994,
"loc": {
"start": {
"line": 280,
"column": 8
},
"end": {
"line": 280,
"column": 65
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 6943,
"end": 6993,
"loc": {
"start": {
"line": 280,
"column": 14
},
"end": {
"line": 280,
"column": 64
}
},
"id": {
"type": "Identifier",
"start": 6943,
"end": 6948,
"loc": {
"start": {
"line": 280,
"column": 14
},
"end": {
"line": 280,
"column": 19
},
"identifierName": "right"
},
"name": "right"
},
"init": {
"type": "CallExpression",
"start": 6951,
"end": 6993,
"loc": {
"start": {
"line": 280,
"column": 22
},
"end": {
"line": 280,
"column": 64
}
},
"callee": {
"type": "MemberExpression",
"start": 6951,
"end": 6959,
"loc": {
"start": {
"line": 280,
"column": 22
},
"end": {
"line": 280,
"column": 30
}
},
"object": {
"type": "Identifier",
"start": 6951,
"end": 6955,
"loc": {
"start": {
"line": 280,
"column": 22
},
"end": {
"line": 280,
"column": 26
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 6956,
"end": 6959,
"loc": {
"start": {
"line": 280,
"column": 27
},
"end": {
"line": 280,
"column": 30
},
"identifierName": "min"
},
"name": "min"
},
"computed": false
},
"arguments": [
{
"type": "BinaryExpression",
"start": 6960,
"end": 6975,
"loc": {
"start": {
"line": 280,
"column": 31
},
"end": {
"line": 280,
"column": 46
}
},
"left": {
"type": "MemberExpression",
"start": 6960,
"end": 6966,
"loc": {
"start": {
"line": 280,
"column": 31
},
"end": {
"line": 280,
"column": 37
}
},
"object": {
"type": "ThisExpression",
"start": 6960,
"end": 6964,
"loc": {
"start": {
"line": 280,
"column": 31
},
"end": {
"line": 280,
"column": 35
}
}
},
"property": {
"type": "Identifier",
"start": 6965,
"end": 6966,
"loc": {
"start": {
"line": 280,
"column": 36
},
"end": {
"line": 280,
"column": 37
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
"operator": "+",
"right": {
"type": "MemberExpression",
"start": 6969,
"end": 6975,
"loc": {
"start": {
"line": 280,
"column": 40
},
"end": {
"line": 280,
"column": 46
}
},
"object": {
"type": "ThisExpression",
"start": 6969,
"end": 6973,
"loc": {
"start": {
"line": 280,
"column": 40
},
"end": {
"line": 280,
"column": 44
}
}
},
"property": {
"type": "Identifier",
"start": 6974,
"end": 6975,
"loc": {
"start": {
"line": 280,
"column": 45
},
"end": {
"line": 280,
"column": 46
},
"identifierName": "w"
},
"name": "w"
},
"computed": false
}
},
{
"type": "BinaryExpression",
"start": 6977,
"end": 6992,
"loc": {
"start": {
"line": 280,
"column": 48
},
"end": {
"line": 280,
"column": 63
}
},
"left": {
"type": "MemberExpression",
"start": 6977,
"end": 6983,
"loc": {
"start": {
"line": 280,
"column": 48
},
"end": {
"line": 280,
"column": 54
}
},
"object": {
"type": "Identifier",
"start": 6977,
"end": 6981,
"loc": {
"start": {
"line": 280,
"column": 48
},
"end": {
"line": 280,
"column": 52
},
"identifierName": "rect"
},
"name": "rect"
},
"property": {
"type": "Identifier",
"start": 6982,
"end": 6983,
"loc": {
"start": {
"line": 280,
"column": 53
},
"end": {
"line": 280,
"column": 54
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
"operator": "+",
"right": {
"type": "MemberExpression",
"start": 6986,
"end": 6992,
"loc": {
"start": {
"line": 280,
"column": 57
},
"end": {
"line": 280,
"column": 63
}
},
"object": {
"type": "Identifier",
"start": 6986,
"end": 6990,
"loc": {
"start": {
"line": 280,
"column": 57
},
"end": {
"line": 280,
"column": 61
},
"identifierName": "rect"
},
"name": "rect"
},
"property": {
"type": "Identifier",
"start": 6991,
"end": 6992,
"loc": {
"start": {
"line": 280,
"column": 62
},
"end": {
"line": 280,
"column": 63
},
"identifierName": "w"
},
"name": "w"
},
"computed": false
}
}
]
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 7004,
"end": 7062,
"loc": {
"start": {
"line": 281,
"column": 8
},
"end": {
"line": 281,
"column": 66
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 7010,
"end": 7061,
"loc": {
"start": {
"line": 281,
"column": 14
},
"end": {
"line": 281,
"column": 65
}
},
"id": {
"type": "Identifier",
"start": 7010,
"end": 7016,
"loc": {
"start": {
"line": 281,
"column": 14
},
"end": {
"line": 281,
"column": 20
},
"identifierName": "bottom"
},
"name": "bottom"
},
"init": {
"type": "CallExpression",
"start": 7019,
"end": 7061,
"loc": {
"start": {
"line": 281,
"column": 23
},
"end": {
"line": 281,
"column": 65
}
},
"callee": {
"type": "MemberExpression",
"start": 7019,
"end": 7027,
"loc": {
"start": {
"line": 281,
"column": 23
},
"end": {
"line": 281,
"column": 31
}
},
"object": {
"type": "Identifier",
"start": 7019,
"end": 7023,
"loc": {
"start": {
"line": 281,
"column": 23
},
"end": {
"line": 281,
"column": 27
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 7024,
"end": 7027,
"loc": {
"start": {
"line": 281,
"column": 28
},
"end": {
"line": 281,
"column": 31
},
"identifierName": "min"
},
"name": "min"
},
"computed": false
},
"arguments": [
{
"type": "BinaryExpression",
"start": 7028,
"end": 7043,
"loc": {
"start": {
"line": 281,
"column": 32
},
"end": {
"line": 281,
"column": 47
}
},
"left": {
"type": "MemberExpression",
"start": 7028,
"end": 7034,
"loc": {
"start": {
"line": 281,
"column": 32
},
"end": {
"line": 281,
"column": 38
}
},
"object": {
"type": "ThisExpression",
"start": 7028,
"end": 7032,
"loc": {
"start": {
"line": 281,
"column": 32
},
"end": {
"line": 281,
"column": 36
}
}
},
"property": {
"type": "Identifier",
"start": 7033,
"end": 7034,
"loc": {
"start": {
"line": 281,
"column": 37
},
"end": {
"line": 281,
"column": 38
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
"operator": "+",
"right": {
"type": "MemberExpression",
"start": 7037,
"end": 7043,
"loc": {
"start": {
"line": 281,
"column": 41
},
"end": {
"line": 281,
"column": 47
}
},
"object": {
"type": "ThisExpression",
"start": 7037,
"end": 7041,
"loc": {
"start": {
"line": 281,
"column": 41
},
"end": {
"line": 281,
"column": 45
}
}
},
"property": {
"type": "Identifier",
"start": 7042,
"end": 7043,
"loc": {
"start": {
"line": 281,
"column": 46
},
"end": {
"line": 281,
"column": 47
},
"identifierName": "h"
},
"name": "h"
},
"computed": false
}
},
{
"type": "BinaryExpression",
"start": 7045,
"end": 7060,
"loc": {
"start": {
"line": 281,
"column": 49
},
"end": {
"line": 281,
"column": 64
}
},
"left": {
"type": "MemberExpression",
"start": 7045,
"end": 7051,
"loc": {
"start": {
"line": 281,
"column": 49
},
"end": {
"line": 281,
"column": 55
}
},
"object": {
"type": "Identifier",
"start": 7045,
"end": 7049,
"loc": {
"start": {
"line": 281,
"column": 49
},
"end": {
"line": 281,
"column": 53
},
"identifierName": "rect"
},
"name": "rect"
},
"property": {
"type": "Identifier",
"start": 7050,
"end": 7051,
"loc": {
"start": {
"line": 281,
"column": 54
},
"end": {
"line": 281,
"column": 55
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
"operator": "+",
"right": {
"type": "MemberExpression",
"start": 7054,
"end": 7060,
"loc": {
"start": {
"line": 281,
"column": 58
},
"end": {
"line": 281,
"column": 64
}
},
"object": {
"type": "Identifier",
"start": 7054,
"end": 7058,
"loc": {
"start": {
"line": 281,
"column": 58
},
"end": {
"line": 281,
"column": 62
},
"identifierName": "rect"
},
"name": "rect"
},
"property": {
"type": "Identifier",
"start": 7059,
"end": 7060,
"loc": {
"start": {
"line": 281,
"column": 63
},
"end": {
"line": 281,
"column": 64
},
"identifierName": "h"
},
"name": "h"
},
"computed": false
}
}
]
}
}
],
"kind": "const"
},
{
"type": "IfStatement",
"start": 7074,
"end": 7148,
"loc": {
"start": {
"line": 283,
"column": 8
},
"end": {
"line": 285,
"column": 9
}
},
"test": {
"type": "LogicalExpression",
"start": 7078,
"end": 7108,
"loc": {
"start": {
"line": 283,
"column": 12
},
"end": {
"line": 283,
"column": 42
}
},
"left": {
"type": "BinaryExpression",
"start": 7078,
"end": 7091,
"loc": {
"start": {
"line": 283,
"column": 12
},
"end": {
"line": 283,
"column": 25
}
},
"left": {
"type": "Identifier",
"start": 7078,
"end": 7083,
"loc": {
"start": {
"line": 283,
"column": 12
},
"end": {
"line": 283,
"column": 17
},
"identifierName": "right"
},
"name": "right"
},
"operator": "<=",
"right": {
"type": "Identifier",
"start": 7087,
"end": 7091,
"loc": {
"start": {
"line": 283,
"column": 21
},
"end": {
"line": 283,
"column": 25
},
"identifierName": "left"
},
"name": "left"
}
},
"operator": "||",
"right": {
"type": "BinaryExpression",
"start": 7095,
"end": 7108,
"loc": {
"start": {
"line": 283,
"column": 29
},
"end": {
"line": 283,
"column": 42
}
},
"left": {
"type": "Identifier",
"start": 7095,
"end": 7101,
"loc": {
"start": {
"line": 283,
"column": 29
},
"end": {
"line": 283,
"column": 35
},
"identifierName": "bottom"
},
"name": "bottom"
},
"operator": "<=",
"right": {
"type": "Identifier",
"start": 7105,
"end": 7108,
"loc": {
"start": {
"line": 283,
"column": 39
},
"end": {
"line": 283,
"column": 42
},
"identifierName": "top"
},
"name": "top"
}
}
},
"consequent": {
"type": "BlockStatement",
"start": 7110,
"end": 7148,
"loc": {
"start": {
"line": 283,
"column": 44
},
"end": {
"line": 285,
"column": 9
}
},
"body": [
{
"type": "ReturnStatement",
"start": 7125,
"end": 7137,
"loc": {
"start": {
"line": 284,
"column": 12
},
"end": {
"line": 284,
"column": 24
}
},
"argument": {
"type": "NullLiteral",
"start": 7132,
"end": 7136,
"loc": {
"start": {
"line": 284,
"column": 19
},
"end": {
"line": 284,
"column": 23
}
}
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "ReturnStatement",
"start": 7160,
"end": 7212,
"loc": {
"start": {
"line": 287,
"column": 8
},
"end": {
"line": 287,
"column": 60
}
},
"argument": {
"type": "CallExpression",
"start": 7167,
"end": 7211,
"loc": {
"start": {
"line": 287,
"column": 15
},
"end": {
"line": 287,
"column": 59
}
},
"callee": {
"type": "MemberExpression",
"start": 7167,
"end": 7185,
"loc": {
"start": {
"line": 287,
"column": 15
},
"end": {
"line": 287,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 7167,
"end": 7176,
"loc": {
"start": {
"line": 287,
"column": 15
},
"end": {
"line": 287,
"column": 24
},
"identifierName": "Rectangle"
},
"name": "Rectangle"
},
"property": {
"type": "Identifier",
"start": 7177,
"end": 7185,
"loc": {
"start": {
"line": 287,
"column": 25
},
"end": {
"line": 287,
"column": 33
},
"identifierName": "fromTRBL"
},
"name": "fromTRBL"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 7186,
"end": 7189,
"loc": {
"start": {
"line": 287,
"column": 34
},
"end": {
"line": 287,
"column": 37
},
"identifierName": "top"
},
"name": "top"
},
{
"type": "Identifier",
"start": 7191,
"end": 7196,
"loc": {
"start": {
"line": 287,
"column": 39
},
"end": {
"line": 287,
"column": 44
},
"identifierName": "right"
},
"name": "right"
},
{
"type": "Identifier",
"start": 7198,
"end": 7204,
"loc": {
"start": {
"line": 287,
"column": 46
},
"end": {
"line": 287,
"column": 52
},
"identifierName": "bottom"
},
"name": "bottom"
},
{
"type": "Identifier",
"start": 7206,
"end": 7210,
"loc": {
"start": {
"line": 287,
"column": 54
},
"end": {
"line": 287,
"column": 58
},
"identifierName": "left"
},
"name": "left"
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns the shared area with another rectangle, or null if there is no intersection\r\n * @param {Rectangle} rect\r\n * @returns {Rectangle|null}\r\n ",
"start": 6631,
"end": 6801,
"loc": {
"start": {
"line": 271,
"column": 4
},
"end": {
"line": 275,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns the union of this rectangle with another\r\n * @param {Rectangle} rect\r\n ",
"start": 7227,
"end": 7328,
"loc": {
"start": {
"line": 290,
"column": 4
},
"end": {
"line": 293,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 7334,
"end": 7945,
"loc": {
"start": {
"line": 294,
"column": 4
},
"end": {
"line": 311,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 7334,
"end": 7342,
"loc": {
"start": {
"line": 294,
"column": 4
},
"end": {
"line": 294,
"column": 12
},
"identifierName": "getUnion"
},
"name": "getUnion",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 7343,
"end": 7347,
"loc": {
"start": {
"line": 294,
"column": 13
},
"end": {
"line": 294,
"column": 17
},
"identifierName": "rect"
},
"name": "rect"
}
],
"body": {
"type": "BlockStatement",
"start": 7349,
"end": 7945,
"loc": {
"start": {
"line": 294,
"column": 19
},
"end": {
"line": 311,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 7360,
"end": 7489,
"loc": {
"start": {
"line": 295,
"column": 8
},
"end": {
"line": 298,
"column": 9
}
},
"test": {
"type": "CallExpression",
"start": 7364,
"end": 7378,
"loc": {
"start": {
"line": 295,
"column": 12
},
"end": {
"line": 295,
"column": 26
}
},
"callee": {
"type": "MemberExpression",
"start": 7364,
"end": 7376,
"loc": {
"start": {
"line": 295,
"column": 12
},
"end": {
"line": 295,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 7364,
"end": 7368,
"loc": {
"start": {
"line": 295,
"column": 12
},
"end": {
"line": 295,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 7369,
"end": 7376,
"loc": {
"start": {
"line": 295,
"column": 17
},
"end": {
"line": 295,
"column": 24
},
"identifierName": "isEmpty"
},
"name": "isEmpty"
},
"computed": false
},
"arguments": []
},
"consequent": {
"type": "BlockStatement",
"start": 7380,
"end": 7489,
"loc": {
"start": {
"line": 295,
"column": 28
},
"end": {
"line": 298,
"column": 9
}
},
"body": [
{
"type": "ReturnStatement",
"start": 7458,
"end": 7478,
"loc": {
"start": {
"line": 297,
"column": 12
},
"end": {
"line": 297,
"column": 32
}
},
"argument": {
"type": "CallExpression",
"start": 7465,
"end": 7477,
"loc": {
"start": {
"line": 297,
"column": 19
},
"end": {
"line": 297,
"column": 31
}
},
"callee": {
"type": "MemberExpression",
"start": 7465,
"end": 7475,
"loc": {
"start": {
"line": 297,
"column": 19
},
"end": {
"line": 297,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 7465,
"end": 7469,
"loc": {
"start": {
"line": 297,
"column": 19
},
"end": {
"line": 297,
"column": 23
},
"identifierName": "rect"
},
"name": "rect",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 7470,
"end": 7475,
"loc": {
"start": {
"line": 297,
"column": 24
},
"end": {
"line": 297,
"column": 29
},
"identifierName": "clone"
},
"name": "clone"
},
"computed": false,
"leadingComments": null
},
"arguments": [],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " If this is rect is empty, return the other one",
"start": 7395,
"end": 7444,
"loc": {
"start": {
"line": 296,
"column": 12
},
"end": {
"line": 296,
"column": 61
}
}
}
]
}
],
"directives": []
},
"alternate": null
},
{
"type": "IfStatement",
"start": 7499,
"end": 7620,
"loc": {
"start": {
"line": 299,
"column": 8
},
"end": {
"line": 302,
"column": 9
}
},
"test": {
"type": "CallExpression",
"start": 7503,
"end": 7517,
"loc": {
"start": {
"line": 299,
"column": 12
},
"end": {
"line": 299,
"column": 26
}
},
"callee": {
"type": "MemberExpression",
"start": 7503,
"end": 7515,
"loc": {
"start": {
"line": 299,
"column": 12
},
"end": {
"line": 299,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 7503,
"end": 7507,
"loc": {
"start": {
"line": 299,
"column": 12
},
"end": {
"line": 299,
"column": 16
},
"identifierName": "rect"
},
"name": "rect"
},
"property": {
"type": "Identifier",
"start": 7508,
"end": 7515,
"loc": {
"start": {
"line": 299,
"column": 17
},
"end": {
"line": 299,
"column": 24
},
"identifierName": "isEmpty"
},
"name": "isEmpty"
},
"computed": false
},
"arguments": []
},
"consequent": {
"type": "BlockStatement",
"start": 7519,
"end": 7620,
"loc": {
"start": {
"line": 299,
"column": 28
},
"end": {
"line": 302,
"column": 9
}
},
"body": [
{
"type": "ReturnStatement",
"start": 7589,
"end": 7609,
"loc": {
"start": {
"line": 301,
"column": 12
},
"end": {
"line": 301,
"column": 32
}
},
"argument": {
"type": "CallExpression",
"start": 7596,
"end": 7608,
"loc": {
"start": {
"line": 301,
"column": 19
},
"end": {
"line": 301,
"column": 31
}
},
"callee": {
"type": "MemberExpression",
"start": 7596,
"end": 7606,
"loc": {
"start": {
"line": 301,
"column": 19
},
"end": {
"line": 301,
"column": 29
}
},
"object": {
"type": "ThisExpression",
"start": 7596,
"end": 7600,
"loc": {
"start": {
"line": 301,
"column": 19
},
"end": {
"line": 301,
"column": 23
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 7601,
"end": 7606,
"loc": {
"start": {
"line": 301,
"column": 24
},
"end": {
"line": 301,
"column": 29
},
"identifierName": "clone"
},
"name": "clone"
},
"computed": false,
"leadingComments": null
},
"arguments": [],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " If the other is empty, return this one",
"start": 7534,
"end": 7575,
"loc": {
"start": {
"line": 300,
"column": 12
},
"end": {
"line": 300,
"column": 53
}
}
}
]
}
],
"directives": [],
"trailingComments": null
},
"alternate": null,
"trailingComments": [
{
"type": "CommentLine",
"value": " Find contained area",
"start": 7632,
"end": 7654,
"loc": {
"start": {
"line": 304,
"column": 8
},
"end": {
"line": 304,
"column": 30
}
}
}
]
},
{
"type": "VariableDeclaration",
"start": 7664,
"end": 7702,
"loc": {
"start": {
"line": 305,
"column": 8
},
"end": {
"line": 305,
"column": 46
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 7670,
"end": 7701,
"loc": {
"start": {
"line": 305,
"column": 14
},
"end": {
"line": 305,
"column": 45
}
},
"id": {
"type": "Identifier",
"start": 7670,
"end": 7674,
"loc": {
"start": {
"line": 305,
"column": 14
},
"end": {
"line": 305,
"column": 18
},
"identifierName": "left"
},
"name": "left",
"leadingComments": null
},
"init": {
"type": "CallExpression",
"start": 7677,
"end": 7701,
"loc": {
"start": {
"line": 305,
"column": 21
},
"end": {
"line": 305,
"column": 45
}
},
"callee": {
"type": "MemberExpression",
"start": 7677,
"end": 7685,
"loc": {
"start": {
"line": 305,
"column": 21
},
"end": {
"line": 305,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 7677,
"end": 7681,
"loc": {
"start": {
"line": 305,
"column": 21
},
"end": {
"line": 305,
"column": 25
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 7682,
"end": 7685,
"loc": {
"start": {
"line": 305,
"column": 26
},
"end": {
"line": 305,
"column": 29
},
"identifierName": "min"
},
"name": "min"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 7686,
"end": 7692,
"loc": {
"start": {
"line": 305,
"column": 30
},
"end": {
"line": 305,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 7686,
"end": 7690,
"loc": {
"start": {
"line": 305,
"column": 30
},
"end": {
"line": 305,
"column": 34
}
}
},
"property": {
"type": "Identifier",
"start": 7691,
"end": 7692,
"loc": {
"start": {
"line": 305,
"column": 35
},
"end": {
"line": 305,
"column": 36
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 7694,
"end": 7700,
"loc": {
"start": {
"line": 305,
"column": 38
},
"end": {
"line": 305,
"column": 44
}
},
"object": {
"type": "Identifier",
"start": 7694,
"end": 7698,
"loc": {
"start": {
"line": 305,
"column": 38
},
"end": {
"line": 305,
"column": 42
},
"identifierName": "rect"
},
"name": "rect"
},
"property": {
"type": "Identifier",
"start": 7699,
"end": 7700,
"loc": {
"start": {
"line": 305,
"column": 43
},
"end": {
"line": 305,
"column": 44
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
}
]
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentLine",
"value": " Find contained area",
"start": 7632,
"end": 7654,
"loc": {
"start": {
"line": 304,
"column": 8
},
"end": {
"line": 304,
"column": 30
}
}
}
]
},
{
"type": "VariableDeclaration",
"start": 7712,
"end": 7749,
"loc": {
"start": {
"line": 306,
"column": 8
},
"end": {
"line": 306,
"column": 45
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 7718,
"end": 7748,
"loc": {
"start": {
"line": 306,
"column": 14
},
"end": {
"line": 306,
"column": 44
}
},
"id": {
"type": "Identifier",
"start": 7718,
"end": 7721,
"loc": {
"start": {
"line": 306,
"column": 14
},
"end": {
"line": 306,
"column": 17
},
"identifierName": "top"
},
"name": "top"
},
"init": {
"type": "CallExpression",
"start": 7724,
"end": 7748,
"loc": {
"start": {
"line": 306,
"column": 20
},
"end": {
"line": 306,
"column": 44
}
},
"callee": {
"type": "MemberExpression",
"start": 7724,
"end": 7732,
"loc": {
"start": {
"line": 306,
"column": 20
},
"end": {
"line": 306,
"column": 28
}
},
"object": {
"type": "Identifier",
"start": 7724,
"end": 7728,
"loc": {
"start": {
"line": 306,
"column": 20
},
"end": {
"line": 306,
"column": 24
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 7729,
"end": 7732,
"loc": {
"start": {
"line": 306,
"column": 25
},
"end": {
"line": 306,
"column": 28
},
"identifierName": "min"
},
"name": "min"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 7733,
"end": 7739,
"loc": {
"start": {
"line": 306,
"column": 29
},
"end": {
"line": 306,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 7733,
"end": 7737,
"loc": {
"start": {
"line": 306,
"column": 29
},
"end": {
"line": 306,
"column": 33
}
}
},
"property": {
"type": "Identifier",
"start": 7738,
"end": 7739,
"loc": {
"start": {
"line": 306,
"column": 34
},
"end": {
"line": 306,
"column": 35
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
{
"type": "MemberExpression",
"start": 7741,
"end": 7747,
"loc": {
"start": {
"line": 306,
"column": 37
},
"end": {
"line": 306,
"column": 43
}
},
"object": {
"type": "Identifier",
"start": 7741,
"end": 7745,
"loc": {
"start": {
"line": 306,
"column": 37
},
"end": {
"line": 306,
"column": 41
},
"identifierName": "rect"
},
"name": "rect"
},
"property": {
"type": "Identifier",
"start": 7746,
"end": 7747,
"loc": {
"start": {
"line": 306,
"column": 42
},
"end": {
"line": 306,
"column": 43
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
}
]
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 7759,
"end": 7810,
"loc": {
"start": {
"line": 307,
"column": 8
},
"end": {
"line": 307,
"column": 59
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 7765,
"end": 7809,
"loc": {
"start": {
"line": 307,
"column": 14
},
"end": {
"line": 307,
"column": 58
}
},
"id": {
"type": "Identifier",
"start": 7765,
"end": 7770,
"loc": {
"start": {
"line": 307,
"column": 14
},
"end": {
"line": 307,
"column": 19
},
"identifierName": "right"
},
"name": "right"
},
"init": {
"type": "CallExpression",
"start": 7773,
"end": 7809,
"loc": {
"start": {
"line": 307,
"column": 22
},
"end": {
"line": 307,
"column": 58
}
},
"callee": {
"type": "MemberExpression",
"start": 7773,
"end": 7781,
"loc": {
"start": {
"line": 307,
"column": 22
},
"end": {
"line": 307,
"column": 30
}
},
"object": {
"type": "Identifier",
"start": 7773,
"end": 7777,
"loc": {
"start": {
"line": 307,
"column": 22
},
"end": {
"line": 307,
"column": 26
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 7778,
"end": 7781,
"loc": {
"start": {
"line": 307,
"column": 27
},
"end": {
"line": 307,
"column": 30
},
"identifierName": "max"
},
"name": "max"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 7782,
"end": 7794,
"loc": {
"start": {
"line": 307,
"column": 31
},
"end": {
"line": 307,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
"start": 7782,
"end": 7792,
"loc": {
"start": {
"line": 307,
"column": 31
},
"end": {
"line": 307,
"column": 41
}
},
"object": {
"type": "ThisExpression",
"start": 7782,
"end": 7786,
"loc": {
"start": {
"line": 307,
"column": 31
},
"end": {
"line": 307,
"column": 35
}
}
},
"property": {
"type": "Identifier",
"start": 7787,
"end": 7792,
"loc": {
"start": {
"line": 307,
"column": 36
},
"end": {
"line": 307,
"column": 41
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"arguments": []
},
{
"type": "CallExpression",
"start": 7796,
"end": 7808,
"loc": {
"start": {
"line": 307,
"column": 45
},
"end": {
"line": 307,
"column": 57
}
},
"callee": {
"type": "MemberExpression",
"start": 7796,
"end": 7806,
"loc": {
"start": {
"line": 307,
"column": 45
},
"end": {
"line": 307,
"column": 55
}
},
"object": {
"type": "Identifier",
"start": 7796,
"end": 7800,
"loc": {
"start": {
"line": 307,
"column": 45
},
"end": {
"line": 307,
"column": 49
},
"identifierName": "rect"
},
"name": "rect"
},
"property": {
"type": "Identifier",
"start": 7801,
"end": 7806,
"loc": {
"start": {
"line": 307,
"column": 50
},
"end": {
"line": 307,
"column": 55
},
"identifierName": "right"
},
"name": "right"
},
"computed": false
},
"arguments": []
}
]
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 7820,
"end": 7874,
"loc": {
"start": {
"line": 308,
"column": 8
},
"end": {
"line": 308,
"column": 62
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 7826,
"end": 7873,
"loc": {
"start": {
"line": 308,
"column": 14
},
"end": {
"line": 308,
"column": 61
}
},
"id": {
"type": "Identifier",
"start": 7826,
"end": 7832,
"loc": {
"start": {
"line": 308,
"column": 14
},
"end": {
"line": 308,
"column": 20
},
"identifierName": "bottom"
},
"name": "bottom"
},
"init": {
"type": "CallExpression",
"start": 7835,
"end": 7873,
"loc": {
"start": {
"line": 308,
"column": 23
},
"end": {
"line": 308,
"column": 61
}
},
"callee": {
"type": "MemberExpression",
"start": 7835,
"end": 7843,
"loc": {
"start": {
"line": 308,
"column": 23
},
"end": {
"line": 308,
"column": 31
}
},
"object": {
"type": "Identifier",
"start": 7835,
"end": 7839,
"loc": {
"start": {
"line": 308,
"column": 23
},
"end": {
"line": 308,
"column": 27
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 7840,
"end": 7843,
"loc": {
"start": {
"line": 308,
"column": 28
},
"end": {
"line": 308,
"column": 31
},
"identifierName": "max"
},
"name": "max"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 7844,
"end": 7857,
"loc": {
"start": {
"line": 308,
"column": 32
},
"end": {
"line": 308,
"column": 45
}
},
"callee": {
"type": "MemberExpression",
"start": 7844,
"end": 7855,
"loc": {
"start": {
"line": 308,
"column": 32
},
"end": {
"line": 308,
"column": 43
}
},
"object": {
"type": "ThisExpression",
"start": 7844,
"end": 7848,
"loc": {
"start": {
"line": 308,
"column": 32
},
"end": {
"line": 308,
"column": 36
}
}
},
"property": {
"type": "Identifier",
"start": 7849,
"end": 7855,
"loc": {
"start": {
"line": 308,
"column": 37
},
"end": {
"line": 308,
"column": 43
},
"identifierName": "bottom"
},
"name": "bottom"
},
"computed": false
},
"arguments": []
},
{
"type": "CallExpression",
"start": 7859,
"end": 7872,
"loc": {
"start": {
"line": 308,
"column": 47
},
"end": {
"line": 308,
"column": 60
}
},
"callee": {
"type": "MemberExpression",
"start": 7859,
"end": 7870,
"loc": {
"start": {
"line": 308,
"column": 47
},
"end": {
"line": 308,
"column": 58
}
},
"object": {
"type": "Identifier",
"start": 7859,
"end": 7863,
"loc": {
"start": {
"line": 308,
"column": 47
},
"end": {
"line": 308,
"column": 51
},
"identifierName": "rect"
},
"name": "rect"
},
"property": {
"type": "Identifier",
"start": 7864,
"end": 7870,
"loc": {
"start": {
"line": 308,
"column": 52
},
"end": {
"line": 308,
"column": 58
},
"identifierName": "bottom"
},
"name": "bottom"
},
"computed": false
},
"arguments": []
}
]
}
}
],
"kind": "const"
},
{
"type": "ReturnStatement",
"start": 7886,
"end": 7938,
"loc": {
"start": {
"line": 310,
"column": 8
},
"end": {
"line": 310,
"column": 60
}
},
"argument": {
"type": "CallExpression",
"start": 7893,
"end": 7937,
"loc": {
"start": {
"line": 310,
"column": 15
},
"end": {
"line": 310,
"column": 59
}
},
"callee": {
"type": "MemberExpression",
"start": 7893,
"end": 7911,
"loc": {
"start": {
"line": 310,
"column": 15
},
"end": {
"line": 310,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 7893,
"end": 7902,
"loc": {
"start": {
"line": 310,
"column": 15
},
"end": {
"line": 310,
"column": 24
},
"identifierName": "Rectangle"
},
"name": "Rectangle"
},
"property": {
"type": "Identifier",
"start": 7903,
"end": 7911,
"loc": {
"start": {
"line": 310,
"column": 25
},
"end": {
"line": 310,
"column": 33
},
"identifierName": "fromTRBL"
},
"name": "fromTRBL"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 7912,
"end": 7915,
"loc": {
"start": {
"line": 310,
"column": 34
},
"end": {
"line": 310,
"column": 37
},
"identifierName": "top"
},
"name": "top"
},
{
"type": "Identifier",
"start": 7917,
"end": 7922,
"loc": {
"start": {
"line": 310,
"column": 39
},
"end": {
"line": 310,
"column": 44
},
"identifierName": "right"
},
"name": "right"
},
{
"type": "Identifier",
"start": 7924,
"end": 7930,
"loc": {
"start": {
"line": 310,
"column": 46
},
"end": {
"line": 310,
"column": 52
},
"identifierName": "bottom"
},
"name": "bottom"
},
{
"type": "Identifier",
"start": 7932,
"end": 7936,
"loc": {
"start": {
"line": 310,
"column": 54
},
"end": {
"line": 310,
"column": 58
},
"identifierName": "left"
},
"name": "left"
}
]
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns the union of this rectangle with another\r\n * @param {Rectangle} rect\r\n ",
"start": 7227,
"end": 7328,
"loc": {
"start": {
"line": 290,
"column": 4
},
"end": {
"line": 293,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Good for caching stuff\r\n ",
"start": 7953,
"end": 7996,
"loc": {
"start": {
"line": 313,
"column": 4
},
"end": {
"line": 315,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 8002,
"end": 8261,
"loc": {
"start": {
"line": 316,
"column": 4
},
"end": {
"line": 326,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 8002,
"end": 8021,
"loc": {
"start": {
"line": 316,
"column": 4
},
"end": {
"line": 316,
"column": 23
},
"identifierName": "toCompareableString"
},
"name": "toCompareableString",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 8024,
"end": 8261,
"loc": {
"start": {
"line": 316,
"column": 26
},
"end": {
"line": 326,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 8035,
"end": 8254,
"loc": {
"start": {
"line": 317,
"column": 8
},
"end": {
"line": 325,
"column": 10
}
},
"argument": {
"type": "BinaryExpression",
"start": 8057,
"end": 8242,
"loc": {
"start": {
"line": 318,
"column": 12
},
"end": {
"line": 324,
"column": 32
}
},
"left": {
"type": "BinaryExpression",
"start": 8057,
"end": 8206,
"loc": {
"start": {
"line": 318,
"column": 12
},
"end": {
"line": 323,
"column": 15
}
},
"left": {
"type": "BinaryExpression",
"start": 8057,
"end": 8187,
"loc": {
"start": {
"line": 318,
"column": 12
},
"end": {
"line": 322,
"column": 32
}
},
"left": {
"type": "BinaryExpression",
"start": 8057,
"end": 8151,
"loc": {
"start": {
"line": 318,
"column": 12
},
"end": {
"line": 321,
"column": 15
}
},
"left": {
"type": "BinaryExpression",
"start": 8057,
"end": 8132,
"loc": {
"start": {
"line": 318,
"column": 12
},
"end": {
"line": 320,
"column": 32
}
},
"left": {
"type": "BinaryExpression",
"start": 8057,
"end": 8096,
"loc": {
"start": {
"line": 318,
"column": 12
},
"end": {
"line": 319,
"column": 15
}
},
"left": {
"type": "CallExpression",
"start": 8057,
"end": 8077,
"loc": {
"start": {
"line": 318,
"column": 12
},
"end": {
"line": 318,
"column": 32
}
},
"callee": {
"type": "Identifier",
"start": 8057,
"end": 8069,
"loc": {
"start": {
"line": 318,
"column": 12
},
"end": {
"line": 318,
"column": 24
},
"identifierName": "round2Digits"
},
"name": "round2Digits"
},
"arguments": [
{
"type": "MemberExpression",
"start": 8070,
"end": 8076,
"loc": {
"start": {
"line": 318,
"column": 25
},
"end": {
"line": 318,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 8070,
"end": 8074,
"loc": {
"start": {
"line": 318,
"column": 25
},
"end": {
"line": 318,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"start": 8075,
"end": 8076,
"loc": {
"start": {
"line": 318,
"column": 30
},
"end": {
"line": 318,
"column": 31
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
}
]
},
"operator": "+",
"right": {
"type": "StringLiteral",
"start": 8093,
"end": 8096,
"loc": {
"start": {
"line": 319,
"column": 12
},
"end": {
"line": 319,
"column": 15
}
},
"extra": {
"rawValue": "/",
"raw": "\"/\""
},
"value": "/"
}
},
"operator": "+",
"right": {
"type": "CallExpression",
"start": 8112,
"end": 8132,
"loc": {
"start": {
"line": 320,
"column": 12
},
"end": {
"line": 320,
"column": 32
}
},
"callee": {
"type": "Identifier",
"start": 8112,
"end": 8124,
"loc": {
"start": {
"line": 320,
"column": 12
},
"end": {
"line": 320,
"column": 24
},
"identifierName": "round2Digits"
},
"name": "round2Digits"
},
"arguments": [
{
"type": "MemberExpression",
"start": 8125,
"end": 8131,
"loc": {
"start": {
"line": 320,
"column": 25
},
"end": {
"line": 320,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 8125,
"end": 8129,
"loc": {
"start": {
"line": 320,
"column": 25
},
"end": {
"line": 320,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"start": 8130,
"end": 8131,
"loc": {
"start": {
"line": 320,
"column": 30
},
"end": {
"line": 320,
"column": 31
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
}
]
}
},
"operator": "+",
"right": {
"type": "StringLiteral",
"start": 8148,
"end": 8151,
"loc": {
"start": {
"line": 321,
"column": 12
},
"end": {
"line": 321,
"column": 15
}
},
"extra": {
"rawValue": "/",
"raw": "\"/\""
},
"value": "/"
}
},
"operator": "+",
"right": {
"type": "CallExpression",
"start": 8167,
"end": 8187,
"loc": {
"start": {
"line": 322,
"column": 12
},
"end": {
"line": 322,
"column": 32
}
},
"callee": {
"type": "Identifier",
"start": 8167,
"end": 8179,
"loc": {
"start": {
"line": 322,
"column": 12
},
"end": {
"line": 322,
"column": 24
},
"identifierName": "round2Digits"
},
"name": "round2Digits"
},
"arguments": [
{
"type": "MemberExpression",
"start": 8180,
"end": 8186,
"loc": {
"start": {
"line": 322,
"column": 25
},
"end": {
"line": 322,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 8180,
"end": 8184,
"loc": {
"start": {
"line": 322,
"column": 25
},
"end": {
"line": 322,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"start": 8185,
"end": 8186,
"loc": {
"start": {
"line": 322,
"column": 30
},
"end": {
"line": 322,
"column": 31
},
"identifierName": "w"
},
"name": "w"
},
"computed": false
}
]
}
},
"operator": "+",
"right": {
"type": "StringLiteral",
"start": 8203,
"end": 8206,
"loc": {
"start": {
"line": 323,
"column": 12
},
"end": {
"line": 323,
"column": 15
}
},
"extra": {
"rawValue": "/",
"raw": "\"/\""
},
"value": "/"
}
},
"operator": "+",
"right": {
"type": "CallExpression",
"start": 8222,
"end": 8242,
"loc": {
"start": {
"line": 324,
"column": 12
},
"end": {
"line": 324,
"column": 32
}
},
"callee": {
"type": "Identifier",
"start": 8222,
"end": 8234,
"loc": {
"start": {
"line": 324,
"column": 12
},
"end": {
"line": 324,
"column": 24
},
"identifierName": "round2Digits"
},
"name": "round2Digits"
},
"arguments": [
{
"type": "MemberExpression",
"start": 8235,
"end": 8241,
"loc": {
"start": {
"line": 324,
"column": 25
},
"end": {
"line": 324,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 8235,
"end": 8239,
"loc": {
"start": {
"line": 324,
"column": 25
},
"end": {
"line": 324,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"start": 8240,
"end": 8241,
"loc": {
"start": {
"line": 324,
"column": 30
},
"end": {
"line": 324,
"column": 31
},
"identifierName": "h"
},
"name": "h"
},
"computed": false
}
]
},
"extra": {
"parenthesized": true,
"parenStart": 8042
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Good for caching stuff\r\n ",
"start": 7953,
"end": 7996,
"loc": {
"start": {
"line": 313,
"column": 4
},
"end": {
"line": 315,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Good for printing stuff\r\n ",
"start": 8269,
"end": 8313,
"loc": {
"start": {
"line": 328,
"column": 4
},
"end": {
"line": 330,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 8319,
"end": 8616,
"loc": {
"start": {
"line": 331,
"column": 4
},
"end": {
"line": 343,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 8319,
"end": 8327,
"loc": {
"start": {
"line": 331,
"column": 4
},
"end": {
"line": 331,
"column": 12
},
"identifierName": "toString"
},
"name": "toString",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 8330,
"end": 8616,
"loc": {
"start": {
"line": 331,
"column": 15
},
"end": {
"line": 343,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 8341,
"end": 8609,
"loc": {
"start": {
"line": 332,
"column": 8
},
"end": {
"line": 342,
"column": 10
}
},
"argument": {
"type": "BinaryExpression",
"start": 8363,
"end": 8597,
"loc": {
"start": {
"line": 333,
"column": 12
},
"end": {
"line": 341,
"column": 15
}
},
"left": {
"type": "BinaryExpression",
"start": 8363,
"end": 8578,
"loc": {
"start": {
"line": 333,
"column": 12
},
"end": {
"line": 340,
"column": 32
}
},
"left": {
"type": "BinaryExpression",
"start": 8363,
"end": 8542,
"loc": {
"start": {
"line": 333,
"column": 12
},
"end": {
"line": 339,
"column": 18
}
},
"left": {
"type": "BinaryExpression",
"start": 8363,
"end": 8520,
"loc": {
"start": {
"line": 333,
"column": 12
},
"end": {
"line": 338,
"column": 32
}
},
"left": {
"type": "BinaryExpression",
"start": 8363,
"end": 8484,
"loc": {
"start": {
"line": 333,
"column": 12
},
"end": {
"line": 337,
"column": 18
}
},
"left": {
"type": "BinaryExpression",
"start": 8363,
"end": 8462,
"loc": {
"start": {
"line": 333,
"column": 12
},
"end": {
"line": 336,
"column": 32
}
},
"left": {
"type": "BinaryExpression",
"start": 8363,
"end": 8426,
"loc": {
"start": {
"line": 333,
"column": 12
},
"end": {
"line": 335,
"column": 18
}
},
"left": {
"type": "BinaryExpression",
"start": 8363,
"end": 8404,
"loc": {
"start": {
"line": 333,
"column": 12
},
"end": {
"line": 334,
"column": 32
}
},
"left": {
"type": "StringLiteral",
"start": 8363,
"end": 8368,
"loc": {
"start": {
"line": 333,
"column": 12
},
"end": {
"line": 333,
"column": 17
}
},
"extra": {
"rawValue": "[x:",
"raw": "\"[x:\""
},
"value": "[x:"
},
"operator": "+",
"right": {
"type": "CallExpression",
"start": 8384,
"end": 8404,
"loc": {
"start": {
"line": 334,
"column": 12
},
"end": {
"line": 334,
"column": 32
}
},
"callee": {
"type": "Identifier",
"start": 8384,
"end": 8396,
"loc": {
"start": {
"line": 334,
"column": 12
},
"end": {
"line": 334,
"column": 24
},
"identifierName": "round2Digits"
},
"name": "round2Digits"
},
"arguments": [
{
"type": "MemberExpression",
"start": 8397,
"end": 8403,
"loc": {
"start": {
"line": 334,
"column": 25
},
"end": {
"line": 334,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 8397,
"end": 8401,
"loc": {
"start": {
"line": 334,
"column": 25
},
"end": {
"line": 334,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"start": 8402,
"end": 8403,
"loc": {
"start": {
"line": 334,
"column": 30
},
"end": {
"line": 334,
"column": 31
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
}
]
}
},
"operator": "+",
"right": {
"type": "StringLiteral",
"start": 8420,
"end": 8426,
"loc": {
"start": {
"line": 335,
"column": 12
},
"end": {
"line": 335,
"column": 18
}
},
"extra": {
"rawValue": "| y:",
"raw": "\"| y:\""
},
"value": "| y:"
}
},
"operator": "+",
"right": {
"type": "CallExpression",
"start": 8442,
"end": 8462,
"loc": {
"start": {
"line": 336,
"column": 12
},
"end": {
"line": 336,
"column": 32
}
},
"callee": {
"type": "Identifier",
"start": 8442,
"end": 8454,
"loc": {
"start": {
"line": 336,
"column": 12
},
"end": {
"line": 336,
"column": 24
},
"identifierName": "round2Digits"
},
"name": "round2Digits"
},
"arguments": [
{
"type": "MemberExpression",
"start": 8455,
"end": 8461,
"loc": {
"start": {
"line": 336,
"column": 25
},
"end": {
"line": 336,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 8455,
"end": 8459,
"loc": {
"start": {
"line": 336,
"column": 25
},
"end": {
"line": 336,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"start": 8460,
"end": 8461,
"loc": {
"start": {
"line": 336,
"column": 30
},
"end": {
"line": 336,
"column": 31
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
}
]
}
},
"operator": "+",
"right": {
"type": "StringLiteral",
"start": 8478,
"end": 8484,
"loc": {
"start": {
"line": 337,
"column": 12
},
"end": {
"line": 337,
"column": 18
}
},
"extra": {
"rawValue": "| w:",
"raw": "\"| w:\""
},
"value": "| w:"
}
},
"operator": "+",
"right": {
"type": "CallExpression",
"start": 8500,
"end": 8520,
"loc": {
"start": {
"line": 338,
"column": 12
},
"end": {
"line": 338,
"column": 32
}
},
"callee": {
"type": "Identifier",
"start": 8500,
"end": 8512,
"loc": {
"start": {
"line": 338,
"column": 12
},
"end": {
"line": 338,
"column": 24
},
"identifierName": "round2Digits"
},
"name": "round2Digits"
},
"arguments": [
{
"type": "MemberExpression",
"start": 8513,
"end": 8519,
"loc": {
"start": {
"line": 338,
"column": 25
},
"end": {
"line": 338,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 8513,
"end": 8517,
"loc": {
"start": {
"line": 338,
"column": 25
},
"end": {
"line": 338,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"start": 8518,
"end": 8519,
"loc": {
"start": {
"line": 338,
"column": 30
},
"end": {
"line": 338,
"column": 31
},
"identifierName": "w"
},
"name": "w"
},
"computed": false
}
]
}
},
"operator": "+",
"right": {
"type": "StringLiteral",
"start": 8536,
"end": 8542,
"loc": {
"start": {
"line": 339,
"column": 12
},
"end": {
"line": 339,
"column": 18
}
},
"extra": {
"rawValue": "| h:",
"raw": "\"| h:\""
},
"value": "| h:"
}
},
"operator": "+",
"right": {
"type": "CallExpression",
"start": 8558,
"end": 8578,
"loc": {
"start": {
"line": 340,
"column": 12
},
"end": {
"line": 340,
"column": 32
}
},
"callee": {
"type": "Identifier",
"start": 8558,
"end": 8570,
"loc": {
"start": {
"line": 340,
"column": 12
},
"end": {
"line": 340,
"column": 24
},
"identifierName": "round2Digits"
},
"name": "round2Digits"
},
"arguments": [
{
"type": "MemberExpression",
"start": 8571,
"end": 8577,
"loc": {
"start": {
"line": 340,
"column": 25
},
"end": {
"line": 340,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 8571,
"end": 8575,
"loc": {
"start": {
"line": 340,
"column": 25
},
"end": {
"line": 340,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"start": 8576,
"end": 8577,
"loc": {
"start": {
"line": 340,
"column": 30
},
"end": {
"line": 340,
"column": 31
},
"identifierName": "h"
},
"name": "h"
},
"computed": false
}
]
}
},
"operator": "+",
"right": {
"type": "StringLiteral",
"start": 8594,
"end": 8597,
"loc": {
"start": {
"line": 341,
"column": 12
},
"end": {
"line": 341,
"column": 15
}
},
"extra": {
"rawValue": "]",
"raw": "\"]\""
},
"value": "]"
},
"extra": {
"parenthesized": true,
"parenStart": 8348
}
}
}
],
"directives": [],
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Good for printing stuff\r\n ",
"start": 8269,
"end": 8313,
"loc": {
"start": {
"line": 328,
"column": 4
},
"end": {
"line": 330,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns a new rectangle in tile space which includes all tiles which are visible in this rect\r\n * @returns {Rectangle}\r\n ",
"start": 8624,
"end": 8767,
"loc": {
"start": {
"line": 345,
"column": 4
},
"end": {
"line": 348,
"column": 7
}
}
}
]
},
{
"type": "ClassMethod",
"start": 8773,
"end": 9071,
"loc": {
"start": {
"line": 349,
"column": 4
},
"end": {
"line": 356,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 8773,
"end": 8792,
"loc": {
"start": {
"line": 349,
"column": 4
},
"end": {
"line": 349,
"column": 23
},
"identifierName": "toTileCullRectangle"
},
"name": "toTileCullRectangle",
"leadingComments": null
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 8795,
"end": 9071,
"loc": {
"start": {
"line": 349,
"column": 26
},
"end": {
"line": 356,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 8806,
"end": 9064,
"loc": {
"start": {
"line": 350,
"column": 8
},
"end": {
"line": 355,
"column": 10
}
},
"argument": {
"type": "NewExpression",
"start": 8813,
"end": 9063,
"loc": {
"start": {
"line": 350,
"column": 15
},
"end": {
"line": 355,
"column": 9
}
},
"callee": {
"type": "Identifier",
"start": 8817,
"end": 8826,
"loc": {
"start": {
"line": 350,
"column": 19
},
"end": {
"line": 350,
"column": 28
},
"identifierName": "Rectangle"
},
"name": "Rectangle"
},
"arguments": [
{
"type": "CallExpression",
"start": 8841,
"end": 8883,
"loc": {
"start": {
"line": 351,
"column": 12
},
"end": {
"line": 351,
"column": 54
}
},
"callee": {
"type": "MemberExpression",
"start": 8841,
"end": 8851,
"loc": {
"start": {
"line": 351,
"column": 12
},
"end": {
"line": 351,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 8841,
"end": 8845,
"loc": {
"start": {
"line": 351,
"column": 12
},
"end": {
"line": 351,
"column": 16
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 8846,
"end": 8851,
"loc": {
"start": {
"line": 351,
"column": 17
},
"end": {
"line": 351,
"column": 22
},
"identifierName": "floor"
},
"name": "floor"
},
"computed": false
},
"arguments": [
{
"type": "BinaryExpression",
"start": 8852,
"end": 8882,
"loc": {
"start": {
"line": 351,
"column": 23
},
"end": {
"line": 351,
"column": 53
}
},
"left": {
"type": "MemberExpression",
"start": 8852,
"end": 8858,
"loc": {
"start": {
"line": 351,
"column": 23
},
"end": {
"line": 351,
"column": 29
}
},
"object": {
"type": "ThisExpression",
"start": 8852,
"end": 8856,
"loc": {
"start": {
"line": 351,
"column": 23
},
"end": {
"line": 351,
"column": 27
}
}
},
"property": {
"type": "Identifier",
"start": 8857,
"end": 8858,
"loc": {
"start": {
"line": 351,
"column": 28
},
"end": {
"line": 351,
"column": 29
},
"identifierName": "x"
},
"name": "x"
},
"computed": false
},
"operator": "/",
"right": {
"type": "MemberExpression",
"start": 8861,
"end": 8882,
"loc": {
"start": {
"line": 351,
"column": 32
},
"end": {
"line": 351,
"column": 53
}
},
"object": {
"type": "Identifier",
"start": 8861,
"end": 8873,
"loc": {
"start": {
"line": 351,
"column": 32
},
"end": {
"line": 351,
"column": 44
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"property": {
"type": "Identifier",
"start": 8874,
"end": 8882,
"loc": {
"start": {
"line": 351,
"column": 45
},
"end": {
"line": 351,
"column": 53
},
"identifierName": "tileSize"
},
"name": "tileSize"
},
"computed": false
}
}
]
},
{
"type": "CallExpression",
"start": 8898,
"end": 8940,
"loc": {
"start": {
"line": 352,
"column": 12
},
"end": {
"line": 352,
"column": 54
}
},
"callee": {
"type": "MemberExpression",
"start": 8898,
"end": 8908,
"loc": {
"start": {
"line": 352,
"column": 12
},
"end": {
"line": 352,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 8898,
"end": 8902,
"loc": {
"start": {
"line": 352,
"column": 12
},
"end": {
"line": 352,
"column": 16
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 8903,
"end": 8908,
"loc": {
"start": {
"line": 352,
"column": 17
},
"end": {
"line": 352,
"column": 22
},
"identifierName": "floor"
},
"name": "floor"
},
"computed": false
},
"arguments": [
{
"type": "BinaryExpression",
"start": 8909,
"end": 8939,
"loc": {
"start": {
"line": 352,
"column": 23
},
"end": {
"line": 352,
"column": 53
}
},
"left": {
"type": "MemberExpression",
"start": 8909,
"end": 8915,
"loc": {
"start": {
"line": 352,
"column": 23
},
"end": {
"line": 352,
"column": 29
}
},
"object": {
"type": "ThisExpression",
"start": 8909,
"end": 8913,
"loc": {
"start": {
"line": 352,
"column": 23
},
"end": {
"line": 352,
"column": 27
}
}
},
"property": {
"type": "Identifier",
"start": 8914,
"end": 8915,
"loc": {
"start": {
"line": 352,
"column": 28
},
"end": {
"line": 352,
"column": 29
},
"identifierName": "y"
},
"name": "y"
},
"computed": false
},
"operator": "/",
"right": {
"type": "MemberExpression",
"start": 8918,
"end": 8939,
"loc": {
"start": {
"line": 352,
"column": 32
},
"end": {
"line": 352,
"column": 53
}
},
"object": {
"type": "Identifier",
"start": 8918,
"end": 8930,
"loc": {
"start": {
"line": 352,
"column": 32
},
"end": {
"line": 352,
"column": 44
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"property": {
"type": "Identifier",
"start": 8931,
"end": 8939,
"loc": {
"start": {
"line": 352,
"column": 45
},
"end": {
"line": 352,
"column": 53
},
"identifierName": "tileSize"
},
"name": "tileSize"
},
"computed": false
}
}
]
},
{
"type": "CallExpression",
"start": 8955,
"end": 8996,
"loc": {
"start": {
"line": 353,
"column": 12
},
"end": {
"line": 353,
"column": 53
}
},
"callee": {
"type": "MemberExpression",
"start": 8955,
"end": 8964,
"loc": {
"start": {
"line": 353,
"column": 12
},
"end": {
"line": 353,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 8955,
"end": 8959,
"loc": {
"start": {
"line": 353,
"column": 12
},
"end": {
"line": 353,
"column": 16
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 8960,
"end": 8964,
"loc": {
"start": {
"line": 353,
"column": 17
},
"end": {
"line": 353,
"column": 21
},
"identifierName": "ceil"
},
"name": "ceil"
},
"computed": false
},
"arguments": [
{
"type": "BinaryExpression",
"start": 8965,
"end": 8995,
"loc": {
"start": {
"line": 353,
"column": 22
},
"end": {
"line": 353,
"column": 52
}
},
"left": {
"type": "MemberExpression",
"start": 8965,
"end": 8971,
"loc": {
"start": {
"line": 353,
"column": 22
},
"end": {
"line": 353,
"column": 28
}
},
"object": {
"type": "ThisExpression",
"start": 8965,
"end": 8969,
"loc": {
"start": {
"line": 353,
"column": 22
},
"end": {
"line": 353,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"start": 8970,
"end": 8971,
"loc": {
"start": {
"line": 353,
"column": 27
},
"end": {
"line": 353,
"column": 28
},
"identifierName": "w"
},
"name": "w"
},
"computed": false
},
"operator": "/",
"right": {
"type": "MemberExpression",
"start": 8974,
"end": 8995,
"loc": {
"start": {
"line": 353,
"column": 31
},
"end": {
"line": 353,
"column": 52
}
},
"object": {
"type": "Identifier",
"start": 8974,
"end": 8986,
"loc": {
"start": {
"line": 353,
"column": 31
},
"end": {
"line": 353,
"column": 43
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"property": {
"type": "Identifier",
"start": 8987,
"end": 8995,
"loc": {
"start": {
"line": 353,
"column": 44
},
"end": {
"line": 353,
"column": 52
},
"identifierName": "tileSize"
},
"name": "tileSize"
},
"computed": false
}
}
]
},
{
"type": "CallExpression",
"start": 9011,
"end": 9052,
"loc": {
"start": {
"line": 354,
"column": 12
},
"end": {
"line": 354,
"column": 53
}
},
"callee": {
"type": "MemberExpression",
"start": 9011,
"end": 9020,
"loc": {
"start": {
"line": 354,
"column": 12
},
"end": {
"line": 354,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 9011,
"end": 9015,
"loc": {
"start": {
"line": 354,
"column": 12
},
"end": {
"line": 354,
"column": 16
},
"identifierName": "Math"
},
"name": "Math"
},
"property": {
"type": "Identifier",
"start": 9016,
"end": 9020,
"loc": {
"start": {
"line": 354,
"column": 17
},
"end": {
"line": 354,
"column": 21
},
"identifierName": "ceil"
},
"name": "ceil"
},
"computed": false
},
"arguments": [
{
"type": "BinaryExpression",
"start": 9021,
"end": 9051,
"loc": {
"start": {
"line": 354,
"column": 22
},
"end": {
"line": 354,
"column": 52
}
},
"left": {
"type": "MemberExpression",
"start": 9021,
"end": 9027,
"loc": {
"start": {
"line": 354,
"column": 22
},
"end": {
"line": 354,
"column": 28
}
},
"object": {
"type": "ThisExpression",
"start": 9021,
"end": 9025,
"loc": {
"start": {
"line": 354,
"column": 22
},
"end": {
"line": 354,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"start": 9026,
"end": 9027,
"loc": {
"start": {
"line": 354,
"column": 27
},
"end": {
"line": 354,
"column": 28
},
"identifierName": "h"
},
"name": "h"
},
"computed": false
},
"operator": "/",
"right": {
"type": "MemberExpression",
"start": 9030,
"end": 9051,
"loc": {
"start": {
"line": 354,
"column": 31
},
"end": {
"line": 354,
"column": 52
}
},
"object": {
"type": "Identifier",
"start": 9030,
"end": 9042,
"loc": {
"start": {
"line": 354,
"column": 31
},
"end": {
"line": 354,
"column": 43
},
"identifierName": "globalConfig"
},
"name": "globalConfig"
},
"property": {
"type": "Identifier",
"start": 9043,
"end": 9051,
"loc": {
"start": {
"line": 354,
"column": 44
},
"end": {
"line": 354,
"column": 52
},
"identifierName": "tileSize"
},
"name": "tileSize"
},
"computed": false
}
}
]
}
]
}
}
],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\r\n * Returns a new rectangle in tile space which includes all tiles which are visible in this rect\r\n * @returns {Rectangle}\r\n ",
"start": 8624,
"end": 8767,
"loc": {
"start": {
"line": 345,
"column": 4
},
"end": {
"line": 348,
"column": 7
}
}
}
]
}
]
},
"leadingComments": [],
"trailingComments": []
}
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "*\r\n * Creates a rectangle from top right bottom and left offsets\r\n * @param {number} top\r\n * @param {number} right\r\n * @param {number} bottom\r\n * @param {number} left\r\n ",
"start": 307,
"end": 504,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 19,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Constructs a new square rectangle\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {number} size\r\n ",
"start": 638,
"end": 773,
"loc": {
"start": {
"line": 24,
"column": 4
},
"end": {
"line": 29,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n *\r\n * @param {Vector} p1\r\n * @param {Vector} p2\r\n ",
"start": 874,
"end": 948,
"loc": {
"start": {
"line": 34,
"column": 4
},
"end": {
"line": 38,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if a intersects b\r\n * @param {Rectangle} a\r\n * @param {Rectangle} b\r\n ",
"start": 1247,
"end": 1351,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 51,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Copies this instance\r\n * @returns {Rectangle}\r\n ",
"start": 1495,
"end": 1565,
"loc": {
"start": {
"line": 56,
"column": 4
},
"end": {
"line": 59,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if this rectangle is empty\r\n * @returns {boolean}\r\n ",
"start": 1658,
"end": 1740,
"loc": {
"start": {
"line": 64,
"column": 4
},
"end": {
"line": 67,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if this rectangle is equal to the other while taking an epsilon into account\r\n * @param {Rectangle} other\r\n * @param {number} epsilon\r\n ",
"start": 1824,
"end": 1994,
"loc": {
"start": {
"line": 72,
"column": 4
},
"end": {
"line": 76,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * @returns {number}\r\n ",
"start": 2301,
"end": 2339,
"loc": {
"start": {
"line": 86,
"column": 4
},
"end": {
"line": 88,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * @returns {number}\r\n ",
"start": 2392,
"end": 2430,
"loc": {
"start": {
"line": 93,
"column": 4
},
"end": {
"line": 95,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * @returns {number}\r\n ",
"start": 2493,
"end": 2531,
"loc": {
"start": {
"line": 100,
"column": 4
},
"end": {
"line": 102,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * @returns {number}\r\n ",
"start": 2583,
"end": 2621,
"loc": {
"start": {
"line": 107,
"column": 4
},
"end": {
"line": 109,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns Top, Right, Bottom, Left\r\n * @returns {[number, number, number, number]}\r\n ",
"start": 2685,
"end": 2790,
"loc": {
"start": {
"line": 114,
"column": 4
},
"end": {
"line": 117,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns the center of the rect\r\n * @returns {Vector}\r\n ",
"start": 2882,
"end": 2959,
"loc": {
"start": {
"line": 122,
"column": 4
},
"end": {
"line": 125,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Sets the right side of the rect without moving it\r\n * @param {number} right\r\n ",
"start": 3063,
"end": 3163,
"loc": {
"start": {
"line": 130,
"column": 4
},
"end": {
"line": 133,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Sets the bottom side of the rect without moving it\r\n * @param {number} bottom\r\n ",
"start": 3235,
"end": 3337,
"loc": {
"start": {
"line": 138,
"column": 4
},
"end": {
"line": 141,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Sets the top side of the rect without scaling it\r\n * @param {number} top\r\n ",
"start": 3412,
"end": 3509,
"loc": {
"start": {
"line": 146,
"column": 4
},
"end": {
"line": 149,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Sets the left side of the rect without scaling it\r\n * @param {number} left\r\n ",
"start": 3638,
"end": 3737,
"loc": {
"start": {
"line": 156,
"column": 4
},
"end": {
"line": 159,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns the top left point\r\n * @returns {Vector}\r\n ",
"start": 3865,
"end": 3938,
"loc": {
"start": {
"line": 166,
"column": 4
},
"end": {
"line": 169,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns the bottom left point\r\n * @returns {Vector}\r\n ",
"start": 4014,
"end": 4090,
"loc": {
"start": {
"line": 174,
"column": 4
},
"end": {
"line": 177,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Moves the rectangle by the given parameters\r\n * @param {number} x\r\n * @param {number} y\r\n ",
"start": 4183,
"end": 4299,
"loc": {
"start": {
"line": 182,
"column": 4
},
"end": {
"line": 186,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Moves the rectangle by the given vector\r\n * @param {Vector} vec\r\n ",
"start": 4378,
"end": 4466,
"loc": {
"start": {
"line": 192,
"column": 4
},
"end": {
"line": 195,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Scales every parameter (w, h, x, y) by the given factor. Useful to transform from world to\r\n * tile space and vice versa\r\n * @param {number} factor\r\n ",
"start": 4558,
"end": 4734,
"loc": {
"start": {
"line": 201,
"column": 4
},
"end": {
"line": 205,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Expands the rectangle in all directions\r\n * @param {number} amount\r\n * @returns {Rectangle} new rectangle\r\n ",
"start": 4873,
"end": 5007,
"loc": {
"start": {
"line": 210,
"column": 4
},
"end": {
"line": 214,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if the given rectangle is contained\r\n * @param {Rectangle} rect\r\n * @returns {boolean}\r\n ",
"start": 5168,
"end": 5291,
"loc": {
"start": {
"line": 219,
"column": 4
},
"end": {
"line": 223,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if this rectangle contains the other rectangle specified by the parameters\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {number} w\r\n * @param {number} h\r\n * @returns {boolean}\r\n ",
"start": 5517,
"end": 5751,
"loc": {
"start": {
"line": 233,
"column": 4
},
"end": {
"line": 240,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if the rectangle contains the given circle at (x, y) with the radius (radius)\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {number} radius\r\n * @returns {boolean}\r\n ",
"start": 5900,
"end": 6116,
"loc": {
"start": {
"line": 245,
"column": 4
},
"end": {
"line": 251,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if hte rectangle contains the given point\r\n * @param {number} x\r\n * @param {number} y\r\n * @returns {boolean}\r\n ",
"start": 6355,
"end": 6504,
"loc": {
"start": {
"line": 261,
"column": 4
},
"end": {
"line": 266,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns the shared area with another rectangle, or null if there is no intersection\r\n * @param {Rectangle} rect\r\n * @returns {Rectangle|null}\r\n ",
"start": 6631,
"end": 6801,
"loc": {
"start": {
"line": 271,
"column": 4
},
"end": {
"line": 275,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns the union of this rectangle with another\r\n * @param {Rectangle} rect\r\n ",
"start": 7227,
"end": 7328,
"loc": {
"start": {
"line": 290,
"column": 4
},
"end": {
"line": 293,
"column": 7
}
}
},
{
"type": "CommentLine",
"value": " If this is rect is empty, return the other one",
"start": 7395,
"end": 7444,
"loc": {
"start": {
"line": 296,
"column": 12
},
"end": {
"line": 296,
"column": 61
}
}
},
{
"type": "CommentLine",
"value": " If the other is empty, return this one",
"start": 7534,
"end": 7575,
"loc": {
"start": {
"line": 300,
"column": 12
},
"end": {
"line": 300,
"column": 53
}
}
},
{
"type": "CommentLine",
"value": " Find contained area",
"start": 7632,
"end": 7654,
"loc": {
"start": {
"line": 304,
"column": 8
},
"end": {
"line": 304,
"column": 30
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Good for caching stuff\r\n ",
"start": 7953,
"end": 7996,
"loc": {
"start": {
"line": 313,
"column": 4
},
"end": {
"line": 315,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Good for printing stuff\r\n ",
"start": 8269,
"end": 8313,
"loc": {
"start": {
"line": 328,
"column": 4
},
"end": {
"line": 330,
"column": 7
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns a new rectangle in tile space which includes all tiles which are visible in this rect\r\n * @returns {Rectangle}\r\n ",
"start": 8624,
"end": 8767,
"loc": {
"start": {
"line": 345,
"column": 4
},
"end": {
"line": 348,
"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": "./config",
"start": 29,
"end": 39,
"loc": {
"start": {
"line": 1,
"column": 29
},
"end": {
"line": 1,
"column": 39
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 39,
"end": 40,
"loc": {
"start": {
"line": 1,
"column": 39
},
"end": {
"line": 1,
"column": 40
}
}
},
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 42,
"end": 48,
"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": 49,
"end": 50,
"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": "epsilonCompare",
"start": 51,
"end": 65,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 23
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 65,
"end": 66,
"loc": {
"start": {
"line": 2,
"column": 23
},
"end": {
"line": 2,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "round2Digits",
"start": 67,
"end": 79,
"loc": {
"start": {
"line": 2,
"column": 25
},
"end": {
"line": 2,
"column": 37
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 80,
"end": 81,
"loc": {
"start": {
"line": 2,
"column": 38
},
"end": {
"line": 2,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 82,
"end": 86,
"loc": {
"start": {
"line": 2,
"column": 40
},
"end": {
"line": 2,
"column": 44
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./utils",
"start": 87,
"end": 96,
"loc": {
"start": {
"line": 2,
"column": 45
},
"end": {
"line": 2,
"column": 54
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 96,
"end": 97,
"loc": {
"start": {
"line": 2,
"column": 54
},
"end": {
"line": 2,
"column": 55
}
}
},
{
"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": 99,
"end": 105,
"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": 106,
"end": 107,
"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": "Vector",
"start": 108,
"end": 114,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 15
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 115,
"end": 116,
"loc": {
"start": {
"line": 3,
"column": 16
},
"end": {
"line": 3,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 117,
"end": 121,
"loc": {
"start": {
"line": 3,
"column": 18
},
"end": {
"line": 3,
"column": 22
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./vector",
"start": 122,
"end": 132,
"loc": {
"start": {
"line": 3,
"column": 23
},
"end": {
"line": 3,
"column": 33
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 132,
"end": 133,
"loc": {
"start": {
"line": 3,
"column": 33
},
"end": {
"line": 3,
"column": 34
}
}
},
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 137,
"end": 143,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"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": 144,
"end": 149,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Rectangle",
"start": 150,
"end": 159,
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 22
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 160,
"end": 161,
"loc": {
"start": {
"line": 5,
"column": 23
},
"end": {
"line": 5,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 167,
"end": 178,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 178,
"end": 179,
"loc": {
"start": {
"line": 6,
"column": 15
},
"end": {
"line": 6,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 179,
"end": 180,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 181,
"end": 182,
"loc": {
"start": {
"line": 6,
"column": 18
},
"end": {
"line": 6,
"column": 19
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 183,
"end": 184,
"loc": {
"start": {
"line": 6,
"column": 20
},
"end": {
"line": 6,
"column": 21
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 184,
"end": 185,
"loc": {
"start": {
"line": 6,
"column": 21
},
"end": {
"line": 6,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 186,
"end": 187,
"loc": {
"start": {
"line": 6,
"column": 23
},
"end": {
"line": 6,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 188,
"end": 189,
"loc": {
"start": {
"line": 6,
"column": 25
},
"end": {
"line": 6,
"column": 26
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 190,
"end": 191,
"loc": {
"start": {
"line": 6,
"column": 27
},
"end": {
"line": 6,
"column": 28
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 191,
"end": 192,
"loc": {
"start": {
"line": 6,
"column": 28
},
"end": {
"line": 6,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "w",
"start": 193,
"end": 194,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 6,
"column": 31
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 195,
"end": 196,
"loc": {
"start": {
"line": 6,
"column": 32
},
"end": {
"line": 6,
"column": 33
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 197,
"end": 198,
"loc": {
"start": {
"line": 6,
"column": 34
},
"end": {
"line": 6,
"column": 35
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 198,
"end": 199,
"loc": {
"start": {
"line": 6,
"column": 35
},
"end": {
"line": 6,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "h",
"start": 200,
"end": 201,
"loc": {
"start": {
"line": 6,
"column": 37
},
"end": {
"line": 6,
"column": 38
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 202,
"end": 203,
"loc": {
"start": {
"line": 6,
"column": 39
},
"end": {
"line": 6,
"column": 40
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 204,
"end": 205,
"loc": {
"start": {
"line": 6,
"column": 41
},
"end": {
"line": 6,
"column": 42
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 205,
"end": 206,
"loc": {
"start": {
"line": 6,
"column": 42
},
"end": {
"line": 6,
"column": 43
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 207,
"end": 208,
"loc": {
"start": {
"line": 6,
"column": 44
},
"end": {
"line": 6,
"column": 45
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 218,
"end": 222,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 222,
"end": 223,
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 223,
"end": 224,
"loc": {
"start": {
"line": 7,
"column": 13
},
"end": {
"line": 7,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 225,
"end": 226,
"loc": {
"start": {
"line": 7,
"column": 15
},
"end": {
"line": 7,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 227,
"end": 228,
"loc": {
"start": {
"line": 7,
"column": 17
},
"end": {
"line": 7,
"column": 18
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 228,
"end": 229,
"loc": {
"start": {
"line": 7,
"column": 18
},
"end": {
"line": 7,
"column": 19
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 239,
"end": 243,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 243,
"end": 244,
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 244,
"end": 245,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 246,
"end": 247,
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 248,
"end": 249,
"loc": {
"start": {
"line": 8,
"column": 17
},
"end": {
"line": 8,
"column": 18
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 249,
"end": 250,
"loc": {
"start": {
"line": 8,
"column": 18
},
"end": {
"line": 8,
"column": 19
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 260,
"end": 264,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 264,
"end": 265,
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "w",
"start": 265,
"end": 266,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 267,
"end": 268,
"loc": {
"start": {
"line": 9,
"column": 15
},
"end": {
"line": 9,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "w",
"start": 269,
"end": 270,
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 9,
"column": 18
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 270,
"end": 271,
"loc": {
"start": {
"line": 9,
"column": 18
},
"end": {
"line": 9,
"column": 19
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 281,
"end": 285,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 285,
"end": 286,
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "h",
"start": 286,
"end": 287,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 288,
"end": 289,
"loc": {
"start": {
"line": 10,
"column": 15
},
"end": {
"line": 10,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "h",
"start": 290,
"end": 291,
"loc": {
"start": {
"line": 10,
"column": 17
},
"end": {
"line": 10,
"column": 18
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 291,
"end": 292,
"loc": {
"start": {
"line": 10,
"column": 18
},
"end": {
"line": 10,
"column": 19
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 298,
"end": 299,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Creates a rectangle from top right bottom and left offsets\r\n * @param {number} top\r\n * @param {number} right\r\n * @param {number} bottom\r\n * @param {number} left\r\n ",
"start": 307,
"end": 504,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 19,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "static",
"start": 510,
"end": 516,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "fromTRBL",
"start": 517,
"end": 525,
"loc": {
"start": {
"line": 20,
"column": 11
},
"end": {
"line": 20,
"column": 19
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 525,
"end": 526,
"loc": {
"start": {
"line": 20,
"column": 19
},
"end": {
"line": 20,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 526,
"end": 529,
"loc": {
"start": {
"line": 20,
"column": 20
},
"end": {
"line": 20,
"column": 23
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 529,
"end": 530,
"loc": {
"start": {
"line": 20,
"column": 23
},
"end": {
"line": 20,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 531,
"end": 536,
"loc": {
"start": {
"line": 20,
"column": 25
},
"end": {
"line": 20,
"column": 30
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 536,
"end": 537,
"loc": {
"start": {
"line": 20,
"column": 30
},
"end": {
"line": 20,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 538,
"end": 544,
"loc": {
"start": {
"line": 20,
"column": 32
},
"end": {
"line": 20,
"column": 38
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 544,
"end": 545,
"loc": {
"start": {
"line": 20,
"column": 38
},
"end": {
"line": 20,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 546,
"end": 550,
"loc": {
"start": {
"line": 20,
"column": 40
},
"end": {
"line": 20,
"column": 44
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 550,
"end": 551,
"loc": {
"start": {
"line": 20,
"column": 44
},
"end": {
"line": 20,
"column": 45
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 552,
"end": 553,
"loc": {
"start": {
"line": 20,
"column": 46
},
"end": {
"line": 20,
"column": 47
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 563,
"end": 569,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 14
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 570,
"end": 573,
"loc": {
"start": {
"line": 21,
"column": 15
},
"end": {
"line": 21,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Rectangle",
"start": 574,
"end": 583,
"loc": {
"start": {
"line": 21,
"column": 19
},
"end": {
"line": 21,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 583,
"end": 584,
"loc": {
"start": {
"line": 21,
"column": 28
},
"end": {
"line": 21,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 584,
"end": 588,
"loc": {
"start": {
"line": 21,
"column": 29
},
"end": {
"line": 21,
"column": 33
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 588,
"end": 589,
"loc": {
"start": {
"line": 21,
"column": 33
},
"end": {
"line": 21,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 590,
"end": 593,
"loc": {
"start": {
"line": 21,
"column": 35
},
"end": {
"line": 21,
"column": 38
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 593,
"end": 594,
"loc": {
"start": {
"line": 21,
"column": 38
},
"end": {
"line": 21,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 595,
"end": 600,
"loc": {
"start": {
"line": 21,
"column": 40
},
"end": {
"line": 21,
"column": 45
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 601,
"end": 602,
"loc": {
"start": {
"line": 21,
"column": 46
},
"end": {
"line": 21,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 603,
"end": 607,
"loc": {
"start": {
"line": 21,
"column": 48
},
"end": {
"line": 21,
"column": 52
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 607,
"end": 608,
"loc": {
"start": {
"line": 21,
"column": 52
},
"end": {
"line": 21,
"column": 53
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 609,
"end": 615,
"loc": {
"start": {
"line": 21,
"column": 54
},
"end": {
"line": 21,
"column": 60
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 616,
"end": 617,
"loc": {
"start": {
"line": 21,
"column": 61
},
"end": {
"line": 21,
"column": 62
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 618,
"end": 621,
"loc": {
"start": {
"line": 21,
"column": 63
},
"end": {
"line": 21,
"column": 66
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 621,
"end": 622,
"loc": {
"start": {
"line": 21,
"column": 66
},
"end": {
"line": 21,
"column": 67
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 622,
"end": 623,
"loc": {
"start": {
"line": 21,
"column": 67
},
"end": {
"line": 21,
"column": 68
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 629,
"end": 630,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Constructs a new square rectangle\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {number} size\r\n ",
"start": 638,
"end": 773,
"loc": {
"start": {
"line": 24,
"column": 4
},
"end": {
"line": 29,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "static",
"start": 779,
"end": 785,
"loc": {
"start": {
"line": 30,
"column": 4
},
"end": {
"line": 30,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "fromSquare",
"start": 786,
"end": 796,
"loc": {
"start": {
"line": 30,
"column": 11
},
"end": {
"line": 30,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 796,
"end": 797,
"loc": {
"start": {
"line": 30,
"column": 21
},
"end": {
"line": 30,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 797,
"end": 798,
"loc": {
"start": {
"line": 30,
"column": 22
},
"end": {
"line": 30,
"column": 23
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 798,
"end": 799,
"loc": {
"start": {
"line": 30,
"column": 23
},
"end": {
"line": 30,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 800,
"end": 801,
"loc": {
"start": {
"line": 30,
"column": 25
},
"end": {
"line": 30,
"column": 26
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 801,
"end": 802,
"loc": {
"start": {
"line": 30,
"column": 26
},
"end": {
"line": 30,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "size",
"start": 803,
"end": 807,
"loc": {
"start": {
"line": 30,
"column": 28
},
"end": {
"line": 30,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 807,
"end": 808,
"loc": {
"start": {
"line": 30,
"column": 32
},
"end": {
"line": 30,
"column": 33
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 809,
"end": 810,
"loc": {
"start": {
"line": 30,
"column": 34
},
"end": {
"line": 30,
"column": 35
}
}
},
{
"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": 820,
"end": 826,
"loc": {
"start": {
"line": 31,
"column": 8
},
"end": {
"line": 31,
"column": 14
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 827,
"end": 830,
"loc": {
"start": {
"line": 31,
"column": 15
},
"end": {
"line": 31,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Rectangle",
"start": 831,
"end": 840,
"loc": {
"start": {
"line": 31,
"column": 19
},
"end": {
"line": 31,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 840,
"end": 841,
"loc": {
"start": {
"line": 31,
"column": 28
},
"end": {
"line": 31,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 841,
"end": 842,
"loc": {
"start": {
"line": 31,
"column": 29
},
"end": {
"line": 31,
"column": 30
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 842,
"end": 843,
"loc": {
"start": {
"line": 31,
"column": 30
},
"end": {
"line": 31,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 844,
"end": 845,
"loc": {
"start": {
"line": 31,
"column": 32
},
"end": {
"line": 31,
"column": 33
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 845,
"end": 846,
"loc": {
"start": {
"line": 31,
"column": 33
},
"end": {
"line": 31,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "size",
"start": 847,
"end": 851,
"loc": {
"start": {
"line": 31,
"column": 35
},
"end": {
"line": 31,
"column": 39
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 851,
"end": 852,
"loc": {
"start": {
"line": 31,
"column": 39
},
"end": {
"line": 31,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "size",
"start": 853,
"end": 857,
"loc": {
"start": {
"line": 31,
"column": 41
},
"end": {
"line": 31,
"column": 45
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 857,
"end": 858,
"loc": {
"start": {
"line": 31,
"column": 45
},
"end": {
"line": 31,
"column": 46
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 858,
"end": 859,
"loc": {
"start": {
"line": 31,
"column": 46
},
"end": {
"line": 31,
"column": 47
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 865,
"end": 866,
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 32,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n *\r\n * @param {Vector} p1\r\n * @param {Vector} p2\r\n ",
"start": 874,
"end": 948,
"loc": {
"start": {
"line": 34,
"column": 4
},
"end": {
"line": 38,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "static",
"start": 954,
"end": 960,
"loc": {
"start": {
"line": 39,
"column": 4
},
"end": {
"line": 39,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "fromTwoPoints",
"start": 961,
"end": 974,
"loc": {
"start": {
"line": 39,
"column": 11
},
"end": {
"line": 39,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 974,
"end": 975,
"loc": {
"start": {
"line": 39,
"column": 24
},
"end": {
"line": 39,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p1",
"start": 975,
"end": 977,
"loc": {
"start": {
"line": 39,
"column": 25
},
"end": {
"line": 39,
"column": 27
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 977,
"end": 978,
"loc": {
"start": {
"line": 39,
"column": 27
},
"end": {
"line": 39,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p2",
"start": 979,
"end": 981,
"loc": {
"start": {
"line": 39,
"column": 29
},
"end": {
"line": 39,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 981,
"end": 982,
"loc": {
"start": {
"line": 39,
"column": 31
},
"end": {
"line": 39,
"column": 32
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 983,
"end": 984,
"loc": {
"start": {
"line": 39,
"column": 33
},
"end": {
"line": 39,
"column": 34
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 994,
"end": 999,
"loc": {
"start": {
"line": 40,
"column": 8
},
"end": {
"line": 40,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 1000,
"end": 1004,
"loc": {
"start": {
"line": 40,
"column": 14
},
"end": {
"line": 40,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1005,
"end": 1006,
"loc": {
"start": {
"line": 40,
"column": 19
},
"end": {
"line": 40,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 1007,
"end": 1011,
"loc": {
"start": {
"line": 40,
"column": 21
},
"end": {
"line": 40,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1011,
"end": 1012,
"loc": {
"start": {
"line": 40,
"column": 25
},
"end": {
"line": 40,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "min",
"start": 1012,
"end": 1015,
"loc": {
"start": {
"line": 40,
"column": 26
},
"end": {
"line": 40,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1015,
"end": 1016,
"loc": {
"start": {
"line": 40,
"column": 29
},
"end": {
"line": 40,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p1",
"start": 1016,
"end": 1018,
"loc": {
"start": {
"line": 40,
"column": 30
},
"end": {
"line": 40,
"column": 32
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1018,
"end": 1019,
"loc": {
"start": {
"line": 40,
"column": 32
},
"end": {
"line": 40,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 1019,
"end": 1020,
"loc": {
"start": {
"line": 40,
"column": 33
},
"end": {
"line": 40,
"column": 34
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1020,
"end": 1021,
"loc": {
"start": {
"line": 40,
"column": 34
},
"end": {
"line": 40,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p2",
"start": 1022,
"end": 1024,
"loc": {
"start": {
"line": 40,
"column": 36
},
"end": {
"line": 40,
"column": 38
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1024,
"end": 1025,
"loc": {
"start": {
"line": 40,
"column": 38
},
"end": {
"line": 40,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 1025,
"end": 1026,
"loc": {
"start": {
"line": 40,
"column": 39
},
"end": {
"line": 40,
"column": 40
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1026,
"end": 1027,
"loc": {
"start": {
"line": 40,
"column": 40
},
"end": {
"line": 40,
"column": 41
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1027,
"end": 1028,
"loc": {
"start": {
"line": 40,
"column": 41
},
"end": {
"line": 40,
"column": 42
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 1038,
"end": 1043,
"loc": {
"start": {
"line": 41,
"column": 8
},
"end": {
"line": 41,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 1044,
"end": 1047,
"loc": {
"start": {
"line": 41,
"column": 14
},
"end": {
"line": 41,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1048,
"end": 1049,
"loc": {
"start": {
"line": 41,
"column": 18
},
"end": {
"line": 41,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 1050,
"end": 1054,
"loc": {
"start": {
"line": 41,
"column": 20
},
"end": {
"line": 41,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1054,
"end": 1055,
"loc": {
"start": {
"line": 41,
"column": 24
},
"end": {
"line": 41,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "min",
"start": 1055,
"end": 1058,
"loc": {
"start": {
"line": 41,
"column": 25
},
"end": {
"line": 41,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1058,
"end": 1059,
"loc": {
"start": {
"line": 41,
"column": 28
},
"end": {
"line": 41,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p1",
"start": 1059,
"end": 1061,
"loc": {
"start": {
"line": 41,
"column": 29
},
"end": {
"line": 41,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1061,
"end": 1062,
"loc": {
"start": {
"line": 41,
"column": 31
},
"end": {
"line": 41,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 1062,
"end": 1063,
"loc": {
"start": {
"line": 41,
"column": 32
},
"end": {
"line": 41,
"column": 33
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1063,
"end": 1064,
"loc": {
"start": {
"line": 41,
"column": 33
},
"end": {
"line": 41,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p2",
"start": 1065,
"end": 1067,
"loc": {
"start": {
"line": 41,
"column": 35
},
"end": {
"line": 41,
"column": 37
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1067,
"end": 1068,
"loc": {
"start": {
"line": 41,
"column": 37
},
"end": {
"line": 41,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 1068,
"end": 1069,
"loc": {
"start": {
"line": 41,
"column": 38
},
"end": {
"line": 41,
"column": 39
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1069,
"end": 1070,
"loc": {
"start": {
"line": 41,
"column": 39
},
"end": {
"line": 41,
"column": 40
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1070,
"end": 1071,
"loc": {
"start": {
"line": 41,
"column": 40
},
"end": {
"line": 41,
"column": 41
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 1081,
"end": 1086,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 1087,
"end": 1092,
"loc": {
"start": {
"line": 42,
"column": 14
},
"end": {
"line": 42,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1093,
"end": 1094,
"loc": {
"start": {
"line": 42,
"column": 20
},
"end": {
"line": 42,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 1095,
"end": 1099,
"loc": {
"start": {
"line": 42,
"column": 22
},
"end": {
"line": 42,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1099,
"end": 1100,
"loc": {
"start": {
"line": 42,
"column": 26
},
"end": {
"line": 42,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "max",
"start": 1100,
"end": 1103,
"loc": {
"start": {
"line": 42,
"column": 27
},
"end": {
"line": 42,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1103,
"end": 1104,
"loc": {
"start": {
"line": 42,
"column": 30
},
"end": {
"line": 42,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p1",
"start": 1104,
"end": 1106,
"loc": {
"start": {
"line": 42,
"column": 31
},
"end": {
"line": 42,
"column": 33
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1106,
"end": 1107,
"loc": {
"start": {
"line": 42,
"column": 33
},
"end": {
"line": 42,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 1107,
"end": 1108,
"loc": {
"start": {
"line": 42,
"column": 34
},
"end": {
"line": 42,
"column": 35
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1108,
"end": 1109,
"loc": {
"start": {
"line": 42,
"column": 35
},
"end": {
"line": 42,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p2",
"start": 1110,
"end": 1112,
"loc": {
"start": {
"line": 42,
"column": 37
},
"end": {
"line": 42,
"column": 39
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1112,
"end": 1113,
"loc": {
"start": {
"line": 42,
"column": 39
},
"end": {
"line": 42,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 1113,
"end": 1114,
"loc": {
"start": {
"line": 42,
"column": 40
},
"end": {
"line": 42,
"column": 41
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1114,
"end": 1115,
"loc": {
"start": {
"line": 42,
"column": 41
},
"end": {
"line": 42,
"column": 42
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1115,
"end": 1116,
"loc": {
"start": {
"line": 42,
"column": 42
},
"end": {
"line": 42,
"column": 43
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 1126,
"end": 1131,
"loc": {
"start": {
"line": 43,
"column": 8
},
"end": {
"line": 43,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 1132,
"end": 1138,
"loc": {
"start": {
"line": 43,
"column": 14
},
"end": {
"line": 43,
"column": 20
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1139,
"end": 1140,
"loc": {
"start": {
"line": 43,
"column": 21
},
"end": {
"line": 43,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 1141,
"end": 1145,
"loc": {
"start": {
"line": 43,
"column": 23
},
"end": {
"line": 43,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1145,
"end": 1146,
"loc": {
"start": {
"line": 43,
"column": 27
},
"end": {
"line": 43,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "max",
"start": 1146,
"end": 1149,
"loc": {
"start": {
"line": 43,
"column": 28
},
"end": {
"line": 43,
"column": 31
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1149,
"end": 1150,
"loc": {
"start": {
"line": 43,
"column": 31
},
"end": {
"line": 43,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p1",
"start": 1150,
"end": 1152,
"loc": {
"start": {
"line": 43,
"column": 32
},
"end": {
"line": 43,
"column": 34
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1152,
"end": 1153,
"loc": {
"start": {
"line": 43,
"column": 34
},
"end": {
"line": 43,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 1153,
"end": 1154,
"loc": {
"start": {
"line": 43,
"column": 35
},
"end": {
"line": 43,
"column": 36
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1154,
"end": 1155,
"loc": {
"start": {
"line": 43,
"column": 36
},
"end": {
"line": 43,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "p2",
"start": 1156,
"end": 1158,
"loc": {
"start": {
"line": 43,
"column": 38
},
"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": 1158,
"end": 1159,
"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": "y",
"start": 1159,
"end": 1160,
"loc": {
"start": {
"line": 43,
"column": 41
},
"end": {
"line": 43,
"column": 42
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1160,
"end": 1161,
"loc": {
"start": {
"line": 43,
"column": 42
},
"end": {
"line": 43,
"column": 43
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1161,
"end": 1162,
"loc": {
"start": {
"line": 43,
"column": 43
},
"end": {
"line": 43,
"column": 44
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 1172,
"end": 1178,
"loc": {
"start": {
"line": 44,
"column": 8
},
"end": {
"line": 44,
"column": 14
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 1179,
"end": 1182,
"loc": {
"start": {
"line": 44,
"column": 15
},
"end": {
"line": 44,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Rectangle",
"start": 1183,
"end": 1192,
"loc": {
"start": {
"line": 44,
"column": 19
},
"end": {
"line": 44,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1192,
"end": 1193,
"loc": {
"start": {
"line": 44,
"column": 28
},
"end": {
"line": 44,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 1193,
"end": 1197,
"loc": {
"start": {
"line": 44,
"column": 29
},
"end": {
"line": 44,
"column": 33
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1197,
"end": 1198,
"loc": {
"start": {
"line": 44,
"column": 33
},
"end": {
"line": 44,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 1199,
"end": 1202,
"loc": {
"start": {
"line": 44,
"column": 35
},
"end": {
"line": 44,
"column": 38
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1202,
"end": 1203,
"loc": {
"start": {
"line": 44,
"column": 38
},
"end": {
"line": 44,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 1204,
"end": 1209,
"loc": {
"start": {
"line": 44,
"column": 40
},
"end": {
"line": 44,
"column": 45
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 1210,
"end": 1211,
"loc": {
"start": {
"line": 44,
"column": 46
},
"end": {
"line": 44,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 1212,
"end": 1216,
"loc": {
"start": {
"line": 44,
"column": 48
},
"end": {
"line": 44,
"column": 52
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1216,
"end": 1217,
"loc": {
"start": {
"line": 44,
"column": 52
},
"end": {
"line": 44,
"column": 53
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 1218,
"end": 1224,
"loc": {
"start": {
"line": 44,
"column": 54
},
"end": {
"line": 44,
"column": 60
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 1225,
"end": 1226,
"loc": {
"start": {
"line": 44,
"column": 61
},
"end": {
"line": 44,
"column": 62
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 1227,
"end": 1230,
"loc": {
"start": {
"line": 44,
"column": 63
},
"end": {
"line": 44,
"column": 66
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1230,
"end": 1231,
"loc": {
"start": {
"line": 44,
"column": 66
},
"end": {
"line": 44,
"column": 67
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1231,
"end": 1232,
"loc": {
"start": {
"line": 44,
"column": 67
},
"end": {
"line": 44,
"column": 68
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1238,
"end": 1239,
"loc": {
"start": {
"line": 45,
"column": 4
},
"end": {
"line": 45,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if a intersects b\r\n * @param {Rectangle} a\r\n * @param {Rectangle} b\r\n ",
"start": 1247,
"end": 1351,
"loc": {
"start": {
"line": 47,
"column": 4
},
"end": {
"line": 51,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "static",
"start": 1357,
"end": 1363,
"loc": {
"start": {
"line": 52,
"column": 4
},
"end": {
"line": 52,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "intersects",
"start": 1364,
"end": 1374,
"loc": {
"start": {
"line": 52,
"column": 11
},
"end": {
"line": 52,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1374,
"end": 1375,
"loc": {
"start": {
"line": 52,
"column": 21
},
"end": {
"line": 52,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "a",
"start": 1375,
"end": 1376,
"loc": {
"start": {
"line": 52,
"column": 22
},
"end": {
"line": 52,
"column": 23
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1376,
"end": 1377,
"loc": {
"start": {
"line": 52,
"column": 23
},
"end": {
"line": 52,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "b",
"start": 1378,
"end": 1379,
"loc": {
"start": {
"line": 52,
"column": 25
},
"end": {
"line": 52,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1379,
"end": 1380,
"loc": {
"start": {
"line": 52,
"column": 26
},
"end": {
"line": 52,
"column": 27
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1381,
"end": 1382,
"loc": {
"start": {
"line": 52,
"column": 28
},
"end": {
"line": 52,
"column": 29
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 1392,
"end": 1398,
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "a",
"start": 1399,
"end": 1400,
"loc": {
"start": {
"line": 53,
"column": 15
},
"end": {
"line": 53,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1400,
"end": 1401,
"loc": {
"start": {
"line": 53,
"column": 16
},
"end": {
"line": 53,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 1401,
"end": 1405,
"loc": {
"start": {
"line": 53,
"column": 17
},
"end": {
"line": 53,
"column": 21
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 1406,
"end": 1408,
"loc": {
"start": {
"line": 53,
"column": 22
},
"end": {
"line": 53,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "b",
"start": 1409,
"end": 1410,
"loc": {
"start": {
"line": 53,
"column": 25
},
"end": {
"line": 53,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1410,
"end": 1411,
"loc": {
"start": {
"line": 53,
"column": 26
},
"end": {
"line": 53,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 1411,
"end": 1416,
"loc": {
"start": {
"line": 53,
"column": 27
},
"end": {
"line": 53,
"column": 32
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 1417,
"end": 1419,
"loc": {
"start": {
"line": 53,
"column": 33
},
"end": {
"line": 53,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "b",
"start": 1420,
"end": 1421,
"loc": {
"start": {
"line": 53,
"column": 36
},
"end": {
"line": 53,
"column": 37
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1421,
"end": 1422,
"loc": {
"start": {
"line": 53,
"column": 37
},
"end": {
"line": 53,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 1422,
"end": 1426,
"loc": {
"start": {
"line": 53,
"column": 38
},
"end": {
"line": 53,
"column": 42
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 1427,
"end": 1429,
"loc": {
"start": {
"line": 53,
"column": 43
},
"end": {
"line": 53,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "a",
"start": 1430,
"end": 1431,
"loc": {
"start": {
"line": 53,
"column": 46
},
"end": {
"line": 53,
"column": 47
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1431,
"end": 1432,
"loc": {
"start": {
"line": 53,
"column": 47
},
"end": {
"line": 53,
"column": 48
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 1432,
"end": 1437,
"loc": {
"start": {
"line": 53,
"column": 48
},
"end": {
"line": 53,
"column": 53
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 1438,
"end": 1440,
"loc": {
"start": {
"line": 53,
"column": 54
},
"end": {
"line": 53,
"column": 56
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "a",
"start": 1441,
"end": 1442,
"loc": {
"start": {
"line": 53,
"column": 57
},
"end": {
"line": 53,
"column": 58
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1442,
"end": 1443,
"loc": {
"start": {
"line": 53,
"column": 58
},
"end": {
"line": 53,
"column": 59
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 1443,
"end": 1446,
"loc": {
"start": {
"line": 53,
"column": 59
},
"end": {
"line": 53,
"column": 62
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 1447,
"end": 1449,
"loc": {
"start": {
"line": 53,
"column": 63
},
"end": {
"line": 53,
"column": 65
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "b",
"start": 1450,
"end": 1451,
"loc": {
"start": {
"line": 53,
"column": 66
},
"end": {
"line": 53,
"column": 67
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1451,
"end": 1452,
"loc": {
"start": {
"line": 53,
"column": 67
},
"end": {
"line": 53,
"column": 68
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 1452,
"end": 1458,
"loc": {
"start": {
"line": 53,
"column": 68
},
"end": {
"line": 53,
"column": 74
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 1459,
"end": 1461,
"loc": {
"start": {
"line": 53,
"column": 75
},
"end": {
"line": 53,
"column": 77
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "b",
"start": 1462,
"end": 1463,
"loc": {
"start": {
"line": 53,
"column": 78
},
"end": {
"line": 53,
"column": 79
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1463,
"end": 1464,
"loc": {
"start": {
"line": 53,
"column": 79
},
"end": {
"line": 53,
"column": 80
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 1464,
"end": 1467,
"loc": {
"start": {
"line": 53,
"column": 80
},
"end": {
"line": 53,
"column": 83
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 1468,
"end": 1470,
"loc": {
"start": {
"line": 53,
"column": 84
},
"end": {
"line": 53,
"column": 86
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "a",
"start": 1471,
"end": 1472,
"loc": {
"start": {
"line": 53,
"column": 87
},
"end": {
"line": 53,
"column": 88
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1472,
"end": 1473,
"loc": {
"start": {
"line": 53,
"column": 88
},
"end": {
"line": 53,
"column": 89
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 1473,
"end": 1479,
"loc": {
"start": {
"line": 53,
"column": 89
},
"end": {
"line": 53,
"column": 95
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1479,
"end": 1480,
"loc": {
"start": {
"line": 53,
"column": 95
},
"end": {
"line": 53,
"column": 96
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1486,
"end": 1487,
"loc": {
"start": {
"line": 54,
"column": 4
},
"end": {
"line": 54,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Copies this instance\r\n * @returns {Rectangle}\r\n ",
"start": 1495,
"end": 1565,
"loc": {
"start": {
"line": 56,
"column": 4
},
"end": {
"line": 59,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "clone",
"start": 1571,
"end": 1576,
"loc": {
"start": {
"line": 60,
"column": 4
},
"end": {
"line": 60,
"column": 9
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1576,
"end": 1577,
"loc": {
"start": {
"line": 60,
"column": 9
},
"end": {
"line": 60,
"column": 10
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1577,
"end": 1578,
"loc": {
"start": {
"line": 60,
"column": 10
},
"end": {
"line": 60,
"column": 11
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1579,
"end": 1580,
"loc": {
"start": {
"line": 60,
"column": 12
},
"end": {
"line": 60,
"column": 13
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 1590,
"end": 1596,
"loc": {
"start": {
"line": 61,
"column": 8
},
"end": {
"line": 61,
"column": 14
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 1597,
"end": 1600,
"loc": {
"start": {
"line": 61,
"column": 15
},
"end": {
"line": 61,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Rectangle",
"start": 1601,
"end": 1610,
"loc": {
"start": {
"line": 61,
"column": 19
},
"end": {
"line": 61,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1610,
"end": 1611,
"loc": {
"start": {
"line": 61,
"column": 28
},
"end": {
"line": 61,
"column": 29
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1611,
"end": 1615,
"loc": {
"start": {
"line": 61,
"column": 29
},
"end": {
"line": 61,
"column": 33
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1615,
"end": 1616,
"loc": {
"start": {
"line": 61,
"column": 33
},
"end": {
"line": 61,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 1616,
"end": 1617,
"loc": {
"start": {
"line": 61,
"column": 34
},
"end": {
"line": 61,
"column": 35
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1617,
"end": 1618,
"loc": {
"start": {
"line": 61,
"column": 35
},
"end": {
"line": 61,
"column": 36
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1619,
"end": 1623,
"loc": {
"start": {
"line": 61,
"column": 37
},
"end": {
"line": 61,
"column": 41
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1623,
"end": 1624,
"loc": {
"start": {
"line": 61,
"column": 41
},
"end": {
"line": 61,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 1624,
"end": 1625,
"loc": {
"start": {
"line": 61,
"column": 42
},
"end": {
"line": 61,
"column": 43
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1625,
"end": 1626,
"loc": {
"start": {
"line": 61,
"column": 43
},
"end": {
"line": 61,
"column": 44
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1627,
"end": 1631,
"loc": {
"start": {
"line": 61,
"column": 45
},
"end": {
"line": 61,
"column": 49
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1631,
"end": 1632,
"loc": {
"start": {
"line": 61,
"column": 49
},
"end": {
"line": 61,
"column": 50
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "w",
"start": 1632,
"end": 1633,
"loc": {
"start": {
"line": 61,
"column": 50
},
"end": {
"line": 61,
"column": 51
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1633,
"end": 1634,
"loc": {
"start": {
"line": 61,
"column": 51
},
"end": {
"line": 61,
"column": 52
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1635,
"end": 1639,
"loc": {
"start": {
"line": 61,
"column": 53
},
"end": {
"line": 61,
"column": 57
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1639,
"end": 1640,
"loc": {
"start": {
"line": 61,
"column": 57
},
"end": {
"line": 61,
"column": 58
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "h",
"start": 1640,
"end": 1641,
"loc": {
"start": {
"line": 61,
"column": 58
},
"end": {
"line": 61,
"column": 59
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1641,
"end": 1642,
"loc": {
"start": {
"line": 61,
"column": 59
},
"end": {
"line": 61,
"column": 60
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1642,
"end": 1643,
"loc": {
"start": {
"line": 61,
"column": 60
},
"end": {
"line": 61,
"column": 61
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1649,
"end": 1650,
"loc": {
"start": {
"line": 62,
"column": 4
},
"end": {
"line": 62,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if this rectangle is empty\r\n * @returns {boolean}\r\n ",
"start": 1658,
"end": 1740,
"loc": {
"start": {
"line": 64,
"column": 4
},
"end": {
"line": 67,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isEmpty",
"start": 1746,
"end": 1753,
"loc": {
"start": {
"line": 68,
"column": 4
},
"end": {
"line": 68,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1753,
"end": 1754,
"loc": {
"start": {
"line": 68,
"column": 11
},
"end": {
"line": 68,
"column": 12
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1754,
"end": 1755,
"loc": {
"start": {
"line": 68,
"column": 12
},
"end": {
"line": 68,
"column": 13
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1756,
"end": 1757,
"loc": {
"start": {
"line": 68,
"column": 14
},
"end": {
"line": 68,
"column": 15
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 1767,
"end": 1773,
"loc": {
"start": {
"line": 69,
"column": 8
},
"end": {
"line": 69,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "epsilonCompare",
"start": 1774,
"end": 1788,
"loc": {
"start": {
"line": 69,
"column": 15
},
"end": {
"line": 69,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1788,
"end": 1789,
"loc": {
"start": {
"line": 69,
"column": 29
},
"end": {
"line": 69,
"column": 30
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1789,
"end": 1793,
"loc": {
"start": {
"line": 69,
"column": 30
},
"end": {
"line": 69,
"column": 34
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1793,
"end": 1794,
"loc": {
"start": {
"line": 69,
"column": 34
},
"end": {
"line": 69,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "w",
"start": 1794,
"end": 1795,
"loc": {
"start": {
"line": 69,
"column": 35
},
"end": {
"line": 69,
"column": 36
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 1796,
"end": 1797,
"loc": {
"start": {
"line": 69,
"column": 37
},
"end": {
"line": 69,
"column": 38
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 1798,
"end": 1802,
"loc": {
"start": {
"line": 69,
"column": 39
},
"end": {
"line": 69,
"column": 43
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1802,
"end": 1803,
"loc": {
"start": {
"line": 69,
"column": 43
},
"end": {
"line": 69,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "h",
"start": 1803,
"end": 1804,
"loc": {
"start": {
"line": 69,
"column": 44
},
"end": {
"line": 69,
"column": 45
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1804,
"end": 1805,
"loc": {
"start": {
"line": 69,
"column": 45
},
"end": {
"line": 69,
"column": 46
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 1806,
"end": 1807,
"loc": {
"start": {
"line": 69,
"column": 47
},
"end": {
"line": 69,
"column": 48
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1807,
"end": 1808,
"loc": {
"start": {
"line": 69,
"column": 48
},
"end": {
"line": 69,
"column": 49
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1808,
"end": 1809,
"loc": {
"start": {
"line": 69,
"column": 49
},
"end": {
"line": 69,
"column": 50
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1815,
"end": 1816,
"loc": {
"start": {
"line": 70,
"column": 4
},
"end": {
"line": 70,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if this rectangle is equal to the other while taking an epsilon into account\r\n * @param {Rectangle} other\r\n * @param {number} epsilon\r\n ",
"start": 1824,
"end": 1994,
"loc": {
"start": {
"line": 72,
"column": 4
},
"end": {
"line": 76,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "equalsEpsilon",
"start": 2000,
"end": 2013,
"loc": {
"start": {
"line": 77,
"column": 4
},
"end": {
"line": 77,
"column": 17
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2013,
"end": 2014,
"loc": {
"start": {
"line": 77,
"column": 17
},
"end": {
"line": 77,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "other",
"start": 2014,
"end": 2019,
"loc": {
"start": {
"line": 77,
"column": 18
},
"end": {
"line": 77,
"column": 23
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2019,
"end": 2020,
"loc": {
"start": {
"line": 77,
"column": 23
},
"end": {
"line": 77,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "epsilon",
"start": 2021,
"end": 2028,
"loc": {
"start": {
"line": 77,
"column": 25
},
"end": {
"line": 77,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2028,
"end": 2029,
"loc": {
"start": {
"line": 77,
"column": 32
},
"end": {
"line": 77,
"column": 33
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2030,
"end": 2031,
"loc": {
"start": {
"line": 77,
"column": 34
},
"end": {
"line": 77,
"column": 35
}
}
},
{
"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": 2041,
"end": 2047,
"loc": {
"start": {
"line": 78,
"column": 8
},
"end": {
"line": 78,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2048,
"end": 2049,
"loc": {
"start": {
"line": 78,
"column": 15
},
"end": {
"line": 78,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "epsilonCompare",
"start": 2063,
"end": 2077,
"loc": {
"start": {
"line": 79,
"column": 12
},
"end": {
"line": 79,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2077,
"end": 2078,
"loc": {
"start": {
"line": 79,
"column": 26
},
"end": {
"line": 79,
"column": 27
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2078,
"end": 2082,
"loc": {
"start": {
"line": 79,
"column": 27
},
"end": {
"line": 79,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2082,
"end": 2083,
"loc": {
"start": {
"line": 79,
"column": 31
},
"end": {
"line": 79,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 2083,
"end": 2084,
"loc": {
"start": {
"line": 79,
"column": 32
},
"end": {
"line": 79,
"column": 33
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2084,
"end": 2085,
"loc": {
"start": {
"line": 79,
"column": 33
},
"end": {
"line": 79,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "other",
"start": 2086,
"end": 2091,
"loc": {
"start": {
"line": 79,
"column": 35
},
"end": {
"line": 79,
"column": 40
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2091,
"end": 2092,
"loc": {
"start": {
"line": 79,
"column": 40
},
"end": {
"line": 79,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 2092,
"end": 2093,
"loc": {
"start": {
"line": 79,
"column": 41
},
"end": {
"line": 79,
"column": 42
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2093,
"end": 2094,
"loc": {
"start": {
"line": 79,
"column": 42
},
"end": {
"line": 79,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "epsilon",
"start": 2095,
"end": 2102,
"loc": {
"start": {
"line": 79,
"column": 44
},
"end": {
"line": 79,
"column": 51
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2102,
"end": 2103,
"loc": {
"start": {
"line": 79,
"column": 51
},
"end": {
"line": 79,
"column": 52
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 2104,
"end": 2106,
"loc": {
"start": {
"line": 79,
"column": 53
},
"end": {
"line": 79,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "epsilonCompare",
"start": 2120,
"end": 2134,
"loc": {
"start": {
"line": 80,
"column": 12
},
"end": {
"line": 80,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2134,
"end": 2135,
"loc": {
"start": {
"line": 80,
"column": 26
},
"end": {
"line": 80,
"column": 27
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2135,
"end": 2139,
"loc": {
"start": {
"line": 80,
"column": 27
},
"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": 2139,
"end": 2140,
"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": "y",
"start": 2140,
"end": 2141,
"loc": {
"start": {
"line": 80,
"column": 32
},
"end": {
"line": 80,
"column": 33
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2141,
"end": 2142,
"loc": {
"start": {
"line": 80,
"column": 33
},
"end": {
"line": 80,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "other",
"start": 2143,
"end": 2148,
"loc": {
"start": {
"line": 80,
"column": 35
},
"end": {
"line": 80,
"column": 40
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2148,
"end": 2149,
"loc": {
"start": {
"line": 80,
"column": 40
},
"end": {
"line": 80,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 2149,
"end": 2150,
"loc": {
"start": {
"line": 80,
"column": 41
},
"end": {
"line": 80,
"column": 42
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2150,
"end": 2151,
"loc": {
"start": {
"line": 80,
"column": 42
},
"end": {
"line": 80,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "epsilon",
"start": 2152,
"end": 2159,
"loc": {
"start": {
"line": 80,
"column": 44
},
"end": {
"line": 80,
"column": 51
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2159,
"end": 2160,
"loc": {
"start": {
"line": 80,
"column": 51
},
"end": {
"line": 80,
"column": 52
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 2161,
"end": 2163,
"loc": {
"start": {
"line": 80,
"column": 53
},
"end": {
"line": 80,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "epsilonCompare",
"start": 2177,
"end": 2191,
"loc": {
"start": {
"line": 81,
"column": 12
},
"end": {
"line": 81,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2191,
"end": 2192,
"loc": {
"start": {
"line": 81,
"column": 26
},
"end": {
"line": 81,
"column": 27
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2192,
"end": 2196,
"loc": {
"start": {
"line": 81,
"column": 27
},
"end": {
"line": 81,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2196,
"end": 2197,
"loc": {
"start": {
"line": 81,
"column": 31
},
"end": {
"line": 81,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "w",
"start": 2197,
"end": 2198,
"loc": {
"start": {
"line": 81,
"column": 32
},
"end": {
"line": 81,
"column": 33
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2198,
"end": 2199,
"loc": {
"start": {
"line": 81,
"column": 33
},
"end": {
"line": 81,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "other",
"start": 2200,
"end": 2205,
"loc": {
"start": {
"line": 81,
"column": 35
},
"end": {
"line": 81,
"column": 40
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2205,
"end": 2206,
"loc": {
"start": {
"line": 81,
"column": 40
},
"end": {
"line": 81,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "w",
"start": 2206,
"end": 2207,
"loc": {
"start": {
"line": 81,
"column": 41
},
"end": {
"line": 81,
"column": 42
}
}
},
{
"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": 81,
"column": 42
},
"end": {
"line": 81,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "epsilon",
"start": 2209,
"end": 2216,
"loc": {
"start": {
"line": 81,
"column": 44
},
"end": {
"line": 81,
"column": 51
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2216,
"end": 2217,
"loc": {
"start": {
"line": 81,
"column": 51
},
"end": {
"line": 81,
"column": 52
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 2218,
"end": 2220,
"loc": {
"start": {
"line": 81,
"column": 53
},
"end": {
"line": 81,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "epsilonCompare",
"start": 2234,
"end": 2248,
"loc": {
"start": {
"line": 82,
"column": 12
},
"end": {
"line": 82,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2248,
"end": 2249,
"loc": {
"start": {
"line": 82,
"column": 26
},
"end": {
"line": 82,
"column": 27
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2249,
"end": 2253,
"loc": {
"start": {
"line": 82,
"column": 27
},
"end": {
"line": 82,
"column": 31
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2253,
"end": 2254,
"loc": {
"start": {
"line": 82,
"column": 31
},
"end": {
"line": 82,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "h",
"start": 2254,
"end": 2255,
"loc": {
"start": {
"line": 82,
"column": 32
},
"end": {
"line": 82,
"column": 33
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2255,
"end": 2256,
"loc": {
"start": {
"line": 82,
"column": 33
},
"end": {
"line": 82,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "other",
"start": 2257,
"end": 2262,
"loc": {
"start": {
"line": 82,
"column": 35
},
"end": {
"line": 82,
"column": 40
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2262,
"end": 2263,
"loc": {
"start": {
"line": 82,
"column": 40
},
"end": {
"line": 82,
"column": 41
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "h",
"start": 2263,
"end": 2264,
"loc": {
"start": {
"line": 82,
"column": 41
},
"end": {
"line": 82,
"column": 42
}
}
},
{
"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": 82,
"column": 42
},
"end": {
"line": 82,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "epsilon",
"start": 2266,
"end": 2273,
"loc": {
"start": {
"line": 82,
"column": 44
},
"end": {
"line": 82,
"column": 51
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2273,
"end": 2274,
"loc": {
"start": {
"line": 82,
"column": 51
},
"end": {
"line": 82,
"column": 52
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2284,
"end": 2285,
"loc": {
"start": {
"line": 83,
"column": 8
},
"end": {
"line": 83,
"column": 9
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2285,
"end": 2286,
"loc": {
"start": {
"line": 83,
"column": 9
},
"end": {
"line": 83,
"column": 10
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2292,
"end": 2293,
"loc": {
"start": {
"line": 84,
"column": 4
},
"end": {
"line": 84,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * @returns {number}\r\n ",
"start": 2301,
"end": 2339,
"loc": {
"start": {
"line": 86,
"column": 4
},
"end": {
"line": 88,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 2345,
"end": 2349,
"loc": {
"start": {
"line": 89,
"column": 4
},
"end": {
"line": 89,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2349,
"end": 2350,
"loc": {
"start": {
"line": 89,
"column": 8
},
"end": {
"line": 89,
"column": 9
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2350,
"end": 2351,
"loc": {
"start": {
"line": 89,
"column": 9
},
"end": {
"line": 89,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2352,
"end": 2353,
"loc": {
"start": {
"line": 89,
"column": 11
},
"end": {
"line": 89,
"column": 12
}
}
},
{
"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": 2363,
"end": 2369,
"loc": {
"start": {
"line": 90,
"column": 8
},
"end": {
"line": 90,
"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": 2370,
"end": 2374,
"loc": {
"start": {
"line": 90,
"column": 15
},
"end": {
"line": 90,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2374,
"end": 2375,
"loc": {
"start": {
"line": 90,
"column": 19
},
"end": {
"line": 90,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 2375,
"end": 2376,
"loc": {
"start": {
"line": 90,
"column": 20
},
"end": {
"line": 90,
"column": 21
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2376,
"end": 2377,
"loc": {
"start": {
"line": 90,
"column": 21
},
"end": {
"line": 90,
"column": 22
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2383,
"end": 2384,
"loc": {
"start": {
"line": 91,
"column": 4
},
"end": {
"line": 91,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * @returns {number}\r\n ",
"start": 2392,
"end": 2430,
"loc": {
"start": {
"line": 93,
"column": 4
},
"end": {
"line": 95,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 2436,
"end": 2441,
"loc": {
"start": {
"line": 96,
"column": 4
},
"end": {
"line": 96,
"column": 9
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2441,
"end": 2442,
"loc": {
"start": {
"line": 96,
"column": 9
},
"end": {
"line": 96,
"column": 10
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2442,
"end": 2443,
"loc": {
"start": {
"line": 96,
"column": 10
},
"end": {
"line": 96,
"column": 11
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2444,
"end": 2445,
"loc": {
"start": {
"line": 96,
"column": 12
},
"end": {
"line": 96,
"column": 13
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 2455,
"end": 2461,
"loc": {
"start": {
"line": 97,
"column": 8
},
"end": {
"line": 97,
"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": 2462,
"end": 2466,
"loc": {
"start": {
"line": 97,
"column": 15
},
"end": {
"line": 97,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2466,
"end": 2467,
"loc": {
"start": {
"line": 97,
"column": 19
},
"end": {
"line": 97,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 2467,
"end": 2468,
"loc": {
"start": {
"line": 97,
"column": 20
},
"end": {
"line": 97,
"column": 21
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 2469,
"end": 2470,
"loc": {
"start": {
"line": 97,
"column": 22
},
"end": {
"line": 97,
"column": 23
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2471,
"end": 2475,
"loc": {
"start": {
"line": 97,
"column": 24
},
"end": {
"line": 97,
"column": 28
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2475,
"end": 2476,
"loc": {
"start": {
"line": 97,
"column": 28
},
"end": {
"line": 97,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "w",
"start": 2476,
"end": 2477,
"loc": {
"start": {
"line": 97,
"column": 29
},
"end": {
"line": 97,
"column": 30
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2477,
"end": 2478,
"loc": {
"start": {
"line": 97,
"column": 30
},
"end": {
"line": 97,
"column": 31
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2484,
"end": 2485,
"loc": {
"start": {
"line": 98,
"column": 4
},
"end": {
"line": 98,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * @returns {number}\r\n ",
"start": 2493,
"end": 2531,
"loc": {
"start": {
"line": 100,
"column": 4
},
"end": {
"line": 102,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 2537,
"end": 2540,
"loc": {
"start": {
"line": 103,
"column": 4
},
"end": {
"line": 103,
"column": 7
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2540,
"end": 2541,
"loc": {
"start": {
"line": 103,
"column": 7
},
"end": {
"line": 103,
"column": 8
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2541,
"end": 2542,
"loc": {
"start": {
"line": 103,
"column": 8
},
"end": {
"line": 103,
"column": 9
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2543,
"end": 2544,
"loc": {
"start": {
"line": 103,
"column": 10
},
"end": {
"line": 103,
"column": 11
}
}
},
{
"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": 2554,
"end": 2560,
"loc": {
"start": {
"line": 104,
"column": 8
},
"end": {
"line": 104,
"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": 2561,
"end": 2565,
"loc": {
"start": {
"line": 104,
"column": 15
},
"end": {
"line": 104,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2565,
"end": 2566,
"loc": {
"start": {
"line": 104,
"column": 19
},
"end": {
"line": 104,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 2566,
"end": 2567,
"loc": {
"start": {
"line": 104,
"column": 20
},
"end": {
"line": 104,
"column": 21
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2567,
"end": 2568,
"loc": {
"start": {
"line": 104,
"column": 21
},
"end": {
"line": 104,
"column": 22
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2574,
"end": 2575,
"loc": {
"start": {
"line": 105,
"column": 4
},
"end": {
"line": 105,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * @returns {number}\r\n ",
"start": 2583,
"end": 2621,
"loc": {
"start": {
"line": 107,
"column": 4
},
"end": {
"line": 109,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 2627,
"end": 2633,
"loc": {
"start": {
"line": 110,
"column": 4
},
"end": {
"line": 110,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2633,
"end": 2634,
"loc": {
"start": {
"line": 110,
"column": 10
},
"end": {
"line": 110,
"column": 11
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2634,
"end": 2635,
"loc": {
"start": {
"line": 110,
"column": 11
},
"end": {
"line": 110,
"column": 12
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2636,
"end": 2637,
"loc": {
"start": {
"line": 110,
"column": 13
},
"end": {
"line": 110,
"column": 14
}
}
},
{
"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": 2647,
"end": 2653,
"loc": {
"start": {
"line": 111,
"column": 8
},
"end": {
"line": 111,
"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": 2654,
"end": 2658,
"loc": {
"start": {
"line": 111,
"column": 15
},
"end": {
"line": 111,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2658,
"end": 2659,
"loc": {
"start": {
"line": 111,
"column": 19
},
"end": {
"line": 111,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 2659,
"end": 2660,
"loc": {
"start": {
"line": 111,
"column": 20
},
"end": {
"line": 111,
"column": 21
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 2661,
"end": 2662,
"loc": {
"start": {
"line": 111,
"column": 22
},
"end": {
"line": 111,
"column": 23
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2663,
"end": 2667,
"loc": {
"start": {
"line": 111,
"column": 24
},
"end": {
"line": 111,
"column": 28
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2667,
"end": 2668,
"loc": {
"start": {
"line": 111,
"column": 28
},
"end": {
"line": 111,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "h",
"start": 2668,
"end": 2669,
"loc": {
"start": {
"line": 111,
"column": 29
},
"end": {
"line": 111,
"column": 30
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2669,
"end": 2670,
"loc": {
"start": {
"line": 111,
"column": 30
},
"end": {
"line": 111,
"column": 31
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2676,
"end": 2677,
"loc": {
"start": {
"line": 112,
"column": 4
},
"end": {
"line": 112,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns Top, Right, Bottom, Left\r\n * @returns {[number, number, number, number]}\r\n ",
"start": 2685,
"end": 2790,
"loc": {
"start": {
"line": 114,
"column": 4
},
"end": {
"line": 117,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "trbl",
"start": 2796,
"end": 2800,
"loc": {
"start": {
"line": 118,
"column": 4
},
"end": {
"line": 118,
"column": 8
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2800,
"end": 2801,
"loc": {
"start": {
"line": 118,
"column": 8
},
"end": {
"line": 118,
"column": 9
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2801,
"end": 2802,
"loc": {
"start": {
"line": 118,
"column": 9
},
"end": {
"line": 118,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2803,
"end": 2804,
"loc": {
"start": {
"line": 118,
"column": 11
},
"end": {
"line": 118,
"column": 12
}
}
},
{
"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": 2814,
"end": 2820,
"loc": {
"start": {
"line": 119,
"column": 8
},
"end": {
"line": 119,
"column": 14
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2821,
"end": 2822,
"loc": {
"start": {
"line": 119,
"column": 15
},
"end": {
"line": 119,
"column": 16
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2822,
"end": 2826,
"loc": {
"start": {
"line": 119,
"column": 16
},
"end": {
"line": 119,
"column": 20
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2826,
"end": 2827,
"loc": {
"start": {
"line": 119,
"column": 20
},
"end": {
"line": 119,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 2827,
"end": 2828,
"loc": {
"start": {
"line": 119,
"column": 21
},
"end": {
"line": 119,
"column": 22
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2828,
"end": 2829,
"loc": {
"start": {
"line": 119,
"column": 22
},
"end": {
"line": 119,
"column": 23
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2830,
"end": 2834,
"loc": {
"start": {
"line": 119,
"column": 24
},
"end": {
"line": 119,
"column": 28
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2834,
"end": 2835,
"loc": {
"start": {
"line": 119,
"column": 28
},
"end": {
"line": 119,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 2835,
"end": 2840,
"loc": {
"start": {
"line": 119,
"column": 29
},
"end": {
"line": 119,
"column": 34
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2840,
"end": 2841,
"loc": {
"start": {
"line": 119,
"column": 34
},
"end": {
"line": 119,
"column": 35
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2841,
"end": 2842,
"loc": {
"start": {
"line": 119,
"column": 35
},
"end": {
"line": 119,
"column": 36
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2842,
"end": 2843,
"loc": {
"start": {
"line": 119,
"column": 36
},
"end": {
"line": 119,
"column": 37
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2844,
"end": 2848,
"loc": {
"start": {
"line": 119,
"column": 38
},
"end": {
"line": 119,
"column": 42
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2848,
"end": 2849,
"loc": {
"start": {
"line": 119,
"column": 42
},
"end": {
"line": 119,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 2849,
"end": 2855,
"loc": {
"start": {
"line": 119,
"column": 43
},
"end": {
"line": 119,
"column": 49
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2855,
"end": 2856,
"loc": {
"start": {
"line": 119,
"column": 49
},
"end": {
"line": 119,
"column": 50
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2856,
"end": 2857,
"loc": {
"start": {
"line": 119,
"column": 50
},
"end": {
"line": 119,
"column": 51
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2857,
"end": 2858,
"loc": {
"start": {
"line": 119,
"column": 51
},
"end": {
"line": 119,
"column": 52
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 2859,
"end": 2863,
"loc": {
"start": {
"line": 119,
"column": 53
},
"end": {
"line": 119,
"column": 57
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2863,
"end": 2864,
"loc": {
"start": {
"line": 119,
"column": 57
},
"end": {
"line": 119,
"column": 58
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 2864,
"end": 2865,
"loc": {
"start": {
"line": 119,
"column": 58
},
"end": {
"line": 119,
"column": 59
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2865,
"end": 2866,
"loc": {
"start": {
"line": 119,
"column": 59
},
"end": {
"line": 119,
"column": 60
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2866,
"end": 2867,
"loc": {
"start": {
"line": 119,
"column": 60
},
"end": {
"line": 119,
"column": 61
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2873,
"end": 2874,
"loc": {
"start": {
"line": 120,
"column": 4
},
"end": {
"line": 120,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns the center of the rect\r\n * @returns {Vector}\r\n ",
"start": 2882,
"end": 2959,
"loc": {
"start": {
"line": 122,
"column": 4
},
"end": {
"line": 125,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getCenter",
"start": 2965,
"end": 2974,
"loc": {
"start": {
"line": 126,
"column": 4
},
"end": {
"line": 126,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2974,
"end": 2975,
"loc": {
"start": {
"line": 126,
"column": 13
},
"end": {
"line": 126,
"column": 14
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2975,
"end": 2976,
"loc": {
"start": {
"line": 126,
"column": 14
},
"end": {
"line": 126,
"column": 15
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2977,
"end": 2978,
"loc": {
"start": {
"line": 126,
"column": 16
},
"end": {
"line": 126,
"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": 2988,
"end": 2994,
"loc": {
"start": {
"line": 127,
"column": 8
},
"end": {
"line": 127,
"column": 14
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 2995,
"end": 2998,
"loc": {
"start": {
"line": 127,
"column": 15
},
"end": {
"line": 127,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Vector",
"start": 2999,
"end": 3005,
"loc": {
"start": {
"line": 127,
"column": 19
},
"end": {
"line": 127,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3005,
"end": 3006,
"loc": {
"start": {
"line": 127,
"column": 25
},
"end": {
"line": 127,
"column": 26
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3006,
"end": 3010,
"loc": {
"start": {
"line": 127,
"column": 26
},
"end": {
"line": 127,
"column": 30
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3010,
"end": 3011,
"loc": {
"start": {
"line": 127,
"column": 30
},
"end": {
"line": 127,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 3011,
"end": 3012,
"loc": {
"start": {
"line": 127,
"column": 31
},
"end": {
"line": 127,
"column": 32
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 3013,
"end": 3014,
"loc": {
"start": {
"line": 127,
"column": 33
},
"end": {
"line": 127,
"column": 34
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3015,
"end": 3019,
"loc": {
"start": {
"line": 127,
"column": 35
},
"end": {
"line": 127,
"column": 39
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3019,
"end": 3020,
"loc": {
"start": {
"line": 127,
"column": 39
},
"end": {
"line": 127,
"column": 40
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "w",
"start": 3020,
"end": 3021,
"loc": {
"start": {
"line": 127,
"column": 40
},
"end": {
"line": 127,
"column": 41
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 3022,
"end": 3023,
"loc": {
"start": {
"line": 127,
"column": 42
},
"end": {
"line": 127,
"column": 43
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 2,
"start": 3024,
"end": 3025,
"loc": {
"start": {
"line": 127,
"column": 44
},
"end": {
"line": 127,
"column": 45
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3025,
"end": 3026,
"loc": {
"start": {
"line": 127,
"column": 45
},
"end": {
"line": 127,
"column": 46
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3027,
"end": 3031,
"loc": {
"start": {
"line": 127,
"column": 47
},
"end": {
"line": 127,
"column": 51
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3031,
"end": 3032,
"loc": {
"start": {
"line": 127,
"column": 51
},
"end": {
"line": 127,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 3032,
"end": 3033,
"loc": {
"start": {
"line": 127,
"column": 52
},
"end": {
"line": 127,
"column": 53
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 3034,
"end": 3035,
"loc": {
"start": {
"line": 127,
"column": 54
},
"end": {
"line": 127,
"column": 55
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3036,
"end": 3040,
"loc": {
"start": {
"line": 127,
"column": 56
},
"end": {
"line": 127,
"column": 60
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3040,
"end": 3041,
"loc": {
"start": {
"line": 127,
"column": 60
},
"end": {
"line": 127,
"column": 61
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "h",
"start": 3041,
"end": 3042,
"loc": {
"start": {
"line": 127,
"column": 61
},
"end": {
"line": 127,
"column": 62
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 3043,
"end": 3044,
"loc": {
"start": {
"line": 127,
"column": 63
},
"end": {
"line": 127,
"column": 64
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 2,
"start": 3045,
"end": 3046,
"loc": {
"start": {
"line": 127,
"column": 65
},
"end": {
"line": 127,
"column": 66
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3046,
"end": 3047,
"loc": {
"start": {
"line": 127,
"column": 66
},
"end": {
"line": 127,
"column": 67
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3047,
"end": 3048,
"loc": {
"start": {
"line": 127,
"column": 67
},
"end": {
"line": 127,
"column": 68
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3054,
"end": 3055,
"loc": {
"start": {
"line": 128,
"column": 4
},
"end": {
"line": 128,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Sets the right side of the rect without moving it\r\n * @param {number} right\r\n ",
"start": 3063,
"end": 3163,
"loc": {
"start": {
"line": 130,
"column": 4
},
"end": {
"line": 133,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "setRight",
"start": 3169,
"end": 3177,
"loc": {
"start": {
"line": 134,
"column": 4
},
"end": {
"line": 134,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3177,
"end": 3178,
"loc": {
"start": {
"line": 134,
"column": 12
},
"end": {
"line": 134,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 3178,
"end": 3183,
"loc": {
"start": {
"line": 134,
"column": 13
},
"end": {
"line": 134,
"column": 18
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3183,
"end": 3184,
"loc": {
"start": {
"line": 134,
"column": 18
},
"end": {
"line": 134,
"column": 19
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3185,
"end": 3186,
"loc": {
"start": {
"line": 134,
"column": 20
},
"end": {
"line": 134,
"column": 21
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3196,
"end": 3200,
"loc": {
"start": {
"line": 135,
"column": 8
},
"end": {
"line": 135,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3200,
"end": 3201,
"loc": {
"start": {
"line": 135,
"column": 12
},
"end": {
"line": 135,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "w",
"start": 3201,
"end": 3202,
"loc": {
"start": {
"line": 135,
"column": 13
},
"end": {
"line": 135,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3203,
"end": 3204,
"loc": {
"start": {
"line": 135,
"column": 15
},
"end": {
"line": 135,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 3205,
"end": 3210,
"loc": {
"start": {
"line": 135,
"column": 17
},
"end": {
"line": 135,
"column": 22
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 3211,
"end": 3212,
"loc": {
"start": {
"line": 135,
"column": 23
},
"end": {
"line": 135,
"column": 24
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3213,
"end": 3217,
"loc": {
"start": {
"line": 135,
"column": 25
},
"end": {
"line": 135,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3217,
"end": 3218,
"loc": {
"start": {
"line": 135,
"column": 29
},
"end": {
"line": 135,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 3218,
"end": 3219,
"loc": {
"start": {
"line": 135,
"column": 30
},
"end": {
"line": 135,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3219,
"end": 3220,
"loc": {
"start": {
"line": 135,
"column": 31
},
"end": {
"line": 135,
"column": 32
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3226,
"end": 3227,
"loc": {
"start": {
"line": 136,
"column": 4
},
"end": {
"line": 136,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Sets the bottom side of the rect without moving it\r\n * @param {number} bottom\r\n ",
"start": 3235,
"end": 3337,
"loc": {
"start": {
"line": 138,
"column": 4
},
"end": {
"line": 141,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "setBottom",
"start": 3343,
"end": 3352,
"loc": {
"start": {
"line": 142,
"column": 4
},
"end": {
"line": 142,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3352,
"end": 3353,
"loc": {
"start": {
"line": 142,
"column": 13
},
"end": {
"line": 142,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 3353,
"end": 3359,
"loc": {
"start": {
"line": 142,
"column": 14
},
"end": {
"line": 142,
"column": 20
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3359,
"end": 3360,
"loc": {
"start": {
"line": 142,
"column": 20
},
"end": {
"line": 142,
"column": 21
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3361,
"end": 3362,
"loc": {
"start": {
"line": 142,
"column": 22
},
"end": {
"line": 142,
"column": 23
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3372,
"end": 3376,
"loc": {
"start": {
"line": 143,
"column": 8
},
"end": {
"line": 143,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3376,
"end": 3377,
"loc": {
"start": {
"line": 143,
"column": 12
},
"end": {
"line": 143,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "h",
"start": 3377,
"end": 3378,
"loc": {
"start": {
"line": 143,
"column": 13
},
"end": {
"line": 143,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3379,
"end": 3380,
"loc": {
"start": {
"line": 143,
"column": 15
},
"end": {
"line": 143,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 3381,
"end": 3387,
"loc": {
"start": {
"line": 143,
"column": 17
},
"end": {
"line": 143,
"column": 23
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 3388,
"end": 3389,
"loc": {
"start": {
"line": 143,
"column": 24
},
"end": {
"line": 143,
"column": 25
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3390,
"end": 3394,
"loc": {
"start": {
"line": 143,
"column": 26
},
"end": {
"line": 143,
"column": 30
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3394,
"end": 3395,
"loc": {
"start": {
"line": 143,
"column": 30
},
"end": {
"line": 143,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 3395,
"end": 3396,
"loc": {
"start": {
"line": 143,
"column": 31
},
"end": {
"line": 143,
"column": 32
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3396,
"end": 3397,
"loc": {
"start": {
"line": 143,
"column": 32
},
"end": {
"line": 143,
"column": 33
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3403,
"end": 3404,
"loc": {
"start": {
"line": 144,
"column": 4
},
"end": {
"line": 144,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Sets the top side of the rect without scaling it\r\n * @param {number} top\r\n ",
"start": 3412,
"end": 3509,
"loc": {
"start": {
"line": 146,
"column": 4
},
"end": {
"line": 149,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "setTop",
"start": 3515,
"end": 3521,
"loc": {
"start": {
"line": 150,
"column": 4
},
"end": {
"line": 150,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3521,
"end": 3522,
"loc": {
"start": {
"line": 150,
"column": 10
},
"end": {
"line": 150,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 3522,
"end": 3525,
"loc": {
"start": {
"line": 150,
"column": 11
},
"end": {
"line": 150,
"column": 14
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3525,
"end": 3526,
"loc": {
"start": {
"line": 150,
"column": 14
},
"end": {
"line": 150,
"column": 15
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3527,
"end": 3528,
"loc": {
"start": {
"line": 150,
"column": 16
},
"end": {
"line": 150,
"column": 17
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 3538,
"end": 3543,
"loc": {
"start": {
"line": 151,
"column": 8
},
"end": {
"line": 151,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 3544,
"end": 3550,
"loc": {
"start": {
"line": 151,
"column": 14
},
"end": {
"line": 151,
"column": 20
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3551,
"end": 3552,
"loc": {
"start": {
"line": 151,
"column": 21
},
"end": {
"line": 151,
"column": 22
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3553,
"end": 3557,
"loc": {
"start": {
"line": 151,
"column": 23
},
"end": {
"line": 151,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3557,
"end": 3558,
"loc": {
"start": {
"line": 151,
"column": 27
},
"end": {
"line": 151,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 3558,
"end": 3564,
"loc": {
"start": {
"line": 151,
"column": 28
},
"end": {
"line": 151,
"column": 34
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3564,
"end": 3565,
"loc": {
"start": {
"line": 151,
"column": 34
},
"end": {
"line": 151,
"column": 35
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3565,
"end": 3566,
"loc": {
"start": {
"line": 151,
"column": 35
},
"end": {
"line": 151,
"column": 36
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3566,
"end": 3567,
"loc": {
"start": {
"line": 151,
"column": 36
},
"end": {
"line": 151,
"column": 37
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3577,
"end": 3581,
"loc": {
"start": {
"line": 152,
"column": 8
},
"end": {
"line": 152,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3581,
"end": 3582,
"loc": {
"start": {
"line": 152,
"column": 12
},
"end": {
"line": 152,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 3582,
"end": 3583,
"loc": {
"start": {
"line": 152,
"column": 13
},
"end": {
"line": 152,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3584,
"end": 3585,
"loc": {
"start": {
"line": 152,
"column": 15
},
"end": {
"line": 152,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 3586,
"end": 3589,
"loc": {
"start": {
"line": 152,
"column": 17
},
"end": {
"line": 152,
"column": 20
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3589,
"end": 3590,
"loc": {
"start": {
"line": 152,
"column": 20
},
"end": {
"line": 152,
"column": 21
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3600,
"end": 3604,
"loc": {
"start": {
"line": 153,
"column": 8
},
"end": {
"line": 153,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3604,
"end": 3605,
"loc": {
"start": {
"line": 153,
"column": 12
},
"end": {
"line": 153,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "setBottom",
"start": 3605,
"end": 3614,
"loc": {
"start": {
"line": 153,
"column": 13
},
"end": {
"line": 153,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3614,
"end": 3615,
"loc": {
"start": {
"line": 153,
"column": 22
},
"end": {
"line": 153,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 3615,
"end": 3621,
"loc": {
"start": {
"line": 153,
"column": 23
},
"end": {
"line": 153,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3621,
"end": 3622,
"loc": {
"start": {
"line": 153,
"column": 29
},
"end": {
"line": 153,
"column": 30
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3622,
"end": 3623,
"loc": {
"start": {
"line": 153,
"column": 30
},
"end": {
"line": 153,
"column": 31
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3629,
"end": 3630,
"loc": {
"start": {
"line": 154,
"column": 4
},
"end": {
"line": 154,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Sets the left side of the rect without scaling it\r\n * @param {number} left\r\n ",
"start": 3638,
"end": 3737,
"loc": {
"start": {
"line": 156,
"column": 4
},
"end": {
"line": 159,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "setLeft",
"start": 3743,
"end": 3750,
"loc": {
"start": {
"line": 160,
"column": 4
},
"end": {
"line": 160,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3750,
"end": 3751,
"loc": {
"start": {
"line": 160,
"column": 11
},
"end": {
"line": 160,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 3751,
"end": 3755,
"loc": {
"start": {
"line": 160,
"column": 12
},
"end": {
"line": 160,
"column": 16
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3755,
"end": 3756,
"loc": {
"start": {
"line": 160,
"column": 16
},
"end": {
"line": 160,
"column": 17
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3757,
"end": 3758,
"loc": {
"start": {
"line": 160,
"column": 18
},
"end": {
"line": 160,
"column": 19
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 3768,
"end": 3773,
"loc": {
"start": {
"line": 161,
"column": 8
},
"end": {
"line": 161,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 3774,
"end": 3779,
"loc": {
"start": {
"line": 161,
"column": 14
},
"end": {
"line": 161,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3780,
"end": 3781,
"loc": {
"start": {
"line": 161,
"column": 20
},
"end": {
"line": 161,
"column": 21
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3782,
"end": 3786,
"loc": {
"start": {
"line": 161,
"column": 22
},
"end": {
"line": 161,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3786,
"end": 3787,
"loc": {
"start": {
"line": 161,
"column": 26
},
"end": {
"line": 161,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 3787,
"end": 3792,
"loc": {
"start": {
"line": 161,
"column": 27
},
"end": {
"line": 161,
"column": 32
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3792,
"end": 3793,
"loc": {
"start": {
"line": 161,
"column": 32
},
"end": {
"line": 161,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3793,
"end": 3794,
"loc": {
"start": {
"line": 161,
"column": 33
},
"end": {
"line": 161,
"column": 34
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3794,
"end": 3795,
"loc": {
"start": {
"line": 161,
"column": 34
},
"end": {
"line": 161,
"column": 35
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3805,
"end": 3809,
"loc": {
"start": {
"line": 162,
"column": 8
},
"end": {
"line": 162,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3809,
"end": 3810,
"loc": {
"start": {
"line": 162,
"column": 12
},
"end": {
"line": 162,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 3810,
"end": 3811,
"loc": {
"start": {
"line": 162,
"column": 13
},
"end": {
"line": 162,
"column": 14
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 3812,
"end": 3813,
"loc": {
"start": {
"line": 162,
"column": 15
},
"end": {
"line": 162,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 3814,
"end": 3818,
"loc": {
"start": {
"line": 162,
"column": 17
},
"end": {
"line": 162,
"column": 21
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3818,
"end": 3819,
"loc": {
"start": {
"line": 162,
"column": 21
},
"end": {
"line": 162,
"column": 22
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3829,
"end": 3833,
"loc": {
"start": {
"line": 163,
"column": 8
},
"end": {
"line": 163,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3833,
"end": 3834,
"loc": {
"start": {
"line": 163,
"column": 12
},
"end": {
"line": 163,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "setRight",
"start": 3834,
"end": 3842,
"loc": {
"start": {
"line": 163,
"column": 13
},
"end": {
"line": 163,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3842,
"end": 3843,
"loc": {
"start": {
"line": 163,
"column": 21
},
"end": {
"line": 163,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 3843,
"end": 3848,
"loc": {
"start": {
"line": 163,
"column": 22
},
"end": {
"line": 163,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3848,
"end": 3849,
"loc": {
"start": {
"line": 163,
"column": 27
},
"end": {
"line": 163,
"column": 28
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3849,
"end": 3850,
"loc": {
"start": {
"line": 163,
"column": 28
},
"end": {
"line": 163,
"column": 29
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3856,
"end": 3857,
"loc": {
"start": {
"line": 164,
"column": 4
},
"end": {
"line": 164,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns the top left point\r\n * @returns {Vector}\r\n ",
"start": 3865,
"end": 3938,
"loc": {
"start": {
"line": 166,
"column": 4
},
"end": {
"line": 169,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "topLeft",
"start": 3944,
"end": 3951,
"loc": {
"start": {
"line": 170,
"column": 4
},
"end": {
"line": 170,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3951,
"end": 3952,
"loc": {
"start": {
"line": 170,
"column": 11
},
"end": {
"line": 170,
"column": 12
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3952,
"end": 3953,
"loc": {
"start": {
"line": 170,
"column": 12
},
"end": {
"line": 170,
"column": 13
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3954,
"end": 3955,
"loc": {
"start": {
"line": 170,
"column": 14
},
"end": {
"line": 170,
"column": 15
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 3965,
"end": 3971,
"loc": {
"start": {
"line": 171,
"column": 8
},
"end": {
"line": 171,
"column": 14
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 3972,
"end": 3975,
"loc": {
"start": {
"line": 171,
"column": 15
},
"end": {
"line": 171,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Vector",
"start": 3976,
"end": 3982,
"loc": {
"start": {
"line": 171,
"column": 19
},
"end": {
"line": 171,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3982,
"end": 3983,
"loc": {
"start": {
"line": 171,
"column": 25
},
"end": {
"line": 171,
"column": 26
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3983,
"end": 3987,
"loc": {
"start": {
"line": 171,
"column": 26
},
"end": {
"line": 171,
"column": 30
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3987,
"end": 3988,
"loc": {
"start": {
"line": 171,
"column": 30
},
"end": {
"line": 171,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 3988,
"end": 3989,
"loc": {
"start": {
"line": 171,
"column": 31
},
"end": {
"line": 171,
"column": 32
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3989,
"end": 3990,
"loc": {
"start": {
"line": 171,
"column": 32
},
"end": {
"line": 171,
"column": 33
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 3991,
"end": 3995,
"loc": {
"start": {
"line": 171,
"column": 34
},
"end": {
"line": 171,
"column": 38
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3995,
"end": 3996,
"loc": {
"start": {
"line": 171,
"column": 38
},
"end": {
"line": 171,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 3996,
"end": 3997,
"loc": {
"start": {
"line": 171,
"column": 39
},
"end": {
"line": 171,
"column": 40
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 3997,
"end": 3998,
"loc": {
"start": {
"line": 171,
"column": 40
},
"end": {
"line": 171,
"column": 41
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 3998,
"end": 3999,
"loc": {
"start": {
"line": 171,
"column": 41
},
"end": {
"line": 171,
"column": 42
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4005,
"end": 4006,
"loc": {
"start": {
"line": 172,
"column": 4
},
"end": {
"line": 172,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns the bottom left point\r\n * @returns {Vector}\r\n ",
"start": 4014,
"end": 4090,
"loc": {
"start": {
"line": 174,
"column": 4
},
"end": {
"line": 177,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottomRight",
"start": 4096,
"end": 4107,
"loc": {
"start": {
"line": 178,
"column": 4
},
"end": {
"line": 178,
"column": 15
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4107,
"end": 4108,
"loc": {
"start": {
"line": 178,
"column": 15
},
"end": {
"line": 178,
"column": 16
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4108,
"end": 4109,
"loc": {
"start": {
"line": 178,
"column": 16
},
"end": {
"line": 178,
"column": 17
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4110,
"end": 4111,
"loc": {
"start": {
"line": 178,
"column": 18
},
"end": {
"line": 178,
"column": 19
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 4121,
"end": 4127,
"loc": {
"start": {
"line": 179,
"column": 8
},
"end": {
"line": 179,
"column": 14
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 4128,
"end": 4131,
"loc": {
"start": {
"line": 179,
"column": 15
},
"end": {
"line": 179,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Vector",
"start": 4132,
"end": 4138,
"loc": {
"start": {
"line": 179,
"column": 19
},
"end": {
"line": 179,
"column": 25
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4138,
"end": 4139,
"loc": {
"start": {
"line": 179,
"column": 25
},
"end": {
"line": 179,
"column": 26
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 4139,
"end": 4143,
"loc": {
"start": {
"line": 179,
"column": 26
},
"end": {
"line": 179,
"column": 30
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4143,
"end": 4144,
"loc": {
"start": {
"line": 179,
"column": 30
},
"end": {
"line": 179,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 4144,
"end": 4149,
"loc": {
"start": {
"line": 179,
"column": 31
},
"end": {
"line": 179,
"column": 36
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4149,
"end": 4150,
"loc": {
"start": {
"line": 179,
"column": 36
},
"end": {
"line": 179,
"column": 37
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4150,
"end": 4151,
"loc": {
"start": {
"line": 179,
"column": 37
},
"end": {
"line": 179,
"column": 38
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4151,
"end": 4152,
"loc": {
"start": {
"line": 179,
"column": 38
},
"end": {
"line": 179,
"column": 39
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 4153,
"end": 4157,
"loc": {
"start": {
"line": 179,
"column": 40
},
"end": {
"line": 179,
"column": 44
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4157,
"end": 4158,
"loc": {
"start": {
"line": 179,
"column": 44
},
"end": {
"line": 179,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 4158,
"end": 4164,
"loc": {
"start": {
"line": 179,
"column": 45
},
"end": {
"line": 179,
"column": 51
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4164,
"end": 4165,
"loc": {
"start": {
"line": 179,
"column": 51
},
"end": {
"line": 179,
"column": 52
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4165,
"end": 4166,
"loc": {
"start": {
"line": 179,
"column": 52
},
"end": {
"line": 179,
"column": 53
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4166,
"end": 4167,
"loc": {
"start": {
"line": 179,
"column": 53
},
"end": {
"line": 179,
"column": 54
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4167,
"end": 4168,
"loc": {
"start": {
"line": 179,
"column": 54
},
"end": {
"line": 179,
"column": 55
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4174,
"end": 4175,
"loc": {
"start": {
"line": 180,
"column": 4
},
"end": {
"line": 180,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Moves the rectangle by the given parameters\r\n * @param {number} x\r\n * @param {number} y\r\n ",
"start": 4183,
"end": 4299,
"loc": {
"start": {
"line": 182,
"column": 4
},
"end": {
"line": 186,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "moveBy",
"start": 4305,
"end": 4311,
"loc": {
"start": {
"line": 187,
"column": 4
},
"end": {
"line": 187,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4311,
"end": 4312,
"loc": {
"start": {
"line": 187,
"column": 10
},
"end": {
"line": 187,
"column": 11
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 4312,
"end": 4313,
"loc": {
"start": {
"line": 187,
"column": 11
},
"end": {
"line": 187,
"column": 12
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4313,
"end": 4314,
"loc": {
"start": {
"line": 187,
"column": 12
},
"end": {
"line": 187,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 4315,
"end": 4316,
"loc": {
"start": {
"line": 187,
"column": 14
},
"end": {
"line": 187,
"column": 15
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4316,
"end": 4317,
"loc": {
"start": {
"line": 187,
"column": 15
},
"end": {
"line": 187,
"column": 16
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4318,
"end": 4319,
"loc": {
"start": {
"line": 187,
"column": 17
},
"end": {
"line": 187,
"column": 18
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 4329,
"end": 4333,
"loc": {
"start": {
"line": 188,
"column": 8
},
"end": {
"line": 188,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4333,
"end": 4334,
"loc": {
"start": {
"line": 188,
"column": 12
},
"end": {
"line": 188,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 4334,
"end": 4335,
"loc": {
"start": {
"line": 188,
"column": 13
},
"end": {
"line": 188,
"column": 14
}
}
},
{
"type": {
"label": "_=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "+=",
"start": 4336,
"end": 4338,
"loc": {
"start": {
"line": 188,
"column": 15
},
"end": {
"line": 188,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 4339,
"end": 4340,
"loc": {
"start": {
"line": 188,
"column": 18
},
"end": {
"line": 188,
"column": 19
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4340,
"end": 4341,
"loc": {
"start": {
"line": 188,
"column": 19
},
"end": {
"line": 188,
"column": 20
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 4351,
"end": 4355,
"loc": {
"start": {
"line": 189,
"column": 8
},
"end": {
"line": 189,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4355,
"end": 4356,
"loc": {
"start": {
"line": 189,
"column": 12
},
"end": {
"line": 189,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 4356,
"end": 4357,
"loc": {
"start": {
"line": 189,
"column": 13
},
"end": {
"line": 189,
"column": 14
}
}
},
{
"type": {
"label": "_=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "+=",
"start": 4358,
"end": 4360,
"loc": {
"start": {
"line": 189,
"column": 15
},
"end": {
"line": 189,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 4361,
"end": 4362,
"loc": {
"start": {
"line": 189,
"column": 18
},
"end": {
"line": 189,
"column": 19
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4362,
"end": 4363,
"loc": {
"start": {
"line": 189,
"column": 19
},
"end": {
"line": 189,
"column": 20
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4369,
"end": 4370,
"loc": {
"start": {
"line": 190,
"column": 4
},
"end": {
"line": 190,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Moves the rectangle by the given vector\r\n * @param {Vector} vec\r\n ",
"start": 4378,
"end": 4466,
"loc": {
"start": {
"line": 192,
"column": 4
},
"end": {
"line": 195,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "moveByVector",
"start": 4472,
"end": 4484,
"loc": {
"start": {
"line": 196,
"column": 4
},
"end": {
"line": 196,
"column": 16
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4484,
"end": 4485,
"loc": {
"start": {
"line": 196,
"column": 16
},
"end": {
"line": 196,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "vec",
"start": 4485,
"end": 4488,
"loc": {
"start": {
"line": 196,
"column": 17
},
"end": {
"line": 196,
"column": 20
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4488,
"end": 4489,
"loc": {
"start": {
"line": 196,
"column": 20
},
"end": {
"line": 196,
"column": 21
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4490,
"end": 4491,
"loc": {
"start": {
"line": 196,
"column": 22
},
"end": {
"line": 196,
"column": 23
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 4501,
"end": 4505,
"loc": {
"start": {
"line": 197,
"column": 8
},
"end": {
"line": 197,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4505,
"end": 4506,
"loc": {
"start": {
"line": 197,
"column": 12
},
"end": {
"line": 197,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 4506,
"end": 4507,
"loc": {
"start": {
"line": 197,
"column": 13
},
"end": {
"line": 197,
"column": 14
}
}
},
{
"type": {
"label": "_=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "+=",
"start": 4508,
"end": 4510,
"loc": {
"start": {
"line": 197,
"column": 15
},
"end": {
"line": 197,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "vec",
"start": 4511,
"end": 4514,
"loc": {
"start": {
"line": 197,
"column": 18
},
"end": {
"line": 197,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4514,
"end": 4515,
"loc": {
"start": {
"line": 197,
"column": 21
},
"end": {
"line": 197,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 4515,
"end": 4516,
"loc": {
"start": {
"line": 197,
"column": 22
},
"end": {
"line": 197,
"column": 23
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4516,
"end": 4517,
"loc": {
"start": {
"line": 197,
"column": 23
},
"end": {
"line": 197,
"column": 24
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 4527,
"end": 4531,
"loc": {
"start": {
"line": 198,
"column": 8
},
"end": {
"line": 198,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4531,
"end": 4532,
"loc": {
"start": {
"line": 198,
"column": 12
},
"end": {
"line": 198,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 4532,
"end": 4533,
"loc": {
"start": {
"line": 198,
"column": 13
},
"end": {
"line": 198,
"column": 14
}
}
},
{
"type": {
"label": "_=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "+=",
"start": 4534,
"end": 4536,
"loc": {
"start": {
"line": 198,
"column": 15
},
"end": {
"line": 198,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "vec",
"start": 4537,
"end": 4540,
"loc": {
"start": {
"line": 198,
"column": 18
},
"end": {
"line": 198,
"column": 21
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4540,
"end": 4541,
"loc": {
"start": {
"line": 198,
"column": 21
},
"end": {
"line": 198,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 4541,
"end": 4542,
"loc": {
"start": {
"line": 198,
"column": 22
},
"end": {
"line": 198,
"column": 23
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4542,
"end": 4543,
"loc": {
"start": {
"line": 198,
"column": 23
},
"end": {
"line": 198,
"column": 24
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4549,
"end": 4550,
"loc": {
"start": {
"line": 199,
"column": 4
},
"end": {
"line": 199,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Scales every parameter (w, h, x, y) by the given factor. Useful to transform from world to\r\n * tile space and vice versa\r\n * @param {number} factor\r\n ",
"start": 4558,
"end": 4734,
"loc": {
"start": {
"line": 201,
"column": 4
},
"end": {
"line": 205,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "allScaled",
"start": 4740,
"end": 4749,
"loc": {
"start": {
"line": 206,
"column": 4
},
"end": {
"line": 206,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4749,
"end": 4750,
"loc": {
"start": {
"line": 206,
"column": 13
},
"end": {
"line": 206,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "factor",
"start": 4750,
"end": 4756,
"loc": {
"start": {
"line": 206,
"column": 14
},
"end": {
"line": 206,
"column": 20
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4756,
"end": 4757,
"loc": {
"start": {
"line": 206,
"column": 20
},
"end": {
"line": 206,
"column": 21
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4758,
"end": 4759,
"loc": {
"start": {
"line": 206,
"column": 22
},
"end": {
"line": 206,
"column": 23
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 4769,
"end": 4775,
"loc": {
"start": {
"line": 207,
"column": 8
},
"end": {
"line": 207,
"column": 14
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 4776,
"end": 4779,
"loc": {
"start": {
"line": 207,
"column": 15
},
"end": {
"line": 207,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Rectangle",
"start": 4780,
"end": 4789,
"loc": {
"start": {
"line": 207,
"column": 19
},
"end": {
"line": 207,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4789,
"end": 4790,
"loc": {
"start": {
"line": 207,
"column": 28
},
"end": {
"line": 207,
"column": 29
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 4790,
"end": 4794,
"loc": {
"start": {
"line": 207,
"column": 29
},
"end": {
"line": 207,
"column": 33
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4794,
"end": 4795,
"loc": {
"start": {
"line": 207,
"column": 33
},
"end": {
"line": 207,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 4795,
"end": 4796,
"loc": {
"start": {
"line": 207,
"column": 34
},
"end": {
"line": 207,
"column": 35
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 4797,
"end": 4798,
"loc": {
"start": {
"line": 207,
"column": 36
},
"end": {
"line": 207,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "factor",
"start": 4799,
"end": 4805,
"loc": {
"start": {
"line": 207,
"column": 38
},
"end": {
"line": 207,
"column": 44
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4805,
"end": 4806,
"loc": {
"start": {
"line": 207,
"column": 44
},
"end": {
"line": 207,
"column": 45
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 4807,
"end": 4811,
"loc": {
"start": {
"line": 207,
"column": 46
},
"end": {
"line": 207,
"column": 50
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4811,
"end": 4812,
"loc": {
"start": {
"line": 207,
"column": 50
},
"end": {
"line": 207,
"column": 51
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 4812,
"end": 4813,
"loc": {
"start": {
"line": 207,
"column": 51
},
"end": {
"line": 207,
"column": 52
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 4814,
"end": 4815,
"loc": {
"start": {
"line": 207,
"column": 53
},
"end": {
"line": 207,
"column": 54
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "factor",
"start": 4816,
"end": 4822,
"loc": {
"start": {
"line": 207,
"column": 55
},
"end": {
"line": 207,
"column": 61
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4822,
"end": 4823,
"loc": {
"start": {
"line": 207,
"column": 61
},
"end": {
"line": 207,
"column": 62
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 4824,
"end": 4828,
"loc": {
"start": {
"line": 207,
"column": 63
},
"end": {
"line": 207,
"column": 67
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4828,
"end": 4829,
"loc": {
"start": {
"line": 207,
"column": 67
},
"end": {
"line": 207,
"column": 68
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "w",
"start": 4829,
"end": 4830,
"loc": {
"start": {
"line": 207,
"column": 68
},
"end": {
"line": 207,
"column": 69
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 4831,
"end": 4832,
"loc": {
"start": {
"line": 207,
"column": 70
},
"end": {
"line": 207,
"column": 71
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "factor",
"start": 4833,
"end": 4839,
"loc": {
"start": {
"line": 207,
"column": 72
},
"end": {
"line": 207,
"column": 78
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4839,
"end": 4840,
"loc": {
"start": {
"line": 207,
"column": 78
},
"end": {
"line": 207,
"column": 79
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 4841,
"end": 4845,
"loc": {
"start": {
"line": 207,
"column": 80
},
"end": {
"line": 207,
"column": 84
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4845,
"end": 4846,
"loc": {
"start": {
"line": 207,
"column": 84
},
"end": {
"line": 207,
"column": 85
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "h",
"start": 4846,
"end": 4847,
"loc": {
"start": {
"line": 207,
"column": 85
},
"end": {
"line": 207,
"column": 86
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 4848,
"end": 4849,
"loc": {
"start": {
"line": 207,
"column": 87
},
"end": {
"line": 207,
"column": 88
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "factor",
"start": 4850,
"end": 4856,
"loc": {
"start": {
"line": 207,
"column": 89
},
"end": {
"line": 207,
"column": 95
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4856,
"end": 4857,
"loc": {
"start": {
"line": 207,
"column": 95
},
"end": {
"line": 207,
"column": 96
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 4857,
"end": 4858,
"loc": {
"start": {
"line": 207,
"column": 96
},
"end": {
"line": 207,
"column": 97
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 4864,
"end": 4865,
"loc": {
"start": {
"line": 208,
"column": 4
},
"end": {
"line": 208,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Expands the rectangle in all directions\r\n * @param {number} amount\r\n * @returns {Rectangle} new rectangle\r\n ",
"start": 4873,
"end": 5007,
"loc": {
"start": {
"line": 210,
"column": 4
},
"end": {
"line": 214,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "expandedInAllDirections",
"start": 5013,
"end": 5036,
"loc": {
"start": {
"line": 215,
"column": 4
},
"end": {
"line": 215,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5036,
"end": 5037,
"loc": {
"start": {
"line": 215,
"column": 27
},
"end": {
"line": 215,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "amount",
"start": 5037,
"end": 5043,
"loc": {
"start": {
"line": 215,
"column": 28
},
"end": {
"line": 215,
"column": 34
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5043,
"end": 5044,
"loc": {
"start": {
"line": 215,
"column": 34
},
"end": {
"line": 215,
"column": 35
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5045,
"end": 5046,
"loc": {
"start": {
"line": 215,
"column": 36
},
"end": {
"line": 215,
"column": 37
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 5056,
"end": 5062,
"loc": {
"start": {
"line": 216,
"column": 8
},
"end": {
"line": 216,
"column": 14
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 5063,
"end": 5066,
"loc": {
"start": {
"line": 216,
"column": 15
},
"end": {
"line": 216,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Rectangle",
"start": 5067,
"end": 5076,
"loc": {
"start": {
"line": 216,
"column": 19
},
"end": {
"line": 216,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5076,
"end": 5077,
"loc": {
"start": {
"line": 216,
"column": 28
},
"end": {
"line": 216,
"column": 29
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 5077,
"end": 5081,
"loc": {
"start": {
"line": 216,
"column": 29
},
"end": {
"line": 216,
"column": 33
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5081,
"end": 5082,
"loc": {
"start": {
"line": 216,
"column": 33
},
"end": {
"line": 216,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 5082,
"end": 5083,
"loc": {
"start": {
"line": 216,
"column": 34
},
"end": {
"line": 216,
"column": 35
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 5084,
"end": 5085,
"loc": {
"start": {
"line": 216,
"column": 36
},
"end": {
"line": 216,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "amount",
"start": 5086,
"end": 5092,
"loc": {
"start": {
"line": 216,
"column": 38
},
"end": {
"line": 216,
"column": 44
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5092,
"end": 5093,
"loc": {
"start": {
"line": 216,
"column": 44
},
"end": {
"line": 216,
"column": 45
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 5094,
"end": 5098,
"loc": {
"start": {
"line": 216,
"column": 46
},
"end": {
"line": 216,
"column": 50
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5098,
"end": 5099,
"loc": {
"start": {
"line": 216,
"column": 50
},
"end": {
"line": 216,
"column": 51
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 5099,
"end": 5100,
"loc": {
"start": {
"line": 216,
"column": 51
},
"end": {
"line": 216,
"column": 52
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 5101,
"end": 5102,
"loc": {
"start": {
"line": 216,
"column": 53
},
"end": {
"line": 216,
"column": 54
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "amount",
"start": 5103,
"end": 5109,
"loc": {
"start": {
"line": 216,
"column": 55
},
"end": {
"line": 216,
"column": 61
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5109,
"end": 5110,
"loc": {
"start": {
"line": 216,
"column": 61
},
"end": {
"line": 216,
"column": 62
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 5111,
"end": 5115,
"loc": {
"start": {
"line": 216,
"column": 63
},
"end": {
"line": 216,
"column": 67
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5115,
"end": 5116,
"loc": {
"start": {
"line": 216,
"column": 67
},
"end": {
"line": 216,
"column": 68
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "w",
"start": 5116,
"end": 5117,
"loc": {
"start": {
"line": 216,
"column": 68
},
"end": {
"line": 216,
"column": 69
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 5118,
"end": 5119,
"loc": {
"start": {
"line": 216,
"column": 70
},
"end": {
"line": 216,
"column": 71
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 2,
"start": 5120,
"end": 5121,
"loc": {
"start": {
"line": 216,
"column": 72
},
"end": {
"line": 216,
"column": 73
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 5122,
"end": 5123,
"loc": {
"start": {
"line": 216,
"column": 74
},
"end": {
"line": 216,
"column": 75
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "amount",
"start": 5124,
"end": 5130,
"loc": {
"start": {
"line": 216,
"column": 76
},
"end": {
"line": 216,
"column": 82
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5130,
"end": 5131,
"loc": {
"start": {
"line": 216,
"column": 82
},
"end": {
"line": 216,
"column": 83
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 5132,
"end": 5136,
"loc": {
"start": {
"line": 216,
"column": 84
},
"end": {
"line": 216,
"column": 88
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5136,
"end": 5137,
"loc": {
"start": {
"line": 216,
"column": 88
},
"end": {
"line": 216,
"column": 89
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "h",
"start": 5137,
"end": 5138,
"loc": {
"start": {
"line": 216,
"column": 89
},
"end": {
"line": 216,
"column": 90
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 5139,
"end": 5140,
"loc": {
"start": {
"line": 216,
"column": 91
},
"end": {
"line": 216,
"column": 92
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 2,
"start": 5141,
"end": 5142,
"loc": {
"start": {
"line": 216,
"column": 93
},
"end": {
"line": 216,
"column": 94
}
}
},
{
"type": {
"label": "*",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "*",
"start": 5143,
"end": 5144,
"loc": {
"start": {
"line": 216,
"column": 95
},
"end": {
"line": 216,
"column": 96
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "amount",
"start": 5145,
"end": 5151,
"loc": {
"start": {
"line": 216,
"column": 97
},
"end": {
"line": 216,
"column": 103
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5151,
"end": 5152,
"loc": {
"start": {
"line": 216,
"column": 103
},
"end": {
"line": 216,
"column": 104
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5152,
"end": 5153,
"loc": {
"start": {
"line": 216,
"column": 104
},
"end": {
"line": 216,
"column": 105
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5159,
"end": 5160,
"loc": {
"start": {
"line": 217,
"column": 4
},
"end": {
"line": 217,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if the given rectangle is contained\r\n * @param {Rectangle} rect\r\n * @returns {boolean}\r\n ",
"start": 5168,
"end": 5291,
"loc": {
"start": {
"line": 219,
"column": 4
},
"end": {
"line": 223,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "containsRect",
"start": 5297,
"end": 5309,
"loc": {
"start": {
"line": 224,
"column": 4
},
"end": {
"line": 224,
"column": 16
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5309,
"end": 5310,
"loc": {
"start": {
"line": 224,
"column": 16
},
"end": {
"line": 224,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rect",
"start": 5310,
"end": 5314,
"loc": {
"start": {
"line": 224,
"column": 17
},
"end": {
"line": 224,
"column": 21
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5314,
"end": 5315,
"loc": {
"start": {
"line": 224,
"column": 21
},
"end": {
"line": 224,
"column": 22
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5316,
"end": 5317,
"loc": {
"start": {
"line": 224,
"column": 23
},
"end": {
"line": 224,
"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": 5327,
"end": 5333,
"loc": {
"start": {
"line": 225,
"column": 8
},
"end": {
"line": 225,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5334,
"end": 5335,
"loc": {
"start": {
"line": 225,
"column": 15
},
"end": {
"line": 225,
"column": 16
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 5349,
"end": 5353,
"loc": {
"start": {
"line": 226,
"column": 12
},
"end": {
"line": 226,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5353,
"end": 5354,
"loc": {
"start": {
"line": 226,
"column": 16
},
"end": {
"line": 226,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 5354,
"end": 5355,
"loc": {
"start": {
"line": 226,
"column": 17
},
"end": {
"line": 226,
"column": 18
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 5356,
"end": 5358,
"loc": {
"start": {
"line": 226,
"column": 19
},
"end": {
"line": 226,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rect",
"start": 5359,
"end": 5363,
"loc": {
"start": {
"line": 226,
"column": 22
},
"end": {
"line": 226,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5363,
"end": 5364,
"loc": {
"start": {
"line": 226,
"column": 26
},
"end": {
"line": 226,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 5364,
"end": 5369,
"loc": {
"start": {
"line": 226,
"column": 27
},
"end": {
"line": 226,
"column": 32
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5369,
"end": 5370,
"loc": {
"start": {
"line": 226,
"column": 32
},
"end": {
"line": 226,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5370,
"end": 5371,
"loc": {
"start": {
"line": 226,
"column": 33
},
"end": {
"line": 226,
"column": 34
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 5372,
"end": 5374,
"loc": {
"start": {
"line": 226,
"column": 35
},
"end": {
"line": 226,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rect",
"start": 5388,
"end": 5392,
"loc": {
"start": {
"line": 227,
"column": 12
},
"end": {
"line": 227,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5392,
"end": 5393,
"loc": {
"start": {
"line": 227,
"column": 16
},
"end": {
"line": 227,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 5393,
"end": 5394,
"loc": {
"start": {
"line": 227,
"column": 17
},
"end": {
"line": 227,
"column": 18
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 5395,
"end": 5397,
"loc": {
"start": {
"line": 227,
"column": 19
},
"end": {
"line": 227,
"column": 21
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 5398,
"end": 5402,
"loc": {
"start": {
"line": 227,
"column": 22
},
"end": {
"line": 227,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5402,
"end": 5403,
"loc": {
"start": {
"line": 227,
"column": 26
},
"end": {
"line": 227,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 5403,
"end": 5408,
"loc": {
"start": {
"line": 227,
"column": 27
},
"end": {
"line": 227,
"column": 32
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5408,
"end": 5409,
"loc": {
"start": {
"line": 227,
"column": 32
},
"end": {
"line": 227,
"column": 33
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5409,
"end": 5410,
"loc": {
"start": {
"line": 227,
"column": 33
},
"end": {
"line": 227,
"column": 34
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 5411,
"end": 5413,
"loc": {
"start": {
"line": 227,
"column": 35
},
"end": {
"line": 227,
"column": 37
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 5427,
"end": 5431,
"loc": {
"start": {
"line": 228,
"column": 12
},
"end": {
"line": 228,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5431,
"end": 5432,
"loc": {
"start": {
"line": 228,
"column": 16
},
"end": {
"line": 228,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 5432,
"end": 5433,
"loc": {
"start": {
"line": 228,
"column": 17
},
"end": {
"line": 228,
"column": 18
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 5434,
"end": 5436,
"loc": {
"start": {
"line": 228,
"column": 19
},
"end": {
"line": 228,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rect",
"start": 5437,
"end": 5441,
"loc": {
"start": {
"line": 228,
"column": 22
},
"end": {
"line": 228,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5441,
"end": 5442,
"loc": {
"start": {
"line": 228,
"column": 26
},
"end": {
"line": 228,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 5442,
"end": 5448,
"loc": {
"start": {
"line": 228,
"column": 27
},
"end": {
"line": 228,
"column": 33
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5448,
"end": 5449,
"loc": {
"start": {
"line": 228,
"column": 33
},
"end": {
"line": 228,
"column": 34
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5449,
"end": 5450,
"loc": {
"start": {
"line": 228,
"column": 34
},
"end": {
"line": 228,
"column": 35
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 5451,
"end": 5453,
"loc": {
"start": {
"line": 228,
"column": 36
},
"end": {
"line": 228,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rect",
"start": 5467,
"end": 5471,
"loc": {
"start": {
"line": 229,
"column": 12
},
"end": {
"line": 229,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5471,
"end": 5472,
"loc": {
"start": {
"line": 229,
"column": 16
},
"end": {
"line": 229,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 5472,
"end": 5473,
"loc": {
"start": {
"line": 229,
"column": 17
},
"end": {
"line": 229,
"column": 18
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 5474,
"end": 5476,
"loc": {
"start": {
"line": 229,
"column": 19
},
"end": {
"line": 229,
"column": 21
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 5477,
"end": 5481,
"loc": {
"start": {
"line": 229,
"column": 22
},
"end": {
"line": 229,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5481,
"end": 5482,
"loc": {
"start": {
"line": 229,
"column": 26
},
"end": {
"line": 229,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 5482,
"end": 5488,
"loc": {
"start": {
"line": 229,
"column": 27
},
"end": {
"line": 229,
"column": 33
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5488,
"end": 5489,
"loc": {
"start": {
"line": 229,
"column": 33
},
"end": {
"line": 229,
"column": 34
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5489,
"end": 5490,
"loc": {
"start": {
"line": 229,
"column": 34
},
"end": {
"line": 229,
"column": 35
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5500,
"end": 5501,
"loc": {
"start": {
"line": 230,
"column": 8
},
"end": {
"line": 230,
"column": 9
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5501,
"end": 5502,
"loc": {
"start": {
"line": 230,
"column": 9
},
"end": {
"line": 230,
"column": 10
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5508,
"end": 5509,
"loc": {
"start": {
"line": 231,
"column": 4
},
"end": {
"line": 231,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if this rectangle contains the other rectangle specified by the parameters\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {number} w\r\n * @param {number} h\r\n * @returns {boolean}\r\n ",
"start": 5517,
"end": 5751,
"loc": {
"start": {
"line": 233,
"column": 4
},
"end": {
"line": 240,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "containsRect4Params",
"start": 5757,
"end": 5776,
"loc": {
"start": {
"line": 241,
"column": 4
},
"end": {
"line": 241,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5776,
"end": 5777,
"loc": {
"start": {
"line": 241,
"column": 23
},
"end": {
"line": 241,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 5777,
"end": 5778,
"loc": {
"start": {
"line": 241,
"column": 24
},
"end": {
"line": 241,
"column": 25
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5778,
"end": 5779,
"loc": {
"start": {
"line": 241,
"column": 25
},
"end": {
"line": 241,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 5780,
"end": 5781,
"loc": {
"start": {
"line": 241,
"column": 27
},
"end": {
"line": 241,
"column": 28
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5781,
"end": 5782,
"loc": {
"start": {
"line": 241,
"column": 28
},
"end": {
"line": 241,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "w",
"start": 5783,
"end": 5784,
"loc": {
"start": {
"line": 241,
"column": 30
},
"end": {
"line": 241,
"column": 31
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5784,
"end": 5785,
"loc": {
"start": {
"line": 241,
"column": 31
},
"end": {
"line": 241,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "h",
"start": 5786,
"end": 5787,
"loc": {
"start": {
"line": 241,
"column": 33
},
"end": {
"line": 241,
"column": 34
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5787,
"end": 5788,
"loc": {
"start": {
"line": 241,
"column": 34
},
"end": {
"line": 241,
"column": 35
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5789,
"end": 5790,
"loc": {
"start": {
"line": 241,
"column": 36
},
"end": {
"line": 241,
"column": 37
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 5800,
"end": 5806,
"loc": {
"start": {
"line": 242,
"column": 8
},
"end": {
"line": 242,
"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": 5807,
"end": 5811,
"loc": {
"start": {
"line": 242,
"column": 15
},
"end": {
"line": 242,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5811,
"end": 5812,
"loc": {
"start": {
"line": 242,
"column": 19
},
"end": {
"line": 242,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 5812,
"end": 5813,
"loc": {
"start": {
"line": 242,
"column": 20
},
"end": {
"line": 242,
"column": 21
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 5814,
"end": 5816,
"loc": {
"start": {
"line": 242,
"column": 22
},
"end": {
"line": 242,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 5817,
"end": 5818,
"loc": {
"start": {
"line": 242,
"column": 25
},
"end": {
"line": 242,
"column": 26
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 5819,
"end": 5820,
"loc": {
"start": {
"line": 242,
"column": 27
},
"end": {
"line": 242,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "w",
"start": 5821,
"end": 5822,
"loc": {
"start": {
"line": 242,
"column": 29
},
"end": {
"line": 242,
"column": 30
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 5823,
"end": 5825,
"loc": {
"start": {
"line": 242,
"column": 31
},
"end": {
"line": 242,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 5826,
"end": 5827,
"loc": {
"start": {
"line": 242,
"column": 34
},
"end": {
"line": 242,
"column": 35
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 5828,
"end": 5830,
"loc": {
"start": {
"line": 242,
"column": 36
},
"end": {
"line": 242,
"column": 38
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 5831,
"end": 5835,
"loc": {
"start": {
"line": 242,
"column": 39
},
"end": {
"line": 242,
"column": 43
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5835,
"end": 5836,
"loc": {
"start": {
"line": 242,
"column": 43
},
"end": {
"line": 242,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 5836,
"end": 5841,
"loc": {
"start": {
"line": 242,
"column": 44
},
"end": {
"line": 242,
"column": 49
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5841,
"end": 5842,
"loc": {
"start": {
"line": 242,
"column": 49
},
"end": {
"line": 242,
"column": 50
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5842,
"end": 5843,
"loc": {
"start": {
"line": 242,
"column": 50
},
"end": {
"line": 242,
"column": 51
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 5844,
"end": 5846,
"loc": {
"start": {
"line": 242,
"column": 52
},
"end": {
"line": 242,
"column": 54
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 5847,
"end": 5851,
"loc": {
"start": {
"line": 242,
"column": 55
},
"end": {
"line": 242,
"column": 59
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5851,
"end": 5852,
"loc": {
"start": {
"line": 242,
"column": 59
},
"end": {
"line": 242,
"column": 60
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 5852,
"end": 5853,
"loc": {
"start": {
"line": 242,
"column": 60
},
"end": {
"line": 242,
"column": 61
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 5854,
"end": 5856,
"loc": {
"start": {
"line": 242,
"column": 62
},
"end": {
"line": 242,
"column": 64
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 5857,
"end": 5858,
"loc": {
"start": {
"line": 242,
"column": 65
},
"end": {
"line": 242,
"column": 66
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 5859,
"end": 5860,
"loc": {
"start": {
"line": 242,
"column": 67
},
"end": {
"line": 242,
"column": 68
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "h",
"start": 5861,
"end": 5862,
"loc": {
"start": {
"line": 242,
"column": 69
},
"end": {
"line": 242,
"column": 70
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 5863,
"end": 5865,
"loc": {
"start": {
"line": 242,
"column": 71
},
"end": {
"line": 242,
"column": 73
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 5866,
"end": 5867,
"loc": {
"start": {
"line": 242,
"column": 74
},
"end": {
"line": 242,
"column": 75
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 5868,
"end": 5870,
"loc": {
"start": {
"line": 242,
"column": 76
},
"end": {
"line": 242,
"column": 78
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 5871,
"end": 5875,
"loc": {
"start": {
"line": 242,
"column": 79
},
"end": {
"line": 242,
"column": 83
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5875,
"end": 5876,
"loc": {
"start": {
"line": 242,
"column": 83
},
"end": {
"line": 242,
"column": 84
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 5876,
"end": 5882,
"loc": {
"start": {
"line": 242,
"column": 84
},
"end": {
"line": 242,
"column": 90
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5882,
"end": 5883,
"loc": {
"start": {
"line": 242,
"column": 90
},
"end": {
"line": 242,
"column": 91
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5883,
"end": 5884,
"loc": {
"start": {
"line": 242,
"column": 91
},
"end": {
"line": 242,
"column": 92
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 5884,
"end": 5885,
"loc": {
"start": {
"line": 242,
"column": 92
},
"end": {
"line": 242,
"column": 93
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 5891,
"end": 5892,
"loc": {
"start": {
"line": 243,
"column": 4
},
"end": {
"line": 243,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if the rectangle contains the given circle at (x, y) with the radius (radius)\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {number} radius\r\n * @returns {boolean}\r\n ",
"start": 5900,
"end": 6116,
"loc": {
"start": {
"line": 245,
"column": 4
},
"end": {
"line": 251,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "containsCircle",
"start": 6122,
"end": 6136,
"loc": {
"start": {
"line": 252,
"column": 4
},
"end": {
"line": 252,
"column": 18
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6136,
"end": 6137,
"loc": {
"start": {
"line": 252,
"column": 18
},
"end": {
"line": 252,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 6137,
"end": 6138,
"loc": {
"start": {
"line": 252,
"column": 19
},
"end": {
"line": 252,
"column": 20
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6138,
"end": 6139,
"loc": {
"start": {
"line": 252,
"column": 20
},
"end": {
"line": 252,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 6140,
"end": 6141,
"loc": {
"start": {
"line": 252,
"column": 22
},
"end": {
"line": 252,
"column": 23
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6141,
"end": 6142,
"loc": {
"start": {
"line": 252,
"column": 23
},
"end": {
"line": 252,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "radius",
"start": 6143,
"end": 6149,
"loc": {
"start": {
"line": 252,
"column": 25
},
"end": {
"line": 252,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6149,
"end": 6150,
"loc": {
"start": {
"line": 252,
"column": 31
},
"end": {
"line": 252,
"column": 32
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6151,
"end": 6152,
"loc": {
"start": {
"line": 252,
"column": 33
},
"end": {
"line": 252,
"column": 34
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 6162,
"end": 6168,
"loc": {
"start": {
"line": 253,
"column": 8
},
"end": {
"line": 253,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6169,
"end": 6170,
"loc": {
"start": {
"line": 253,
"column": 15
},
"end": {
"line": 253,
"column": 16
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 6184,
"end": 6188,
"loc": {
"start": {
"line": 254,
"column": 12
},
"end": {
"line": 254,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6188,
"end": 6189,
"loc": {
"start": {
"line": 254,
"column": 16
},
"end": {
"line": 254,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 6189,
"end": 6190,
"loc": {
"start": {
"line": 254,
"column": 17
},
"end": {
"line": 254,
"column": 18
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 6191,
"end": 6193,
"loc": {
"start": {
"line": 254,
"column": 19
},
"end": {
"line": 254,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 6194,
"end": 6195,
"loc": {
"start": {
"line": 254,
"column": 22
},
"end": {
"line": 254,
"column": 23
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 6196,
"end": 6197,
"loc": {
"start": {
"line": 254,
"column": 24
},
"end": {
"line": 254,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "radius",
"start": 6198,
"end": 6204,
"loc": {
"start": {
"line": 254,
"column": 26
},
"end": {
"line": 254,
"column": 32
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 6205,
"end": 6207,
"loc": {
"start": {
"line": 254,
"column": 33
},
"end": {
"line": 254,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 6221,
"end": 6222,
"loc": {
"start": {
"line": 255,
"column": 12
},
"end": {
"line": 255,
"column": 13
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 6223,
"end": 6224,
"loc": {
"start": {
"line": 255,
"column": 14
},
"end": {
"line": 255,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "radius",
"start": 6225,
"end": 6231,
"loc": {
"start": {
"line": 255,
"column": 16
},
"end": {
"line": 255,
"column": 22
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 6232,
"end": 6234,
"loc": {
"start": {
"line": 255,
"column": 23
},
"end": {
"line": 255,
"column": 25
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 6235,
"end": 6239,
"loc": {
"start": {
"line": 255,
"column": 26
},
"end": {
"line": 255,
"column": 30
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6239,
"end": 6240,
"loc": {
"start": {
"line": 255,
"column": 30
},
"end": {
"line": 255,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 6240,
"end": 6245,
"loc": {
"start": {
"line": 255,
"column": 31
},
"end": {
"line": 255,
"column": 36
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6245,
"end": 6246,
"loc": {
"start": {
"line": 255,
"column": 36
},
"end": {
"line": 255,
"column": 37
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6246,
"end": 6247,
"loc": {
"start": {
"line": 255,
"column": 37
},
"end": {
"line": 255,
"column": 38
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 6248,
"end": 6250,
"loc": {
"start": {
"line": 255,
"column": 39
},
"end": {
"line": 255,
"column": 41
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 6264,
"end": 6268,
"loc": {
"start": {
"line": 256,
"column": 12
},
"end": {
"line": 256,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6268,
"end": 6269,
"loc": {
"start": {
"line": 256,
"column": 16
},
"end": {
"line": 256,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 6269,
"end": 6270,
"loc": {
"start": {
"line": 256,
"column": 17
},
"end": {
"line": 256,
"column": 18
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 6271,
"end": 6273,
"loc": {
"start": {
"line": 256,
"column": 19
},
"end": {
"line": 256,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 6274,
"end": 6275,
"loc": {
"start": {
"line": 256,
"column": 22
},
"end": {
"line": 256,
"column": 23
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 6276,
"end": 6277,
"loc": {
"start": {
"line": 256,
"column": 24
},
"end": {
"line": 256,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "radius",
"start": 6278,
"end": 6284,
"loc": {
"start": {
"line": 256,
"column": 26
},
"end": {
"line": 256,
"column": 32
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 6285,
"end": 6287,
"loc": {
"start": {
"line": 256,
"column": 33
},
"end": {
"line": 256,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 6301,
"end": 6302,
"loc": {
"start": {
"line": 257,
"column": 12
},
"end": {
"line": 257,
"column": 13
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 6303,
"end": 6304,
"loc": {
"start": {
"line": 257,
"column": 14
},
"end": {
"line": 257,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "radius",
"start": 6305,
"end": 6311,
"loc": {
"start": {
"line": 257,
"column": 16
},
"end": {
"line": 257,
"column": 22
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 6312,
"end": 6314,
"loc": {
"start": {
"line": 257,
"column": 23
},
"end": {
"line": 257,
"column": 25
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 6315,
"end": 6319,
"loc": {
"start": {
"line": 257,
"column": 26
},
"end": {
"line": 257,
"column": 30
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6319,
"end": 6320,
"loc": {
"start": {
"line": 257,
"column": 30
},
"end": {
"line": 257,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 6320,
"end": 6326,
"loc": {
"start": {
"line": 257,
"column": 31
},
"end": {
"line": 257,
"column": 37
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6326,
"end": 6327,
"loc": {
"start": {
"line": 257,
"column": 37
},
"end": {
"line": 257,
"column": 38
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6327,
"end": 6328,
"loc": {
"start": {
"line": 257,
"column": 38
},
"end": {
"line": 257,
"column": 39
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6338,
"end": 6339,
"loc": {
"start": {
"line": 258,
"column": 8
},
"end": {
"line": 258,
"column": 9
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6339,
"end": 6340,
"loc": {
"start": {
"line": 258,
"column": 9
},
"end": {
"line": 258,
"column": 10
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6346,
"end": 6347,
"loc": {
"start": {
"line": 259,
"column": 4
},
"end": {
"line": 259,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns if hte rectangle contains the given point\r\n * @param {number} x\r\n * @param {number} y\r\n * @returns {boolean}\r\n ",
"start": 6355,
"end": 6504,
"loc": {
"start": {
"line": 261,
"column": 4
},
"end": {
"line": 266,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "containsPoint",
"start": 6510,
"end": 6523,
"loc": {
"start": {
"line": 267,
"column": 4
},
"end": {
"line": 267,
"column": 17
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6523,
"end": 6524,
"loc": {
"start": {
"line": 267,
"column": 17
},
"end": {
"line": 267,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 6524,
"end": 6525,
"loc": {
"start": {
"line": 267,
"column": 18
},
"end": {
"line": 267,
"column": 19
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6525,
"end": 6526,
"loc": {
"start": {
"line": 267,
"column": 19
},
"end": {
"line": 267,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 6527,
"end": 6528,
"loc": {
"start": {
"line": 267,
"column": 21
},
"end": {
"line": 267,
"column": 22
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6528,
"end": 6529,
"loc": {
"start": {
"line": 267,
"column": 22
},
"end": {
"line": 267,
"column": 23
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6530,
"end": 6531,
"loc": {
"start": {
"line": 267,
"column": 24
},
"end": {
"line": 267,
"column": 25
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 6541,
"end": 6547,
"loc": {
"start": {
"line": 268,
"column": 8
},
"end": {
"line": 268,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 6548,
"end": 6549,
"loc": {
"start": {
"line": 268,
"column": 15
},
"end": {
"line": 268,
"column": 16
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": ">=",
"start": 6550,
"end": 6552,
"loc": {
"start": {
"line": 268,
"column": 17
},
"end": {
"line": 268,
"column": 19
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 6553,
"end": 6557,
"loc": {
"start": {
"line": 268,
"column": 20
},
"end": {
"line": 268,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6557,
"end": 6558,
"loc": {
"start": {
"line": 268,
"column": 24
},
"end": {
"line": 268,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 6558,
"end": 6559,
"loc": {
"start": {
"line": 268,
"column": 25
},
"end": {
"line": 268,
"column": 26
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 6560,
"end": 6562,
"loc": {
"start": {
"line": 268,
"column": 27
},
"end": {
"line": 268,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 6563,
"end": 6564,
"loc": {
"start": {
"line": 268,
"column": 30
},
"end": {
"line": 268,
"column": 31
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 6565,
"end": 6566,
"loc": {
"start": {
"line": 268,
"column": 32
},
"end": {
"line": 268,
"column": 33
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 6567,
"end": 6571,
"loc": {
"start": {
"line": 268,
"column": 34
},
"end": {
"line": 268,
"column": 38
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6571,
"end": 6572,
"loc": {
"start": {
"line": 268,
"column": 38
},
"end": {
"line": 268,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 6572,
"end": 6577,
"loc": {
"start": {
"line": 268,
"column": 39
},
"end": {
"line": 268,
"column": 44
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6577,
"end": 6578,
"loc": {
"start": {
"line": 268,
"column": 44
},
"end": {
"line": 268,
"column": 45
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6578,
"end": 6579,
"loc": {
"start": {
"line": 268,
"column": 45
},
"end": {
"line": 268,
"column": 46
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 6580,
"end": 6582,
"loc": {
"start": {
"line": 268,
"column": 47
},
"end": {
"line": 268,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 6583,
"end": 6584,
"loc": {
"start": {
"line": 268,
"column": 50
},
"end": {
"line": 268,
"column": 51
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": ">=",
"start": 6585,
"end": 6587,
"loc": {
"start": {
"line": 268,
"column": 52
},
"end": {
"line": 268,
"column": 54
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 6588,
"end": 6592,
"loc": {
"start": {
"line": 268,
"column": 55
},
"end": {
"line": 268,
"column": 59
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6592,
"end": 6593,
"loc": {
"start": {
"line": 268,
"column": 59
},
"end": {
"line": 268,
"column": 60
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 6593,
"end": 6594,
"loc": {
"start": {
"line": 268,
"column": 60
},
"end": {
"line": 268,
"column": 61
}
}
},
{
"type": {
"label": "&&",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 2,
"updateContext": null
},
"value": "&&",
"start": 6595,
"end": 6597,
"loc": {
"start": {
"line": 268,
"column": 62
},
"end": {
"line": 268,
"column": 64
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 6598,
"end": 6599,
"loc": {
"start": {
"line": 268,
"column": 65
},
"end": {
"line": 268,
"column": 66
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<",
"start": 6600,
"end": 6601,
"loc": {
"start": {
"line": 268,
"column": 67
},
"end": {
"line": 268,
"column": 68
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 6602,
"end": 6606,
"loc": {
"start": {
"line": 268,
"column": 69
},
"end": {
"line": 268,
"column": 73
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6606,
"end": 6607,
"loc": {
"start": {
"line": 268,
"column": 73
},
"end": {
"line": 268,
"column": 74
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 6607,
"end": 6613,
"loc": {
"start": {
"line": 268,
"column": 74
},
"end": {
"line": 268,
"column": 80
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6613,
"end": 6614,
"loc": {
"start": {
"line": 268,
"column": 80
},
"end": {
"line": 268,
"column": 81
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6614,
"end": 6615,
"loc": {
"start": {
"line": 268,
"column": 81
},
"end": {
"line": 268,
"column": 82
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6615,
"end": 6616,
"loc": {
"start": {
"line": 268,
"column": 82
},
"end": {
"line": 268,
"column": 83
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6622,
"end": 6623,
"loc": {
"start": {
"line": 269,
"column": 4
},
"end": {
"line": 269,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns the shared area with another rectangle, or null if there is no intersection\r\n * @param {Rectangle} rect\r\n * @returns {Rectangle|null}\r\n ",
"start": 6631,
"end": 6801,
"loc": {
"start": {
"line": 271,
"column": 4
},
"end": {
"line": 275,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getIntersection",
"start": 6807,
"end": 6822,
"loc": {
"start": {
"line": 276,
"column": 4
},
"end": {
"line": 276,
"column": 19
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6822,
"end": 6823,
"loc": {
"start": {
"line": 276,
"column": 19
},
"end": {
"line": 276,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rect",
"start": 6823,
"end": 6827,
"loc": {
"start": {
"line": 276,
"column": 20
},
"end": {
"line": 276,
"column": 24
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6827,
"end": 6828,
"loc": {
"start": {
"line": 276,
"column": 24
},
"end": {
"line": 276,
"column": 25
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6829,
"end": 6830,
"loc": {
"start": {
"line": 276,
"column": 26
},
"end": {
"line": 276,
"column": 27
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 6840,
"end": 6845,
"loc": {
"start": {
"line": 277,
"column": 8
},
"end": {
"line": 277,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 6846,
"end": 6850,
"loc": {
"start": {
"line": 277,
"column": 14
},
"end": {
"line": 277,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 6851,
"end": 6852,
"loc": {
"start": {
"line": 277,
"column": 19
},
"end": {
"line": 277,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 6853,
"end": 6857,
"loc": {
"start": {
"line": 277,
"column": 21
},
"end": {
"line": 277,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6857,
"end": 6858,
"loc": {
"start": {
"line": 277,
"column": 25
},
"end": {
"line": 277,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "max",
"start": 6858,
"end": 6861,
"loc": {
"start": {
"line": 277,
"column": 26
},
"end": {
"line": 277,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6861,
"end": 6862,
"loc": {
"start": {
"line": 277,
"column": 29
},
"end": {
"line": 277,
"column": 30
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 6862,
"end": 6866,
"loc": {
"start": {
"line": 277,
"column": 30
},
"end": {
"line": 277,
"column": 34
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6866,
"end": 6867,
"loc": {
"start": {
"line": 277,
"column": 34
},
"end": {
"line": 277,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 6867,
"end": 6868,
"loc": {
"start": {
"line": 277,
"column": 35
},
"end": {
"line": 277,
"column": 36
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6868,
"end": 6869,
"loc": {
"start": {
"line": 277,
"column": 36
},
"end": {
"line": 277,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rect",
"start": 6870,
"end": 6874,
"loc": {
"start": {
"line": 277,
"column": 38
},
"end": {
"line": 277,
"column": 42
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6874,
"end": 6875,
"loc": {
"start": {
"line": 277,
"column": 42
},
"end": {
"line": 277,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 6875,
"end": 6876,
"loc": {
"start": {
"line": 277,
"column": 43
},
"end": {
"line": 277,
"column": 44
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6876,
"end": 6877,
"loc": {
"start": {
"line": 277,
"column": 44
},
"end": {
"line": 277,
"column": 45
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6877,
"end": 6878,
"loc": {
"start": {
"line": 277,
"column": 45
},
"end": {
"line": 277,
"column": 46
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 6888,
"end": 6893,
"loc": {
"start": {
"line": 278,
"column": 8
},
"end": {
"line": 278,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 6894,
"end": 6897,
"loc": {
"start": {
"line": 278,
"column": 14
},
"end": {
"line": 278,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 6898,
"end": 6899,
"loc": {
"start": {
"line": 278,
"column": 18
},
"end": {
"line": 278,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 6900,
"end": 6904,
"loc": {
"start": {
"line": 278,
"column": 20
},
"end": {
"line": 278,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6904,
"end": 6905,
"loc": {
"start": {
"line": 278,
"column": 24
},
"end": {
"line": 278,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "max",
"start": 6905,
"end": 6908,
"loc": {
"start": {
"line": 278,
"column": 25
},
"end": {
"line": 278,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6908,
"end": 6909,
"loc": {
"start": {
"line": 278,
"column": 28
},
"end": {
"line": 278,
"column": 29
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 6909,
"end": 6913,
"loc": {
"start": {
"line": 278,
"column": 29
},
"end": {
"line": 278,
"column": 33
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6913,
"end": 6914,
"loc": {
"start": {
"line": 278,
"column": 33
},
"end": {
"line": 278,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 6914,
"end": 6915,
"loc": {
"start": {
"line": 278,
"column": 34
},
"end": {
"line": 278,
"column": 35
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6915,
"end": 6916,
"loc": {
"start": {
"line": 278,
"column": 35
},
"end": {
"line": 278,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rect",
"start": 6917,
"end": 6921,
"loc": {
"start": {
"line": 278,
"column": 37
},
"end": {
"line": 278,
"column": 41
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6921,
"end": 6922,
"loc": {
"start": {
"line": 278,
"column": 41
},
"end": {
"line": 278,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 6922,
"end": 6923,
"loc": {
"start": {
"line": 278,
"column": 42
},
"end": {
"line": 278,
"column": 43
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6923,
"end": 6924,
"loc": {
"start": {
"line": 278,
"column": 43
},
"end": {
"line": 278,
"column": 44
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6924,
"end": 6925,
"loc": {
"start": {
"line": 278,
"column": 44
},
"end": {
"line": 278,
"column": 45
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 6937,
"end": 6942,
"loc": {
"start": {
"line": 280,
"column": 8
},
"end": {
"line": 280,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 6943,
"end": 6948,
"loc": {
"start": {
"line": 280,
"column": 14
},
"end": {
"line": 280,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 6949,
"end": 6950,
"loc": {
"start": {
"line": 280,
"column": 20
},
"end": {
"line": 280,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 6951,
"end": 6955,
"loc": {
"start": {
"line": 280,
"column": 22
},
"end": {
"line": 280,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6955,
"end": 6956,
"loc": {
"start": {
"line": 280,
"column": 26
},
"end": {
"line": 280,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "min",
"start": 6956,
"end": 6959,
"loc": {
"start": {
"line": 280,
"column": 27
},
"end": {
"line": 280,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6959,
"end": 6960,
"loc": {
"start": {
"line": 280,
"column": 30
},
"end": {
"line": 280,
"column": 31
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 6960,
"end": 6964,
"loc": {
"start": {
"line": 280,
"column": 31
},
"end": {
"line": 280,
"column": 35
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6964,
"end": 6965,
"loc": {
"start": {
"line": 280,
"column": 35
},
"end": {
"line": 280,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 6965,
"end": 6966,
"loc": {
"start": {
"line": 280,
"column": 36
},
"end": {
"line": 280,
"column": 37
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 6967,
"end": 6968,
"loc": {
"start": {
"line": 280,
"column": 38
},
"end": {
"line": 280,
"column": 39
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 6969,
"end": 6973,
"loc": {
"start": {
"line": 280,
"column": 40
},
"end": {
"line": 280,
"column": 44
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6973,
"end": 6974,
"loc": {
"start": {
"line": 280,
"column": 44
},
"end": {
"line": 280,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "w",
"start": 6974,
"end": 6975,
"loc": {
"start": {
"line": 280,
"column": 45
},
"end": {
"line": 280,
"column": 46
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6975,
"end": 6976,
"loc": {
"start": {
"line": 280,
"column": 46
},
"end": {
"line": 280,
"column": 47
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rect",
"start": 6977,
"end": 6981,
"loc": {
"start": {
"line": 280,
"column": 48
},
"end": {
"line": 280,
"column": 52
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6981,
"end": 6982,
"loc": {
"start": {
"line": 280,
"column": 52
},
"end": {
"line": 280,
"column": 53
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 6982,
"end": 6983,
"loc": {
"start": {
"line": 280,
"column": 53
},
"end": {
"line": 280,
"column": 54
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 6984,
"end": 6985,
"loc": {
"start": {
"line": 280,
"column": 55
},
"end": {
"line": 280,
"column": 56
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rect",
"start": 6986,
"end": 6990,
"loc": {
"start": {
"line": 280,
"column": 57
},
"end": {
"line": 280,
"column": 61
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6990,
"end": 6991,
"loc": {
"start": {
"line": 280,
"column": 61
},
"end": {
"line": 280,
"column": 62
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "w",
"start": 6991,
"end": 6992,
"loc": {
"start": {
"line": 280,
"column": 62
},
"end": {
"line": 280,
"column": 63
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 6992,
"end": 6993,
"loc": {
"start": {
"line": 280,
"column": 63
},
"end": {
"line": 280,
"column": 64
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 6993,
"end": 6994,
"loc": {
"start": {
"line": 280,
"column": 64
},
"end": {
"line": 280,
"column": 65
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 7004,
"end": 7009,
"loc": {
"start": {
"line": 281,
"column": 8
},
"end": {
"line": 281,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 7010,
"end": 7016,
"loc": {
"start": {
"line": 281,
"column": 14
},
"end": {
"line": 281,
"column": 20
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 7017,
"end": 7018,
"loc": {
"start": {
"line": 281,
"column": 21
},
"end": {
"line": 281,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 7019,
"end": 7023,
"loc": {
"start": {
"line": 281,
"column": 23
},
"end": {
"line": 281,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7023,
"end": 7024,
"loc": {
"start": {
"line": 281,
"column": 27
},
"end": {
"line": 281,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "min",
"start": 7024,
"end": 7027,
"loc": {
"start": {
"line": 281,
"column": 28
},
"end": {
"line": 281,
"column": 31
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7027,
"end": 7028,
"loc": {
"start": {
"line": 281,
"column": 31
},
"end": {
"line": 281,
"column": 32
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 7028,
"end": 7032,
"loc": {
"start": {
"line": 281,
"column": 32
},
"end": {
"line": 281,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7032,
"end": 7033,
"loc": {
"start": {
"line": 281,
"column": 36
},
"end": {
"line": 281,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 7033,
"end": 7034,
"loc": {
"start": {
"line": 281,
"column": 37
},
"end": {
"line": 281,
"column": 38
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 7035,
"end": 7036,
"loc": {
"start": {
"line": 281,
"column": 39
},
"end": {
"line": 281,
"column": 40
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 7037,
"end": 7041,
"loc": {
"start": {
"line": 281,
"column": 41
},
"end": {
"line": 281,
"column": 45
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7041,
"end": 7042,
"loc": {
"start": {
"line": 281,
"column": 45
},
"end": {
"line": 281,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "h",
"start": 7042,
"end": 7043,
"loc": {
"start": {
"line": 281,
"column": 46
},
"end": {
"line": 281,
"column": 47
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7043,
"end": 7044,
"loc": {
"start": {
"line": 281,
"column": 47
},
"end": {
"line": 281,
"column": 48
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rect",
"start": 7045,
"end": 7049,
"loc": {
"start": {
"line": 281,
"column": 49
},
"end": {
"line": 281,
"column": 53
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7049,
"end": 7050,
"loc": {
"start": {
"line": 281,
"column": 53
},
"end": {
"line": 281,
"column": 54
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 7050,
"end": 7051,
"loc": {
"start": {
"line": 281,
"column": 54
},
"end": {
"line": 281,
"column": 55
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 7052,
"end": 7053,
"loc": {
"start": {
"line": 281,
"column": 56
},
"end": {
"line": 281,
"column": 57
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rect",
"start": 7054,
"end": 7058,
"loc": {
"start": {
"line": 281,
"column": 58
},
"end": {
"line": 281,
"column": 62
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7058,
"end": 7059,
"loc": {
"start": {
"line": 281,
"column": 62
},
"end": {
"line": 281,
"column": 63
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "h",
"start": 7059,
"end": 7060,
"loc": {
"start": {
"line": 281,
"column": 63
},
"end": {
"line": 281,
"column": 64
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7060,
"end": 7061,
"loc": {
"start": {
"line": 281,
"column": 64
},
"end": {
"line": 281,
"column": 65
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7061,
"end": 7062,
"loc": {
"start": {
"line": 281,
"column": 65
},
"end": {
"line": 281,
"column": 66
}
}
},
{
"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": 7074,
"end": 7076,
"loc": {
"start": {
"line": 283,
"column": 8
},
"end": {
"line": 283,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7077,
"end": 7078,
"loc": {
"start": {
"line": 283,
"column": 11
},
"end": {
"line": 283,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 7078,
"end": 7083,
"loc": {
"start": {
"line": 283,
"column": 12
},
"end": {
"line": 283,
"column": 17
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 7084,
"end": 7086,
"loc": {
"start": {
"line": 283,
"column": 18
},
"end": {
"line": 283,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 7087,
"end": 7091,
"loc": {
"start": {
"line": 283,
"column": 21
},
"end": {
"line": 283,
"column": 25
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 7092,
"end": 7094,
"loc": {
"start": {
"line": 283,
"column": 26
},
"end": {
"line": 283,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 7095,
"end": 7101,
"loc": {
"start": {
"line": 283,
"column": 29
},
"end": {
"line": 283,
"column": 35
}
}
},
{
"type": {
"label": "</>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 7,
"updateContext": null
},
"value": "<=",
"start": 7102,
"end": 7104,
"loc": {
"start": {
"line": 283,
"column": 36
},
"end": {
"line": 283,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 7105,
"end": 7108,
"loc": {
"start": {
"line": 283,
"column": 39
},
"end": {
"line": 283,
"column": 42
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7108,
"end": 7109,
"loc": {
"start": {
"line": 283,
"column": 42
},
"end": {
"line": 283,
"column": 43
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7110,
"end": 7111,
"loc": {
"start": {
"line": 283,
"column": 44
},
"end": {
"line": 283,
"column": 45
}
}
},
{
"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": 7125,
"end": 7131,
"loc": {
"start": {
"line": 284,
"column": 12
},
"end": {
"line": 284,
"column": 18
}
}
},
{
"type": {
"label": "null",
"keyword": "null",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "null",
"start": 7132,
"end": 7136,
"loc": {
"start": {
"line": 284,
"column": 19
},
"end": {
"line": 284,
"column": 23
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7136,
"end": 7137,
"loc": {
"start": {
"line": 284,
"column": 23
},
"end": {
"line": 284,
"column": 24
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7147,
"end": 7148,
"loc": {
"start": {
"line": 285,
"column": 8
},
"end": {
"line": 285,
"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": 7160,
"end": 7166,
"loc": {
"start": {
"line": 287,
"column": 8
},
"end": {
"line": 287,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Rectangle",
"start": 7167,
"end": 7176,
"loc": {
"start": {
"line": 287,
"column": 15
},
"end": {
"line": 287,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7176,
"end": 7177,
"loc": {
"start": {
"line": 287,
"column": 24
},
"end": {
"line": 287,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "fromTRBL",
"start": 7177,
"end": 7185,
"loc": {
"start": {
"line": 287,
"column": 25
},
"end": {
"line": 287,
"column": 33
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7185,
"end": 7186,
"loc": {
"start": {
"line": 287,
"column": 33
},
"end": {
"line": 287,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 7186,
"end": 7189,
"loc": {
"start": {
"line": 287,
"column": 34
},
"end": {
"line": 287,
"column": 37
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7189,
"end": 7190,
"loc": {
"start": {
"line": 287,
"column": 37
},
"end": {
"line": 287,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 7191,
"end": 7196,
"loc": {
"start": {
"line": 287,
"column": 39
},
"end": {
"line": 287,
"column": 44
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7196,
"end": 7197,
"loc": {
"start": {
"line": 287,
"column": 44
},
"end": {
"line": 287,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 7198,
"end": 7204,
"loc": {
"start": {
"line": 287,
"column": 46
},
"end": {
"line": 287,
"column": 52
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7204,
"end": 7205,
"loc": {
"start": {
"line": 287,
"column": 52
},
"end": {
"line": 287,
"column": 53
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 7206,
"end": 7210,
"loc": {
"start": {
"line": 287,
"column": 54
},
"end": {
"line": 287,
"column": 58
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7210,
"end": 7211,
"loc": {
"start": {
"line": 287,
"column": 58
},
"end": {
"line": 287,
"column": 59
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7211,
"end": 7212,
"loc": {
"start": {
"line": 287,
"column": 59
},
"end": {
"line": 287,
"column": 60
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7218,
"end": 7219,
"loc": {
"start": {
"line": 288,
"column": 4
},
"end": {
"line": 288,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns the union of this rectangle with another\r\n * @param {Rectangle} rect\r\n ",
"start": 7227,
"end": 7328,
"loc": {
"start": {
"line": 290,
"column": 4
},
"end": {
"line": 293,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "getUnion",
"start": 7334,
"end": 7342,
"loc": {
"start": {
"line": 294,
"column": 4
},
"end": {
"line": 294,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7342,
"end": 7343,
"loc": {
"start": {
"line": 294,
"column": 12
},
"end": {
"line": 294,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rect",
"start": 7343,
"end": 7347,
"loc": {
"start": {
"line": 294,
"column": 13
},
"end": {
"line": 294,
"column": 17
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7347,
"end": 7348,
"loc": {
"start": {
"line": 294,
"column": 17
},
"end": {
"line": 294,
"column": 18
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7349,
"end": 7350,
"loc": {
"start": {
"line": 294,
"column": 19
},
"end": {
"line": 294,
"column": 20
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 7360,
"end": 7362,
"loc": {
"start": {
"line": 295,
"column": 8
},
"end": {
"line": 295,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7363,
"end": 7364,
"loc": {
"start": {
"line": 295,
"column": 11
},
"end": {
"line": 295,
"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": 7364,
"end": 7368,
"loc": {
"start": {
"line": 295,
"column": 12
},
"end": {
"line": 295,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7368,
"end": 7369,
"loc": {
"start": {
"line": 295,
"column": 16
},
"end": {
"line": 295,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isEmpty",
"start": 7369,
"end": 7376,
"loc": {
"start": {
"line": 295,
"column": 17
},
"end": {
"line": 295,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7376,
"end": 7377,
"loc": {
"start": {
"line": 295,
"column": 24
},
"end": {
"line": 295,
"column": 25
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7377,
"end": 7378,
"loc": {
"start": {
"line": 295,
"column": 25
},
"end": {
"line": 295,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7378,
"end": 7379,
"loc": {
"start": {
"line": 295,
"column": 26
},
"end": {
"line": 295,
"column": 27
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7380,
"end": 7381,
"loc": {
"start": {
"line": 295,
"column": 28
},
"end": {
"line": 295,
"column": 29
}
}
},
{
"type": "CommentLine",
"value": " If this is rect is empty, return the other one",
"start": 7395,
"end": 7444,
"loc": {
"start": {
"line": 296,
"column": 12
},
"end": {
"line": 296,
"column": 61
}
}
},
{
"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": 7458,
"end": 7464,
"loc": {
"start": {
"line": 297,
"column": 12
},
"end": {
"line": 297,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rect",
"start": 7465,
"end": 7469,
"loc": {
"start": {
"line": 297,
"column": 19
},
"end": {
"line": 297,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7469,
"end": 7470,
"loc": {
"start": {
"line": 297,
"column": 23
},
"end": {
"line": 297,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "clone",
"start": 7470,
"end": 7475,
"loc": {
"start": {
"line": 297,
"column": 24
},
"end": {
"line": 297,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7475,
"end": 7476,
"loc": {
"start": {
"line": 297,
"column": 29
},
"end": {
"line": 297,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7476,
"end": 7477,
"loc": {
"start": {
"line": 297,
"column": 30
},
"end": {
"line": 297,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7477,
"end": 7478,
"loc": {
"start": {
"line": 297,
"column": 31
},
"end": {
"line": 297,
"column": 32
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7488,
"end": 7489,
"loc": {
"start": {
"line": 298,
"column": 8
},
"end": {
"line": 298,
"column": 9
}
}
},
{
"type": {
"label": "if",
"keyword": "if",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "if",
"start": 7499,
"end": 7501,
"loc": {
"start": {
"line": 299,
"column": 8
},
"end": {
"line": 299,
"column": 10
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7502,
"end": 7503,
"loc": {
"start": {
"line": 299,
"column": 11
},
"end": {
"line": 299,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rect",
"start": 7503,
"end": 7507,
"loc": {
"start": {
"line": 299,
"column": 12
},
"end": {
"line": 299,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7507,
"end": 7508,
"loc": {
"start": {
"line": 299,
"column": 16
},
"end": {
"line": 299,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isEmpty",
"start": 7508,
"end": 7515,
"loc": {
"start": {
"line": 299,
"column": 17
},
"end": {
"line": 299,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7515,
"end": 7516,
"loc": {
"start": {
"line": 299,
"column": 24
},
"end": {
"line": 299,
"column": 25
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7516,
"end": 7517,
"loc": {
"start": {
"line": 299,
"column": 25
},
"end": {
"line": 299,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7517,
"end": 7518,
"loc": {
"start": {
"line": 299,
"column": 26
},
"end": {
"line": 299,
"column": 27
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7519,
"end": 7520,
"loc": {
"start": {
"line": 299,
"column": 28
},
"end": {
"line": 299,
"column": 29
}
}
},
{
"type": "CommentLine",
"value": " If the other is empty, return this one",
"start": 7534,
"end": 7575,
"loc": {
"start": {
"line": 300,
"column": 12
},
"end": {
"line": 300,
"column": 53
}
}
},
{
"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": 7589,
"end": 7595,
"loc": {
"start": {
"line": 301,
"column": 12
},
"end": {
"line": 301,
"column": 18
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 7596,
"end": 7600,
"loc": {
"start": {
"line": 301,
"column": 19
},
"end": {
"line": 301,
"column": 23
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7600,
"end": 7601,
"loc": {
"start": {
"line": 301,
"column": 23
},
"end": {
"line": 301,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "clone",
"start": 7601,
"end": 7606,
"loc": {
"start": {
"line": 301,
"column": 24
},
"end": {
"line": 301,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7606,
"end": 7607,
"loc": {
"start": {
"line": 301,
"column": 29
},
"end": {
"line": 301,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7607,
"end": 7608,
"loc": {
"start": {
"line": 301,
"column": 30
},
"end": {
"line": 301,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7608,
"end": 7609,
"loc": {
"start": {
"line": 301,
"column": 31
},
"end": {
"line": 301,
"column": 32
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7619,
"end": 7620,
"loc": {
"start": {
"line": 302,
"column": 8
},
"end": {
"line": 302,
"column": 9
}
}
},
{
"type": "CommentLine",
"value": " Find contained area",
"start": 7632,
"end": 7654,
"loc": {
"start": {
"line": 304,
"column": 8
},
"end": {
"line": 304,
"column": 30
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 7664,
"end": 7669,
"loc": {
"start": {
"line": 305,
"column": 8
},
"end": {
"line": 305,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 7670,
"end": 7674,
"loc": {
"start": {
"line": 305,
"column": 14
},
"end": {
"line": 305,
"column": 18
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 7675,
"end": 7676,
"loc": {
"start": {
"line": 305,
"column": 19
},
"end": {
"line": 305,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 7677,
"end": 7681,
"loc": {
"start": {
"line": 305,
"column": 21
},
"end": {
"line": 305,
"column": 25
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7681,
"end": 7682,
"loc": {
"start": {
"line": 305,
"column": 25
},
"end": {
"line": 305,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "min",
"start": 7682,
"end": 7685,
"loc": {
"start": {
"line": 305,
"column": 26
},
"end": {
"line": 305,
"column": 29
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7685,
"end": 7686,
"loc": {
"start": {
"line": 305,
"column": 29
},
"end": {
"line": 305,
"column": 30
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 7686,
"end": 7690,
"loc": {
"start": {
"line": 305,
"column": 30
},
"end": {
"line": 305,
"column": 34
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7690,
"end": 7691,
"loc": {
"start": {
"line": 305,
"column": 34
},
"end": {
"line": 305,
"column": 35
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 7691,
"end": 7692,
"loc": {
"start": {
"line": 305,
"column": 35
},
"end": {
"line": 305,
"column": 36
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7692,
"end": 7693,
"loc": {
"start": {
"line": 305,
"column": 36
},
"end": {
"line": 305,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rect",
"start": 7694,
"end": 7698,
"loc": {
"start": {
"line": 305,
"column": 38
},
"end": {
"line": 305,
"column": 42
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7698,
"end": 7699,
"loc": {
"start": {
"line": 305,
"column": 42
},
"end": {
"line": 305,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 7699,
"end": 7700,
"loc": {
"start": {
"line": 305,
"column": 43
},
"end": {
"line": 305,
"column": 44
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7700,
"end": 7701,
"loc": {
"start": {
"line": 305,
"column": 44
},
"end": {
"line": 305,
"column": 45
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7701,
"end": 7702,
"loc": {
"start": {
"line": 305,
"column": 45
},
"end": {
"line": 305,
"column": 46
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 7712,
"end": 7717,
"loc": {
"start": {
"line": 306,
"column": 8
},
"end": {
"line": 306,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 7718,
"end": 7721,
"loc": {
"start": {
"line": 306,
"column": 14
},
"end": {
"line": 306,
"column": 17
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 7722,
"end": 7723,
"loc": {
"start": {
"line": 306,
"column": 18
},
"end": {
"line": 306,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 7724,
"end": 7728,
"loc": {
"start": {
"line": 306,
"column": 20
},
"end": {
"line": 306,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7728,
"end": 7729,
"loc": {
"start": {
"line": 306,
"column": 24
},
"end": {
"line": 306,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "min",
"start": 7729,
"end": 7732,
"loc": {
"start": {
"line": 306,
"column": 25
},
"end": {
"line": 306,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7732,
"end": 7733,
"loc": {
"start": {
"line": 306,
"column": 28
},
"end": {
"line": 306,
"column": 29
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 7733,
"end": 7737,
"loc": {
"start": {
"line": 306,
"column": 29
},
"end": {
"line": 306,
"column": 33
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7737,
"end": 7738,
"loc": {
"start": {
"line": 306,
"column": 33
},
"end": {
"line": 306,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 7738,
"end": 7739,
"loc": {
"start": {
"line": 306,
"column": 34
},
"end": {
"line": 306,
"column": 35
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7739,
"end": 7740,
"loc": {
"start": {
"line": 306,
"column": 35
},
"end": {
"line": 306,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rect",
"start": 7741,
"end": 7745,
"loc": {
"start": {
"line": 306,
"column": 37
},
"end": {
"line": 306,
"column": 41
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7745,
"end": 7746,
"loc": {
"start": {
"line": 306,
"column": 41
},
"end": {
"line": 306,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 7746,
"end": 7747,
"loc": {
"start": {
"line": 306,
"column": 42
},
"end": {
"line": 306,
"column": 43
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7747,
"end": 7748,
"loc": {
"start": {
"line": 306,
"column": 43
},
"end": {
"line": 306,
"column": 44
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7748,
"end": 7749,
"loc": {
"start": {
"line": 306,
"column": 44
},
"end": {
"line": 306,
"column": 45
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 7759,
"end": 7764,
"loc": {
"start": {
"line": 307,
"column": 8
},
"end": {
"line": 307,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 7765,
"end": 7770,
"loc": {
"start": {
"line": 307,
"column": 14
},
"end": {
"line": 307,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 7771,
"end": 7772,
"loc": {
"start": {
"line": 307,
"column": 20
},
"end": {
"line": 307,
"column": 21
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 7773,
"end": 7777,
"loc": {
"start": {
"line": 307,
"column": 22
},
"end": {
"line": 307,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7777,
"end": 7778,
"loc": {
"start": {
"line": 307,
"column": 26
},
"end": {
"line": 307,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "max",
"start": 7778,
"end": 7781,
"loc": {
"start": {
"line": 307,
"column": 27
},
"end": {
"line": 307,
"column": 30
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7781,
"end": 7782,
"loc": {
"start": {
"line": 307,
"column": 30
},
"end": {
"line": 307,
"column": 31
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 7782,
"end": 7786,
"loc": {
"start": {
"line": 307,
"column": 31
},
"end": {
"line": 307,
"column": 35
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7786,
"end": 7787,
"loc": {
"start": {
"line": 307,
"column": 35
},
"end": {
"line": 307,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 7787,
"end": 7792,
"loc": {
"start": {
"line": 307,
"column": 36
},
"end": {
"line": 307,
"column": 41
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7792,
"end": 7793,
"loc": {
"start": {
"line": 307,
"column": 41
},
"end": {
"line": 307,
"column": 42
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7793,
"end": 7794,
"loc": {
"start": {
"line": 307,
"column": 42
},
"end": {
"line": 307,
"column": 43
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7794,
"end": 7795,
"loc": {
"start": {
"line": 307,
"column": 43
},
"end": {
"line": 307,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rect",
"start": 7796,
"end": 7800,
"loc": {
"start": {
"line": 307,
"column": 45
},
"end": {
"line": 307,
"column": 49
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7800,
"end": 7801,
"loc": {
"start": {
"line": 307,
"column": 49
},
"end": {
"line": 307,
"column": 50
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 7801,
"end": 7806,
"loc": {
"start": {
"line": 307,
"column": 50
},
"end": {
"line": 307,
"column": 55
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7806,
"end": 7807,
"loc": {
"start": {
"line": 307,
"column": 55
},
"end": {
"line": 307,
"column": 56
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7807,
"end": 7808,
"loc": {
"start": {
"line": 307,
"column": 56
},
"end": {
"line": 307,
"column": 57
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7808,
"end": 7809,
"loc": {
"start": {
"line": 307,
"column": 57
},
"end": {
"line": 307,
"column": 58
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7809,
"end": 7810,
"loc": {
"start": {
"line": 307,
"column": 58
},
"end": {
"line": 307,
"column": 59
}
}
},
{
"type": {
"label": "const",
"keyword": "const",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "const",
"start": 7820,
"end": 7825,
"loc": {
"start": {
"line": 308,
"column": 8
},
"end": {
"line": 308,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 7826,
"end": 7832,
"loc": {
"start": {
"line": 308,
"column": 14
},
"end": {
"line": 308,
"column": 20
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 7833,
"end": 7834,
"loc": {
"start": {
"line": 308,
"column": 21
},
"end": {
"line": 308,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 7835,
"end": 7839,
"loc": {
"start": {
"line": 308,
"column": 23
},
"end": {
"line": 308,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7839,
"end": 7840,
"loc": {
"start": {
"line": 308,
"column": 27
},
"end": {
"line": 308,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "max",
"start": 7840,
"end": 7843,
"loc": {
"start": {
"line": 308,
"column": 28
},
"end": {
"line": 308,
"column": 31
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7843,
"end": 7844,
"loc": {
"start": {
"line": 308,
"column": 31
},
"end": {
"line": 308,
"column": 32
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 7844,
"end": 7848,
"loc": {
"start": {
"line": 308,
"column": 32
},
"end": {
"line": 308,
"column": 36
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7848,
"end": 7849,
"loc": {
"start": {
"line": 308,
"column": 36
},
"end": {
"line": 308,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 7849,
"end": 7855,
"loc": {
"start": {
"line": 308,
"column": 37
},
"end": {
"line": 308,
"column": 43
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7855,
"end": 7856,
"loc": {
"start": {
"line": 308,
"column": 43
},
"end": {
"line": 308,
"column": 44
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7856,
"end": 7857,
"loc": {
"start": {
"line": 308,
"column": 44
},
"end": {
"line": 308,
"column": 45
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7857,
"end": 7858,
"loc": {
"start": {
"line": 308,
"column": 45
},
"end": {
"line": 308,
"column": 46
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "rect",
"start": 7859,
"end": 7863,
"loc": {
"start": {
"line": 308,
"column": 47
},
"end": {
"line": 308,
"column": 51
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7863,
"end": 7864,
"loc": {
"start": {
"line": 308,
"column": 51
},
"end": {
"line": 308,
"column": 52
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 7864,
"end": 7870,
"loc": {
"start": {
"line": 308,
"column": 52
},
"end": {
"line": 308,
"column": 58
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7870,
"end": 7871,
"loc": {
"start": {
"line": 308,
"column": 58
},
"end": {
"line": 308,
"column": 59
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7871,
"end": 7872,
"loc": {
"start": {
"line": 308,
"column": 59
},
"end": {
"line": 308,
"column": 60
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7872,
"end": 7873,
"loc": {
"start": {
"line": 308,
"column": 60
},
"end": {
"line": 308,
"column": 61
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7873,
"end": 7874,
"loc": {
"start": {
"line": 308,
"column": 61
},
"end": {
"line": 308,
"column": 62
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 7886,
"end": 7892,
"loc": {
"start": {
"line": 310,
"column": 8
},
"end": {
"line": 310,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Rectangle",
"start": 7893,
"end": 7902,
"loc": {
"start": {
"line": 310,
"column": 15
},
"end": {
"line": 310,
"column": 24
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7902,
"end": 7903,
"loc": {
"start": {
"line": 310,
"column": 24
},
"end": {
"line": 310,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "fromTRBL",
"start": 7903,
"end": 7911,
"loc": {
"start": {
"line": 310,
"column": 25
},
"end": {
"line": 310,
"column": 33
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7911,
"end": 7912,
"loc": {
"start": {
"line": 310,
"column": 33
},
"end": {
"line": 310,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "top",
"start": 7912,
"end": 7915,
"loc": {
"start": {
"line": 310,
"column": 34
},
"end": {
"line": 310,
"column": 37
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7915,
"end": 7916,
"loc": {
"start": {
"line": 310,
"column": 37
},
"end": {
"line": 310,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "right",
"start": 7917,
"end": 7922,
"loc": {
"start": {
"line": 310,
"column": 39
},
"end": {
"line": 310,
"column": 44
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7922,
"end": 7923,
"loc": {
"start": {
"line": 310,
"column": 44
},
"end": {
"line": 310,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "bottom",
"start": 7924,
"end": 7930,
"loc": {
"start": {
"line": 310,
"column": 46
},
"end": {
"line": 310,
"column": 52
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7930,
"end": 7931,
"loc": {
"start": {
"line": 310,
"column": 52
},
"end": {
"line": 310,
"column": 53
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "left",
"start": 7932,
"end": 7936,
"loc": {
"start": {
"line": 310,
"column": 54
},
"end": {
"line": 310,
"column": 58
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7936,
"end": 7937,
"loc": {
"start": {
"line": 310,
"column": 58
},
"end": {
"line": 310,
"column": 59
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 7937,
"end": 7938,
"loc": {
"start": {
"line": 310,
"column": 59
},
"end": {
"line": 310,
"column": 60
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7944,
"end": 7945,
"loc": {
"start": {
"line": 311,
"column": 4
},
"end": {
"line": 311,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Good for caching stuff\r\n ",
"start": 7953,
"end": 7996,
"loc": {
"start": {
"line": 313,
"column": 4
},
"end": {
"line": 315,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "toCompareableString",
"start": 8002,
"end": 8021,
"loc": {
"start": {
"line": 316,
"column": 4
},
"end": {
"line": 316,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8021,
"end": 8022,
"loc": {
"start": {
"line": 316,
"column": 23
},
"end": {
"line": 316,
"column": 24
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8022,
"end": 8023,
"loc": {
"start": {
"line": 316,
"column": 24
},
"end": {
"line": 316,
"column": 25
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8024,
"end": 8025,
"loc": {
"start": {
"line": 316,
"column": 26
},
"end": {
"line": 316,
"column": 27
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 8035,
"end": 8041,
"loc": {
"start": {
"line": 317,
"column": 8
},
"end": {
"line": 317,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8042,
"end": 8043,
"loc": {
"start": {
"line": 317,
"column": 15
},
"end": {
"line": 317,
"column": 16
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "round2Digits",
"start": 8057,
"end": 8069,
"loc": {
"start": {
"line": 318,
"column": 12
},
"end": {
"line": 318,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8069,
"end": 8070,
"loc": {
"start": {
"line": 318,
"column": 24
},
"end": {
"line": 318,
"column": 25
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 8070,
"end": 8074,
"loc": {
"start": {
"line": 318,
"column": 25
},
"end": {
"line": 318,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8074,
"end": 8075,
"loc": {
"start": {
"line": 318,
"column": 29
},
"end": {
"line": 318,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 8075,
"end": 8076,
"loc": {
"start": {
"line": 318,
"column": 30
},
"end": {
"line": 318,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8076,
"end": 8077,
"loc": {
"start": {
"line": 318,
"column": 31
},
"end": {
"line": 318,
"column": 32
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 8078,
"end": 8079,
"loc": {
"start": {
"line": 318,
"column": 33
},
"end": {
"line": 318,
"column": 34
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "/",
"start": 8093,
"end": 8096,
"loc": {
"start": {
"line": 319,
"column": 12
},
"end": {
"line": 319,
"column": 15
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 8097,
"end": 8098,
"loc": {
"start": {
"line": 319,
"column": 16
},
"end": {
"line": 319,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "round2Digits",
"start": 8112,
"end": 8124,
"loc": {
"start": {
"line": 320,
"column": 12
},
"end": {
"line": 320,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8124,
"end": 8125,
"loc": {
"start": {
"line": 320,
"column": 24
},
"end": {
"line": 320,
"column": 25
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 8125,
"end": 8129,
"loc": {
"start": {
"line": 320,
"column": 25
},
"end": {
"line": 320,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8129,
"end": 8130,
"loc": {
"start": {
"line": 320,
"column": 29
},
"end": {
"line": 320,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 8130,
"end": 8131,
"loc": {
"start": {
"line": 320,
"column": 30
},
"end": {
"line": 320,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8131,
"end": 8132,
"loc": {
"start": {
"line": 320,
"column": 31
},
"end": {
"line": 320,
"column": 32
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 8133,
"end": 8134,
"loc": {
"start": {
"line": 320,
"column": 33
},
"end": {
"line": 320,
"column": 34
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "/",
"start": 8148,
"end": 8151,
"loc": {
"start": {
"line": 321,
"column": 12
},
"end": {
"line": 321,
"column": 15
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 8152,
"end": 8153,
"loc": {
"start": {
"line": 321,
"column": 16
},
"end": {
"line": 321,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "round2Digits",
"start": 8167,
"end": 8179,
"loc": {
"start": {
"line": 322,
"column": 12
},
"end": {
"line": 322,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8179,
"end": 8180,
"loc": {
"start": {
"line": 322,
"column": 24
},
"end": {
"line": 322,
"column": 25
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 8180,
"end": 8184,
"loc": {
"start": {
"line": 322,
"column": 25
},
"end": {
"line": 322,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8184,
"end": 8185,
"loc": {
"start": {
"line": 322,
"column": 29
},
"end": {
"line": 322,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "w",
"start": 8185,
"end": 8186,
"loc": {
"start": {
"line": 322,
"column": 30
},
"end": {
"line": 322,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8186,
"end": 8187,
"loc": {
"start": {
"line": 322,
"column": 31
},
"end": {
"line": 322,
"column": 32
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 8188,
"end": 8189,
"loc": {
"start": {
"line": 322,
"column": 33
},
"end": {
"line": 322,
"column": 34
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "/",
"start": 8203,
"end": 8206,
"loc": {
"start": {
"line": 323,
"column": 12
},
"end": {
"line": 323,
"column": 15
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 8207,
"end": 8208,
"loc": {
"start": {
"line": 323,
"column": 16
},
"end": {
"line": 323,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "round2Digits",
"start": 8222,
"end": 8234,
"loc": {
"start": {
"line": 324,
"column": 12
},
"end": {
"line": 324,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8234,
"end": 8235,
"loc": {
"start": {
"line": 324,
"column": 24
},
"end": {
"line": 324,
"column": 25
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 8235,
"end": 8239,
"loc": {
"start": {
"line": 324,
"column": 25
},
"end": {
"line": 324,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8239,
"end": 8240,
"loc": {
"start": {
"line": 324,
"column": 29
},
"end": {
"line": 324,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "h",
"start": 8240,
"end": 8241,
"loc": {
"start": {
"line": 324,
"column": 30
},
"end": {
"line": 324,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8241,
"end": 8242,
"loc": {
"start": {
"line": 324,
"column": 31
},
"end": {
"line": 324,
"column": 32
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8252,
"end": 8253,
"loc": {
"start": {
"line": 325,
"column": 8
},
"end": {
"line": 325,
"column": 9
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8253,
"end": 8254,
"loc": {
"start": {
"line": 325,
"column": 9
},
"end": {
"line": 325,
"column": 10
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8260,
"end": 8261,
"loc": {
"start": {
"line": 326,
"column": 4
},
"end": {
"line": 326,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Good for printing stuff\r\n ",
"start": 8269,
"end": 8313,
"loc": {
"start": {
"line": 328,
"column": 4
},
"end": {
"line": 330,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "toString",
"start": 8319,
"end": 8327,
"loc": {
"start": {
"line": 331,
"column": 4
},
"end": {
"line": 331,
"column": 12
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8327,
"end": 8328,
"loc": {
"start": {
"line": 331,
"column": 12
},
"end": {
"line": 331,
"column": 13
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8328,
"end": 8329,
"loc": {
"start": {
"line": 331,
"column": 13
},
"end": {
"line": 331,
"column": 14
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8330,
"end": 8331,
"loc": {
"start": {
"line": 331,
"column": 15
},
"end": {
"line": 331,
"column": 16
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 8341,
"end": 8347,
"loc": {
"start": {
"line": 332,
"column": 8
},
"end": {
"line": 332,
"column": 14
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8348,
"end": 8349,
"loc": {
"start": {
"line": 332,
"column": 15
},
"end": {
"line": 332,
"column": 16
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "[x:",
"start": 8363,
"end": 8368,
"loc": {
"start": {
"line": 333,
"column": 12
},
"end": {
"line": 333,
"column": 17
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 8369,
"end": 8370,
"loc": {
"start": {
"line": 333,
"column": 18
},
"end": {
"line": 333,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "round2Digits",
"start": 8384,
"end": 8396,
"loc": {
"start": {
"line": 334,
"column": 12
},
"end": {
"line": 334,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8396,
"end": 8397,
"loc": {
"start": {
"line": 334,
"column": 24
},
"end": {
"line": 334,
"column": 25
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 8397,
"end": 8401,
"loc": {
"start": {
"line": 334,
"column": 25
},
"end": {
"line": 334,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8401,
"end": 8402,
"loc": {
"start": {
"line": 334,
"column": 29
},
"end": {
"line": 334,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 8402,
"end": 8403,
"loc": {
"start": {
"line": 334,
"column": 30
},
"end": {
"line": 334,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8403,
"end": 8404,
"loc": {
"start": {
"line": 334,
"column": 31
},
"end": {
"line": 334,
"column": 32
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 8405,
"end": 8406,
"loc": {
"start": {
"line": 334,
"column": 33
},
"end": {
"line": 334,
"column": 34
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "| y:",
"start": 8420,
"end": 8426,
"loc": {
"start": {
"line": 335,
"column": 12
},
"end": {
"line": 335,
"column": 18
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 8427,
"end": 8428,
"loc": {
"start": {
"line": 335,
"column": 19
},
"end": {
"line": 335,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "round2Digits",
"start": 8442,
"end": 8454,
"loc": {
"start": {
"line": 336,
"column": 12
},
"end": {
"line": 336,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8454,
"end": 8455,
"loc": {
"start": {
"line": 336,
"column": 24
},
"end": {
"line": 336,
"column": 25
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 8455,
"end": 8459,
"loc": {
"start": {
"line": 336,
"column": 25
},
"end": {
"line": 336,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8459,
"end": 8460,
"loc": {
"start": {
"line": 336,
"column": 29
},
"end": {
"line": 336,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 8460,
"end": 8461,
"loc": {
"start": {
"line": 336,
"column": 30
},
"end": {
"line": 336,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8461,
"end": 8462,
"loc": {
"start": {
"line": 336,
"column": 31
},
"end": {
"line": 336,
"column": 32
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 8463,
"end": 8464,
"loc": {
"start": {
"line": 336,
"column": 33
},
"end": {
"line": 336,
"column": 34
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "| w:",
"start": 8478,
"end": 8484,
"loc": {
"start": {
"line": 337,
"column": 12
},
"end": {
"line": 337,
"column": 18
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 8485,
"end": 8486,
"loc": {
"start": {
"line": 337,
"column": 19
},
"end": {
"line": 337,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "round2Digits",
"start": 8500,
"end": 8512,
"loc": {
"start": {
"line": 338,
"column": 12
},
"end": {
"line": 338,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8512,
"end": 8513,
"loc": {
"start": {
"line": 338,
"column": 24
},
"end": {
"line": 338,
"column": 25
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 8513,
"end": 8517,
"loc": {
"start": {
"line": 338,
"column": 25
},
"end": {
"line": 338,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8517,
"end": 8518,
"loc": {
"start": {
"line": 338,
"column": 29
},
"end": {
"line": 338,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "w",
"start": 8518,
"end": 8519,
"loc": {
"start": {
"line": 338,
"column": 30
},
"end": {
"line": 338,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8519,
"end": 8520,
"loc": {
"start": {
"line": 338,
"column": 31
},
"end": {
"line": 338,
"column": 32
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 8521,
"end": 8522,
"loc": {
"start": {
"line": 338,
"column": 33
},
"end": {
"line": 338,
"column": 34
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "| h:",
"start": 8536,
"end": 8542,
"loc": {
"start": {
"line": 339,
"column": 12
},
"end": {
"line": 339,
"column": 18
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 8543,
"end": 8544,
"loc": {
"start": {
"line": 339,
"column": 19
},
"end": {
"line": 339,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "round2Digits",
"start": 8558,
"end": 8570,
"loc": {
"start": {
"line": 340,
"column": 12
},
"end": {
"line": 340,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8570,
"end": 8571,
"loc": {
"start": {
"line": 340,
"column": 24
},
"end": {
"line": 340,
"column": 25
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 8571,
"end": 8575,
"loc": {
"start": {
"line": 340,
"column": 25
},
"end": {
"line": 340,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8575,
"end": 8576,
"loc": {
"start": {
"line": 340,
"column": 29
},
"end": {
"line": 340,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "h",
"start": 8576,
"end": 8577,
"loc": {
"start": {
"line": 340,
"column": 30
},
"end": {
"line": 340,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8577,
"end": 8578,
"loc": {
"start": {
"line": 340,
"column": 31
},
"end": {
"line": 340,
"column": 32
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 8579,
"end": 8580,
"loc": {
"start": {
"line": 340,
"column": 33
},
"end": {
"line": 340,
"column": 34
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "]",
"start": 8594,
"end": 8597,
"loc": {
"start": {
"line": 341,
"column": 12
},
"end": {
"line": 341,
"column": 15
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8607,
"end": 8608,
"loc": {
"start": {
"line": 342,
"column": 8
},
"end": {
"line": 342,
"column": 9
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8608,
"end": 8609,
"loc": {
"start": {
"line": 342,
"column": 9
},
"end": {
"line": 342,
"column": 10
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8615,
"end": 8616,
"loc": {
"start": {
"line": 343,
"column": 4
},
"end": {
"line": 343,
"column": 5
}
}
},
{
"type": "CommentBlock",
"value": "*\r\n * Returns a new rectangle in tile space which includes all tiles which are visible in this rect\r\n * @returns {Rectangle}\r\n ",
"start": 8624,
"end": 8767,
"loc": {
"start": {
"line": 345,
"column": 4
},
"end": {
"line": 348,
"column": 7
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "toTileCullRectangle",
"start": 8773,
"end": 8792,
"loc": {
"start": {
"line": 349,
"column": 4
},
"end": {
"line": 349,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8792,
"end": 8793,
"loc": {
"start": {
"line": 349,
"column": 23
},
"end": {
"line": 349,
"column": 24
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8793,
"end": 8794,
"loc": {
"start": {
"line": 349,
"column": 24
},
"end": {
"line": 349,
"column": 25
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8795,
"end": 8796,
"loc": {
"start": {
"line": 349,
"column": 26
},
"end": {
"line": 349,
"column": 27
}
}
},
{
"type": {
"label": "return",
"keyword": "return",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "return",
"start": 8806,
"end": 8812,
"loc": {
"start": {
"line": 350,
"column": 8
},
"end": {
"line": 350,
"column": 14
}
}
},
{
"type": {
"label": "new",
"keyword": "new",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "new",
"start": 8813,
"end": 8816,
"loc": {
"start": {
"line": 350,
"column": 15
},
"end": {
"line": 350,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Rectangle",
"start": 8817,
"end": 8826,
"loc": {
"start": {
"line": 350,
"column": 19
},
"end": {
"line": 350,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8826,
"end": 8827,
"loc": {
"start": {
"line": 350,
"column": 28
},
"end": {
"line": 350,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 8841,
"end": 8845,
"loc": {
"start": {
"line": 351,
"column": 12
},
"end": {
"line": 351,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8845,
"end": 8846,
"loc": {
"start": {
"line": 351,
"column": 16
},
"end": {
"line": 351,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "floor",
"start": 8846,
"end": 8851,
"loc": {
"start": {
"line": 351,
"column": 17
},
"end": {
"line": 351,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8851,
"end": 8852,
"loc": {
"start": {
"line": 351,
"column": 22
},
"end": {
"line": 351,
"column": 23
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 8852,
"end": 8856,
"loc": {
"start": {
"line": 351,
"column": 23
},
"end": {
"line": 351,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8856,
"end": 8857,
"loc": {
"start": {
"line": 351,
"column": 27
},
"end": {
"line": 351,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "x",
"start": 8857,
"end": 8858,
"loc": {
"start": {
"line": 351,
"column": 28
},
"end": {
"line": 351,
"column": 29
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 8859,
"end": 8860,
"loc": {
"start": {
"line": 351,
"column": 30
},
"end": {
"line": 351,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 8861,
"end": 8873,
"loc": {
"start": {
"line": 351,
"column": 32
},
"end": {
"line": 351,
"column": 44
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8873,
"end": 8874,
"loc": {
"start": {
"line": 351,
"column": 44
},
"end": {
"line": 351,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileSize",
"start": 8874,
"end": 8882,
"loc": {
"start": {
"line": 351,
"column": 45
},
"end": {
"line": 351,
"column": 53
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8882,
"end": 8883,
"loc": {
"start": {
"line": 351,
"column": 53
},
"end": {
"line": 351,
"column": 54
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8883,
"end": 8884,
"loc": {
"start": {
"line": 351,
"column": 54
},
"end": {
"line": 351,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 8898,
"end": 8902,
"loc": {
"start": {
"line": 352,
"column": 12
},
"end": {
"line": 352,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8902,
"end": 8903,
"loc": {
"start": {
"line": 352,
"column": 16
},
"end": {
"line": 352,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "floor",
"start": 8903,
"end": 8908,
"loc": {
"start": {
"line": 352,
"column": 17
},
"end": {
"line": 352,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8908,
"end": 8909,
"loc": {
"start": {
"line": 352,
"column": 22
},
"end": {
"line": 352,
"column": 23
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 8909,
"end": 8913,
"loc": {
"start": {
"line": 352,
"column": 23
},
"end": {
"line": 352,
"column": 27
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8913,
"end": 8914,
"loc": {
"start": {
"line": 352,
"column": 27
},
"end": {
"line": 352,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "y",
"start": 8914,
"end": 8915,
"loc": {
"start": {
"line": 352,
"column": 28
},
"end": {
"line": 352,
"column": 29
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 8916,
"end": 8917,
"loc": {
"start": {
"line": 352,
"column": 30
},
"end": {
"line": 352,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 8918,
"end": 8930,
"loc": {
"start": {
"line": 352,
"column": 32
},
"end": {
"line": 352,
"column": 44
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8930,
"end": 8931,
"loc": {
"start": {
"line": 352,
"column": 44
},
"end": {
"line": 352,
"column": 45
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileSize",
"start": 8931,
"end": 8939,
"loc": {
"start": {
"line": 352,
"column": 45
},
"end": {
"line": 352,
"column": 53
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8939,
"end": 8940,
"loc": {
"start": {
"line": 352,
"column": 53
},
"end": {
"line": 352,
"column": 54
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8940,
"end": 8941,
"loc": {
"start": {
"line": 352,
"column": 54
},
"end": {
"line": 352,
"column": 55
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 8955,
"end": 8959,
"loc": {
"start": {
"line": 353,
"column": 12
},
"end": {
"line": 353,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8959,
"end": 8960,
"loc": {
"start": {
"line": 353,
"column": 16
},
"end": {
"line": 353,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ceil",
"start": 8960,
"end": 8964,
"loc": {
"start": {
"line": 353,
"column": 17
},
"end": {
"line": 353,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8964,
"end": 8965,
"loc": {
"start": {
"line": 353,
"column": 21
},
"end": {
"line": 353,
"column": 22
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 8965,
"end": 8969,
"loc": {
"start": {
"line": 353,
"column": 22
},
"end": {
"line": 353,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8969,
"end": 8970,
"loc": {
"start": {
"line": 353,
"column": 26
},
"end": {
"line": 353,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "w",
"start": 8970,
"end": 8971,
"loc": {
"start": {
"line": 353,
"column": 27
},
"end": {
"line": 353,
"column": 28
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 8972,
"end": 8973,
"loc": {
"start": {
"line": 353,
"column": 29
},
"end": {
"line": 353,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 8974,
"end": 8986,
"loc": {
"start": {
"line": 353,
"column": 31
},
"end": {
"line": 353,
"column": 43
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8986,
"end": 8987,
"loc": {
"start": {
"line": 353,
"column": 43
},
"end": {
"line": 353,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileSize",
"start": 8987,
"end": 8995,
"loc": {
"start": {
"line": 353,
"column": 44
},
"end": {
"line": 353,
"column": 52
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 8995,
"end": 8996,
"loc": {
"start": {
"line": 353,
"column": 52
},
"end": {
"line": 353,
"column": 53
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 8996,
"end": 8997,
"loc": {
"start": {
"line": 353,
"column": 53
},
"end": {
"line": 353,
"column": 54
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Math",
"start": 9011,
"end": 9015,
"loc": {
"start": {
"line": 354,
"column": 12
},
"end": {
"line": 354,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9015,
"end": 9016,
"loc": {
"start": {
"line": 354,
"column": 16
},
"end": {
"line": 354,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "ceil",
"start": 9016,
"end": 9020,
"loc": {
"start": {
"line": 354,
"column": 17
},
"end": {
"line": 354,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9020,
"end": 9021,
"loc": {
"start": {
"line": 354,
"column": 21
},
"end": {
"line": 354,
"column": 22
}
}
},
{
"type": {
"label": "this",
"keyword": "this",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "this",
"start": 9021,
"end": 9025,
"loc": {
"start": {
"line": 354,
"column": 22
},
"end": {
"line": 354,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9025,
"end": 9026,
"loc": {
"start": {
"line": 354,
"column": 26
},
"end": {
"line": 354,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "h",
"start": 9026,
"end": 9027,
"loc": {
"start": {
"line": 354,
"column": 27
},
"end": {
"line": 354,
"column": 28
}
}
},
{
"type": {
"label": "/",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 10,
"updateContext": null
},
"value": "/",
"start": 9028,
"end": 9029,
"loc": {
"start": {
"line": 354,
"column": 29
},
"end": {
"line": 354,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "globalConfig",
"start": 9030,
"end": 9042,
"loc": {
"start": {
"line": 354,
"column": 31
},
"end": {
"line": 354,
"column": 43
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9042,
"end": 9043,
"loc": {
"start": {
"line": 354,
"column": 43
},
"end": {
"line": 354,
"column": 44
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "tileSize",
"start": 9043,
"end": 9051,
"loc": {
"start": {
"line": 354,
"column": 44
},
"end": {
"line": 354,
"column": 52
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9051,
"end": 9052,
"loc": {
"start": {
"line": 354,
"column": 52
},
"end": {
"line": 354,
"column": 53
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9062,
"end": 9063,
"loc": {
"start": {
"line": 355,
"column": 8
},
"end": {
"line": 355,
"column": 9
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9063,
"end": 9064,
"loc": {
"start": {
"line": 355,
"column": 9
},
"end": {
"line": 355,
"column": 10
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9070,
"end": 9071,
"loc": {
"start": {
"line": 356,
"column": 4
},
"end": {
"line": 356,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 9073,
"end": 9074,
"loc": {
"start": {
"line": 357,
"column": 0
},
"end": {
"line": 357,
"column": 1
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 9076,
"end": 9076,
"loc": {
"start": {
"line": 358,
"column": 0
},
"end": {
"line": 358,
"column": 0
}
}
}
]
}