UNPKG

awv3

Version:
1,350 lines 262 kB
{ "type": "Program", "start": 0, "end": 5821, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 146, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 26, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 26 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 7, "end": 12, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 12 } }, "local": { "type": "Identifier", "start": 7, "end": 12, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 12 } }, "name": "THREE" } } ], "importKind": "value", "source": { "type": "Literal", "start": 18, "end": 25, "loc": { "start": { "line": 1, "column": 18 }, "end": { "line": 1, "column": 25 } }, "value": "three", "rawValue": "three", "raw": "'three'" } }, { "type": "ExportDefaultDeclaration", "start": 30, "end": 5819, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 145, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 45, "end": 5819, "loc": { "start": { "line": 3, "column": 15 }, "end": { "line": 145, "column": 1 } }, "id": { "type": "Identifier", "start": 51, "end": 68, "loc": { "start": { "line": 3, "column": 21 }, "end": { "line": 3, "column": 38 } }, "name": "MeshPhongMaterial" }, "superClass": { "type": "MemberExpression", "start": 77, "end": 100, "loc": { "start": { "line": 3, "column": 47 }, "end": { "line": 3, "column": 70 } }, "object": { "type": "Identifier", "start": 77, "end": 82, "loc": { "start": { "line": 3, "column": 47 }, "end": { "line": 3, "column": 52 } }, "name": "THREE" }, "property": { "type": "Identifier", "start": 83, "end": 100, "loc": { "start": { "line": 3, "column": 53 }, "end": { "line": 3, "column": 70 } }, "name": "MeshPhongMaterial" }, "computed": false }, "body": { "type": "ClassBody", "start": 101, "end": 5819, "loc": { "start": { "line": 3, "column": 71 }, "end": { "line": 145, "column": 1 } }, "body": [ { "type": "MethodDefinition", "start": 108, "end": 4990, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 123, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 108, "end": 119, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 15 } }, "name": "constructor" }, "static": false, "kind": "constructor", "value": { "type": "FunctionExpression", "start": 119, "end": 4990, "loc": { "start": { "line": 4, "column": 15 }, "end": { "line": 123, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 120, "end": 127, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 23 } }, "name": "options" } ], "body": { "type": "BlockStatement", "start": 129, "end": 4990, "loc": { "start": { "line": 4, "column": 25 }, "end": { "line": 123, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 140, "end": 148, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 16 } }, "expression": { "type": "CallExpression", "start": 140, "end": 147, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 15 } }, "callee": { "type": "Super", "start": 140, "end": 145, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 13 } } }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 160, "end": 197, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 45 } }, "expression": { "type": "AssignmentExpression", "start": 160, "end": 196, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 44 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 160, "end": 169, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 17 } }, "object": { "type": "ThisExpression", "start": 160, "end": 164, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 12 } } }, "property": { "type": "Identifier", "start": 165, "end": 169, "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 7, "column": 17 } }, "name": "type" }, "computed": false }, "right": { "type": "Literal", "start": 172, "end": 196, "loc": { "start": { "line": 7, "column": 20 }, "end": { "line": 7, "column": 44 } }, "value": "AWV3.MeshPhongMaterial", "rawValue": "AWV3.MeshPhongMaterial", "raw": "'AWV3.MeshPhongMaterial'" } } }, { "type": "ExpressionStatement", "start": 207, "end": 224, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 25 } }, "expression": { "type": "AssignmentExpression", "start": 207, "end": 223, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 24 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 207, "end": 215, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 16 } }, "object": { "type": "ThisExpression", "start": 207, "end": 211, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 12 } } }, "property": { "type": "Identifier", "start": 212, "end": 215, "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 8, "column": 16 } }, "name": "fog" }, "computed": false }, "right": { "type": "Literal", "start": 218, "end": 223, "loc": { "start": { "line": 8, "column": 19 }, "end": { "line": 8, "column": 24 } }, "value": false, "rawValue": false, "raw": "false" } } }, { "type": "ExpressionStatement", "start": 234, "end": 258, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 32 } }, "expression": { "type": "AssignmentExpression", "start": 234, "end": 257, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 31 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 234, "end": 250, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 24 } }, "object": { "type": "ThisExpression", "start": 234, "end": 238, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 12 } } }, "property": { "type": "Identifier", "start": 239, "end": 250, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 24 } }, "name": "transparent" }, "computed": false }, "right": { "type": "Literal", "start": 253, "end": 257, "loc": { "start": { "line": 9, "column": 27 }, "end": { "line": 9, "column": 31 } }, "value": true, "rawValue": true, "raw": "true" } } }, { "type": "ExpressionStatement", "start": 268, "end": 294, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 34 } }, "expression": { "type": "AssignmentExpression", "start": 268, "end": 293, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 33 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 268, "end": 286, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 26 } }, "object": { "type": "ThisExpression", "start": 268, "end": 272, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, "property": { "type": "Identifier", "start": 273, "end": 286, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 26 } }, "name": "polygonOffset" }, "computed": false }, "right": { "type": "Literal", "start": 289, "end": 293, "loc": { "start": { "line": 10, "column": 29 }, "end": { "line": 10, "column": 33 } }, "value": true, "rawValue": true, "raw": "true" } } }, { "type": "ExpressionStatement", "start": 304, "end": 333, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 37 } }, "expression": { "type": "AssignmentExpression", "start": 304, "end": 332, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 36 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 304, "end": 328, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 32 } }, "object": { "type": "ThisExpression", "start": 304, "end": 308, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 12 } } }, "property": { "type": "Identifier", "start": 309, "end": 328, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 32 } }, "name": "polygonOffsetFactor" }, "computed": false }, "right": { "type": "Literal", "start": 331, "end": 332, "loc": { "start": { "line": 11, "column": 35 }, "end": { "line": 11, "column": 36 } }, "value": 1, "rawValue": 1, "raw": "1" } } }, { "type": "ExpressionStatement", "start": 343, "end": 371, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 36 } }, "expression": { "type": "AssignmentExpression", "start": 343, "end": 370, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 35 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 343, "end": 366, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 31 } }, "object": { "type": "ThisExpression", "start": 343, "end": 347, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "start": 348, "end": 366, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 31 } }, "name": "polygonOffsetUnits" }, "computed": false }, "right": { "type": "Literal", "start": 369, "end": 370, "loc": { "start": { "line": 12, "column": 34 }, "end": { "line": 12, "column": 35 } }, "value": 1, "rawValue": 1, "raw": "1" } } }, { "type": "ExpressionStatement", "start": 383, "end": 1267, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 35, "column": 11 } }, "expression": { "type": "AssignmentExpression", "start": 383, "end": 1266, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 35, "column": 10 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 383, "end": 396, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 21 } }, "object": { "type": "ThisExpression", "start": 383, "end": 387, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 12 } } }, "property": { "type": "Identifier", "start": 388, "end": 396, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 21 } }, "name": "uniforms" }, "computed": false }, "right": { "type": "CallExpression", "start": 399, "end": 1266, "loc": { "start": { "line": 14, "column": 24 }, "end": { "line": 35, "column": 10 } }, "callee": { "type": "MemberExpression", "start": 399, "end": 424, "loc": { "start": { "line": 14, "column": 24 }, "end": { "line": 14, "column": 49 } }, "object": { "type": "MemberExpression", "start": 399, "end": 418, "loc": { "start": { "line": 14, "column": 24 }, "end": { "line": 14, "column": 43 } }, "object": { "type": "Identifier", "start": 399, "end": 404, "loc": { "start": { "line": 14, "column": 24 }, "end": { "line": 14, "column": 29 } }, "name": "THREE" }, "property": { "type": "Identifier", "start": 405, "end": 418, "loc": { "start": { "line": 14, "column": 30 }, "end": { "line": 14, "column": 43 } }, "name": "UniformsUtils" }, "computed": false }, "property": { "type": "Identifier", "start": 419, "end": 424, "loc": { "start": { "line": 14, "column": 44 }, "end": { "line": 14, "column": 49 } }, "name": "merge" }, "computed": false }, "arguments": [ { "type": "ArrayExpression", "start": 426, "end": 1265, "loc": { "start": { "line": 14, "column": 51 }, "end": { "line": 35, "column": 9 } }, "elements": [ { "type": "MemberExpression", "start": 441, "end": 470, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 41 } }, "object": { "type": "MemberExpression", "start": 441, "end": 458, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 29 } }, "object": { "type": "Identifier", "start": 441, "end": 446, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 17 } }, "name": "THREE" }, "property": { "type": "Identifier", "start": 447, "end": 458, "loc": { "start": { "line": 15, "column": 18 }, "end": { "line": 15, "column": 29 } }, "name": "UniformsLib" }, "computed": false }, "property": { "type": "Literal", "start": 460, "end": 468, "loc": { "start": { "line": 15, "column": 31 }, "end": { "line": 15, "column": 39 } }, "value": "common", "rawValue": "common", "raw": "'common'" }, "computed": true }, { "type": "MemberExpression", "start": 476, "end": 504, "loc": { "start": { "line": 16, "column": 3 }, "end": { "line": 16, "column": 31 } }, "object": { "type": "MemberExpression", "start": 476, "end": 493, "loc": { "start": { "line": 16, "column": 3 }, "end": { "line": 16, "column": 20 } }, "object": { "type": "Identifier", "start": 476, "end": 481, "loc": { "start": { "line": 16, "column": 3 }, "end": { "line": 16, "column": 8 } }, "name": "THREE" }, "property": { "type": "Identifier", "start": 482, "end": 493, "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 16, "column": 20 } }, "name": "UniformsLib" }, "computed": false }, "property": { "type": "Literal", "start": 495, "end": 502, "loc": { "start": { "line": 16, "column": 22 }, "end": { "line": 16, "column": 29 } }, "value": "aomap", "rawValue": "aomap", "raw": "'aomap'" }, "computed": true }, { "type": "MemberExpression", "start": 510, "end": 541, "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 17, "column": 34 } }, "object": { "type": "MemberExpression", "start": 510, "end": 527, "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 17, "column": 20 } }, "object": { "type": "Identifier", "start": 510, "end": 515, "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 17, "column": 8 } }, "name": "THREE" }, "property": { "type": "Identifier", "start": 516, "end": 527, "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 20 } }, "name": "UniformsLib" }, "computed": false }, "property": { "type": "Literal", "start": 529, "end": 539, "loc": { "start": { "line": 17, "column": 22 }, "end": { "line": 17, "column": 32 } }, "value": "lightmap", "rawValue": "lightmap", "raw": "'lightmap'" }, "computed": true }, { "type": "MemberExpression", "start": 547, "end": 581, "loc": { "start": { "line": 18, "column": 3 }, "end": { "line": 18, "column": 37 } }, "object": { "type": "MemberExpression", "start": 547, "end": 564, "loc": { "start": { "line": 18, "colum