UNPKG

awv3

Version:
1,423 lines (1,422 loc) 145 kB
{ "type": "File", "start": 0, "end": 750, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 24, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 750, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 24, "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": 61, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 29 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 39, "end": 44, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 12 } }, "local": { "type": "Identifier", "start": 39, "end": 44, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 12 }, "identifierName": "Ccref" }, "name": "Ccref" } } ], "source": { "type": "StringLiteral", "start": 50, "end": 60, "loc": { "start": { "line": 2, "column": 18 }, "end": { "line": 2, "column": 28 } }, "extra": { "rawValue": "../ccref", "raw": "'../ccref'" }, "value": "../ccref" } }, { "type": "ExportDefaultDeclaration", "start": 63, "end": 749, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 23, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 78, "end": 749, "loc": { "start": { "line": 4, "column": 15 }, "end": { "line": 23, "column": 1 } }, "id": { "type": "Identifier", "start": 84, "end": 96, "loc": { "start": { "line": 4, "column": 21 }, "end": { "line": 4, "column": 33 }, "identifierName": "BaseGraphics" }, "name": "BaseGraphics" }, "superClass": { "type": "MemberExpression", "start": 105, "end": 119, "loc": { "start": { "line": 4, "column": 42 }, "end": { "line": 4, "column": 56 } }, "object": { "type": "Identifier", "start": 105, "end": 110, "loc": { "start": { "line": 4, "column": 42 }, "end": { "line": 4, "column": 47 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 111, "end": 119, "loc": { "start": { "line": 4, "column": 48 }, "end": { "line": 4, "column": 56 }, "identifierName": "Object3D" }, "name": "Object3D" }, "computed": false }, "body": { "type": "ClassBody", "start": 120, "end": 749, "loc": { "start": { "line": 4, "column": 57 }, "end": { "line": 23, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 126, "end": 337, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 9, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 126, "end": 148, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 26 }, "identifierName": "updateCoordinateSystem" }, "name": "updateCoordinateSystem" }, "static": false, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 149, "end": 165, "loc": { "start": { "line": 5, "column": 27 }, "end": { "line": 5, "column": 43 }, "identifierName": "coordinateSystem" }, "name": "coordinateSystem" } ], "body": { "type": "BlockStatement", "start": 167, "end": 337, "loc": { "start": { "line": 5, "column": 45 }, "end": { "line": 9, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 177, "end": 212, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 43 } }, "expression": { "type": "CallExpression", "start": 177, "end": 211, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 42 } }, "callee": { "type": "MemberExpression", "start": 177, "end": 193, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 24 } }, "object": { "type": "MemberExpression", "start": 177, "end": 188, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 19 } }, "object": { "type": "ThisExpression", "start": 177, "end": 181, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 12 } } }, "property": { "type": "Identifier", "start": 182, "end": 188, "loc": { "start": { "line": 6, "column": 13 }, "end": { "line": 6, "column": 19 }, "identifierName": "matrix" }, "name": "matrix" }, "computed": false }, "property": { "type": "Identifier", "start": 189, "end": 193, "loc": { "start": { "line": 6, "column": 20 }, "end": { "line": 6, "column": 24 }, "identifierName": "copy" }, "name": "copy" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 194, "end": 210, "loc": { "start": { "line": 6, "column": 25 }, "end": { "line": 6, "column": 41 }, "identifierName": "coordinateSystem" }, "name": "coordinateSystem" } ] } }, { "type": "ExpressionStatement", "start": 221, "end": 287, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 74 } }, "expression": { "type": "CallExpression", "start": 221, "end": 286, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 73 } }, "callee": { "type": "MemberExpression", "start": 221, "end": 242, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 29 } }, "object": { "type": "MemberExpression", "start": 221, "end": 232, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 19 } }, "object": { "type": "ThisExpression", "start": 221, "end": 225, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 12 } } }, "property": { "type": "Identifier", "start": 226, "end": 232, "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 7, "column": 19 }, "identifierName": "matrix" }, "name": "matrix" }, "computed": false }, "property": { "type": "Identifier", "start": 233, "end": 242, "loc": { "start": { "line": 7, "column": 20 }, "end": { "line": 7, "column": 29 }, "identifierName": "decompose" }, "name": "decompose" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 243, "end": 256, "loc": { "start": { "line": 7, "column": 30 }, "end": { "line": 7, "column": 43 } }, "object": { "type": "ThisExpression", "start": 243, "end": 247, "loc": { "start": { "line": 7, "column": 30 }, "end": { "line": 7, "column": 34 } } }, "property": { "type": "Identifier", "start": 248, "end": 256, "loc": { "start": { "line": 7, "column": 35 }, "end": { "line": 7, "column": 43 }, "identifierName": "position" }, "name": "position" }, "computed": false }, { "type": "MemberExpression", "start": 258, "end": 273, "loc": { "start": { "line": 7, "column": 45 }, "end": { "line": 7, "column": 60 } }, "object": { "type": "ThisExpression", "start": 258, "end": 262, "loc": { "start": { "line": 7, "column": 45 }, "end": { "line": 7, "column": 49 } } }, "property": { "type": "Identifier", "start": 263, "end": 273, "loc": { "start": { "line": 7, "column": 50 }, "end": { "line": 7, "column": 60 }, "identifierName": "quaternion" }, "name": "quaternion" }, "computed": false }, { "type": "MemberExpression", "start": 275, "end": 285, "loc": { "start": { "line": 7, "column": 62 }, "end": { "line": 7, "column": 72 } }, "object": { "type": "ThisExpression", "start": 275, "end": 279, "loc": { "start": { "line": 7, "column": 62 }, "end": { "line": 7, "column": 66 } } }, "property": { "type": "Identifier", "start": 280, "end": 285, "loc": { "start": { "line": 7, "column": 67 }, "end": { "line": 7, "column": 72 }, "identifierName": "scale" }, "name": "scale" }, "computed": false } ] } }, { "type": "ExpressionStatement", "start": 296, "end": 331, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 43 } }, "expression": { "type": "AssignmentExpression", "start": 296, "end": 330, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 42 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 296, "end": 323, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 35 } }, "object": { "type": "ThisExpression", "start": 296, "end": 300, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 12 } } }, "property": { "type": "Identifier", "start": 301, "end": 323, "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 8, "column": 35 }, "identifierName": "matrixWorldNeedsUpdate" }, "name": "matrixWorldNeedsUpdate" }, "computed": false }, "right": { "type": "BooleanLiteral", "start": 326, "end": 330, "loc": { "start": { "line": 8, "column": 38 }, "end": { "line": 8, "column": 42 } }, "value": true } } } ], "directives": [] } }, { "type": "ClassMethod", "start": 343, "end": 449, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 13, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 343, "end": 363, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 24 }, "identifierName": "updateFromGeomParams" }, "name": "updateFromGeomParams" }, "static": false, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 364, "end": 374, "loc": { "start": { "line": 11, "column": 25 }, "end": { "line": 11, "column": 35 }, "identifierName": "geomParams" }, "name": "geomParams" } ], "body": { "type": "BlockStatement", "start": 376, "end": 449, "loc": { "start": { "line": 11, "column": 37 }, "end": { "line": 13, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 386, "end": 443, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 65 } }, "expression": { "type": "CallExpression", "start": 386, "end": 442, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 64 } }, "callee": { "type": "MemberExpression", "start": 386, "end": 413, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 35 } }, "object": { "type": "ThisExpression", "start": 386, "end": 390, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "start": 391, "end": 413, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 35 }, "identifierName": "updateCoordinateSystem" }, "name": "updateCoordinateSystem" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 414, "end": 441, "loc": { "start": { "line": 12, "column": 36 }, "end": { "line": 12, "column": 63 } }, "object": { "type": "Identifier", "start": 414, "end": 424, "loc": { "start": { "line": 12, "column": 36 }, "end": { "line": 12, "column": 46 }, "identifierName": "geomParams" }, "name": "geomParams" }, "property": { "type": "Identifier", "start": 425, "end": 441, "loc": { "start": { "line": 12, "column": 47 }, "end": { "line": 12, "column": 63 }, "identifierName": "coordinateSystem" }, "name": "coordinateSystem" }, "computed": false } ] } } ], "directives": [] } }, { "type": "ClassMethod", "start": 455, "end": 553, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 17, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 455, "end": 468, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 17 }, "identifierName": "updateMetaBox" }, "name": "updateMetaBox" }, "static": false, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 471, "end": 553, "loc": { "start": { "line": 15, "column": 20 }, "end": { "line": 17, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 481, "end": 547, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 74 } }, "expression": { "type": "AssignmentExpression", "start": 481, "end": 546, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 73 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 481, "end": 513, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 40 } }, "object": { "type": "MemberExpression", "start": 481, "end": 509, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 36 } }, "object": { "type": "MemberExpression", "start": 481, "end": 504, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 31 } }, "object": { "type": "MemberExpression", "start": 481, "end": 495, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 22 } }, "object": { "type": "ThisExpression", "start": 481, "end": 485, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 12 } } }, "property": { "type": "Identifier", "start": 486, "end": 495, "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 16, "column": 22 }, "identifierName": "localMesh" }, "name": "localMesh" }, "computed": false }, "property": { "type": "Identifier", "start": 496, "end": 504, "loc": { "start": { "line": 16, "column": 23 }, "end": { "line": 16, "column": 31 }, "identifierName": "material" }, "name": "material" }, "computed": false }, "property": { "type": "Identifier", "start": 505, "end": 509, "loc": { "start": { "line": 16, "column": 32 }, "end": { "line": 16, "column": 36 }, "identifierName": "meta" }, "name": "meta" }, "computed": false }, "property": { "type": "Identifier", "start": 510, "end": 513, "loc": { "start": { "line": 16, "column": 37 }, "end": { "line": 16, "column": 40 }, "identifierName": "box" }, "name": "box" }, "computed": false }, "right": { "type": "MemberExpression", "start": 516, "end": 546, "loc": { "start": { "line": 16, "column": 43 }, "end": { "line": 16, "column": 73 } }, "object": { "type": "MemberExpression", "start": 516, "end": 542, "loc": { "start": { "line": 16, "column": 43 }, "end": { "line": 16, "column": 69 } }, "object": { "type": "CallExpression", "start": 516, "end": 535, "loc": { "start": { "line": 16, "column": 43 }, "end": { "line": 16, "column": 62 } }, "callee": { "type": "MemberExpression", "start": 516, "end": 533, "loc": { "start": { "line": 16, "column": 43 }, "end": { "line": 16, "column": 60 } }, "object": { "type": "ThisExpression", "start": 516, "end": 520, "loc": { "start": { "line": 16, "column": 43 }, "end": { "line": 16, "column": 47 } } }, "property": { "type": "Identifier", "start": 521, "end": 533, "loc": { "start": { "line": 16, "column": 48 }, "end": { "line": 16, "column": 60 }, "identifierName": "updateBounds" }, "name": "updateBounds" }, "computed": false }, "arguments": [] }, "property": { "type": "Identifier", "start": 536, "end": 542, "loc": { "start": { "line": 16, "column": 63 }, "end": { "line": 16, "column": 69 }, "identifierName": "bounds" }, "name": "bounds" }, "computed": false }, "property": { "type": "Identifier", "start": 543, "end": 546, "loc": { "start": { "line": 16, "column": 70 }, "end": { "line": 16, "column": 73 }, "identifierName": "box" }, "name": "box" }, "computed": false } } } ], "directives": [] } }, { "type": "ClassMethod", "start": 559, "end": 747, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 22, "column": 5 } },