{ "type": "File", "start": 0, "end": 263, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 14, "column": 18 } }, "program": { "type": "Program", "start": 0, "end": 263, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 14, "column": 18 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 41, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 41 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 8, "end": 17, "loc": { "start": { "line": 1, "column": 8 }, "end": { "line": 1, "column": 17 } }, "imported": { "type": "Identifier", "start": 8, "end": 17, "loc": { "start": { "line": 1, "column": 8 }, "end": { "line": 1, "column": 17 }, "identifierName": "BIMViewer" }, "name": "BIMViewer" }, "local": { "type": "Identifier", "start": 8, "end": 17, "loc": { "start": { "line": 1, "column": 8 }, "end": { "line": 1, "column": 17 }, "identifierName": "BIMViewer" }, "name": "BIMViewer" } } ], "source": { "type": "StringLiteral", "start": 24, "end": 40, "loc": { "start": { "line": 1, "column": 24 }, "end": { "line": 1, "column": 40 } }, "extra": { "rawValue": "./BIMViewer.js", "raw": "\"./BIMViewer.js\"" }, "value": "./BIMViewer.js" }, "trailingComments": [ { "type": "CommentBlock", "value": "*\n * @desc Alias class for {@link BIMViewer}, for backwards compatibility.\n * @private\n ", "start": 43, "end": 135, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 6, "column": 3 } } } ] }, { "type": "Identifier", "start": 136, "end": 243, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 12, "column": 1 } }, "id": { "type": "Identifier", "start": 142, "end": 150, "loc": { "start": { "line": 7, "column": 6 }, "end": { "line": 7, "column": 14 }, "identifierName": "ViewerUI" }, "name": "ViewerUI", "leadingComments": null }, "superClass": { "type": "Identifier", "start": 159, "end": 168, "loc": { "start": { "line": 7, "column": 23 }, "end": { "line": 7, "column": 32 }, "identifierName": "BIMViewer" }, "name": "BIMViewer" }, "body": { "type": "ClassBody", "start": 169, "end": 243, "loc": { "start": { "line": 7, "column": 33 }, "end": { "line": 12, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 175, "end": 241, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 11, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 175, "end": 186, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 187, "end": 193, "loc": { "start": { "line": 8, "column": 16 }, "end": { "line": 8, "column": 22 }, "identifierName": "server" }, "name": "server" }, { "type": "AssignmentPattern", "start": 195, "end": 203, "loc": { "start": { "line": 8, "column": 24 }, "end": { "line": 8, "column": 32 } }, "left": { "type": "Identifier", "start": 195, "end": 198, "loc": { "start": { "line": 8, "column": 24 }, "end": { "line": 8, "column": 27 }, "identifierName": "cfg" }, "name": "cfg" }, "right": { "type": "ObjectExpression", "start": 201, "end": 203, "loc": { "start": { "line": 8, "column": 30 }, "end": { "line": 8, "column": 32 } }, "properties": [] } } ], "body": { "type": "BlockStatement", "start": 205, "end": 241, "loc": { "start": { "line": 8, "column": 34 }, "end": { "line": 11, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 215, "end": 234, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 27 } }, "expression": { "type": "CallExpression", "start": 215, "end": 233, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 26 } }, "callee": { "type": "Super", "start": 215, "end": 220, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 13 } } }, "arguments": [ { "type": "Identifier", "start": 221, "end": 227, "loc": { "start": { "line": 9, "column": 14 }, "end": { "line": 9, "column": 20 }, "identifierName": "server" }, "name": "server" }, { "type": "Identifier", "start": 229, "end": 232, "loc": { "start": { "line": 9, "column": 22 }, "end": { "line": 9, "column": 25 }, "identifierName": "cfg" }, "name": "cfg" } ] } } ], "directives": [] } } ] }, "leadingComments": [], "name": "_", "trailingComments": [] }, { "type": "ExportNamedDeclaration", "start": 245, "end": 263, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 14, "column": 18 } }, "declaration": null, "specifiers": [ { "type": "ExportSpecifier", "start": 253, "end": 261, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 16 } }, "local": { "type": "Identifier", "start": 253, "end": 261, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 16 }, "identifierName": "ViewerUI" }, "name": "ViewerUI" }, "exported": { "type": "Identifier", "start": 253, "end": 261, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 16 }, "identifierName": "ViewerUI" }, "name": "ViewerUI" } } ], "source": null }, { "type": "ExportNamedDeclaration", "start": 245, "end": 263, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 14, "column": 18 } }, "declaration": { "type": "ClassDeclaration", "start": 136, "end": 243, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 12, "column": 1 } }, "id": { "type": "Identifier", "start": 142, "end": 150, "loc": { "start": { "line": 7, "column": 6 }, "end": { "line": 7, "column": 14 }, "identifierName": "ViewerUI" }, "name": "ViewerUI", "leadingComments": null }, "superClass": { "type": "Identifier", "start": 159, "end": 168, "loc": { "start": { "line": 7, "column": 23 }, "end": { "line": 7, "column": 32 }, "identifierName": "BIMViewer" }, "name": "BIMViewer" }, "body": { "type": "ClassBody", "start": 169, "end": 243, "loc": { "start": { "line": 7, "column": 33 }, "end": { "line": 12, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 175, "end": 241, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 11, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 175, "end": 186, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 187, "end": 193, "loc": { "start": { "line": 8, "column": 16 }, "end": { "line": 8, "column": 22 }, "identifierName": "server" }, "name": "server" }, { "type": "AssignmentPattern", "start": 195, "end": 203, "loc": { "start": { "line": 8, "column": 24 }, "end": { "line": 8, "column": 32 } }, "left": { "type": "Identifier", "start": 195, "end": 198, "loc": { "start": { "line": 8, "column": 24 }, "end": { "line": 8, "column": 27 }, "identifierName": "cfg" }, "name": "cfg" }, "right": { "type": "ObjectExpression", "start": 201, "end": 203, "loc": { "start": { "line": 8, "column": 30 }, "end": { "line": 8, "column": 32 } }, "properties": [] } } ], "body": { "type": "BlockStatement", "start": 205, "end": 241, "loc": { "start": { "line": 8, "column": 34 }, "end": { "line": 11, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 215, "end": 234, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 27 } }, "expression": { "type": "CallExpression", "start": 215, "end": 233, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 26 } }, "callee": { "type": "Super", "start": 215, "end": 220, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 13 } } }, "arguments": [ { "type": "Identifier", "start": 221, "end": 227, "loc": { "start": { "line": 9, "column": 14 }, "end": { "line": 9, "column": 20 }, "identifierName": "server" }, "name": "server" }, { "type": "Identifier", "start": 229, "end": 232, "loc": { "start": { "line": 9, "column": 22 }, "end": { "line": 9, "column": 25 }, "identifierName": "cfg" }, "name": "cfg" } ] } } ], "directives": [] } } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * @desc Alias class for {@link BIMViewer}, for backwards compatibility.\n * @private\n ", "start": 43, "end": 135, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 6, "column": 3 } } } ], "__PseudoExport__": false, "trailingComments": [] }, "specifiers": null, "source": null, "leadingComments": null } ], "directives": [] }, "comments": [ { "type": "CommentBlock", "value": "*\n * @desc Alias class for {@link BIMViewer}, for backwards compatibility.\n * @private\n ", "start": 43, "end": 135, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 6, "column": 3 } } } ], "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": "BIMViewer", "start": 8, "end": 17, "loc": { "start": { "line": 1, "column": 8 }, "end": { "line": 1, "column": 17 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 17, "end": 18, "loc": { "start": { "line": 1, "column": 17 }, "end": { "line": 1, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "from", "start": 19, "end": 23, "loc": { "start": { "line": 1, "column": 19 }, "end": { "line": 1, "column": 23 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "./BIMViewer.js", "start": 24, "end": 40, "loc": { "start": { "line": 1, "column": 24 }, "end": { "line": 1, "column": 40 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 40, "end": 41, "loc": { "start": { "line": 1, "column": 40 }, "end": { "line": 1, "column": 41 } } }, { "type": "CommentBlock", "value": "*\n * @desc Alias class for {@link BIMViewer}, for backwards compatibility.\n * @private\n ", "start": 43, "end": 135, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 6, "column": 3 } } }, { "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": 136, "end": 141, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ViewerUI", "start": 142, "end": 150, "loc": { "start": { "line": 7, "column": 6 }, "end": { "line": 7, "column": 14 } } }, { "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": 151, "end": 158, "loc": { "start": { "line": 7, "column": 15 }, "end": { "line": 7, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "BIMViewer", "start": 159, "end": 168, "loc": { "start": { "line": 7, "column": 23 }, "end": { "line": 7, "column": 32 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 169, "end": 170, "loc": { "start": { "line": 7, "column": 33 }, "end": { "line": 7, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "constructor", "start": 175, "end": 186, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 15 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 186, "end": 187, "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": "server", "start": 187, "end": 193, "loc": { "start": { "line": 8, "column": 16 }, "end": { "line": 8, "column": 22 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 193, "end": 194, "loc": { "start": { "line": 8, "column": 22 }, "end": { "line": 8, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cfg", "start": 195, "end": 198, "loc": { "start": { "line": 8, "column": 24 }, "end": { "line": 8, "column": 27 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 199, "end": 200, "loc": { "start": { "line": 8, "column": 28 }, "end": { "line": 8, "column": 29 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 201, "end": 202, "loc": { "start": { "line": 8, "column": 30 }, "end": { "line": 8, "column": 31 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 202, "end": 203, "loc": { "start": { "line": 8, "column": 31 }, "end": { "line": 8, "column": 32 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 203, "end": 204, "loc": { "start": { "line": 8, "column": 32 }, "end": { "line": 8, "column": 33 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 205, "end": 206, "loc": { "start": { "line": 8, "column": 34 }, "end": { "line": 8, "column": 35 } } }, { "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": 215, "end": 220, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 220, "end": 221, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "server", "start": 221, "end": 227, "loc": { "start": { "line": 9, "column": 14 }, "end": { "line": 9, "column": 20 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 227, "end": 228, "loc": { "start": { "line": 9, "column": 20 }, "end": { "line": 9, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "cfg", "start": 229, "end": 232, "loc": { "start": { "line": 9, "column": 22 }, "end": { "line": 9, "column": 25 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 232, "end": 233, "loc": { "start": { "line": 9, "column": 25 }, "end": { "line": 9, "column": 26 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 233, "end": 234, "loc": { "start": { "line": 9, "column": 26 }, "end": { "line": 9, "column": 27 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 240, "end": 241, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 5 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 242, "end": 243, "loc": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "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": 245, "end": 251, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 14, "column": 6 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 252, "end": 253, "loc": { "start": { "line": 14, "column": 7 }, "end": { "line": 14, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "ViewerUI", "start": 253, "end": 261, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 16 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 261, "end": 262, "loc": { "start": { "line": 14, "column": 16 }, "end": { "line": 14, "column": 17 } } }, { "type": { "label": ";", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 262, "end": 263, "loc": { "start": { "line": 14, "column": 17 }, "end": { "line": 14, "column": 18 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 263, "end": 263, "loc": { "start": { "line": 14, "column": 18 }, "end": { "line": 14, "column": 18 } } } ] }