UNPKG

awv3

Version:
1,428 lines (1,427 loc) 324 kB
{ "type": "File", "start": 0, "end": 1507, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 39, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 1507, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 39, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 31, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 31 } }, "specifiers": [ { "type": "ImportNamespaceSpecifier", "start": 7, "end": 17, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 17 } }, "local": { "type": "Identifier", "start": 12, "end": 17, "loc": { "start": { "line": 1, "column": 12 }, "end": { "line": 1, "column": 17 }, "identifierName": "THREE" }, "name": "THREE" } } ], "source": { "type": "StringLiteral", "start": 23, "end": 30, "loc": { "start": { "line": 1, "column": 23 }, "end": { "line": 1, "column": 30 } }, "extra": { "rawValue": "three", "raw": "'three'" }, "value": "three" } }, { "type": "ImportDeclaration", "start": 32, "end": 88, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 56 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 39, "end": 52, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 20 } }, "local": { "type": "Identifier", "start": 39, "end": 52, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 20 }, "identifierName": "MaterialStore" }, "name": "MaterialStore" } } ], "source": { "type": "StringLiteral", "start": 58, "end": 87, "loc": { "start": { "line": 2, "column": 26 }, "end": { "line": 2, "column": 55 } }, "extra": { "rawValue": "../../../misc/materialstore", "raw": "'../../../misc/materialstore'" }, "value": "../../../misc/materialstore" } }, { "type": "ImportDeclaration", "start": 89, "end": 134, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 45 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 96, "end": 103, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 14 } }, "local": { "type": "Identifier", "start": 96, "end": 103, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 14 }, "identifierName": "Object3" }, "name": "Object3" } } ], "source": { "type": "StringLiteral", "start": 109, "end": 133, "loc": { "start": { "line": 3, "column": 20 }, "end": { "line": 3, "column": 44 } }, "extra": { "rawValue": "../../../three/object3", "raw": "'../../../three/object3'" }, "value": "../../../three/object3" } }, { "type": "ImportDeclaration", "start": 135, "end": 168, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 33 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 142, "end": 153, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 18 } }, "local": { "type": "Identifier", "start": 142, "end": 153, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 18 }, "identifierName": "BaseHandler" }, "name": "BaseHandler" } } ], "source": { "type": "StringLiteral", "start": 159, "end": 167, "loc": { "start": { "line": 4, "column": 24 }, "end": { "line": 4, "column": 32 } }, "extra": { "rawValue": "./base", "raw": "'./base'" }, "value": "./base" } }, { "type": "ExportDefaultDeclaration", "start": 170, "end": 1506, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 38, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 185, "end": 1506, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 38, "column": 1 } }, "id": { "type": "Identifier", "start": 191, "end": 203, "loc": { "start": { "line": 6, "column": 21 }, "end": { "line": 6, "column": 33 }, "identifierName": "HoverHandler" }, "name": "HoverHandler" }, "superClass": { "type": "Identifier", "start": 212, "end": 223, "loc": { "start": { "line": 6, "column": 42 }, "end": { "line": 6, "column": 53 }, "identifierName": "BaseHandler" }, "name": "BaseHandler" }, "body": { "type": "ClassBody", "start": 224, "end": 1506, "loc": { "start": { "line": 6, "column": 54 }, "end": { "line": 38, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 230, "end": 376, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 10, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 230, "end": 241, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "static": false, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 242, "end": 250, "loc": { "start": { "line": 7, "column": 16 }, "end": { "line": 7, "column": 24 }, "identifierName": "sketcher" }, "name": "sketcher" }, { "type": "Identifier", "start": 252, "end": 256, "loc": { "start": { "line": 7, "column": 26 }, "end": { "line": 7, "column": 30 }, "identifierName": "name" }, "name": "name" } ], "body": { "type": "BlockStatement", "start": 258, "end": 376, "loc": { "start": { "line": 7, "column": 32 }, "end": { "line": 10, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 268, "end": 290, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 30 } }, "expression": { "type": "CallExpression", "start": 268, "end": 289, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 29 } }, "callee": { "type": "Super", "start": 268, "end": 273, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 13 } } }, "arguments": [ { "type": "Identifier", "start": 274, "end": 282, "loc": { "start": { "line": 8, "column": 14 }, "end": { "line": 8, "column": 22 }, "identifierName": "sketcher" }, "name": "sketcher" }, { "type": "Identifier", "start": 284, "end": 288, "loc": { "start": { "line": 8, "column": 24 }, "end": { "line": 8, "column": 28 }, "identifierName": "name" }, "name": "name" } ] } }, { "type": "ExpressionStatement", "start": 299, "end": 370, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 79 } }, "expression": { "type": "CallExpression", "start": 299, "end": 369, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 78 } }, "callee": { "type": "MemberExpression", "start": 299, "end": 330, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 39 } }, "object": { "type": "MemberExpression", "start": 299, "end": 321, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 30 } }, "object": { "type": "MemberExpression", "start": 299, "end": 312, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 21 } }, "object": { "type": "ThisExpression", "start": 299, "end": 303, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 12 } } }, "property": { "type": "Identifier", "start": 304, "end": 312, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 21 }, "identifierName": "sketcher" }, "name": "sketcher" }, "computed": false }, "property": { "type": "Identifier", "start": 313, "end": 321, "loc": { "start": { "line": 9, "column": 22 }, "end": { "line": 9, "column": 30 }, "identifierName": "selector" }, "name": "selector" }, "computed": false }, "property": { "type": "Identifier", "start": 322, "end": 330, "loc": { "start": { "line": 9, "column": 31 }, "end": { "line": 9, "column": 39 }, "identifierName": "activate" }, "name": "activate" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 331, "end": 368, "loc": { "start": { "line": 9, "column": 40 }, "end": { "line": 9, "column": 77 } }, "object": { "type": "MemberExpression", "start": 331, "end": 358, "loc": { "start": { "line": 9, "column": 40 }, "end": { "line": 9, "column": 67 } }, "object": { "type": "MemberExpression", "start": 331, "end": 344, "loc": { "start": { "line": 9, "column": 40 }, "end": { "line": 9, "column": 53 } }, "object": { "type": "ThisExpression", "start": 331, "end": 335, "loc": { "start": { "line": 9, "column": 40 }, "end": { "line": 9, "column": 44 } } }, "property": { "type": "Identifier", "start": 336, "end": 344, "loc": { "start": { "line": 9, "column": 45 }, "end": { "line": 9, "column": 53 }, "identifierName": "sketcher" }, "name": "sketcher" }, "computed": false }, "property": { "type": "Identifier", "start": 345, "end": 358, "loc": { "start": { "line": 9, "column": 54 }, "end": { "line": 9, "column": 67 }, "identifierName": "namedElements" }, "name": "namedElements" }, "computed": false }, "property": { "type": "Identifier", "start": 359, "end": 368, "loc": { "start": { "line": 9, "column": 68 }, "end": { "line": 9, "column": 77 }, "identifierName": "selection" }, "name": "selection" }, "computed": false } ] } } ], "directives": [] } }, { "type": "ClassMethod", "start": 382, "end": 636, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 18, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 382, "end": 389, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 11 }, "identifierName": "destroy" }, "name": "destroy" }, "static": false, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 392, "end": 636, "loc": { "start": { "line": 12, "column": 14 }, "end": { "line": 18, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 402, "end": 437, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 43 } }, "expression": { "type": "CallExpression", "start": 402, "end": 436, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 42 } }, "callee": { "type": "MemberExpression", "start": 402, "end": 434, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 40 } }, "object": { "type": "MemberExpression", "start": 402, "end": 424, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 30 } }, "object": { "type": "MemberExpression", "start": 402, "end": 415, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 21 } }, "object": { "type": "ThisExpression", "start": 402, "end": 406, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 12 } } }, "property": { "type": "Identifier", "start": 407, "end": 415, "loc": { "start": { "line": 13, "column": 13 }, "end": { "line": 13, "column": 21 }, "identifierName": "sketcher" }, "name": "sketcher" }, "computed": false }, "property": { "type": "Identifier", "start": 416, "end": 424, "loc": { "start": { "line": 13, "column": 22 }, "end": { "line": 13, "column": 30 }, "identifierName": "selector" }, "name": "selector" }, "computed": false }, "property": { "type": "Identifier", "start": 425, "end": 434, "loc": { "start": { "line": 13, "column": 31 }, "end": { "line": 13, "column": 40 }, "identifierName": "removeAll" }, "name": "removeAll" }, "computed": false }, "arguments": [] } }, { "type": "ForOfStatement", "start": 446, "end": 560, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 15, "column": 65 } }, "left": { "type": "VariableDeclaration", "start": 451, "end": 458, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 20 } }, "declarations": [ { "type": "VariableDeclarator", "start": 455, "end": 458, "loc": { "start": { "line": 14, "column": 17 }, "end": { "line": 14, "column": 20 } }, "id": { "type": "Identifier", "start": 455, "end": 458, "loc": { "start": { "line": 14, "column": 17 }, "end": { "line": 14, "column": 20 }, "identifierName": "obj" }, "name": "obj" }, "init": null } ], "kind": "let" }, "right": { "type": "CallExpression", "start": 462, "end": 493, "loc": { "start": { "line": 14, "column": 24 }, "end": { "line": 14, "column": 55 } }, "callee": { "type": "MemberExpression", "start": 462, "end": 491, "loc": { "start": { "line": 14, "column": 24 }, "end": { "line": 14, "column": 53 } }, "object": { "type": "MemberExpression", "start": 462, "end": 484, "loc": { "start": { "line": 14, "column": 24 }, "end": { "line": 14, "column": 46 } }, "object": { "type": "MemberExpression", "start": 462, "end": 475, "loc": { "start": { "line": 14, "column": 24 }, "end": { "line": 14, "column": 37 } }, "object": { "type": "ThisExpression", "start": 462, "end": 466, "loc": { "start": { "line": 14, "column": 24 }, "end": { "line": 14, "column": 28 } } }, "property": { "type": "Identifier", "start": 467, "end": 475, "loc": { "start": { "line": 14, "column": 29 }, "end": { "line": 14, "column": 37 }, "identifierName": "sketcher" }, "name": "sketcher" }, "computed": false }, "property": { "type": "Identifier", "start": 476, "end": 484, "loc": { "start": { "line": 14, "column": 38 }, "end": { "line": 14, "column": 46 }, "identifierName": "graphics" }, "name": "graphics" }, "computed": false }, "property": { "type": "Identifier", "start": 485, "end": 491, "loc": { "start": { "line": 14, "column": 47 }, "end": { "line": 14, "column": 53 }, "identifierName": "values" }, "name": "values" }, "computed": false }, "arguments": [] }, "body": { "type": "ExpressionStatement", "start": 507, "end": 560, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 65 } }, "expression": { "type": "CallExpression", "start": 507, "end": 559, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 64 } }, "callee": { "type": "MemberExpression", "start": 507, "end": 537, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 42 } }, "object": { "type": "MemberExpression", "start": 507, "end": 529, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 34 } }, "object": { "type": "MemberExpression", "start": 507, "end": 520, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 25 } }, "object": { "type": "ThisExpression", "start": 507, "end": 511, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 16 } } }, "property": { "type": "Identifier", "start": 512, "end": 520, "loc": { "start": { "line": 15, "column": 17 }, "end": { "line": 15, "column": 25 }, "identifierName": "sketcher" }, "name": "sketcher" }, "computed": false }, "property": { "type": "Identifier", "start": 521, "end": 529, "loc": { "start": { "line": 15, "column": 26 }, "end": { "line": 15, "column": 34 }, "identifierName": "selector" }, "name": "selector" }, "computed": false }, "property": { "type": "Identifier", "start": 530, "end": 537, "loc": { "start": { "line": 15, "column": 35 }, "end": { "line": 15, "column": 42 }, "identifierName": "unhover" }, "name": "unhover" }, "computed": false }, "arguments": [ { "type": "LogicalExpression", "start": 538, "end": 558, "loc": { "start": { "line": 15, "column": 43 }, "end": { "line": 15, "column": 63 } }, "left": { "type": "MemberExpression", "start": 538, "end": 551, "loc": { "start": { "line": 15, "column": 43 }, "end": { "line": 15, "column": 56 } }, "object": { "type": "Identifier", "start": 538, "end": 541, "loc": { "start": { "line": 15, "column": 43 }, "end": { "line": 15, "column": 46 }, "identifierName": "obj" }, "name": "obj" }, "property": { "type": "Identifier", "start": 542, "end": 551, "loc": { "start": { "line": 15, "column": 47 }, "end": { "line": 15, "column": 56 }, "identifierName": "localMesh" }, "name": "localMesh" }, "computed": false }, "operator": "||", "right": { "type": "Identifier", "start": 555, "end": 558, "loc": { "start": { "line": 15, "column": 60