{
"type": "File",
"start": 0,
"end": 2139,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 68,
"column": 17
}
},
"program": {
"type": "Program",
"start": 0,
"end": 2139,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 68,
"column": 17
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 104,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 104
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 8,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 27
}
},
"imported": {
"type": "Identifier",
"start": 8,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 27
},
"identifierName": "BCFViewpointsPlugin"
},
"name": "BCFViewpointsPlugin"
},
"local": {
"type": "Identifier",
"start": 8,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 27
},
"identifierName": "BCFViewpointsPlugin"
},
"name": "BCFViewpointsPlugin"
}
}
],
"source": {
"type": "StringLiteral",
"start": 34,
"end": 103,
"loc": {
"start": {
"line": 1,
"column": 34
},
"end": {
"line": 1,
"column": 103
}
},
"extra": {
"rawValue": "../../lib/xeokit/plugins/BCFViewpointsPlugin/BCFViewpointsPlugin.js",
"raw": "\"../../lib/xeokit/plugins/BCFViewpointsPlugin/BCFViewpointsPlugin.js\""
},
"value": "../../lib/xeokit/plugins/BCFViewpointsPlugin/BCFViewpointsPlugin.js"
}
},
{
"type": "ImportDeclaration",
"start": 105,
"end": 169,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 64
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 113,
"end": 117,
"loc": {
"start": {
"line": 2,
"column": 8
},
"end": {
"line": 2,
"column": 12
}
},
"imported": {
"type": "Identifier",
"start": 113,
"end": 117,
"loc": {
"start": {
"line": 2,
"column": 8
},
"end": {
"line": 2,
"column": 12
},
"identifierName": "math"
},
"name": "math"
},
"local": {
"type": "Identifier",
"start": 113,
"end": 117,
"loc": {
"start": {
"line": 2,
"column": 8
},
"end": {
"line": 2,
"column": 12
},
"identifierName": "math"
},
"name": "math"
}
}
],
"source": {
"type": "StringLiteral",
"start": 124,
"end": 168,
"loc": {
"start": {
"line": 2,
"column": 19
},
"end": {
"line": 2,
"column": 63
}
},
"extra": {
"rawValue": "../../lib/xeokit/viewer/scene/math/math.js",
"raw": "\"../../lib/xeokit/viewer/scene/math/math.js\""
},
"value": "../../lib/xeokit/viewer/scene/math/math.js"
}
},
{
"type": "ImportDeclaration",
"start": 170,
"end": 214,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 44
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 178,
"end": 188,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 18
}
},
"imported": {
"type": "Identifier",
"start": 178,
"end": 188,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 18
},
"identifierName": "Controller"
},
"name": "Controller"
},
"local": {
"type": "Identifier",
"start": 178,
"end": 188,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 18
},
"identifierName": "Controller"
},
"name": "Controller"
}
}
],
"source": {
"type": "StringLiteral",
"start": 195,
"end": 213,
"loc": {
"start": {
"line": 3,
"column": 25
},
"end": {
"line": 3,
"column": 43
}
},
"extra": {
"rawValue": "../Controller.js",
"raw": "\"../Controller.js\""
},
"value": "../Controller.js"
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * @desc Manages BCF viewpoints.\n *\n * Located at {@link Toolbar#bcf}.\n ",
"start": 216,
"end": 294,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 9,
"column": 3
}
}
}
]
},
{
"type": "Identifier",
"start": 295,
"end": 2120,
"loc": {
"start": {
"line": 10,
"column": 0
},
"end": {
"line": 66,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 301,
"end": 308,
"loc": {
"start": {
"line": 10,
"column": 6
},
"end": {
"line": 10,
"column": 13
},
"identifierName": "BCFMode"
},
"name": "BCFMode",
"leadingComments": null
},
"superClass": {
"type": "Identifier",
"start": 317,
"end": 327,
"loc": {
"start": {
"line": 10,
"column": 22
},
"end": {
"line": 10,
"column": 32
},
"identifierName": "Controller"
},
"name": "Controller"
},
"body": {
"type": "ClassBody",
"start": 328,
"end": 2120,
"loc": {
"start": {
"line": 10,
"column": 33
},
"end": {
"line": 66,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 335,
"end": 597,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 18,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 335,
"end": 346,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor"
},
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 347,
"end": 353,
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 22
},
"identifierName": "parent"
},
"name": "parent"
},
{
"type": "Identifier",
"start": 355,
"end": 358,
"loc": {
"start": {
"line": 12,
"column": 24
},
"end": {
"line": 12,
"column": 27
},
"identifierName": "cfg"
},
"name": "cfg"
}
],
"body": {
"type": "BlockStatement",
"start": 360,
"end": 597,
"loc": {
"start": {
"line": 12,
"column": 29
},
"end": {
"line": 18,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 370,
"end": 389,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 27
}
},
"expression": {
"type": "CallExpression",
"start": 370,
"end": 388,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 26
}
},
"callee": {
"type": "Super",
"start": 370,
"end": 375,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"start": 376,
"end": 382,
"loc": {
"start": {
"line": 13,
"column": 14
},
"end": {
"line": 13,
"column": 20
},
"identifierName": "parent"
},
"name": "parent"
},
{
"type": "Identifier",
"start": 384,
"end": 387,
"loc": {
"start": {
"line": 13,
"column": 22
},
"end": {
"line": 13,
"column": 25
},
"identifierName": "cfg"
},
"name": "cfg"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 398,
"end": 454,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 64
}
},
"expression": {
"type": "AssignmentExpression",
"start": 398,
"end": 453,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 63
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 398,
"end": 411,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 398,
"end": 402,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 403,
"end": 411,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 21
},
"identifierName": "_element"
},
"name": "_element"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 414,
"end": 453,
"loc": {
"start": {
"line": 14,
"column": 24
},
"end": {
"line": 14,
"column": 63
}
},
"callee": {
"type": "MemberExpression",
"start": 414,
"end": 437,
"loc": {
"start": {
"line": 14,
"column": 24
},
"end": {
"line": 14,
"column": 47
}
},
"object": {
"type": "Identifier",
"start": 414,
"end": 422,
"loc": {
"start": {
"line": 14,
"column": 24
},
"end": {
"line": 14,
"column": 32
},
"identifierName": "document"
},
"name": "document"
},
"property": {
"type": "Identifier",
"start": 423,
"end": 437,
"loc": {
"start": {
"line": 14,
"column": 33
},
"end": {
"line": 14,
"column": 47
},
"identifierName": "getElementById"
},
"name": "getElementById"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 438,
"end": 452,
"loc": {
"start": {
"line": 14,
"column": 48
},
"end": {
"line": 14,
"column": 62
}
},
"object": {
"type": "Identifier",
"start": 438,
"end": 441,
"loc": {
"start": {
"line": 14,
"column": 48
},
"end": {
"line": 14,
"column": 51
},
"identifierName": "cfg"
},
"name": "cfg"
},
"property": {
"type": "Identifier",
"start": 442,
"end": 452,
"loc": {
"start": {
"line": 14,
"column": 52
},
"end": {
"line": 14,
"column": 62
},
"identifierName": "bcfPanelId"
},
"name": "bcfPanelId"
},
"computed": false
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 463,
"end": 482,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 27
}
},
"expression": {
"type": "AssignmentExpression",
"start": 463,
"end": 481,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 26
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 463,
"end": 476,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 463,
"end": 467,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 468,
"end": 476,
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 21
},
"identifierName": "_records"
},
"name": "_records"
},
"computed": false
},
"right": {
"type": "ArrayExpression",
"start": 479,
"end": 481,
"loc": {
"start": {
"line": 15,
"column": 24
},
"end": {
"line": 15,
"column": 26
}
},
"elements": []
}
}
},
{
"type": "ExpressionStatement",
"start": 491,
"end": 513,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 30
}
},
"expression": {
"type": "AssignmentExpression",
"start": 491,
"end": 512,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 29
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 491,
"end": 507,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 491,
"end": 495,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 496,
"end": 507,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 24
},
"identifierName": "_recordsMap"
},
"name": "_recordsMap"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 510,
"end": 512,
"loc": {
"start": {
"line": 16,
"column": 27
},
"end": {
"line": 16,
"column": 29
}
},
"properties": []
}
}
},
{
"type": "ExpressionStatement",
"start": 522,
"end": 591,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 77
}
},
"expression": {
"type": "AssignmentExpression",
"start": 522,
"end": 590,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 76
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 522,
"end": 547,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 33
}
},
"object": {
"type": "ThisExpression",
"start": 522,
"end": 526,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 527,
"end": 547,
"loc": {
"start": {
"line": 17,
"column": 13
},
"end": {
"line": 17,
"column": 33
},
"identifierName": "_bcfViewpointsPlugin"
},
"name": "_bcfViewpointsPlugin"
},
"computed": false
},
"right": {
"type": "NewExpression",
"start": 550,
"end": 590,
"loc": {
"start": {
"line": 17,
"column": 36
},
"end": {
"line": 17,
"column": 76
}
},
"callee": {
"type": "Identifier",
"start": 554,
"end": 573,
"loc": {
"start": {
"line": 17,
"column": 40
},
"end": {
"line": 17,
"column": 59
},
"identifierName": "BCFViewpointsPlugin"
},
"name": "BCFViewpointsPlugin"
},
"arguments": [
{
"type": "MemberExpression",
"start": 574,
"end": 585,
"loc": {
"start": {
"line": 17,
"column": 60
},
"end": {
"line": 17,
"column": 71
}
},
"object": {
"type": "ThisExpression",
"start": 574,
"end": 578,
"loc": {
"start": {
"line": 17,
"column": 60
},
"end": {
"line": 17,
"column": 64
}
}
},
"property": {
"type": "Identifier",
"start": 579,
"end": 585,
"loc": {
"start": {
"line": 17,
"column": 65
},
"end": {
"line": 17,
"column": 71
},
"identifierName": "viewer"
},
"name": "viewer"
},
"computed": false
},
{
"type": "ObjectExpression",
"start": 587,
"end": 589,
"loc": {
"start": {
"line": 17,
"column": 73
},
"end": {
"line": 17,
"column": 75
}
},
"properties": []
}
]
}
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 603,
"end": 948,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 30,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 603,
"end": 618,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 19
},
"identifierName": "createViewpoint"
},
"name": "createViewpoint"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 621,
"end": 948,
"loc": {
"start": {
"line": 20,
"column": 22
},
"end": {
"line": 30,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 631,
"end": 669,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 46
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 637,
"end": 668,
"loc": {
"start": {
"line": 21,
"column": 14
},
"end": {
"line": 21,
"column": 45
}
},
"id": {
"type": "Identifier",
"start": 637,
"end": 648,
"loc": {
"start": {
"line": 21,
"column": 14
},
"end": {
"line": 21,
"column": 25
},
"identifierName": "viewpointId"
},
"name": "viewpointId"
},
"init": {
"type": "CallExpression",
"start": 651,
"end": 668,
"loc": {
"start": {
"line": 21,
"column": 28
},
"end": {
"line": 21,
"column": 45
}
},
"callee": {
"type": "MemberExpression",
"start": 651,
"end": 666,
"loc": {
"start": {
"line": 21,
"column": 28
},
"end": {
"line": 21,
"column": 43
}
},
"object": {
"type": "Identifier",
"start": 651,
"end": 655,
"loc": {
"start": {
"line": 21,
"column": 28
},
"end": {
"line": 21,
"column": 32
},
"identifierName": "math"
},
"name": "math"
},
"property": {
"type": "Identifier",
"start": 656,
"end": 666,
"loc": {
"start": {
"line": 21,
"column": 33
},
"end": {
"line": 21,
"column": 43
},
"identifierName": "createUUID"
},
"name": "createUUID"
},
"computed": false
},
"arguments": []
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 678,
"end": 737,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 67
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 684,
"end": 736,
"loc": {
"start": {
"line": 22,
"column": 14
},
"end": {
"line": 22,
"column": 66
}
},
"id": {
"type": "Identifier",
"start": 684,
"end": 693,
"loc": {
"start": {
"line": 22,
"column": 14
},
"end": {
"line": 22,
"column": 23
},
"identifierName": "viewpoint"
},
"name": "viewpoint"
},
"init": {
"type": "CallExpression",
"start": 696,
"end": 736,
"loc": {
"start": {
"line": 22,
"column": 26
},
"end": {
"line": 22,
"column": 66
}
},
"callee": {
"type": "MemberExpression",
"start": 696,
"end": 734,
"loc": {
"start": {
"line": 22,
"column": 26
},
"end": {
"line": 22,
"column": 64
}
},
"object": {
"type": "MemberExpression",
"start": 696,
"end": 721,
"loc": {
"start": {
"line": 22,
"column": 26
},
"end": {
"line": 22,
"column": 51
}
},
"object": {
"type": "ThisExpression",
"start": 696,
"end": 700,
"loc": {
"start": {
"line": 22,
"column": 26
},
"end": {
"line": 22,
"column": 30
}
}
},
"property": {
"type": "Identifier",
"start": 701,
"end": 721,
"loc": {
"start": {
"line": 22,
"column": 31
},
"end": {
"line": 22,
"column": 51
},
"identifierName": "_bcfViewpointsPlugin"
},
"name": "_bcfViewpointsPlugin"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 722,
"end": 734,
"loc": {
"start": {
"line": 22,
"column": 52
},
"end": {
"line": 22,
"column": 64
},
"identifierName": "getViewpoint"
},
"name": "getViewpoint"
},
"computed": false
},
"arguments": []
}
}
],
"kind": "const"
},
{
"type": "VariableDeclaration",
"start": 746,
"end": 835,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 26,
"column": 10
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 752,
"end": 834,
"loc": {
"start": {
"line": 23,
"column": 14
},
"end": {
"line": 26,
"column": 9
}
},
"id": {
"type": "Identifier",
"start": 752,
"end": 758,
"loc": {
"start": {
"line": 23,
"column": 14
},
"end": {
"line": 23,
"column": 20
},
"identifierName": "record"
},
"name": "record"
},
"init": {
"type": "ObjectExpression",
"start": 761,
"end": 834,
"loc": {
"start": {
"line": 23,
"column": 23
},
"end": {
"line": 26,
"column": 9
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 775,
"end": 790,
"loc": {
"start": {
"line": 24,
"column": 12
},
"end": {
"line": 24,
"column": 27
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 775,
"end": 777,
"loc": {
"start": {
"line": 24,
"column": 12
},
"end": {
"line": 24,
"column": 14
},
"identifierName": "id"
},
"name": "id"
},
"value": {
"type": "Identifier",
"start": 779,
"end": 790,
"loc": {
"start": {
"line": 24,
"column": 16
},
"end": {
"line": 24,
"column": 27
},
"identifierName": "viewpointId"
},
"name": "viewpointId"
}
},
{
"type": "ObjectProperty",
"start": 804,
"end": 824,
"loc": {
"start": {
"line": 25,
"column": 12
},
"end": {
"line": 25,
"column": 32
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 804,
"end": 813,
"loc": {
"start": {
"line": 25,
"column": 12
},
"end": {
"line": 25,
"column": 21
},
"identifierName": "viewpoint"
},
"name": "viewpoint"
},
"value": {
"type": "Identifier",
"start": 815,
"end": 824,
"loc": {
"start": {
"line": 25,
"column": 23
},
"end": {
"line": 25,
"column": 32
},
"identifierName": "viewpoint"
},
"name": "viewpoint"
}
}
]
}
}
],
"kind": "const"
},
{
"type": "ExpressionStatement",
"start": 844,
"end": 871,
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 35
}
},
"expression": {
"type": "CallExpression",
"start": 844,
"end": 870,
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 844,
"end": 862,
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 26
}
},
"object": {
"type": "MemberExpression",
"start": 844,
"end": 857,
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 844,
"end": 848,
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 849,
"end": 857,
"loc": {
"start": {
"line": 27,
"column": 13
},
"end": {
"line": 27,
"column": 21
},
"identifierName": "_records"
},
"name": "_records"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 858,
"end": 862,
"loc": {
"start": {
"line": 27,
"column": 22
},
"end": {
"line": 27,
"column": 26
},
"identifierName": "push"
},
"name": "push"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 863,
"end": 869,
"loc": {
"start": {
"line": 27,
"column": 27
},
"end": {
"line": 27,
"column": 33
},
"identifierName": "record"
},
"name": "record"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 880,
"end": 917,
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 28,
"column": 45
}
},
"expression": {
"type": "AssignmentExpression",
"start": 880,
"end": 916,
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 28,
"column": 44
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 880,
"end": 907,
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 28,
"column": 35
}
},
"object": {
"type": "MemberExpression",
"start": 880,
"end": 896,
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 28,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 880,
"end": 884,
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 28,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 885,
"end": 896,
"loc": {
"start": {
"line": 28,
"column": 13
},
"end": {
"line": 28,
"column": 24
},
"identifierName": "_recordsMap"
},
"name": "_recordsMap"
},
"computed": false
},
"property": {
"type": "MemberExpression",
"start": 897,
"end": 906,
"loc": {
"start": {
"line": 28,
"column": 25
},
"end": {
"line": 28,
"column": 34
}
},
"object": {
"type": "Identifier",
"start": 897,
"end": 903,
"loc": {
"start": {
"line": 28,
"column": 25
},
"end": {
"line": 28,
"column": 31
},
"identifierName": "record"
},
"name": "record"
},
"property": {
"type": "Identifier",
"start": 904,
"end": 906,
"loc": {
"start": {
"line": 28,
"column": 32
},
"end": {
"line": 28,
"column": 34
},
"identifierName": "id"
},
"name": "id"
},
"computed": false
},
"computed": true
},
"right": {
"type": "Identifier",
"start": 910,
"end": 916,
"loc": {
"start": {
"line": 28,
"column": 38
},
"end": {
"line": 28,
"column": 44
},
"identifierName": "record"
},
"name": "record"
}
}
},
{
"type": "ExpressionStatement",
"start": 926,
"end": 942,
"loc": {
"start": {
"line": 29,
"column": 8
},
"end": {
"line": 29,
"column": 24
}
},
"expression": {
"type": "CallExpression",
"start": 926,
"end": 941,
"loc": {
"start": {
"line": 29,
"column": 8
},
"end": {
"line": 29,
"column": 23
}
},
"callee": {
"type": "MemberExpression",
"start": 926,
"end": 939,
"loc": {
"start": {
"line": 29,
"column": 8
},
"end": {
"line": 29,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 926,
"end": 930,
"loc": {
"start": {
"line": 29,
"column": 8
},
"end": {
"line": 29,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 931,
"end": 939,
"loc": {
"start": {
"line": 29,
"column": 13
},
"end": {
"line": 29,
"column": 21
},
"identifierName": "_repaint"
},
"name": "_repaint"
},
"computed": false
},
"arguments": []
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 954,
"end": 1063,
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 36,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 954,
"end": 969,
"loc": {
"start": {
"line": 32,
"column": 4
},
"end": {
"line": 32,
"column": 19
},
"identifierName": "clearViewpoints"
},
"name": "clearViewpoints"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 972,
"end": 1063,
"loc": {
"start": {
"line": 32,
"column": 22
},
"end": {
"line": 36,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 982,
"end": 1001,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 27
}
},
"expression": {
"type": "AssignmentExpression",
"start": 982,
"end": 1000,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 26
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 982,
"end": 995,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 982,
"end": 986,
"loc": {
"start": {
"line": 33,
"column": 8
},
"end": {
"line": 33,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 987,
"end": 995,
"loc": {
"start": {
"line": 33,
"column": 13
},
"end": {
"line": 33,
"column": 21
},
"identifierName": "_records"
},
"name": "_records"
},
"computed": false
},
"right": {
"type": "ArrayExpression",
"start": 998,
"end": 1000,
"loc": {
"start": {
"line": 33,
"column": 24
},
"end": {
"line": 33,
"column": 26
}
},
"elements": []
}
}
},
{
"type": "ExpressionStatement",
"start": 1010,
"end": 1032,
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 30
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1010,
"end": 1031,
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 29
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1010,
"end": 1026,
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 1010,
"end": 1014,
"loc": {
"start": {
"line": 34,
"column": 8
},
"end": {
"line": 34,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1015,
"end": 1026,
"loc": {
"start": {
"line": 34,
"column": 13
},
"end": {
"line": 34,
"column": 24
},
"identifierName": "_recordsMap"
},
"name": "_recordsMap"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 1029,
"end": 1031,
"loc": {
"start": {
"line": 34,
"column": 27
},
"end": {
"line": 34,
"column": 29
}
},
"properties": []
}
}
},
{
"type": "ExpressionStatement",
"start": 1041,
"end": 1057,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 24
}
},
"expression": {
"type": "CallExpression",
"start": 1041,
"end": 1056,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 23
}
},
"callee": {
"type": "MemberExpression",
"start": 1041,
"end": 1054,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 1041,
"end": 1045,
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 1046,
"end": 1054,
"loc": {
"start": {
"line": 35,
"column": 13
},
"end": {
"line": 35,
"column": 21
},
"identifierName": "_repaint"
},
"name": "_repaint"
},
"computed": false
},
"arguments": []
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 1069,
"end": 2005,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 59,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 1069,
"end": 1077,
"loc": {
"start": {
"line": 38,
"column": 4
},
"end": {
"line": 38,
"column": 12
},
"identifierName": "_repaint"
},
"name": "_repaint"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 1080,
"end": 2005,
"loc": {
"start": {
"line": 38,
"column": 15
},
"end": {
"line": 59,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1090,
"end": 1101,
"loc": {
"start": {
"line": 39,
"column": 8
},
"end": {
"line": 39,
"column": 19
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1094,
"end": 1100,
"loc": {
"start": {
"line": 39,
"column": 12
},
"end": {
"line": 39,
"column": 18
}
},
"id": {
"type": "Identifier",
"start": 1094,
"end": 1095,
"loc": {
"start": {
"line": 39,
"column": 12
},
"end": {
"line": 39,
"column": 13
},
"identifierName": "h"
},
"name": "h"
},
"init": {
"type": "StringLiteral",
"start": 1098,
"end": 1100,
"loc": {
"start": {
"line": 39,
"column": 16
},
"end": {
"line": 39,
"column": 18
}
},
"extra": {
"rawValue": "",
"raw": "\"\""
},
"value": ""
}
}
],
"kind": "var"
},
{
"type": "ForStatement",
"start": 1110,
"end": 1561,
"loc": {
"start": {
"line": 40,
"column": 8
},
"end": {
"line": 47,
"column": 9
}
},
"init": {
"type": "VariableDeclaration",
"start": 1115,
"end": 1152,
"loc": {
"start": {
"line": 40,
"column": 13
},
"end": {
"line": 40,
"column": 50
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1119,
"end": 1124,
"loc": {
"start": {
"line": 40,
"column": 17
},
"end": {
"line": 40,
"column": 22
}
},
"id": {
"type": "Identifier",
"start": 1119,
"end": 1120,
"loc": {
"start": {
"line": 40,
"column": 17
},
"end": {
"line": 40,
"column": 18
},
"identifierName": "i"
},
"name": "i"
},
"init": {
"type": "NumericLiteral",
"start": 1123,
"end": 1124,
"loc": {
"start": {
"line": 40,
"column": 21
},
"end": {
"line": 40,
"column": 22
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
},
{
"type": "VariableDeclarator",
"start": 1126,
"end": 1152,
"loc": {
"start": {
"line": 40,
"column": 24
},
"end": {
"line": 40,
"column": 50
}
},
"id": {
"type": "Identifier",
"start": 1126,
"end": 1129,
"loc": {
"start": {
"line": 40,
"column": 24
},
"end": {
"line": 40,
"column": 27
},
"identifierName": "len"
},
"name": "len"
},
"init": {
"type": "MemberExpression",
"start": 1132,
"end": 1152,
"loc": {
"start": {
"line": 40,
"column": 30
},
"end": {
"line": 40,
"column": 50
}
},
"object": {
"type": "MemberExpression",
"start": 1132,
"end": 1145,
"loc": {
"start": {
"line": 40,
"column": 30
},
"end": {
"line": 40,
"column": 43
}
},
"object": {
"type": "ThisExpression",
"start": 1132,
"end": 1136,
"loc": {
"start": {
"line": 40,
"column": 30
},
"end": {
"line": 40,
"column": 34
}
}
},
"property": {
"type": "Identifier",
"start": 1137,
"end": 1145,
"loc": {
"start": {
"line": 40,
"column": 35
},
"end": {
"line": 40,
"column": 43
},
"identifierName": "_records"
},
"name": "_records"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1146,
"end": 1152,
"loc": {
"start": {
"line": 40,
"column": 44
},
"end": {
"line": 40,
"column": 50
},
"identifierName": "length"
},
"name": "length"
},
"computed": false
}
}
],
"kind": "var"
},
"test": {
"type": "BinaryExpression",
"start": 1154,
"end": 1161,
"loc": {
"start": {
"line": 40,
"column": 52
},
"end": {
"line": 40,
"column": 59
}
},
"left": {
"type": "Identifier",
"start": 1154,
"end": 1155,
"loc": {
"start": {
"line": 40,
"column": 52
},
"end": {
"line": 40,
"column": 53
},
"identifierName": "i"
},
"name": "i"
},
"operator": "<",
"right": {
"type": "Identifier",
"start": 1158,
"end": 1161,
"loc": {
"start": {
"line": 40,
"column": 56
},
"end": {
"line": 40,
"column": 59
},
"identifierName": "len"
},
"name": "len"
}
},
"update": {
"type": "UpdateExpression",
"start": 1163,
"end": 1166,
"loc": {
"start": {
"line": 40,
"column": 61
},
"end": {
"line": 40,
"column": 64
}
},
"operator": "++",
"prefix": false,
"argument": {
"type": "Identifier",
"start": 1163,
"end": 1164,
"loc": {
"start": {
"line": 40,
"column": 61
},
"end": {
"line": 40,
"column": 62
},
"identifierName": "i"
},
"name": "i"
}
},
"body": {
"type": "BlockStatement",
"start": 1168,
"end": 1561,
"loc": {
"start": {
"line": 40,
"column": 66
},
"end": {
"line": 47,
"column": 9
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 1182,
"end": 1214,
"loc": {
"start": {
"line": 41,
"column": 12
},
"end": {
"line": 41,
"column": 44
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1188,
"end": 1213,
"loc": {
"start": {
"line": 41,
"column": 18
},
"end": {
"line": 41,
"column": 43
}
},
"id": {
"type": "Identifier",
"start": 1188,
"end": 1194,
"loc": {
"start": {
"line": 41,
"column": 18
},
"end": {
"line": 41,
"column": 24
},
"identifierName": "record"
},
"name": "record"
},
"init": {
"type": "MemberExpression",
"start": 1197,
"end": 1213,
"loc": {
"start": {
"line": 41,
"column": 27
},
"end": {
"line": 41,
"column": 43
}
},
"object": {
"type": "MemberExpression",
"start": 1197,
"end": 1210,
"loc": {
"start": {
"line": 41,
"column": 27
},
"end": {
"line": 41,
"column": 40
}
},
"object": {
"type": "ThisExpression",
"start": 1197,
"end": 1201,
"loc": {
"start": {
"line": 41,
"column": 27
},
"end": {
"line": 41,
"column": 31
}
}
},
"property": {
"type": "Identifier",
"start": 1202,
"end": 1210,
"loc": {
"start": {
"line": 41,
"column": 32
},
"end": {
"line": 41,
"column": 40
},
"identifierName": "_records"
},
"name": "_records"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 1211,
"end": 1212,
"loc": {
"start": {
"line": 41,
"column": 41
},
"end": {
"line": 41,
"column": 42
},
"identifierName": "i"
},
"name": "i"
},
"computed": true
}
}
],
"kind": "const"
},
{
"type": "ExpressionStatement",
"start": 1227,
"end": 1272,
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 57
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1227,
"end": 1271,
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 56
}
},
"operator": "+=",
"left": {
"type": "Identifier",
"start": 1227,
"end": 1228,
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 13
},
"identifierName": "h"
},
"name": "h"
},
"right": {
"type": "StringLiteral",
"start": 1232,
"end": 1271,
"loc": {
"start": {
"line": 42,
"column": 17
},
"end": {
"line": 42,
"column": 56
}
},
"extra": {
"rawValue": "