UNPKG

awv3

Version:
1,372 lines (1,371 loc) 2.25 MB
{ "type": "File", "start": 0, "end": 9224, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 219, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 9224, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 219, "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": 3499, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 83, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "ClassDeclaration", "start": 125, "end": 3499, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 83, "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": 3499, "loc": { "start": { "line": 5, "column": 39 }, "end": { "line": 83, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 163, "end": 591, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 14, "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": 591, "loc": { "start": { "line": 6, "column": 36 }, "end": { "line": 14, "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": 311, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 79 } }, "expression": { "type": "CallExpression", "start": 240, "end": 310, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 78 } }, "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": 309, "loc": { "start": { "line": 8, "column": 31 }, "end": { "line": 8, "column": 77 } }, "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": "ObjectProperty", "start": 281, "end": 307, "loc": { "start": { "line": 8, "column": 49 }, "end": { "line": 8, "column": 75 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 281, "end": 286, "loc": { "start": { "line": 8, "column": 49 }, "end": { "line": 8, "column": 54 }, "identifierName": "types" }, "name": "types" }, "value": { "type": "ArrayExpression", "start": 288, "end": 307, "loc": { "start": { "line": 8, "column": 56 }, "end": { "line": 8, "column": 75 } }, "elements": [ { "type": "StringLiteral", "start": 289, "end": 306, "loc": { "start": { "line": 8, "column": 57 }, "end": { "line": 8, "column": 74 } }, "extra": { "rawValue": "DimensionHandle", "raw": "'DimensionHandle'" }, "value": "DimensionHandle" } ] } } ] } ] } }, { "type": "ForOfStatement", "start": 320, "end": 515, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 11, "column": 88 } }, "left": { "type": "VariableDeclaration", "start": 325, "end": 337, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 25 } }, "declarations": [ { "type": "VariableDeclarator", "start": 329, "end": 337, "loc": { "start": { "line": 9, "column": 17 }, "end": { "line": 9, "column": 25 } }, "id": { "type": "Identifier", "start": 329, "end": 337, "loc": { "start": { "line": 9, "column": 17 }, "end": { "line": 9, "column": 25 }, "identifierName": "category" }, "name": "category" }, "init": null } ], "kind": "let" }, "right": { "type": "CallExpression", "start": 341, "end": 370, "loc": { "start": { "line": 9, "column": 29 }, "end": { "line": 9, "column": 58 } }, "callee": { "type": "MemberExpression", "start": 341, "end": 354, "loc": { "start": { "line": 9, "column": 29 }, "end": { "line": 9, "column": 42 } }, "object": { "type": "Identifier", "start": 341, "end": 347, "loc": { "start": { "line": 9, "column": 29 }, "end": { "line": 9, "column": 35 }, "identifierName": "Object" }, "name": "Object" }, "property": { "type": "Identifier", "start": 348, "end": 354, "loc": { "start": { "line": 9, "column": 36 }, "end": { "line": 9, "column": 42 }, "identifierName": "values" }, "name": "values" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 355, "end": 369, "loc": { "start": { "line": 9, "column": 43 }, "end": { "line": 9, "column": 57 } }, "object": { "type": "Identifier", "start": 355, "end": 362, "loc": { "start": { "line": 9, "column": 43 }, "end": { "line": 9, "column": 50 }, "identifierName": "Object3" }, "name": "Object3" }, "property": { "type": "Identifier", "start": 363, "end": 369, "loc": { "start": { "line": 9, "column": 51 }, "end": { "line": 9, "column": 57 }, "identifierName": "Events" }, "name": "Events" }, "computed": false } ] }, "body": { "type": "ForOfStatement", "start": 384, "end": 515, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 11, "column": 88 } }, "left": { "type": "VariableDeclaration", "start": 389, "end": 398, "loc": { "start": { "line": 10, "column": 17 }, "end": { "line": 10, "column": 26 } }, "declarations": [ { "type": "VariableDeclarator", "start": 393, "end": 398, "loc": { "start": { "line": 10, "column": 21 }, "end": { "line": 10, "column": 26 } }, "id": { "type": "Identifier", "start": 393, "end": 398, "loc": { "start": { "line": 10, "column": 21 }, "end": { "line": 10, "column": 26 }, "identifierName": "event" }, "name": "event" }, "init": null } ], "kind": "let" }, "right": { "type": "CallExpression", "start": 402, "end": 425, "loc": { "start": { "line": 10, "column": 30 }, "end": { "line": 10, "column": 53 } }, "callee": { "type": "MemberExpression", "start": 402, "end": 415, "loc": { "start": { "line": 10, "column": 30 }, "end": { "line": 10, "column": 43 } }, "object": { "type": "Identifier", "start": 402, "end": 408, "loc": { "start": { "line": 10, "column": 30 }, "end": { "line": 10, "column": 36 }, "identifierName": "Object" }, "name": "Object" }, "property": { "type": "Identifier", "start": 409, "end": 415, "loc": { "start": { "line": 10, "column": 37 }, "end": { "line": 10, "column": 43 }, "identifierName": "values" }, "name": "values" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 416, "end": 424, "loc": { "start": { "line": 10, "column": 44 }, "end": { "line": 10, "column": 52 }, "identifierName": "category" }, "name": "category" } ] }, "body": { "type": "IfStatement", "start": 443, "end": 515, "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 88 } }, "test": { "type": "MemberExpression", "start": 447, "end": 458, "loc": { "start": { "line": 11, "column": 20 }, "end": { "line": 11, "column": 31 } }, "object": { "type": "ThisExpression", "start": 447, "end": 451, "loc": { "start": { "line": 11, "column": 20 }, "end": { "line": 11, "column": 24 } } }, "property": { "type": "Identifier", "start": 452, "end": 457, "loc": { "start": { "line": 11, "column": 25 }, "end": { "line": 11, "column": 30 }, "identifierName": "event" }, "name": "event" }, "computed": true }, "consequent": { "type": "ExpressionStatement", "start": 460, "end": 515, "loc": { "start": { "line": 11, "column": 33 }, "end": { "line": 11, "column": 88 } }, "expression": { "type": "CallExpression", "start": 460, "end": 514, "loc": { "start": { "line": 11, "column": 33 }, "end": { "line": 11, "column": 87 } }, "callee": { "type": "MemberExpression", "start": 460, "end": 467, "loc": { "start": { "line": 11, "column": 33 }, "end": { "line": 11, "column": 40 } }, "object": { "type": "ThisExpression", "start": 460, "end": 464, "loc": { "start": { "line": 11, "column": 33 }, "end": { "line": 11, "column": 37 } } }, "property": { "type": "Identifier", "start": 465, "end": 467, "loc": { "start": { "line": 11, "column": 38 }, "end": { "line": 11, "column": 40 }, "identifierName": "on" }, "name": "on" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 468, "end": 473, "loc": { "start": { "line": 11, "column": 41 }, "end": { "line": 11, "column": 46 }, "identifierName": "event" }, "name": "event" }, { "type": "CallExpression", "start": 475, "end": 497, "loc": { "start": { "line": 11, "column": 48 }, "end": { "line": 11, "column": 70 } }, "callee": { "type": "MemberExpression", "start": 475, "end": 491, "loc": { "start": { "line": 11, "column": 48 }, "end": { "line": 11, "column": 64 } }, "object": { "type": "MemberExpression", "start": 475, "end": 486, "loc": { "start": { "line": 11, "column": 48 }, "end": { "line": 11, "column": 59 } }, "object": { "type": "ThisExpression", "start": 475, "end": 479, "loc": { "start": { "line": 11, "column": 48 }, "end": { "line": 11, "column": 52 } } }, "property": { "type": "Identifier", "start": 480, "end": 485, "loc": { "start": { "line": 11, "column": 53 }, "end": { "line": 11, "column": 58 }, "identifierName": "event" }, "name": "event" }, "computed": true }, "property": { "type": "Identifier", "start": 487, "end": 491, "loc": { "start": { "line": 11, "column": 60 }, "end": { "line": 11, "column": 64 }, "identifierName": "bind" }, "name": "bind" }, "computed": false }, "arguments": [ { "type": "ThisExpression", "start": 492, "end": 496, "loc": { "start": { "line": 11, "column": 65 }, "end": { "line": 11, "column": 69 } } } ] }, { "type": "ObjectExpression", "start": 499, "end": 513, "loc": { "start": { "line": 11, "column": 72 }, "end": { "line": 11, "column": 86 } }, "properties": [ { "type": "ObjectProperty", "start": 501, "end": 511, "loc": { "start": { "line": 11, "column": 74 }, "end": { "line": 11, "column": 84 }