NODEDC_BIM_VIEWER/docs/ast/source/toolbar/QueryTool.js.json

3166 lines
79 KiB
JSON

{
"type": "File",
"start": 0,
"end": 1221,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 38,
"column": 19
}
},
"program": {
"type": "Program",
"start": 0,
"end": 1221,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 38,
"column": 19
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 44,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 44
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 8,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 18
}
},
"imported": {
"type": "Identifier",
"start": 8,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 18
},
"identifierName": "Controller"
},
"name": "Controller"
},
"local": {
"type": "Identifier",
"start": 8,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 18
},
"identifierName": "Controller"
},
"name": "Controller"
}
}
],
"source": {
"type": "StringLiteral",
"start": 25,
"end": 43,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 43
}
},
"extra": {
"rawValue": "../Controller.js",
"raw": "\"../Controller.js\""
},
"value": "../Controller.js"
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "* @private ",
"start": 46,
"end": 61,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 15
}
}
}
]
},
{
"type": "Identifier",
"start": 62,
"end": 1200,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 36,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 68,
"end": 77,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 15
},
"identifierName": "QueryTool"
},
"name": "QueryTool",
"leadingComments": null
},
"superClass": {
"type": "Identifier",
"start": 86,
"end": 96,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 34
},
"identifierName": "Controller"
},
"name": "Controller"
},
"body": {
"type": "ClassBody",
"start": 97,
"end": 1200,
"loc": {
"start": {
"line": 4,
"column": 35
},
"end": {
"line": 36,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 104,
"end": 1198,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 35,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 104,
"end": 115,
"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": "Identifier",
"start": 116,
"end": 122,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 22
},
"identifierName": "parent"
},
"name": "parent"
},
{
"type": "Identifier",
"start": 124,
"end": 127,
"loc": {
"start": {
"line": 6,
"column": 24
},
"end": {
"line": 6,
"column": 27
},
"identifierName": "cfg"
},
"name": "cfg"
}
],
"body": {
"type": "BlockStatement",
"start": 129,
"end": 1198,
"loc": {
"start": {
"line": 6,
"column": 29
},
"end": {
"line": 35,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 140,
"end": 154,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 22
}
},
"expression": {
"type": "CallExpression",
"start": 140,
"end": 153,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 21
}
},
"callee": {
"type": "Super",
"start": 140,
"end": 145,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"start": 146,
"end": 152,
"loc": {
"start": {
"line": 8,
"column": 14
},
"end": {
"line": 8,
"column": 20
},
"identifierName": "parent"
},
"name": "parent"
}
]
},
"trailingComments": [
{
"type": "CommentLine",
"value": " this.on(\"active\", (active) => {",
"start": 163,
"end": 198,
"loc": {
"start": {
"line": 10,
"column": 7
},
"end": {
"line": 10,
"column": 42
}
}
},
{
"type": "CommentLine",
"value": " if (active) {",
"start": 206,
"end": 227,
"loc": {
"start": {
"line": 11,
"column": 7
},
"end": {
"line": 11,
"column": 28
}
}
},
{
"type": "CommentLine",
"value": " this._onPick = this.viewer.cameraControl.on(\"picked\", (pickResult) => {",
"start": 235,
"end": 318,
"loc": {
"start": {
"line": 12,
"column": 7
},
"end": {
"line": 12,
"column": 90
}
}
},
{
"type": "CommentLine",
"value": " if (!pickResult.entity) {",
"start": 326,
"end": 367,
"loc": {
"start": {
"line": 13,
"column": 7
},
"end": {
"line": 13,
"column": 48
}
}
},
{
"type": "CommentLine",
"value": " return;",
"start": 375,
"end": 402,
"loc": {
"start": {
"line": 14,
"column": 7
},
"end": {
"line": 14,
"column": 34
}
}
},
{
"type": "CommentLine",
"value": " }",
"start": 410,
"end": 427,
"loc": {
"start": {
"line": 15,
"column": 7
},
"end": {
"line": 15,
"column": 24
}
}
},
{
"type": "CommentLine",
"value": " // this.queryEntity(pickResult.entity);",
"start": 435,
"end": 489,
"loc": {
"start": {
"line": 16,
"column": 7
},
"end": {
"line": 16,
"column": 61
}
}
},
{
"type": "CommentLine",
"value": " });",
"start": 497,
"end": 512,
"loc": {
"start": {
"line": 17,
"column": 7
},
"end": {
"line": 17,
"column": 22
}
}
},
{
"type": "CommentLine",
"value": " this._onPickedNothing = this.viewer.cameraControl.on(\"pickedNothing\", () => {",
"start": 520,
"end": 609,
"loc": {
"start": {
"line": 18,
"column": 7
},
"end": {
"line": 18,
"column": 96
}
}
},
{
"type": "CommentLine",
"value": " this.fire(\"queryNotPicked\", false);",
"start": 617,
"end": 668,
"loc": {
"start": {
"line": 19,
"column": 7
},
"end": {
"line": 19,
"column": 58
}
}
},
{
"type": "CommentLine",
"value": " });",
"start": 676,
"end": 691,
"loc": {
"start": {
"line": 20,
"column": 7
},
"end": {
"line": 20,
"column": 22
}
}
},
{
"type": "CommentLine",
"value": " } else {",
"start": 699,
"end": 715,
"loc": {
"start": {
"line": 21,
"column": 7
},
"end": {
"line": 21,
"column": 23
}
}
},
{
"type": "CommentLine",
"value": "",
"start": 723,
"end": 725,
"loc": {
"start": {
"line": 22,
"column": 7
},
"end": {
"line": 22,
"column": 9
}
}
},
{
"type": "CommentLine",
"value": " if (this._onPick !== undefined) {",
"start": 733,
"end": 778,
"loc": {
"start": {
"line": 23,
"column": 7
},
"end": {
"line": 23,
"column": 52
}
}
},
{
"type": "CommentLine",
"value": " this.viewer.cameraControl.off(this._onPick);",
"start": 786,
"end": 846,
"loc": {
"start": {
"line": 24,
"column": 7
},
"end": {
"line": 24,
"column": 67
}
}
},
{
"type": "CommentLine",
"value": " this.viewer.cameraControl.off(this._onPickedNothing);",
"start": 854,
"end": 923,
"loc": {
"start": {
"line": 25,
"column": 7
},
"end": {
"line": 25,
"column": 76
}
}
},
{
"type": "CommentLine",
"value": " this._onPick = undefined;",
"start": 931,
"end": 972,
"loc": {
"start": {
"line": 26,
"column": 7
},
"end": {
"line": 26,
"column": 48
}
}
},
{
"type": "CommentLine",
"value": " this._onPickedNothing = undefined;",
"start": 980,
"end": 1030,
"loc": {
"start": {
"line": 27,
"column": 7
},
"end": {
"line": 27,
"column": 57
}
}
},
{
"type": "CommentLine",
"value": " }",
"start": 1038,
"end": 1051,
"loc": {
"start": {
"line": 28,
"column": 7
},
"end": {
"line": 28,
"column": 20
}
}
},
{
"type": "CommentLine",
"value": " }",
"start": 1059,
"end": 1068,
"loc": {
"start": {
"line": 29,
"column": 7
},
"end": {
"line": 29,
"column": 16
}
}
},
{
"type": "CommentLine",
"value": " });",
"start": 1076,
"end": 1083,
"loc": {
"start": {
"line": 30,
"column": 7
},
"end": {
"line": 30,
"column": 14
}
}
},
{
"type": "CommentLine",
"value": "",
"start": 1091,
"end": 1093,
"loc": {
"start": {
"line": 31,
"column": 7
},
"end": {
"line": 31,
"column": 9
}
}
},
{
"type": "CommentLine",
"value": " this.bimViewer.on(\"reset\", () => {",
"start": 1101,
"end": 1139,
"loc": {
"start": {
"line": 32,
"column": 7
},
"end": {
"line": 32,
"column": 45
}
}
},
{
"type": "CommentLine",
"value": " this.setActive(false);",
"start": 1147,
"end": 1177,
"loc": {
"start": {
"line": 33,
"column": 7
},
"end": {
"line": 33,
"column": 37
}
}
},
{
"type": "CommentLine",
"value": " });",
"start": 1185,
"end": 1192,
"loc": {
"start": {
"line": 34,
"column": 7
},
"end": {
"line": 34,
"column": 14
}
}
}
]
}
],
"directives": []
}
}
]
},
"leadingComments": [],
"name": "_",
"trailingComments": []
},
{
"type": "ExportNamedDeclaration",
"start": 1202,
"end": 1221,
"loc": {
"start": {
"line": 38,
"column": 0
},
"end": {
"line": 38,
"column": 19
}
},
"declaration": null,
"specifiers": [
{
"type": "ExportSpecifier",
"start": 1210,
"end": 1219,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 17
}
},
"local": {
"type": "Identifier",
"start": 1210,
"end": 1219,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 17
},
"identifierName": "QueryTool"
},
"name": "QueryTool"
},
"exported": {
"type": "Identifier",
"start": 1210,
"end": 1219,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 17
},
"identifierName": "QueryTool"
},
"name": "QueryTool"
}
}
],
"source": null
},
{
"type": "ExportNamedDeclaration",
"start": 1202,
"end": 1221,
"loc": {
"start": {
"line": 38,
"column": 0
},
"end": {
"line": 38,
"column": 19
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 62,
"end": 1200,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 36,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 68,
"end": 77,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 15
},
"identifierName": "QueryTool"
},
"name": "QueryTool",
"leadingComments": null
},
"superClass": {
"type": "Identifier",
"start": 86,
"end": 96,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 34
},
"identifierName": "Controller"
},
"name": "Controller"
},
"body": {
"type": "ClassBody",
"start": 97,
"end": 1200,
"loc": {
"start": {
"line": 4,
"column": 35
},
"end": {
"line": 36,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 104,
"end": 1198,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 35,
"column": 5
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 104,
"end": 115,
"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": "Identifier",
"start": 116,
"end": 122,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 22
},
"identifierName": "parent"
},
"name": "parent"
},
{
"type": "Identifier",
"start": 124,
"end": 127,
"loc": {
"start": {
"line": 6,
"column": 24
},
"end": {
"line": 6,
"column": 27
},
"identifierName": "cfg"
},
"name": "cfg"
}
],
"body": {
"type": "BlockStatement",
"start": 129,
"end": 1198,
"loc": {
"start": {
"line": 6,
"column": 29
},
"end": {
"line": 35,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 140,
"end": 154,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 22
}
},
"expression": {
"type": "CallExpression",
"start": 140,
"end": 153,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 21
}
},
"callee": {
"type": "Super",
"start": 140,
"end": 145,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"start": 146,
"end": 152,
"loc": {
"start": {
"line": 8,
"column": 14
},
"end": {
"line": 8,
"column": 20
},
"identifierName": "parent"
},
"name": "parent"
}
]
},
"trailingComments": [
{
"type": "CommentLine",
"value": " this.on(\"active\", (active) => {",
"start": 163,
"end": 198,
"loc": {
"start": {
"line": 10,
"column": 7
},
"end": {
"line": 10,
"column": 42
}
}
},
{
"type": "CommentLine",
"value": " if (active) {",
"start": 206,
"end": 227,
"loc": {
"start": {
"line": 11,
"column": 7
},
"end": {
"line": 11,
"column": 28
}
}
},
{
"type": "CommentLine",
"value": " this._onPick = this.viewer.cameraControl.on(\"picked\", (pickResult) => {",
"start": 235,
"end": 318,
"loc": {
"start": {
"line": 12,
"column": 7
},
"end": {
"line": 12,
"column": 90
}
}
},
{
"type": "CommentLine",
"value": " if (!pickResult.entity) {",
"start": 326,
"end": 367,
"loc": {
"start": {
"line": 13,
"column": 7
},
"end": {
"line": 13,
"column": 48
}
}
},
{
"type": "CommentLine",
"value": " return;",
"start": 375,
"end": 402,
"loc": {
"start": {
"line": 14,
"column": 7
},
"end": {
"line": 14,
"column": 34
}
}
},
{
"type": "CommentLine",
"value": " }",
"start": 410,
"end": 427,
"loc": {
"start": {
"line": 15,
"column": 7
},
"end": {
"line": 15,
"column": 24
}
}
},
{
"type": "CommentLine",
"value": " // this.queryEntity(pickResult.entity);",
"start": 435,
"end": 489,
"loc": {
"start": {
"line": 16,
"column": 7
},
"end": {
"line": 16,
"column": 61
}
}
},
{
"type": "CommentLine",
"value": " });",
"start": 497,
"end": 512,
"loc": {
"start": {
"line": 17,
"column": 7
},
"end": {
"line": 17,
"column": 22
}
}
},
{
"type": "CommentLine",
"value": " this._onPickedNothing = this.viewer.cameraControl.on(\"pickedNothing\", () => {",
"start": 520,
"end": 609,
"loc": {
"start": {
"line": 18,
"column": 7
},
"end": {
"line": 18,
"column": 96
}
}
},
{
"type": "CommentLine",
"value": " this.fire(\"queryNotPicked\", false);",
"start": 617,
"end": 668,
"loc": {
"start": {
"line": 19,
"column": 7
},
"end": {
"line": 19,
"column": 58
}
}
},
{
"type": "CommentLine",
"value": " });",
"start": 676,
"end": 691,
"loc": {
"start": {
"line": 20,
"column": 7
},
"end": {
"line": 20,
"column": 22
}
}
},
{
"type": "CommentLine",
"value": " } else {",
"start": 699,
"end": 715,
"loc": {
"start": {
"line": 21,
"column": 7
},
"end": {
"line": 21,
"column": 23
}
}
},
{
"type": "CommentLine",
"value": "",
"start": 723,
"end": 725,
"loc": {
"start": {
"line": 22,
"column": 7
},
"end": {
"line": 22,
"column": 9
}
}
},
{
"type": "CommentLine",
"value": " if (this._onPick !== undefined) {",
"start": 733,
"end": 778,
"loc": {
"start": {
"line": 23,
"column": 7
},
"end": {
"line": 23,
"column": 52
}
}
},
{
"type": "CommentLine",
"value": " this.viewer.cameraControl.off(this._onPick);",
"start": 786,
"end": 846,
"loc": {
"start": {
"line": 24,
"column": 7
},
"end": {
"line": 24,
"column": 67
}
}
},
{
"type": "CommentLine",
"value": " this.viewer.cameraControl.off(this._onPickedNothing);",
"start": 854,
"end": 923,
"loc": {
"start": {
"line": 25,
"column": 7
},
"end": {
"line": 25,
"column": 76
}
}
},
{
"type": "CommentLine",
"value": " this._onPick = undefined;",
"start": 931,
"end": 972,
"loc": {
"start": {
"line": 26,
"column": 7
},
"end": {
"line": 26,
"column": 48
}
}
},
{
"type": "CommentLine",
"value": " this._onPickedNothing = undefined;",
"start": 980,
"end": 1030,
"loc": {
"start": {
"line": 27,
"column": 7
},
"end": {
"line": 27,
"column": 57
}
}
},
{
"type": "CommentLine",
"value": " }",
"start": 1038,
"end": 1051,
"loc": {
"start": {
"line": 28,
"column": 7
},
"end": {
"line": 28,
"column": 20
}
}
},
{
"type": "CommentLine",
"value": " }",
"start": 1059,
"end": 1068,
"loc": {
"start": {
"line": 29,
"column": 7
},
"end": {
"line": 29,
"column": 16
}
}
},
{
"type": "CommentLine",
"value": " });",
"start": 1076,
"end": 1083,
"loc": {
"start": {
"line": 30,
"column": 7
},
"end": {
"line": 30,
"column": 14
}
}
},
{
"type": "CommentLine",
"value": "",
"start": 1091,
"end": 1093,
"loc": {
"start": {
"line": 31,
"column": 7
},
"end": {
"line": 31,
"column": 9
}
}
},
{
"type": "CommentLine",
"value": " this.bimViewer.on(\"reset\", () => {",
"start": 1101,
"end": 1139,
"loc": {
"start": {
"line": 32,
"column": 7
},
"end": {
"line": 32,
"column": 45
}
}
},
{
"type": "CommentLine",
"value": " this.setActive(false);",
"start": 1147,
"end": 1177,
"loc": {
"start": {
"line": 33,
"column": 7
},
"end": {
"line": 33,
"column": 37
}
}
},
{
"type": "CommentLine",
"value": " });",
"start": 1185,
"end": 1192,
"loc": {
"start": {
"line": 34,
"column": 7
},
"end": {
"line": 34,
"column": 14
}
}
}
]
}
],
"directives": []
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "* @private ",
"start": 46,
"end": 61,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 15
}
}
}
],
"__PseudoExport__": false,
"trailingComments": []
},
"specifiers": null,
"source": null,
"leadingComments": null
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "* @private ",
"start": 46,
"end": 61,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 15
}
}
},
{
"type": "CommentLine",
"value": " this.on(\"active\", (active) => {",
"start": 163,
"end": 198,
"loc": {
"start": {
"line": 10,
"column": 7
},
"end": {
"line": 10,
"column": 42
}
}
},
{
"type": "CommentLine",
"value": " if (active) {",
"start": 206,
"end": 227,
"loc": {
"start": {
"line": 11,
"column": 7
},
"end": {
"line": 11,
"column": 28
}
}
},
{
"type": "CommentLine",
"value": " this._onPick = this.viewer.cameraControl.on(\"picked\", (pickResult) => {",
"start": 235,
"end": 318,
"loc": {
"start": {
"line": 12,
"column": 7
},
"end": {
"line": 12,
"column": 90
}
}
},
{
"type": "CommentLine",
"value": " if (!pickResult.entity) {",
"start": 326,
"end": 367,
"loc": {
"start": {
"line": 13,
"column": 7
},
"end": {
"line": 13,
"column": 48
}
}
},
{
"type": "CommentLine",
"value": " return;",
"start": 375,
"end": 402,
"loc": {
"start": {
"line": 14,
"column": 7
},
"end": {
"line": 14,
"column": 34
}
}
},
{
"type": "CommentLine",
"value": " }",
"start": 410,
"end": 427,
"loc": {
"start": {
"line": 15,
"column": 7
},
"end": {
"line": 15,
"column": 24
}
}
},
{
"type": "CommentLine",
"value": " // this.queryEntity(pickResult.entity);",
"start": 435,
"end": 489,
"loc": {
"start": {
"line": 16,
"column": 7
},
"end": {
"line": 16,
"column": 61
}
}
},
{
"type": "CommentLine",
"value": " });",
"start": 497,
"end": 512,
"loc": {
"start": {
"line": 17,
"column": 7
},
"end": {
"line": 17,
"column": 22
}
}
},
{
"type": "CommentLine",
"value": " this._onPickedNothing = this.viewer.cameraControl.on(\"pickedNothing\", () => {",
"start": 520,
"end": 609,
"loc": {
"start": {
"line": 18,
"column": 7
},
"end": {
"line": 18,
"column": 96
}
}
},
{
"type": "CommentLine",
"value": " this.fire(\"queryNotPicked\", false);",
"start": 617,
"end": 668,
"loc": {
"start": {
"line": 19,
"column": 7
},
"end": {
"line": 19,
"column": 58
}
}
},
{
"type": "CommentLine",
"value": " });",
"start": 676,
"end": 691,
"loc": {
"start": {
"line": 20,
"column": 7
},
"end": {
"line": 20,
"column": 22
}
}
},
{
"type": "CommentLine",
"value": " } else {",
"start": 699,
"end": 715,
"loc": {
"start": {
"line": 21,
"column": 7
},
"end": {
"line": 21,
"column": 23
}
}
},
{
"type": "CommentLine",
"value": "",
"start": 723,
"end": 725,
"loc": {
"start": {
"line": 22,
"column": 7
},
"end": {
"line": 22,
"column": 9
}
}
},
{
"type": "CommentLine",
"value": " if (this._onPick !== undefined) {",
"start": 733,
"end": 778,
"loc": {
"start": {
"line": 23,
"column": 7
},
"end": {
"line": 23,
"column": 52
}
}
},
{
"type": "CommentLine",
"value": " this.viewer.cameraControl.off(this._onPick);",
"start": 786,
"end": 846,
"loc": {
"start": {
"line": 24,
"column": 7
},
"end": {
"line": 24,
"column": 67
}
}
},
{
"type": "CommentLine",
"value": " this.viewer.cameraControl.off(this._onPickedNothing);",
"start": 854,
"end": 923,
"loc": {
"start": {
"line": 25,
"column": 7
},
"end": {
"line": 25,
"column": 76
}
}
},
{
"type": "CommentLine",
"value": " this._onPick = undefined;",
"start": 931,
"end": 972,
"loc": {
"start": {
"line": 26,
"column": 7
},
"end": {
"line": 26,
"column": 48
}
}
},
{
"type": "CommentLine",
"value": " this._onPickedNothing = undefined;",
"start": 980,
"end": 1030,
"loc": {
"start": {
"line": 27,
"column": 7
},
"end": {
"line": 27,
"column": 57
}
}
},
{
"type": "CommentLine",
"value": " }",
"start": 1038,
"end": 1051,
"loc": {
"start": {
"line": 28,
"column": 7
},
"end": {
"line": 28,
"column": 20
}
}
},
{
"type": "CommentLine",
"value": " }",
"start": 1059,
"end": 1068,
"loc": {
"start": {
"line": 29,
"column": 7
},
"end": {
"line": 29,
"column": 16
}
}
},
{
"type": "CommentLine",
"value": " });",
"start": 1076,
"end": 1083,
"loc": {
"start": {
"line": 30,
"column": 7
},
"end": {
"line": 30,
"column": 14
}
}
},
{
"type": "CommentLine",
"value": "",
"start": 1091,
"end": 1093,
"loc": {
"start": {
"line": 31,
"column": 7
},
"end": {
"line": 31,
"column": 9
}
}
},
{
"type": "CommentLine",
"value": " this.bimViewer.on(\"reset\", () => {",
"start": 1101,
"end": 1139,
"loc": {
"start": {
"line": 32,
"column": 7
},
"end": {
"line": 32,
"column": 45
}
}
},
{
"type": "CommentLine",
"value": " this.setActive(false);",
"start": 1147,
"end": 1177,
"loc": {
"start": {
"line": 33,
"column": 7
},
"end": {
"line": 33,
"column": 37
}
}
},
{
"type": "CommentLine",
"value": " });",
"start": 1185,
"end": 1192,
"loc": {
"start": {
"line": 34,
"column": 7
},
"end": {
"line": 34,
"column": 14
}
}
}
],
"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": "Controller",
"start": 8,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 18
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 18,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 20,
"end": 24,
"loc": {
"start": {
"line": 1,
"column": 20
},
"end": {
"line": 1,
"column": 24
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "../Controller.js",
"start": 25,
"end": 43,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 43
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 43,
"end": 44,
"loc": {
"start": {
"line": 1,
"column": 43
},
"end": {
"line": 1,
"column": 44
}
}
},
{
"type": "CommentBlock",
"value": "* @private ",
"start": 46,
"end": 61,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 15
}
}
},
{
"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": 62,
"end": 67,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 5
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "QueryTool",
"start": 68,
"end": 77,
"loc": {
"start": {
"line": 4,
"column": 6
},
"end": {
"line": 4,
"column": 15
}
}
},
{
"type": {
"label": "extends",
"keyword": "extends",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "extends",
"start": 78,
"end": 85,
"loc": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 4,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "Controller",
"start": 86,
"end": 96,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 34
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 97,
"end": 98,
"loc": {
"start": {
"line": 4,
"column": 35
},
"end": {
"line": 4,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "constructor",
"start": 104,
"end": 115,
"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": 115,
"end": 116,
"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": "parent",
"start": 116,
"end": 122,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 22
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 122,
"end": 123,
"loc": {
"start": {
"line": 6,
"column": 22
},
"end": {
"line": 6,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cfg",
"start": 124,
"end": 127,
"loc": {
"start": {
"line": 6,
"column": 24
},
"end": {
"line": 6,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 127,
"end": 128,
"loc": {
"start": {
"line": 6,
"column": 27
},
"end": {
"line": 6,
"column": 28
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 129,
"end": 130,
"loc": {
"start": {
"line": 6,
"column": 29
},
"end": {
"line": 6,
"column": 30
}
}
},
{
"type": {
"label": "super",
"keyword": "super",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "super",
"start": 140,
"end": 145,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 145,
"end": 146,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 14
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "parent",
"start": 146,
"end": 152,
"loc": {
"start": {
"line": 8,
"column": 14
},
"end": {
"line": 8,
"column": 20
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 152,
"end": 153,
"loc": {
"start": {
"line": 8,
"column": 20
},
"end": {
"line": 8,
"column": 21
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 153,
"end": 154,
"loc": {
"start": {
"line": 8,
"column": 21
},
"end": {
"line": 8,
"column": 22
}
}
},
{
"type": "CommentLine",
"value": " this.on(\"active\", (active) => {",
"start": 163,
"end": 198,
"loc": {
"start": {
"line": 10,
"column": 7
},
"end": {
"line": 10,
"column": 42
}
}
},
{
"type": "CommentLine",
"value": " if (active) {",
"start": 206,
"end": 227,
"loc": {
"start": {
"line": 11,
"column": 7
},
"end": {
"line": 11,
"column": 28
}
}
},
{
"type": "CommentLine",
"value": " this._onPick = this.viewer.cameraControl.on(\"picked\", (pickResult) => {",
"start": 235,
"end": 318,
"loc": {
"start": {
"line": 12,
"column": 7
},
"end": {
"line": 12,
"column": 90
}
}
},
{
"type": "CommentLine",
"value": " if (!pickResult.entity) {",
"start": 326,
"end": 367,
"loc": {
"start": {
"line": 13,
"column": 7
},
"end": {
"line": 13,
"column": 48
}
}
},
{
"type": "CommentLine",
"value": " return;",
"start": 375,
"end": 402,
"loc": {
"start": {
"line": 14,
"column": 7
},
"end": {
"line": 14,
"column": 34
}
}
},
{
"type": "CommentLine",
"value": " }",
"start": 410,
"end": 427,
"loc": {
"start": {
"line": 15,
"column": 7
},
"end": {
"line": 15,
"column": 24
}
}
},
{
"type": "CommentLine",
"value": " // this.queryEntity(pickResult.entity);",
"start": 435,
"end": 489,
"loc": {
"start": {
"line": 16,
"column": 7
},
"end": {
"line": 16,
"column": 61
}
}
},
{
"type": "CommentLine",
"value": " });",
"start": 497,
"end": 512,
"loc": {
"start": {
"line": 17,
"column": 7
},
"end": {
"line": 17,
"column": 22
}
}
},
{
"type": "CommentLine",
"value": " this._onPickedNothing = this.viewer.cameraControl.on(\"pickedNothing\", () => {",
"start": 520,
"end": 609,
"loc": {
"start": {
"line": 18,
"column": 7
},
"end": {
"line": 18,
"column": 96
}
}
},
{
"type": "CommentLine",
"value": " this.fire(\"queryNotPicked\", false);",
"start": 617,
"end": 668,
"loc": {
"start": {
"line": 19,
"column": 7
},
"end": {
"line": 19,
"column": 58
}
}
},
{
"type": "CommentLine",
"value": " });",
"start": 676,
"end": 691,
"loc": {
"start": {
"line": 20,
"column": 7
},
"end": {
"line": 20,
"column": 22
}
}
},
{
"type": "CommentLine",
"value": " } else {",
"start": 699,
"end": 715,
"loc": {
"start": {
"line": 21,
"column": 7
},
"end": {
"line": 21,
"column": 23
}
}
},
{
"type": "CommentLine",
"value": "",
"start": 723,
"end": 725,
"loc": {
"start": {
"line": 22,
"column": 7
},
"end": {
"line": 22,
"column": 9
}
}
},
{
"type": "CommentLine",
"value": " if (this._onPick !== undefined) {",
"start": 733,
"end": 778,
"loc": {
"start": {
"line": 23,
"column": 7
},
"end": {
"line": 23,
"column": 52
}
}
},
{
"type": "CommentLine",
"value": " this.viewer.cameraControl.off(this._onPick);",
"start": 786,
"end": 846,
"loc": {
"start": {
"line": 24,
"column": 7
},
"end": {
"line": 24,
"column": 67
}
}
},
{
"type": "CommentLine",
"value": " this.viewer.cameraControl.off(this._onPickedNothing);",
"start": 854,
"end": 923,
"loc": {
"start": {
"line": 25,
"column": 7
},
"end": {
"line": 25,
"column": 76
}
}
},
{
"type": "CommentLine",
"value": " this._onPick = undefined;",
"start": 931,
"end": 972,
"loc": {
"start": {
"line": 26,
"column": 7
},
"end": {
"line": 26,
"column": 48
}
}
},
{
"type": "CommentLine",
"value": " this._onPickedNothing = undefined;",
"start": 980,
"end": 1030,
"loc": {
"start": {
"line": 27,
"column": 7
},
"end": {
"line": 27,
"column": 57
}
}
},
{
"type": "CommentLine",
"value": " }",
"start": 1038,
"end": 1051,
"loc": {
"start": {
"line": 28,
"column": 7
},
"end": {
"line": 28,
"column": 20
}
}
},
{
"type": "CommentLine",
"value": " }",
"start": 1059,
"end": 1068,
"loc": {
"start": {
"line": 29,
"column": 7
},
"end": {
"line": 29,
"column": 16
}
}
},
{
"type": "CommentLine",
"value": " });",
"start": 1076,
"end": 1083,
"loc": {
"start": {
"line": 30,
"column": 7
},
"end": {
"line": 30,
"column": 14
}
}
},
{
"type": "CommentLine",
"value": "",
"start": 1091,
"end": 1093,
"loc": {
"start": {
"line": 31,
"column": 7
},
"end": {
"line": 31,
"column": 9
}
}
},
{
"type": "CommentLine",
"value": " this.bimViewer.on(\"reset\", () => {",
"start": 1101,
"end": 1139,
"loc": {
"start": {
"line": 32,
"column": 7
},
"end": {
"line": 32,
"column": 45
}
}
},
{
"type": "CommentLine",
"value": " this.setActive(false);",
"start": 1147,
"end": 1177,
"loc": {
"start": {
"line": 33,
"column": 7
},
"end": {
"line": 33,
"column": 37
}
}
},
{
"type": "CommentLine",
"value": " });",
"start": 1185,
"end": 1192,
"loc": {
"start": {
"line": 34,
"column": 7
},
"end": {
"line": 34,
"column": 14
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1197,
"end": 1198,
"loc": {
"start": {
"line": 35,
"column": 4
},
"end": {
"line": 35,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1199,
"end": 1200,
"loc": {
"start": {
"line": 36,
"column": 0
},
"end": {
"line": 36,
"column": 1
}
}
},
{
"type": {
"label": "export",
"keyword": "export",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "export",
"start": 1202,
"end": 1208,
"loc": {
"start": {
"line": 38,
"column": 0
},
"end": {
"line": 38,
"column": 6
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1209,
"end": 1210,
"loc": {
"start": {
"line": 38,
"column": 7
},
"end": {
"line": 38,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "QueryTool",
"start": 1210,
"end": 1219,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 17
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1219,
"end": 1220,
"loc": {
"start": {
"line": 38,
"column": 17
},
"end": {
"line": 38,
"column": 18
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1220,
"end": 1221,
"loc": {
"start": {
"line": 38,
"column": 18
},
"end": {
"line": 38,
"column": 19
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1221,
"end": 1221,
"loc": {
"start": {
"line": 38,
"column": 19
},
"end": {
"line": 38,
"column": 19
}
}
}
]
}