UNPKG

awv3

Version:
1,522 lines (1,521 loc) 335 kB
{ "type": "File", "start": 0, "end": 1586, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 73, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 1586, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 73, "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": 62, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 30 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 39, "end": 45, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 13 } }, "local": { "type": "Identifier", "start": 39, "end": 45, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 13 }, "identifierName": "Events" }, "name": "Events" } } ], "source": { "type": "StringLiteral", "start": 51, "end": 61, "loc": { "start": { "line": 2, "column": 19 }, "end": { "line": 2, "column": 29 } }, "extra": { "rawValue": "./events", "raw": "'./events'" }, "value": "./events" } }, { "type": "VariableDeclaration", "start": 64, "end": 1069, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 48, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", "start": 70, "end": 1068, "loc": { "start": { "line": 4, "column": 6 }, "end": { "line": 48, "column": 1 } }, "id": { "type": "Identifier", "start": 70, "end": 78, "loc": { "start": { "line": 4, "column": 6 }, "end": { "line": 4, "column": 14 }, "identifierName": "defaults" }, "name": "defaults" }, "init": { "type": "ObjectExpression", "start": 81, "end": 1068, "loc": { "start": { "line": 4, "column": 17 }, "end": { "line": 48, "column": 1 } }, "properties": [ { "type": "ObjectProperty", "start": 87, "end": 100, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 17 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 87, "end": 97, "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 14 }, "identifierName": "resolution" }, "name": "resolution" }, "value": { "type": "NumericLiteral", "start": 99, "end": 100, "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 17 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } }, { "type": "ObjectProperty", "start": 106, "end": 119, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 17 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 106, "end": 108, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 6 }, "identifierName": "up" }, "name": "up" }, "value": { "type": "ArrayExpression", "start": 110, "end": 119, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 17 } }, "elements": [ { "type": "NumericLiteral", "start": 111, "end": 112, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 10 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, { "type": "NumericLiteral", "start": 114, "end": 115, "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 13 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, { "type": "NumericLiteral", "start": 117, "end": 118, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 6, "column": 16 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } ] } }, { "type": "ObjectProperty", "start": 125, "end": 137, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 16 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 125, "end": 130, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 9 }, "identifierName": "stats" }, "name": "stats" }, "value": { "type": "BooleanLiteral", "start": 132, "end": 137, "loc": { "start": { "line": 7, "column": 11 }, "end": { "line": 7, "column": 16 } }, "value": false } }, { "type": "ObjectProperty", "start": 143, "end": 155, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 16 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 143, "end": 148, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 9 }, "identifierName": "debug" }, "name": "debug" }, "value": { "type": "BooleanLiteral", "start": 150, "end": 155, "loc": { "start": { "line": 8, "column": 11 }, "end": { "line": 8, "column": 16 } }, "value": false } }, { "type": "ObjectProperty", "start": 161, "end": 182, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 25 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 161, "end": 177, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 20 }, "identifierName": "ambientIntensity" }, "name": "ambientIntensity" }, "value": { "type": "NumericLiteral", "start": 179, "end": 182, "loc": { "start": { "line": 9, "column": 22 }, "end": { "line": 9, "column": 25 } }, "extra": { "rawValue": 1, "raw": "1.0" }, "value": 1 } }, { "type": "ObjectProperty", "start": 188, "end": 252, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 13, "column": 5 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 188, "end": 199, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 15 }, "identifierName": "renderOrder" }, "name": "renderOrder" }, "value": { "type": "ObjectExpression", "start": 201, "end": 252, "loc": { "start": { "line": 10, "column": 17 }, "end": { "line": 13, "column": 5 } }, "properties": [ { "type": "ObjectProperty", "start": 211, "end": 218, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 15 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 211, "end": 215, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 12 }, "identifierName": "Mesh" }, "name": "Mesh" }, "value": { "type": "NumericLiteral", "start": 217, "end": 218, "loc": { "start": { "line": 11, "column": 14 }, "end": { "line": 11, "column": 15 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } }, { "type": "ObjectProperty", "start": 228, "end": 245, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 25 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 228, "end": 240, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 20 }, "identifierName": "LineSegments" }, "name": "LineSegments" }, "value": { "type": "NumericLiteral", "start": 242, "end": 245, "loc": { "start": { "line": 12, "column": 22 }, "end": { "line": 12, "column": 25 } }, "extra": { "rawValue": 100, "raw": "100" }, "value": 100 } } ] } }, { "type": "ObjectProperty", "start": 258, "end": 366, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 19, "column": 5 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 258, "end": 268, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 14 }, "identifierName": "updateView" }, "name": "updateView" }, "value": { "type": "ObjectExpression", "start": 270, "end": 366, "loc": { "start": { "line": 14, "column": 16 }, "end": { "line": 19, "column": 5 } }, "properties": [ { "type": "ObjectProperty", "start": 280, "end": 292, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 20 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 280, "end": 285, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 13 }, "identifierName": "focus" }, "name": "focus" }, "value": { "type": "BooleanLiteral", "start": 287, "end": 292, "loc": { "start": { "line": 15, "column": 15 }, "end": { "line": 15, "column": 20 } }, "value": false } }, { "type": "ObjectProperty", "start": 302, "end": 313, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 19 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 302, "end": 306, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 12 }, "identifierName": "zoom" }, "name": "zoom" }, "value": { "type": "BooleanLiteral", "start": 308, "end": 313, "loc": { "start": { "line": 16, "column": 14 }, "end": { "line": 16, "column": 19 } }, "value": false } }, { "type": "ObjectProperty", "start": 323, "end": 336, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 21 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 323, "end": 329, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 14 }, "identifierName": "rotate" }, "name": "rotate" }, "value": { "type": "BooleanLiteral", "start": 331, "end": 336, "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 17, "column": 21 } }, "value": false } }, { "type": "ObjectProperty", "start": 346, "end": 359, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 21 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 346, "end": 352, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 14 }, "identifierName": "layers" }, "name": "layers" }, "value": { "type": "BooleanLiteral", "start": 354, "end": 359, "loc": { "start": { "line": 18, "column": 16 }, "end": { "line": 18, "column": 21 } }, "value": false } } ] } }, { "type": "ObjectProperty", "start": 372, "end": 506, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 26, "column": 5 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 372, "end": 381, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 13 }, "identifierName": "materials" }, "name": "materials" }, "value": { "type": "ObjectExpression", "start": 383, "end": 506, "loc": { "start": { "line": 20, "column": 15 }, "end": { "line": 26, "column": 5 } }, "properties": [ { "type": "ObjectProperty", "start": 393, "end": 404, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 19 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 393, "end": 397, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 12 }, "identifierName": "lazy" }, "name": "lazy" }, "value": { "type": "BooleanLiteral", "start": 399, "end": 404, "loc": { "start": { "line": 21, "column": 14 }, "end": { "line": 21, "column": 19 } }, "value": false } }, { "type": "ObjectProperty", "start": 414, "end": 425, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 19 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 414, "end": 419, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 13 }, "identifierName": "multi" }, "name": "multi" }, "value": { "type": "BooleanLiteral", "start": 421, "end": 425, "loc": { "start": { "line": 22, "column": 15 }, "end": { "line": 22, "column": 19 } }, "value": true } }, { "type": "ObjectProperty", "start": 435, "end": 454, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 27 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 435, "end": 448, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 21 }, "identifierName": "lineDistances" }, "name": "lineDistances" }, "value": { "type": "BooleanLiteral", "start": 450, "end": 454, "loc": { "start": { "line": 23, "column": 23 }, "end": { "line": 23, "column": 27 } }, "value": true } }, { "type": "ObjectProperty", "start": 464, "end": 477, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 21 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 464, "end": 471, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 15 }, "identifierName": "shadows" }, "name": "shadows" }, "value": { "type": "BooleanLiteral", "start": 473, "end": 477, "loc": { "start": { "line": 24, "column": 17 }, "end": { "line": 24, "column": 21 } }, "value": true } }, { "type": "ObjectProperty", "start": 487, "end": 499, "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 20 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 487, "end": 493, "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 14 }, "identifierName": "lights" }, "name": "lights" }, "value": { "type": "BooleanLiteral", "start": 495, "end": 499, "loc": { "start": { "line": 25, "column": 16 }, "end": { "line": 25, "column": 20 } }, "value": true } } ] } }, { "type": "ObjectProperty", "start": 512, "end": 547, "loc": { "start": { "line": 27, "column": 4 }, "end": { "line": 27, "column": 39 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 512, "end": 522, "loc": { "start": { "line": 27, "column": 4 }, "end": { "line": 27, "column": 14 }, "identifierName": "lineShader" }, "name": "lineShader" }, "value": { "type": "MemberExpression", "start": 524, "end": 547, "loc": { "start": { "line": 27, "column": 16 }, "end": { "line": 27, "column": 39 } }, "object": { "type": "Identifier", "start": 524, "end": 529, "loc": { "start": { "line": 27, "column": 16 }, "end": { "line": 27, "column": 21 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 530, "end": 547, "loc": { "start": { "line": 27, "column": 22 }, "end": { "line": 27, "column": 39 }, "identifierName": "LineBasicMaterial" }, "name": "LineBasicMaterial" }, "computed": false } }, { "type": "ObjectProperty", "start": 553, "end": 626, "loc": { "start": { "line": 28, "column": 4 }, "end": { "line": 31, "column": 5 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 553, "end": 570, "loc": { "start": { "line": 28, "column": 4 }, "end": { "line": 28, "column": 21 }, "identifierName": "lineShaderOptions" }, "name": "lineShaderOptions" }, "value": { "type": "ObjectExpression", "start": 572, "end": 626, "loc": { "start": { "line": 28, "column": 23 }, "end": { "line": 31, "column": 5 } }, "properties": [ { "type": "ObjectProperty", "start": 582, "end": 599, "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 29, "column": 25 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 582, "end": 593, "loc": { "start": { "line": 29, "column": 8 }, "end": { "line": 29, "column": 19 }, "identifierName": "transparent" }, "name": "transparent" }, "value": { "type": "BooleanLiteral", "start": 595, "end": 599, "loc": { "start": { "line": 29, "column": 21 }, "end": { "line": 29, "column": 25 } }, "value": true } }, { "type": "ObjectProperty", "start": 609, "end": 619, "loc": { "start": { "line": 30, "column": 8 }, "end": { "line": 30, "column": 18 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 609, "end": 612, "loc": { "start": { "line": 30, "column": 8 }, "end": { "line": 30, "column": 11 }, "identifierName": "fog" }, "name": "fog" }, "value": { "type": "BooleanLiteral", "start": 614, "end": 619, "loc": { "start": { "line": 30, "column": 13 }, "end": { "line": 30, "column": 18 } }, "value": false } } ] } }, { "type": "ObjectProperty", "start": 632, "end": 670,