{ "type": "File", "start": 0, "end": 7897, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 209, "column": 16 } }, "program": { "type": "Program", "start": 0, "end": 7897, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 209, "column": 16 } }, "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" } }, { "type": "ImportDeclaration", "start": 45, "end": 143, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 98 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 53, "end": 68, "loc": { "start": { "line": 2, "column": 8 }, "end": { "line": 2, "column": 23 } }, "imported": { "type": "Identifier", "start": 53, "end": 68, "loc": { "start": { "line": 2, "column": 8 }, "end": { "line": 2, "column": 23 }, "identifierName": "XKTLoaderPlugin" }, "name": "XKTLoaderPlugin" }, "local": { "type": "Identifier", "start": 53, "end": 68, "loc": { "start": { "line": 2, "column": 8 }, "end": { "line": 2, "column": 23 }, "identifierName": "XKTLoaderPlugin" }, "name": "XKTLoaderPlugin" } } ], "source": { "type": "StringLiteral", "start": 75, "end": 142, "loc": { "start": { "line": 2, "column": 30 }, "end": { "line": 2, "column": 97 } }, "extra": { "rawValue": "@xeokit/xeokit-sdk/src/plugins/XKTLoaderPlugin/XKTLoaderPlugin.js", "raw": "\"@xeokit/xeokit-sdk/src/plugins/XKTLoaderPlugin/XKTLoaderPlugin.js\"" }, "value": "@xeokit/xeokit-sdk/src/plugins/XKTLoaderPlugin/XKTLoaderPlugin.js" } }, { "type": "ImportDeclaration", "start": 144, "end": 214, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 70 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 152, "end": 156, "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 12 } }, "imported": { "type": "Identifier", "start": 152, "end": 156, "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 12 }, "identifierName": "math" }, "name": "math" }, "local": { "type": "Identifier", "start": 152, "end": 156, "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 12 }, "identifierName": "math" }, "name": "math" } } ], "source": { "type": "StringLiteral", "start": 163, "end": 213, "loc": { "start": { "line": 3, "column": 19 }, "end": { "line": 3, "column": 69 } }, "extra": { "rawValue": "@xeokit/xeokit-sdk/src/viewer/scene/math/math.js", "raw": "\"@xeokit/xeokit-sdk/src/viewer/scene/math/math.js\"" }, "value": "@xeokit/xeokit-sdk/src/viewer/scene/math/math.js" } }, { "type": "ImportDeclaration", "start": 215, "end": 291, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 76 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 223, "end": 240, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 25 } }, "imported": { "type": "Identifier", "start": 223, "end": 240, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 25 }, "identifierName": "IFCObjectDefaults" }, "name": "IFCObjectDefaults" }, "local": { "type": "Identifier", "start": 223, "end": 240, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 25 }, "identifierName": "IFCObjectDefaults" }, "name": "IFCObjectDefaults" } } ], "source": { "type": "StringLiteral", "start": 247, "end": 290, "loc": { "start": { "line": 4, "column": 32 }, "end": { "line": 4, "column": 75 } }, "extra": { "rawValue": "../IFCObjectDefaults/IFCObjectDefaults.js", "raw": "\"../IFCObjectDefaults/IFCObjectDefaults.js\"" }, "value": "../IFCObjectDefaults/IFCObjectDefaults.js" } }, { "type": "VariableDeclaration", "start": 293, "end": 322, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 29 } }, "declarations": [ { "type": "VariableDeclarator", "start": 299, "end": 321, "loc": { "start": { "line": 6, "column": 6 }, "end": { "line": 6, "column": 28 } }, "id": { "type": "Identifier", "start": 299, "end": 307, "loc": { "start": { "line": 6, "column": 6 }, "end": { "line": 6, "column": 14 }, "identifierName": "tempVec3" }, "name": "tempVec3" }, "init": { "type": "CallExpression", "start": 310, "end": 321, "loc": { "start": { "line": 6, "column": 17 }, "end": { "line": 6, "column": 28 } }, "callee": { "type": "MemberExpression", "start": 310, "end": 319, "loc": { "start": { "line": 6, "column": 17 }, "end": { "line": 6, "column": 26 } }, "object": { "type": "Identifier", "start": 310, "end": 314, "loc": { "start": { "line": 6, "column": 17 }, "end": { "line": 6, "column": 21 }, "identifierName": "math" }, "name": "math" }, "property": { "type": "Identifier", "start": 315, "end": 319, "loc": { "start": { "line": 6, "column": 22 }, "end": { "line": 6, "column": 26 }, "identifierName": "vec3" }, "name": "vec3" }, "computed": false }, "arguments": [] } } ], "kind": "const", "trailingComments": [ { "type": "CommentBlock", "value": "* @private ", "start": 324, "end": 339, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 15 } } } ] }, { "type": "Identifier", "start": 340, "end": 7879, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 207, "column": 1 } }, "id": { "type": "Identifier", "start": 346, "end": 352, "loc": { "start": { "line": 9, "column": 6 }, "end": { "line": 9, "column": 12 }, "identifierName": "Models" }, "name": "Models", "leadingComments": null }, "superClass": { "type": "Identifier", "start": 361, "end": 371, "loc": { "start": { "line": 9, "column": 21 }, "end": { "line": 9, "column": 31 }, "identifierName": "Controller" }, "name": "Controller" }, "body": { "type": "ClassBody", "start": 372, "end": 7879, "loc": { "start": { "line": 9, "column": 32 }, "end": { "line": 207, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 379, "end": 1367, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 42, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 379, "end": 390, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 391, "end": 397, "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 22 }, "identifierName": "parent" }, "name": "parent" }, { "type": "Identifier", "start": 399, "end": 402, "loc": { "start": { "line": 11, "column": 24 }, "end": { "line": 11, "column": 27 }, "identifierName": "cfg" }, "name": "cfg" } ], "body": { "type": "BlockStatement", "start": 404, "end": 1367, "loc": { "start": { "line": 11, "column": 29 }, "end": { "line": 42, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 415, "end": 434, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 27 } }, "expression": { "type": "CallExpression", "start": 415, "end": 433, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 26 } }, "callee": { "type": "Super", "start": 415, "end": 420, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 13 } } }, "arguments": [ { "type": "Identifier", "start": 421, "end": 427, "loc": { "start": { "line": 13, "column": 14 }, "end": { "line": 13, "column": 20 }, "identifierName": "parent" }, "name": "parent" }, { "type": "Identifier", "start": 429, "end": 432, "loc": { "start": { "line": 13, "column": 22 }, "end": { "line": 13, "column": 25 }, "identifierName": "cfg" }, "name": "cfg" } ] } }, { "type": "IfStatement", "start": 444, "end": 536, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 17, "column": 9 } }, "test": { "type": "UnaryExpression", "start": 448, "end": 469, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 33 } }, "operator": "!", "prefix": true, "argument": { "type": "MemberExpression", "start": 449, "end": 469, "loc": { "start": { "line": 15, "column": 13 }, "end": { "line": 15, "column": 33 } }, "object": { "type": "Identifier", "start": 449, "end": 452, "loc": { "start": { "line": 15, "column": 13 }, "end": { "line": 15, "column": 16 }, "identifierName": "cfg" }, "name": "cfg" }, "property": { "type": "Identifier", "start": 453, "end": 469, "loc": { "start": { "line": 15, "column": 17 }, "end": { "line": 15, "column": 33 }, "identifierName": "modelsTabElement" }, "name": "modelsTabElement" }, "computed": false }, "extra": { "parenthesizedArgument": false } }, "consequent": { "type": "BlockStatement", "start": 471, "end": 536, "loc": { "start": { "line": 15, "column": 35 }, "end": { "line": 17, "column": 9 } }, "body": [ { "type": "ThrowStatement", "start": 485, "end": 526, "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16, "column": 53 } }, "argument": { "type": "StringLiteral", "start": 491, "end": 525, "loc": { "start": { "line": 16, "column": 18 }, "end": { "line": 16, "column": 52 } }, "extra": { "rawValue": "Missing config: modelsTabElement", "raw": "\"Missing config: modelsTabElement\"" }, "value": "Missing config: modelsTabElement" } } ], "directives": [] }, "alternate": null }, { "type": "IfStatement", "start": 546, "end": 656, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 21, "column": 9 } }, "test": { "type": "UnaryExpression", "start": 550, "end": 580, "loc": { "start": { "line": 19, "column": 12 }, "end": { "line": 19, "column": 42 } }, "operator": "!", "prefix": true, "argument": { "type": "MemberExpression", "start": 551, "end": 580, "loc": { "start": { "line": 19, "column": 13 }, "end": { "line": 19, "column": 42 } }, "object": { "type": "Identifier", "start": 551, "end": 554, "loc": { "start": { "line": 19, "column": 13 }, "end": { "line": 19, "column": 16 }, "identifierName": "cfg" }, "name": "cfg" }, "property": { "type": "Identifier", "start": 555, "end": 580, "loc": { "start": { "line": 19, "column": 17 }, "end": { "line": 19, "column": 42 }, "identifierName": "unloadModelsButtonElement" }, "name": "unloadModelsButtonElement" }, "computed": false }, "extra": { "parenthesizedArgument": false } }, "consequent": { "type": "BlockStatement", "start": 582, "end": 656, "loc": { "start": { "line": 19, "column": 44 }, "end": { "line": 21, "column": 9 } }, "body": [ { "type": "ThrowStatement", "start": 596, "end": 646, "loc": { "start": { "line": 20, "column": 12 }, "end": { "line": 20, "column": 62 } }, "argument": { "type": "StringLiteral", "start": 602, "end": 645, "loc": { "start": { "line": 20, "column": 18 }, "end": { "line": 20, "column": 61 } }, "extra": { "rawValue": "Missing config: unloadModelsButtonElement", "raw": "\"Missing config: unloadModelsButtonElement\"" }, "value": "Missing config: unloadModelsButtonElement" } } ], "directives": [] }, "alternate": null }, { "type": "IfStatement", "start": 666, "end": 752, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 25, "column": 9 } }, "test": { "type": "UnaryExpression", "start": 670, "end": 688, "loc": { "start": { "line": 23, "column": 12 }, "end": { "line": 23, "column": 30 } }, "operator": "!", "prefix": true, "argument": { "type": "MemberExpression", "start": 671, "end": 688, "loc": { "start": { "line": 23, "column": 13 }, "end": { "line": 23, "column": 30 } }, "object": { "type": "Identifier", "start": 671, "end": 674, "loc": { "start": { "line": 23, "column": 13 }, "end": { "line": 23, "column": 16 }, "identifierName": "cfg" }, "name": "cfg" }, "property": { "type": "Identifier", "start": 675, "end": 688, "loc": { "start": { "line": 23, "column": 17 }, "end": { "line": 23, "column": 30 }, "identifierName": "modelsElement" }, "name": "modelsElement" }, "computed": false }, "extra": { "parenthesizedArgument": false } }, "consequent": { "type": "BlockStatement", "start": 690, "end": 752, "loc": { "start": { "line": 23, "column": 32 }, "end": { "line": 25, "column": 9 } }, "body": [ { "type": "ThrowStatement", "start": 704, "end": 742, "loc": { "start": { "line": 24, "column": 12 }, "end": { "line": 24, "column": 50 } }, "argument": { "type": "StringLiteral", "start": 710, "end": 741, "loc": { "start": { "line": 24, "column": 18 }, "end": { "line": 24, "column": 49 } }, "extra": { "rawValue": "Missing config: modelsElement", "raw": "\"Missing config: modelsElement\"" }, "value": "Missing config: modelsElement" } } ], "directives": [] }, "alternate": null }, { "type": "ExpressionStatement", "start": 762, "end": 808, "loc": { "start": { "line": 27, "column": 8 }, "end": { "line": 27, "column": 54 } }, "expression": { "type": "AssignmentExpression", "start": 762, "end": 807, "loc": { "start": { "line": 27, "column": 8 }, "end": { "line": 27, "column": 53 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 762, "end": 784, "loc": { "start": { "line": 27, "column": 8 }, "end": { "line": 27, "column": 30 } }, "object": { "type": "ThisExpression", "start": 762, "end": 766, "loc": { "start": { "line": 27, "column": 8 }, "end": { "line": 27, "column": 12 } } }, "property": { "type": "Identifier", "start": 767, "end": 784, "loc": { "start": { "line": 27, "column": 13 }, "end": { "line": 27, "column": 30 }, "identifierName": "_modelsTabElement" }, "name": "_modelsTabElement" }, "computed": false }, "right": { "type": "MemberExpression", "start": 787, "end": 807, "loc": { "start": { "line": 27, "column": 33 }, "end": { "line": 27, "column": 53 } }, "object": { "type": "Identifier", "start": 787, "end": 790, "loc": { "start": { "line": 27, "column": 33 }, "end": { "line": 27, "column": 36 }, "identifierName": "cfg" }, "name": "cfg" }, "property": { "type": "Identifier", "start": 791, "end": 807, "loc": { "start": { "line": 27, "column": 37 }, "end": { "line": 27, "column": 53 }, "identifierName": "modelsTabElement" }, "name": "modelsTabElement" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 817, "end": 881, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 72 } }, "expression": { "type": "AssignmentExpression", "start": 817, "end": 880, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 71 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 817, "end": 848, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 39 } }, "object": { "type": "ThisExpression", "start": 817, "end": 821, "loc": { "start": { "line": 28, "column": 8 }, "end": { "line": 28, "column": 12 } } }, "property": { "type": "Identifier", "start": 822, "end": 848, "loc": { "start": { "line": 28, "column": 13 }, "end": { "line": 28, "column": 39 }, "identifierName": "_unloadModelsButtonElement" }, "name": "_unloadModelsButtonElement" }, "computed": false }, "right": { "type": "MemberExpression", "start": 851, "end": 880, "loc": { "start": { "line": 28, "column": 42 }, "end": { "line": 28, "column": 71 } }, "object": { "type": "Identifier", "start": 851, "end": 854, "loc": { "start": { "line": 28, "column": 42 }, "end": { "line": 28, "column": 45 }, "identifierName": "cfg" }, "name": "cfg" }, "property": { "type": "Identifier", "start": 855, "end": 880, "loc": { "start": { "line": 28, "column": 46 }, "end": { "line": 28, "column": 71 }, "identifierName": "unloadModelsButtonElement" }, "name": "unloadModelsButtonElement" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 890, "end": 930, "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 29, "column": 48 } }, "expression": { "type": "AssignmentExpression", "start": 890, "end": 929, "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 29, "column": 47 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 890, "end": 909, "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 29, "column": 27 } }, "object": { "type": "ThisExpression", "start": 890, "end": 894, "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 29, "column": 12 } } }, "property": { "type": "Identifier", "start": 895, "end": 909, "loc": { "start": { "line": 29, "column": 13 }, "end": { "line": 29, "column": 27 }, "identifierName": "_modelsElement" }, "name": "_modelsElement" }, "computed": false }, "right": { "type": "MemberExpression", "start": 912, "end": 929, "loc": { "start": { "line": 29, "column": 30 }, "end": { "line": 29, "column": 47 } }, "object": { "type": "Identifier", "start": 912, "end": 915, "loc": { "start": { "line": 29, "column": 30 }, "end": { "line": 29, "column": 33 }, "identifierName": "cfg" }, "name": "cfg" }, "property": { "type": "Identifier", "start": 916, "end": 929, "loc": { "start": { "line": 29, "column": 34 }, "end": { "line": 29, "column": 47 }, "identifierName": "modelsElement" }, "name": "modelsElement" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 939, "end": 1026, "loc": { "start": { "line": 30, "column": 8 }, "end": { "line": 30, "column": 95 } }, "expression": { "type": "AssignmentExpression", "start": 939, "end": 1025, "loc": { "start": { "line": 30, "column": 8 }, "end": { "line": 30, "column": 94 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 939, "end": 967, "loc": { "start": { "line": 30, "column": 8 }, "end": { "line": 30, "column": 36 } }, "object": { "type": "ThisExpression", "start": 939, "end": 943, "loc": { "start": { "line": 30, "column": 8 }, "end": { "line": 30, "column": 12 } } }, "property": { "type": "Identifier", "start": 944, "end": 967, "loc": { "start": { "line": 30, "column": 13 }, "end": { "line": 30, "column": 36 }, "identifierName": "_modelsTabButtonElement" }, "name": "_modelsTabButtonElement" }, "computed": false }, "right": { "type": "CallExpression", "start": 970, "end": 1025, "loc": { "start": { "line": 30, "column": 39 }, "end": { "line": 30, "column": 94 } }, "callee": { "type": "MemberExpression", "start": 970, "end": 1006, "loc": { "start": { "line": 30, "column": 39 }, "end": { "line": 30, "column": 75 } }, "object": { "type": "MemberExpression", "start": 970, "end": 992, "loc": { "start": { "line": 30, "column": 39 }, "end": { "line": 30, "column": 61 } }, "object": { "type": "ThisExpression", "start": 970, "end": 974, "loc": { "start": { "line": 30, "column": 39 }, "end": { "line": 30, "column": 43 } } }, "property": { "type": "Identifier", "start": 975, "end": 992, "loc": { "start": { "line": 30, "column": 44 }, "end": { "line": 30, "column": 61 }, "identifierName": "_modelsTabElement" }, "name": "_modelsTabElement" }, "computed": false }, "property": { "type": "Identifier", "start": 993, "end": 1006, "loc": { "start": { "line": 30, "column": 62 }, "end": { "line": 30, "column": 75 }, "identifierName": "querySelector" }, "name": "querySelector" }, "computed": false }, "arguments": [ { "type": "StringLiteral", "start": 1007, "end": 1024, "loc": { "start": { "line": 30, "column": 76 }, "end": { "line": 30, "column": 93 } }, "extra": { "rawValue": ".xeokit-tab-btn", "raw": "\".xeokit-tab-btn\"" }, "value": ".xeokit-tab-btn" } ] } } }, { "type": "IfStatement", "start": 1036, "end": 1140, "loc": { "start": { "line": 32, "column": 8 }, "end": { "line": 34, "column": 9 } }, "test": { "type": "UnaryExpression", "start": 1040, "end": 1069, "loc": { "start": { "line": 32, "column": 12 }, "end": { "line": 32, "column": 41 } }, "operator": "!", "prefix": true, "argument": { "type": "MemberExpression", "start": 1041, "end": 1069, "loc": { "start": { "line": 32, "column": 13 }, "end": { "line": 32, "column": 41 } }, "object": { "type": "ThisExpression", "start": 1041, "end": 1045, "loc": { "start": { "line": 32, "column": 13 }, "end": { "line": 32, "column": 17 } } }, "property": { "type": "Identifier", "start": 1046, "end": 1069, "loc": { "start": { "line": 32, "column": 18 }, "end": { "line": 32, "column": 41 }, "identifierName": "_modelsTabButtonElement" }, "name": "_modelsTabButtonElement" }, "computed": false }, "extra": { "parenthesizedArgument": false } }, "consequent": { "type": "BlockStatement", "start": 1071, "end": 1140, "loc": { "start": { "line": 32, "column": 43 }, "end": { "line": 34, "column": 9 } }, "body": [ { "type": "ThrowStatement", "start": 1085, "end": 1130, "loc": { "start": { "line": 33, "column": 12 }, "end": { "line": 33, "column": 57 } }, "argument": { "type": "StringLiteral", "start": 1091, "end": 1129, "loc": { "start": { "line": 33, "column": 18 }, "end": { "line": 33, "column": 56 } }, "extra": { "rawValue": "Missing DOM element: ,xeokit-tab-btn", "raw": "\"Missing DOM element: ,xeokit-tab-btn\"" }, "value": "Missing DOM element: ,xeokit-tab-btn" } } ], "directives": [] }, "alternate": null }, { "type": "ExpressionStatement", "start": 1150, "end": 1263, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 38, "column": 11 } }, "expression": { "type": "AssignmentExpression", "start": 1150, "end": 1262, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 38, "column": 10 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1150, "end": 1165, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 23 } }, "object": { "type": "ThisExpression", "start": 1150, "end": 1154, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 12 } } }, "property": { "type": "Identifier", "start": 1155, "end": 1165, "loc": { "start": { "line": 36, "column": 13 }, "end": { "line": 36, "column": 23 }, "identifierName": "_xktLoader" }, "name": "_xktLoader" }, "computed": false }, "right": { "type": "NewExpression", "start": 1168, "end": 1262, "loc": { "start": { "line": 36, "column": 26 }, "end": { "line": 38, "column": 10 } }, "callee": { "type": "Identifier", "start": 1172, "end": 1187, "loc": { "start": { "line": 36, "column": 30 }, "end": { "line": 36, "column": 45 }, "identifierName": "XKTLoaderPlugin" }, "name": "XKTLoaderPlugin" }, "arguments": [ { "type": "MemberExpression", "start": 1188, "end": 1199, "loc": { "start": { "line": 36, "column": 46 }, "end": { "line": 36, "column": 57 } }, "object": { "type": "ThisExpression", "start": 1188, "end": 1192, "loc": { "start": { "line": 36, "column": 46 }, "end": { "line": 36, "column": 50 } } }, "property": { "type": "Identifier", "start": 1193, "end": 1199, "loc": { "start": { "line": 36, "column": 51 }, "end": { "line": 36, "column": 57 }, "identifierName": "viewer" }, "name": "viewer" }, "computed": false }, { "type": "ObjectExpression", "start": 1201, "end": 1261, "loc": { "start": { "line": 36, "column": 59 }, "end": { "line": 38, "column": 9 } }, "properties": [], "leadingComments": null, "innerComments": [ { "type": "CommentLine", "value": " objectDefaults: IFCObjectDefaults", "start": 1215, "end": 1251, "loc": { "start": { "line": 37, "column": 12 }, "end": { "line": 37, "column": 48 } } } ] } ] } } }, { "type": "ExpressionStatement", "start": 1272, "end": 1294, "loc": { "start": { "line": 39, "column": 8 }, "end": { "line": 39, "column": 30 } }, "expression": { "type": "AssignmentExpression", "start": 1272, "end": 1293, "loc": { "start": { "line": 39, "column": 8 }, "end": { "line": 39, "column": 29 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1272, "end": 1288, "loc": { "start": { "line": 39, "column": 8 }, "end": { "line": 39, "column": 24 } }, "object": { "type": "ThisExpression", "start": 1272, "end": 1276, "loc": { "start": { "line": 39, "column": 8 }, "end": { "line": 39, "column": 12 } } }, "property": { "type": "Identifier", "start": 1277, "end": 1288, "loc": { "start": { "line": 39, "column": 13 }, "end": { "line": 39, "column": 24 }, "identifierName": "_modelsInfo" }, "name": "_modelsInfo" }, "computed": false }, "right": { "type": "ObjectExpression", "start": 1291, "end": 1293, "loc": { "start": { "line": 39, "column": 27 }, "end": { "line": 39, "column": 29 } }, "properties": [] } } }, { "type": "ExpressionStatement", "start": 1303, "end": 1329, "loc": { "start": { "line": 40, "column": 8 }, "end": { "line": 40, "column": 34 } }, "expression": { "type": "AssignmentExpression", "start": 1303, "end": 1328, "loc": { "start": { "line": 40, "column": 8 }, "end": { "line": 40, "column": 33 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1303, "end": 1324, "loc": { "start": { "line": 40, "column": 8 }, "end": { "line": 40, "column": 29 } }, "object": { "type": "ThisExpression", "start": 1303, "end": 1307, "loc": { "start": { "line": 40, "column": 8 }, "end": { "line": 40, "column": 12 } } }, "property": { "type": "Identifier", "start": 1308, "end": 1324, "loc": { "start": { "line": 40, "column": 13 }, "end": { "line": 40, "column": 29 }, "identifierName": "_numModelsLoaded" }, "name": "_numModelsLoaded" }, "computed": false }, "right": { "type": "NumericLiteral", "start": 1327, "end": 1328, "loc": { "start": { "line": 40, "column": 32 }, "end": { "line": 40, "column": 33 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } }, { "type": "ExpressionStatement", "start": 1338, "end": 1361, "loc": { "start": { "line": 41, "column": 8 }, "end": { "line": 41, "column": 31 } }, "expression": { "type": "AssignmentExpression", "start": 1338, "end": 1360, "loc": { "start": { "line": 41, "column": 8 }, "end": { "line": 41, "column": 30 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1338, "end": 1353, "loc": { "start": { "line": 41, "column": 8 }, "end": { "line": 41, "column": 23 } }, "object": { "type": "ThisExpression", "start": 1338, "end": 1342, "loc": { "start": { "line": 41, "column": 8 }, "end": { "line": 41, "column": 12 } } }, "property": { "type": "Identifier", "start": 1343, "end": 1353, "loc": { "start": { "line": 41, "column": 13 }, "end": { "line": 41, "column": 23 }, "identifierName": "_projectId" }, "name": "_projectId" }, "computed": false }, "right": { "type": "NullLiteral", "start": 1356, "end": 1360, "loc": { "start": { "line": 41, "column": 26 }, "end": { "line": 41, "column": 30 } } } } } ], "directives": [] } }, { "type": "ClassMethod", "start": 1373, "end": 2968, "loc": { "start": { "line": 44, "column": 4 }, "end": { "line": 81, "column": 5 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1373, "end": 1385, "loc": { "start": { "line": 44, "column": 4 }, "end": { "line": 44, "column": 16 }, "identifierName": "_loadProject" }, "name": "_loadProject" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1386, "end": 1395, "loc": { "start": { "line": 44, "column": 17 }, "end": { "line": 44, "column": 26 }, "identifierName": "projectId" }, "name": "projectId" }, { "type": "Identifier", "start": 1397, "end": 1401, "loc": { "start": { "line": 44, "column": 28 }, "end": { "line": 44, "column": 32 }, "identifierName": "done" }, "name": "done" }, { "type": "Identifier", "start": 1403, "end": 1408, "loc": { "start": { "line": 44, "column": 34 }, "end": { "line": 44, "column": 39 }, "identifierName": "error" }, "name": "error" } ], "body": { "type": "BlockStatement", "start": 1410, "end": 2968, "loc": { "start": { "line": 44, "column": 41 }, "end": { "line": 81, "column": 5 } }, "body": [ { "type": "VariableDeclaration", "start": 1420, "end": 1438, "loc": { "start": { "line": 45, "column": 8 }, "end": { "line": 45, "column": 26 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1426, "end": 1437, "loc": { "start": { "line": 45, "column": 14 }, "end": { "line": 45, "column": 25 } }, "id": { "type": "Identifier", "start": 1426, "end": 1432, "loc": { "start": { "line": 45, "column": 14 }, "end": { "line": 45, "column": 20 }, "identifierName": "params" }, "name": "params" }, "init": { "type": "ObjectExpression", "start": 1435, "end": 1437, "loc": { "start": { "line": 45, "column": 23 }, "end": { "line": 45, "column": 25 } }, "properties": [] } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 1447, "end": 2962, "loc": { "start": { "line": 46, "column": 8 }, "end": { "line": 80, "column": 11 } }, "expression": { "type": "CallExpression", "start": 1447, "end": 2961, "loc": { "start": { "line": 46, "column": 8 }, "end": { "line": 80, "column": 10 } }, "callee": { "type": "MemberExpression", "start": 1447, "end": 1469, "loc": { "start": { "line": 46, "column": 8 }, "end": { "line": 46, "column": 30 } }, "object": { "type": "MemberExpression", "start": 1447, "end": 1458, "loc": { "start": { "line": 46, "column": 8 }, "end": { "line": 46, "column": 19 } }, "object": { "type": "ThisExpression", "start": 1447, "end": 1451, "loc": { "start": { "line": 46, "column": 8 }, "end": { "line": 46, "column": 12 } } }, "property": { "type": "Identifier", "start": 1452, "end": 1458, "loc": { "start": { "line": 46, "column": 13 }, "end": { "line": 46, "column": 19 }, "identifierName": "server" }, "name": "server" }, "computed": false }, "property": { "type": "Identifier", "start": 1459, "end": 1469, "loc": { "start": { "line": 46, "column": 20 }, "end": { "line": 46, "column": 30 }, "identifierName": "getProject" }, "name": "getProject" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 1470, "end": 1479, "loc": { "start": { "line": 46, "column": 31 }, "end": { "line": 46, "column": 40 }, "identifierName": "projectId" }, "name": "projectId" }, { "type": "ArrowFunctionExpression", "start": 1481, "end": 2833, "loc": { "start": { "line": 46, "column": 42 }, "end": { "line": 75, "column": 9 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1482, "end": 1493, "loc": { "start": { "line": 46, "column": 43 }, "end": { "line": 46, "column": 54 }, "identifierName": "projectInfo" }, "name": "projectInfo" } ], "body": { "type": "BlockStatement", "start": 1498, "end": 2833, "loc": { "start": { "line": 46, "column": 59 }, "end": { "line": 75, "column": 9 } }, "body": [ { "type": "ExpressionStatement", "start": 1512, "end": 1540, "loc": { "start": { "line": 47, "column": 12 }, "end": { "line": 47, "column": 40 } }, "expression": { "type": "AssignmentExpression", "start": 1512, "end": 1539, "loc": { "start": { "line": 47, "column": 12 }, "end": { "line": 47, "column": 39 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1512, "end": 1527, "loc": { "start": { "line": 47, "column": 12 }, "end": { "line": 47, "column": 27 } }, "object": { "type": "ThisExpression", "start": 1512, "end": 1516, "loc": { "start": { "line": 47, "column": 12 }, "end": { "line": 47, "column": 16 } } }, "property": { "type": "Identifier", "start": 1517, "end": 1527, "loc": { "start": { "line": 47, "column": 17 }, "end": { "line": 47, "column": 27 }, "identifierName": "_projectId" }, "name": "_projectId" }, "computed": false }, "right": { "type": "Identifier", "start": 1530, "end": 1539, "loc": { "start": { "line": 47, "column": 30 }, "end": { "line": 47, "column": 39 }, "identifierName": "projectId" }, "name": "projectId" } } }, { "type": "VariableDeclaration", "start": 1553, "end": 1567, "loc": { "start": { "line": 48, "column": 12 }, "end": { "line": 48, "column": 26 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1557, "end": 1566, "loc": { "start": { "line": 48, "column": 16 }, "end": { "line": 48, "column": 25 } }, "id": { "type": "Identifier", "start": 1557, "end": 1561, "loc": { "start": { "line": 48, "column": 16 }, "end": { "line": 48, "column": 20 }, "identifierName": "html" }, "name": "html" }, "init": { "type": "StringLiteral", "start": 1564, "end": 1566, "loc": { "start": { "line": 48, "column": 23 }, "end": { "line": 48, "column": 25 } }, "extra": { "rawValue": "", "raw": "\"\"" }, "value": "" } } ], "kind": "var" }, { "type": "VariableDeclaration", "start": 1580, "end": 1624, "loc": { "start": { "line": 49, "column": 12 }, "end": { "line": 49, "column": 56 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1586, "end": 1623, "loc": { "start": { "line": 49, "column": 18 }, "end": { "line": 49, "column": 55 } }, "id": { "type": "Identifier", "start": 1586, "end": 1596, "loc": { "start": { "line": 49, "column": 18 }, "end": { "line": 49, "column": 28 }, "identifierName": "modelsInfo" }, "name": "modelsInfo" }, "init": { "type": "LogicalExpression", "start": 1599, "end": 1623, "loc": { "start": { "line": 49, "column": 31 }, "end": { "line": 49, "column": 55 } }, "left": { "type": "MemberExpression", "start": 1599, "end": 1617, "loc": { "start": { "line": 49, "column": 31 }, "end": { "line": 49, "column": 49 } }, "object": { "type": "Identifier", "start": 1599, "end": 1610, "loc": { "start": { "line": 49, "column": 31 }, "end": { "line": 49, "column": 42 }, "identifierName": "projectInfo" }, "name": "projectInfo" }, "property": { "type": "Identifier", "start": 1611, "end": 1617, "loc": { "start": { "line": 49, "column": 43 }, "end": { "line": 49, "column": 49 }, "identifierName": "models" }, "name": "models" }, "computed": false }, "operator": "||", "right": { "type": "ArrayExpression", "start": 1621, "end": 1623, "loc": { "start": { "line": 49, "column": 53 }, "end": { "line": 49, "column": 55 } }, "elements": [] } } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 1637, "end": 1659, "loc": { "start": { "line": 50, "column": 12 }, "end": { "line": 50, "column": 34 } }, "expression": { "type": "AssignmentExpression", "start": 1637, "end": 1658, "loc": { "start": { "line": 50, "column": 12 }, "end": { "line": 50, "column": 33 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1637, "end": 1653, "loc": { "start": { "line": 50, "column": 12 }, "end": { "line": 50, "column": 28 } }, "object": { "type": "ThisExpression", "start": 1637, "end": 1641, "loc": { "start": { "line": 50, "column": 12 }, "end": { "line": 50, "column": 16 } } }, "property": { "type": "Identifier", "start": 1642, "end": 1653, "loc": { "start": { "line": 50, "column": 17 }, "end": { "line": 50, "column": 28 }, "identifierName": "_modelsInfo" }, "name": "_modelsInfo" }, "computed": false }, "right": { "type": "ObjectExpression", "start": 1656, "end": 1658, "loc": { "start": { "line": 50, "column": 31 }, "end": { "line": 50, "column": 33 } }, "properties": [] } } }, { "type": "ForStatement", "start": 1672, "end": 2047, "loc": { "start": { "line": 51, "column": 12 }, "end": { "line": 57, "column": 13 } }, "init": { "type": "VariableDeclaration", "start": 1677, "end": 1711, "loc": { "start": { "line": 51, "column": 17 }, "end": { "line": 51, "column": 51 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1681, "end": 1686, "loc": { "start": { "line": 51, "column": 21 }, "end": { "line": 51, "column": 26 } }, "id": { "type": "Identifier", "start": 1681, "end": 1682, "loc": { "start": { "line": 51, "column": 21 }, "end": { "line": 51, "column": 22 }, "identifierName": "i" }, "name": "i" }, "init": { "type": "NumericLiteral", "start": 1685, "end": 1686, "loc": { "start": { "line": 51, "column": 25 }, "end": { "line": 51, "column": 26 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } }, { "type": "VariableDeclarator", "start": 1688, "end": 1711, "loc": { "start": { "line": 51, "column": 28 }, "end": { "line": 51, "column": 51 } }, "id": { "type": "Identifier", "start": 1688, "end": 1691, "loc": { "start": { "line": 51, "column": 28 }, "end": { "line": 51, "column": 31 }, "identifierName": "len" }, "name": "len" }, "init": { "type": "MemberExpression", "start": 1694, "end": 1711, "loc": { "start": { "line": 51, "column": 34 }, "end": { "line": 51, "column": 51 } }, "object": { "type": "Identifier", "start": 1694, "end": 1704, "loc": { "start": { "line": 51, "column": 34 }, "end": { "line": 51, "column": 44 }, "identifierName": "modelsInfo" }, "name": "modelsInfo" }, "property": { "type": "Identifier", "start": 1705, "end": 1711, "loc": { "start": { "line": 51, "column": 45 }, "end": { "line": 51, "column": 51 }, "identifierName": "length" }, "name": "length" }, "computed": false } } ], "kind": "let" }, "test": { "type": "BinaryExpression", "start": 1713, "end": 1720, "loc": { "start": { "line": 51, "column": 53 }, "end": { "line": 51, "column": 60 } }, "left": { "type": "Identifier", "start": 1713, "end": 1714, "loc": { "start": { "line": 51, "column": 53 }, "end": { "line": 51, "column": 54 }, "identifierName": "i" }, "name": "i" }, "operator": "<", "right": { "type": "Identifier", "start": 1717, "end": 1720, "loc": { "start": { "line": 51, "column": 57 }, "end": { "line": 51, "column": 60 }, "identifierName": "len" }, "name": "len" } }, "update": { "type": "UpdateExpression", "start": 1722, "end": 1725, "loc": { "start": { "line": 51, "column": 62 }, "end": { "line": 51, "column": 65 } }, "operator": "++", "prefix": false, "argument": { "type": "Identifier", "start": 1722, "end": 1723, "loc": { "start": { "line": 51, "column": 62 }, "end": { "line": 51, "column": 63 }, "identifierName": "i" }, "name": "i" } }, "body": { "type": "BlockStatement", "start": 1727, "end": 2047, "loc": { "start": { "line": 51, "column": 67 }, "end": { "line": 57, "column": 13 } }, "body": [ { "type": "VariableDeclaration", "start": 1745, "end": 1777, "loc": { "start": { "line": 52, "column": 16 }, "end": { "line": 52, "column": 48 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1751, "end": 1776, "loc": { "start": { "line": 52, "column": 22 }, "end": { "line": 52, "column": 47 } }, "id": { "type": "Identifier", "start": 1751, "end": 1760, "loc": { "start": { "line": 52, "column": 22 }, "end": { "line": 52, "column": 31 }, "identifierName": "modelInfo" }, "name": "modelInfo" }, "init": { "type": "MemberExpression", "start": 1763, "end": 1776, "loc": { "start": { "line": 52, "column": 34 }, "end": { "line": 52, "column": 47 } }, "object": { "type": "Identifier", "start": 1763, "end": 1773, "loc": { "start": { "line": 52, "column": 34 }, "end": { "line": 52, "column": 44 }, "identifierName": "modelsInfo" }, "name": "modelsInfo" }, "property": { "type": "Identifier", "start": 1774, "end": 1775, "loc": { "start": { "line": 52, "column": 45 }, "end": { "line": 52, "column": 46 }, "identifierName": "i" }, "name": "i" }, "computed": true } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 1794, "end": 1837, "loc": { "start": { "line": 53, "column": 16 }, "end": { "line": 53, "column": 59 } }, "expression": { "type": "AssignmentExpression", "start": 1794, "end": 1836, "loc": { "start": { "line": 53, "column": 16 }, "end": { "line": 53, "column": 58 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1794, "end": 1824, "loc": { "start": { "line": 53, "column": 16 }, "end": { "line": 53, "column": 46 } }, "object": { "type": "MemberExpression", "start": 1794, "end": 1810, "loc": { "start": { "line": 53, "column": 16 }, "end": { "line": 53, "column": 32 } }, "object": { "type": "ThisExpression", "start": 1794, "end": 1798, "loc": { "start": { "line": 53, "column": 16 }, "end": { "line": 53, "column": 20 } } }, "property": { "type": "Identifier", "start": 1799, "end": 1810, "loc": { "start": { "line": 53, "column": 21 }, "end": { "line": 53, "column": 32 }, "identifierName": "_modelsInfo" }, "name": "_modelsInfo" }, "computed": false }, "property": { "type": "MemberExpression", "start": 1811, "end": 1823, "loc": { "start": { "line": 53, "column": 33 }, "end": { "line": 53, "column": 45 } }, "object": { "type": "Identifier", "start": 1811, "end": 1820, "loc": { "start": { "line": 53, "column": 33 }, "end": { "line": 53, "column": 42 }, "identifierName": "modelInfo" }, "name": "modelInfo" }, "property": { "type": "Identifier", "start": 1821, "end": 1823, "loc": { "start": { "line": 53, "column": 43 }, "end": { "line": 53, "column": 45 }, "identifierName": "id" }, "name": "id" }, "computed": false }, "computed": true }, "right": { "type": "Identifier", "start": 1827, "end": 1836, "loc": { "start": { "line": 53, "column": 49 }, "end": { "line": 53, "column": 58 }, "identifierName": "modelInfo" }, "name": "modelInfo" } } }, { "type": "ExpressionStatement", "start": 1854, "end": 1896, "loc": { "start": { "line": 54, "column": 16 }, "end": { "line": 54, "column": 58 } }, "expression": { "type": "AssignmentExpression", "start": 1854, "end": 1895, "loc": { "start": { "line": 54, "column": 16 }, "end": { "line": 54, "column": 57 } }, "operator": "+=", "left": { "type": "Identifier", "start": 1854, "end": 1858, "loc": { "start": { "line": 54, "column": 16 }, "end": { "line": 54, "column": 20 }, "identifierName": "html" }, "name": "html" }, "right": { "type": "StringLiteral", "start": 1862, "end": 1895, "loc": { "start": { "line": 54, "column": 24 }, "end": { "line": 54, "column": 57 } }, "extra": { "rawValue": "