UNPKG

awv3

Version:
1,405 lines 1.88 MB
{ "type": "File", "start": 0, "end": 7802, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 194, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 7802, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 194, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 41, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 41 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 7, "end": 16, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 16 } }, "local": { "type": "Identifier", "start": 7, "end": 16, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 16 }, "identifierName": "cloneDeep" }, "name": "cloneDeep" } } ], "source": { "type": "StringLiteral", "start": 22, "end": 40, "loc": { "start": { "line": 1, "column": 22 }, "end": { "line": 1, "column": 40 } }, "extra": { "rawValue": "lodash/cloneDeep", "raw": "'lodash/cloneDeep'" }, "value": "lodash/cloneDeep" } }, { "type": "ImportDeclaration", "start": 42, "end": 73, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 31 } }, "specifiers": [ { "type": "ImportNamespaceSpecifier", "start": 49, "end": 59, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 17 } }, "local": { "type": "Identifier", "start": 54, "end": 59, "loc": { "start": { "line": 2, "column": 12 }, "end": { "line": 2, "column": 17 }, "identifierName": "THREE" }, "name": "THREE" } } ], "source": { "type": "StringLiteral", "start": 65, "end": 72, "loc": { "start": { "line": 2, "column": 23 }, "end": { "line": 2, "column": 30 } }, "extra": { "rawValue": "three", "raw": "'three'" }, "value": "three" } }, { "type": "ImportDeclaration", "start": 74, "end": 116, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 42 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 81, "end": 88, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 14 } }, "local": { "type": "Identifier", "start": 81, "end": 88, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 14 }, "identifierName": "Object3" }, "name": "Object3" } } ], "source": { "type": "StringLiteral", "start": 94, "end": 115, "loc": { "start": { "line": 3, "column": 20 }, "end": { "line": 3, "column": 41 } }, "extra": { "rawValue": "../../three/object3", "raw": "'../../three/object3'" }, "value": "../../three/object3" } }, { "type": "ExportNamedDeclaration", "start": 118, "end": 2574, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 69, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "ClassDeclaration", "start": 125, "end": 2574, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 69, "column": 1 } }, "id": { "type": "Identifier", "start": 131, "end": 137, "loc": { "start": { "line": 5, "column": 13 }, "end": { "line": 5, "column": 19 }, "identifierName": "Handle" }, "name": "Handle" }, "superClass": { "type": "MemberExpression", "start": 146, "end": 156, "loc": { "start": { "line": 5, "column": 28 }, "end": { "line": 5, "column": 38 } }, "object": { "type": "Identifier", "start": 146, "end": 151, "loc": { "start": { "line": 5, "column": 28 }, "end": { "line": 5, "column": 33 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 152, "end": 156, "loc": { "start": { "line": 5, "column": 34 }, "end": { "line": 5, "column": 38 }, "identifierName": "Mesh" }, "name": "Mesh" }, "computed": false }, "body": { "type": "ClassBody", "start": 157, "end": 2574, "loc": { "start": { "line": 5, "column": 39 }, "end": { "line": 69, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 163, "end": 508, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 13, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 163, "end": 174, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "static": false, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 175, "end": 183, "loc": { "start": { "line": 6, "column": 16 }, "end": { "line": 6, "column": 24 }, "identifierName": "geometry" }, "name": "geometry" }, { "type": "Identifier", "start": 185, "end": 193, "loc": { "start": { "line": 6, "column": 26 }, "end": { "line": 6, "column": 34 }, "identifierName": "material" }, "name": "material" } ], "body": { "type": "BlockStatement", "start": 195, "end": 508, "loc": { "start": { "line": 6, "column": 36 }, "end": { "line": 13, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 205, "end": 231, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 34 } }, "expression": { "type": "CallExpression", "start": 205, "end": 230, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 33 } }, "callee": { "type": "Super", "start": 205, "end": 210, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 13 } } }, "arguments": [ { "type": "Identifier", "start": 211, "end": 219, "loc": { "start": { "line": 7, "column": 14 }, "end": { "line": 7, "column": 22 }, "identifierName": "geometry" }, "name": "geometry" }, { "type": "Identifier", "start": 221, "end": 229, "loc": { "start": { "line": 7, "column": 24 }, "end": { "line": 7, "column": 32 }, "identifierName": "material" }, "name": "material" } ] } }, { "type": "ExpressionStatement", "start": 240, "end": 283, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 51 } }, "expression": { "type": "CallExpression", "start": 240, "end": 282, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 50 } }, "callee": { "type": "MemberExpression", "start": 240, "end": 262, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 30 } }, "object": { "type": "ThisExpression", "start": 240, "end": 244, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 12 } } }, "property": { "type": "Identifier", "start": 245, "end": 262, "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 8, "column": 30 }, "identifierName": "createInteraction" }, "name": "createInteraction" }, "computed": false }, "arguments": [ { "type": "ObjectExpression", "start": 263, "end": 281, "loc": { "start": { "line": 8, "column": 31 }, "end": { "line": 8, "column": 49 } }, "properties": [ { "type": "ObjectProperty", "start": 265, "end": 279, "loc": { "start": { "line": 8, "column": 33 }, "end": { "line": 8, "column": 47 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 265, "end": 273, "loc": { "start": { "line": 8, "column": 33 }, "end": { "line": 8, "column": 41 }, "identifierName": "priority" }, "name": "priority" }, "value": { "type": "NumericLiteral", "start": 275, "end": 279, "loc": { "start": { "line": 8, "column": 43 }, "end": { "line": 8, "column": 47 } }, "extra": { "rawValue": 1000, "raw": "1000" }, "value": 1000 } } ] } ] } }, { "type": "ForOfStatement", "start": 292, "end": 471, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 11, "column": 72 } }, "left": { "type": "VariableDeclaration", "start": 297, "end": 309, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 25 } }, "declarations": [ { "type": "VariableDeclarator", "start": 301, "end": 309, "loc": { "start": { "line": 9, "column": 17 }, "end": { "line": 9, "column": 25 } }, "id": { "type": "Identifier", "start": 301, "end": 309, "loc": { "start": { "line": 9, "column": 17 }, "end": { "line": 9, "column": 25 }, "identifierName": "category" }, "name": "category" }, "init": null } ], "kind": "let" }, "right": { "type": "CallExpression", "start": 313, "end": 342, "loc": { "start": { "line": 9, "column": 29 }, "end": { "line": 9, "column": 58 } }, "callee": { "type": "MemberExpression", "start": 313, "end": 326, "loc": { "start": { "line": 9, "column": 29 }, "end": { "line": 9, "column": 42 } }, "object": { "type": "Identifier", "start": 313, "end": 319, "loc": { "start": { "line": 9, "column": 29 }, "end": { "line": 9, "column": 35 }, "identifierName": "Object" }, "name": "Object" }, "property": { "type": "Identifier", "start": 320, "end": 326, "loc": { "start": { "line": 9, "column": 36 }, "end": { "line": 9, "column": 42 }, "identifierName": "values" }, "name": "values" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 327, "end": 341, "loc": { "start": { "line": 9, "column": 43 }, "end": { "line": 9, "column": 57 } }, "object": { "type": "Identifier", "start": 327, "end": 334, "loc": { "start": { "line": 9, "column": 43 }, "end": { "line": 9, "column": 50 }, "identifierName": "Object3" }, "name": "Object3" }, "property": { "type": "Identifier", "start": 335, "end": 341, "loc": { "start": { "line": 9, "column": 51 }, "end": { "line": 9, "column": 57 }, "identifierName": "Events" }, "name": "Events" }, "computed": false } ] }, "body": { "type": "ForOfStatement", "start": 356, "end": 471, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 11, "column": 72 } }, "left": { "type": "VariableDeclaration", "start": 361, "end": 370, "loc": { "start": { "line": 10, "column": 17 }, "end": { "line": 10, "column": 26 } }, "declarations": [ { "type": "VariableDeclarator", "start": 365, "end": 370, "loc": { "start": { "line": 10, "column": 21 }, "end": { "line": 10, "column": 26 } }, "id": { "type": "Identifier", "start": 365, "end": 370, "loc": { "start": { "line": 10, "column": 21 }, "end": { "line": 10, "column": 26 }, "identifierName": "event" }, "name": "event" }, "init": null } ], "kind": "let" }, "right": { "type": "CallExpression", "start": 374, "end": 397, "loc": { "start": { "line": 10, "column": 30 }, "end": { "line": 10, "column": 53 } }, "callee": { "type": "MemberExpression", "start": 374, "end": 387, "loc": { "start": { "line": 10, "column": 30 }, "end": { "line": 10, "column": 43 } }, "object": { "type": "Identifier", "start": 374, "end": 380, "loc": { "start": { "line": 10, "column": 30 }, "end": { "line": 10, "column": 36 }, "identifierName": "Object" }, "name": "Object" }, "property": { "type": "Identifier", "start": 381, "end": 387, "loc": { "start": { "line": 10, "column": 37 }, "end": { "line": 10, "column": 43 }, "identifierName": "values" }, "name": "values" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 388, "end": 396, "loc": { "start": { "line": 10, "column": 44 }, "end": { "line": 10, "column": 52 }, "identifierName": "category" }, "name": "category" } ] }, "body": { "type": "IfStatement", "start": 415, "end": 471, "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 72 } }, "test": { "type": "MemberExpression", "start": 419, "end": 430, "loc": { "start": { "line": 11, "column": 20 }, "end": { "line": 11, "column": 31 } }, "object": { "type": "ThisExpression", "start": 419, "end": 423, "loc": { "start": { "line": 11, "column": 20 }, "end": { "line": 11, "column": 24 } } }, "property": { "type": "Identifier", "start": 424, "end": 429, "loc": { "start": { "line": 11, "column": 25 }, "end": { "line": 11, "column": 30 }, "identifierName": "event" }, "name": "event" }, "computed": true }, "consequent": { "type": "ExpressionStatement", "start": 432, "end": 471, "loc": { "start": { "line": 11, "column": 33 }, "end": { "line": 11, "column": 72 } }, "expression": { "type": "CallExpression", "start": 432, "end": 470, "loc": { "start": { "line": 11, "column": 33 }, "end": { "line": 11, "column": 71 } }, "callee": { "type": "MemberExpression", "start": 432, "end": 439, "loc": { "start": { "line": 11, "column": 33 }, "end": { "line": 11, "column": 40 } }, "object": { "type": "ThisExpression", "start": 432, "end": 436, "loc": { "start": { "line": 11, "column": 33 }, "end": { "line": 11, "column": 37 } } }, "property": { "type": "Identifier", "start": 437, "end": 439, "loc": { "start": { "line": 11, "column": 38 }, "end": { "line": 11, "column": 40 }, "identifierName": "on" }, "name": "on" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 440, "end": 445, "loc": { "start": { "line": 11, "column": 41 }, "end": { "line": 11, "column": 46 }, "identifierName": "event" }, "name": "event" }, { "type": "CallExpression", "start": 447, "end": 469, "loc": { "start": { "line": 11, "column": 48 }, "end": { "line": 11, "column": 70 } }, "callee": { "type": "MemberExpression", "start": 447, "end": 463, "loc": { "start": { "line": 11, "column": 48 }, "end": { "line": 11, "column": 64 } }, "object": { "type": "MemberExpression", "start": 447, "end": 458, "loc": { "start": { "line": 11, "column": 48 }, "end": { "line": 11, "column": 59 } }, "object": { "type": "ThisExpression", "start": 447, "end": 451, "loc": { "start": { "line": 11, "column": 48 }, "end": { "line": 11, "column": 52 } } }, "property": { "type": "Identifier", "start": 452, "end": 457, "loc": { "start": { "line": 11, "column": 53 }, "end": { "line": 11, "column": 58 }, "identifierName": "event" }, "name": "event" }, "computed": true }, "property": { "type": "Identifier", "start": 459, "end": 463, "loc": { "start": { "line": 11, "column": 60 }, "end": { "line": 11, "column": 64 }, "identifierName": "bind" }, "name": "bind" }, "computed": false }, "arguments": [ { "type": "ThisExpression", "start": 464, "end": 468, "loc": { "start": { "line": 11, "column": 65 }, "end": { "line": 11, "column": 69 } } } ] } ] } }, "alternate": null } } }, { "type": "ExpressionStatement", "start": 480, "end": 502, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 30 } }, "expression": { "type": "AssignmentExpression", "start": 480, "end": 501, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 29 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 480, "end": 489, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 17 } }, "object": { "type": "ThisExpression", "start": 480, "end": 484, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "start": 485, "end": 489, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 17 }, "identifierName": "text" }, "name": "text" }, "computed": false }, "right": { "type": "Identifier", "start": 492, "end": 501, "loc": { "start": { "line": 12, "column": 20 }, "end": { "line": 12, "column": 29 }, "identifierName": "undefined" }, "name": "undefined" } } } ], "directives": [] } }, { "type": "ClassMethod", "start": 514, "end": 612, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 17, "column": 5 } }, "computed": true, "key": { "type": "MemberExpression", "start": 515, "end": 548, "loc": { "start": { "line": 15, "column": 5 }, "end": { "line": 15, "