UNPKG

awv3

Version:
1,350 lines 262 kB
{ "type": "Program", "start": 0, "end": 5676, "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": 28, "end": 5675, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 145, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 43, "end": 5675, "loc": { "start": { "line": 3, "column": 15 }, "end": { "line": 145, "column": 1 } }, "id": { "type": "Identifier", "start": 49, "end": 66, "loc": { "start": { "line": 3, "column": 21 }, "end": { "line": 3, "column": 38 } }, "name": "MeshPhongMaterial" }, "superClass": { "type": "MemberExpression", "start": 75, "end": 98, "loc": { "start": { "line": 3, "column": 47 }, "end": { "line": 3, "column": 70 } }, "object": { "type": "Identifier", "start": 75, "end": 80, "loc": { "start": { "line": 3, "column": 47 }, "end": { "line": 3, "column": 52 } }, "name": "THREE" }, "property": { "type": "Identifier", "start": 81, "end": 98, "loc": { "start": { "line": 3, "column": 53 }, "end": { "line": 3, "column": 70 } }, "name": "MeshPhongMaterial" }, "computed": false }, "body": { "type": "ClassBody", "start": 99, "end": 5675, "loc": { "start": { "line": 3, "column": 71 }, "end": { "line": 145, "column": 1 } }, "body": [ { "type": "MethodDefinition", "start": 105, "end": 4868, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 123, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 105, "end": 116, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 15 } }, "name": "constructor" }, "static": false, "kind": "constructor", "value": { "type": "FunctionExpression", "start": 116, "end": 4868, "loc": { "start": { "line": 4, "column": 15 }, "end": { "line": 123, "column": 5 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 117, "end": 124, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 23 } }, "name": "options" } ], "body": { "type": "BlockStatement", "start": 126, "end": 4868, "loc": { "start": { "line": 4, "column": 25 }, "end": { "line": 123, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 136, "end": 144, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 16 } }, "expression": { "type": "CallExpression", "start": 136, "end": 143, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 15 } }, "callee": { "type": "Super", "start": 136, "end": 141, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 13 } } }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 154, "end": 191, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 45 } }, "expression": { "type": "AssignmentExpression", "start": 154, "end": 190, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 44 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 154, "end": 163, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 17 } }, "object": { "type": "ThisExpression", "start": 154, "end": 158, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 12 } } }, "property": { "type": "Identifier", "start": 159, "end": 163, "loc": { "start": { "line": 7, "column": 13 }, "end": { "line": 7, "column": 17 } }, "name": "type" }, "computed": false }, "right": { "type": "Literal", "start": 166, "end": 190, "loc": { "start": { "line": 7, "column": 20 }, "end": { "line": 7, "column": 44 } }, "value": "AWV3.MeshPhongMaterial", "rawValue": "AWV3.MeshPhongMaterial", "raw": "'AWV3.MeshPhongMaterial'" } } }, { "type": "ExpressionStatement", "start": 200, "end": 217, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 25 } }, "expression": { "type": "AssignmentExpression", "start": 200, "end": 216, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 24 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 200, "end": 208, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 16 } }, "object": { "type": "ThisExpression", "start": 200, "end": 204, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 12 } } }, "property": { "type": "Identifier", "start": 205, "end": 208, "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 8, "column": 16 } }, "name": "fog" }, "computed": false }, "right": { "type": "Literal", "start": 211, "end": 216, "loc": { "start": { "line": 8, "column": 19 }, "end": { "line": 8, "column": 24 } }, "value": false, "rawValue": false, "raw": "false" } } }, { "type": "ExpressionStatement", "start": 226, "end": 250, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 32 } }, "expression": { "type": "AssignmentExpression", "start": 226, "end": 249, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 31 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 226, "end": 242, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 24 } }, "object": { "type": "ThisExpression", "start": 226, "end": 230, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 12 } } }, "property": { "type": "Identifier", "start": 231, "end": 242, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 24 } }, "name": "transparent" }, "computed": false }, "right": { "type": "Literal", "start": 245, "end": 249, "loc": { "start": { "line": 9, "column": 27 }, "end": { "line": 9, "column": 31 } }, "value": true, "rawValue": true, "raw": "true" } } }, { "type": "ExpressionStatement", "start": 259, "end": 285, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 34 } }, "expression": { "type": "AssignmentExpression", "start": 259, "end": 284, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 33 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 259, "end": 277, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 26 } }, "object": { "type": "ThisExpression", "start": 259, "end": 263, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, "property": { "type": "Identifier", "start": 264, "end": 277, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 26 } }, "name": "polygonOffset" }, "computed": false }, "right": { "type": "Literal", "start": 280, "end": 284, "loc": { "start": { "line": 10, "column": 29 }, "end": { "line": 10, "column": 33 } }, "value": true, "rawValue": true, "raw": "true" } } }, { "type": "ExpressionStatement", "start": 294, "end": 323, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 37 } }, "expression": { "type": "AssignmentExpression", "start": 294, "end": 322, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 36 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 294, "end": 318, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 32 } }, "object": { "type": "ThisExpression", "start": 294, "end": 298, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 12 } } }, "property": { "type": "Identifier", "start": 299, "end": 318, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 32 } }, "name": "polygonOffsetFactor" }, "computed": false }, "right": { "type": "Literal", "start": 321, "end": 322, "loc": { "start": { "line": 11, "column": 35 }, "end": { "line": 11, "column": 36 } }, "value": 1, "rawValue": 1, "raw": "1" } } }, { "type": "ExpressionStatement", "start": 332, "end": 360, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 36 } }, "expression": { "type": "AssignmentExpression", "start": 332, "end": 359, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 35 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 332, "end": 355, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 31 } }, "object": { "type": "ThisExpression", "start": 332, "end": 336, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "start": 337, "end": 355, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 31 } }, "name": "polygonOffsetUnits" }, "computed": false }, "right": { "type": "Literal", "start": 358, "end": 359, "loc": { "start": { "line": 12, "column": 34 }, "end": { "line": 12, "column": 35 } }, "value": 1, "rawValue": 1, "raw": "1" } } }, { "type": "ExpressionStatement", "start": 370, "end": 1233, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 35, "column": 11 } }, "expression": { "type": "AssignmentExpression", "start": 370, "end": 1232, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 35, "column": 10 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 370, "end": 383, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 21 } }, "object": { "type": "ThisExpression", "start": 370, "end": 374, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 12 } } }, "property": { "type": "Identifier", "start": 375, "end": 383, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 21 } }, "name": "uniforms" }, "computed": false }, "right": { "type": "CallExpression", "start": 386, "end": 1232, "loc": { "start": { "line": 14, "column": 24 }, "end": { "line": 35, "column": 10 } }, "callee": { "type": "MemberExpression", "start": 386, "end": 411, "loc": { "start": { "line": 14, "column": 24 }, "end": { "line": 14, "column": 49 } }, "object": { "type": "MemberExpression", "start": 386, "end": 405, "loc": { "start": { "line": 14, "column": 24 }, "end": { "line": 14, "column": 43 } }, "object": { "type": "Identifier", "start": 386, "end": 391, "loc": { "start": { "line": 14, "column": 24 }, "end": { "line": 14, "column": 29 } }, "name": "THREE" }, "property": { "type": "Identifier", "start": 392, "end": 405, "loc": { "start": { "line": 14, "column": 30 }, "end": { "line": 14, "column": 43 } }, "name": "UniformsUtils" }, "computed": false }, "property": { "type": "Identifier", "start": 406, "end": 411, "loc": { "start": { "line": 14, "column": 44 }, "end": { "line": 14, "column": 49 } }, "name": "merge" }, "computed": false }, "arguments": [ { "type": "ArrayExpression", "start": 413, "end": 1231, "loc": { "start": { "line": 14, "column": 51 }, "end": { "line": 35, "column": 9 } }, "elements": [ { "type": "MemberExpression", "start": 427, "end": 456, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 41 } }, "object": { "type": "MemberExpression", "start": 427, "end": 444, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 29 } }, "object": { "type": "Identifier", "start": 427, "end": 432, "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 17 } }, "name": "THREE" }, "property": { "type": "Identifier", "start": 433, "end": 444, "loc": { "start": { "line": 15, "column": 18 }, "end": { "line": 15, "column": 29 } }, "name": "UniformsLib" }, "computed": false }, "property": { "type": "Literal", "start": 446, "end": 454, "loc": { "start": { "line": 15, "column": 31 }, "end": { "line": 15, "column": 39 } }, "value": "common", "rawValue": "common", "raw": "'common'" }, "computed": true }, { "type": "MemberExpression", "start": 461, "end": 489, "loc": { "start": { "line": 16, "column": 3 }, "end": { "line": 16, "column": 31 } }, "object": { "type": "MemberExpression", "start": 461, "end": 478, "loc": { "start": { "line": 16, "column": 3 }, "end": { "line": 16, "column": 20 } }, "object": { "type": "Identifier", "start": 461, "end": 466, "loc": { "start": { "line": 16, "column": 3 }, "end": { "line": 16, "column": 8 } }, "name": "THREE" }, "property": { "type": "Identifier", "start": 467, "end": 478, "loc": { "start": { "line": 16, "column": 9 }, "end": { "line": 16, "column": 20 } }, "name": "UniformsLib" }, "computed": false }, "property": { "type": "Literal", "start": 480, "end": 487, "loc": { "start": { "line": 16, "column": 22 }, "end": { "line": 16, "column": 29 } }, "value": "aomap", "rawValue": "aomap", "raw": "'aomap'" }, "computed": true }, { "type": "MemberExpression", "start": 494, "end": 525, "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 17, "column": 34 } }, "object": { "type": "MemberExpression", "start": 494, "end": 511, "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 17, "column": 20 } }, "object": { "type": "Identifier", "start": 494, "end": 499, "loc": { "start": { "line": 17, "column": 3 }, "end": { "line": 17, "column": 8 } }, "name": "THREE" }, "property": { "type": "Identifier", "start": 500, "end": 511, "loc": { "start": { "line": 17, "column": 9 }, "end": { "line": 17, "column": 20 } }, "name": "UniformsLib" }, "computed": false }, "property": { "type": "Literal", "start": 513, "end": 523, "loc": { "start": { "line": 17, "column": 22 }, "end": { "line": 17, "column": 32 } }, "value": "lightmap", "rawValue": "lightmap", "raw": "'lightmap'" }, "computed": true }, { "type": "MemberExpression", "start": 530, "end": 564, "loc": { "start": { "line": 18, "column": 3 }, "end": { "line": 18, "column": 37 } }, "object": { "type": "MemberExpression", "start": 530, "end": 547, "loc": { "start": { "line": 18, "column":