UNPKG

awv3

Version:
1,427 lines (1,426 loc) 1.54 MB
{ "type": "File", "start": 0, "end": 6217, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 147, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 6217, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 147, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 30, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 30 } }, "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": 31, "end": 75, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 44 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 38, "end": 45, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 14 } }, "local": { "type": "Identifier", "start": 38, "end": 45, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 14 }, "identifierName": "Object3" }, "name": "Object3" } } ], "source": { "type": "StringLiteral", "start": 51, "end": 75, "loc": { "start": { "line": 2, "column": 20 }, "end": { "line": 2, "column": 44 } }, "extra": { "rawValue": "../../../three/object3", "raw": "'../../../three/object3'" }, "value": "../../../three/object3" } }, { "type": "ImportDeclaration", "start": 76, "end": 113, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 37 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 83, "end": 87, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 11 } }, "local": { "type": "Identifier", "start": 83, "end": 87, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 11 }, "identifierName": "View" }, "name": "View" } } ], "source": { "type": "StringLiteral", "start": 93, "end": 113, "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 3, "column": 37 } }, "extra": { "rawValue": "../../../core/view", "raw": "'../../../core/view'" }, "value": "../../../core/view" } }, { "type": "ExportDefaultDeclaration", "start": 115, "end": 6216, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 146, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 130, "end": 6216, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 146, "column": 1 } }, "id": { "type": "Identifier", "start": 136, "end": 148, "loc": { "start": { "line": 5, "column": 21 }, "end": { "line": 5, "column": 33 }, "identifierName": "BaseGraphics" }, "name": "BaseGraphics" }, "superClass": { "type": "MemberExpression", "start": 157, "end": 171, "loc": { "start": { "line": 5, "column": 42 }, "end": { "line": 5, "column": 56 } }, "object": { "type": "Identifier", "start": 157, "end": 162, "loc": { "start": { "line": 5, "column": 42 }, "end": { "line": 5, "column": 47 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 163, "end": 171, "loc": { "start": { "line": 5, "column": 48 }, "end": { "line": 5, "column": 56 }, "identifierName": "Object3D" }, "name": "Object3D" }, "computed": false }, "body": { "type": "ClassBody", "start": 172, "end": 6216, "loc": { "start": { "line": 5, "column": 57 }, "end": { "line": 146, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 178, "end": 2688, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 67, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 178, "end": 189, "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": 190, "end": 196, "loc": { "start": { "line": 6, "column": 16 }, "end": { "line": 6, "column": 22 }, "identifierName": "plugin" }, "name": "plugin" }, { "type": "AssignmentPattern", "start": 198, "end": 208, "loc": { "start": { "line": 6, "column": 24 }, "end": { "line": 6, "column": 34 } }, "left": { "type": "Identifier", "start": 198, "end": 204, "loc": { "start": { "line": 6, "column": 24 }, "end": { "line": 6, "column": 30 }, "identifierName": "nLines" }, "name": "nLines" }, "right": { "type": "NumericLiteral", "start": 207, "end": 208, "loc": { "start": { "line": 6, "column": 33 }, "end": { "line": 6, "column": 34 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } }, { "type": "AssignmentPattern", "start": 210, "end": 219, "loc": { "start": { "line": 6, "column": 36 }, "end": { "line": 6, "column": 45 } }, "left": { "type": "Identifier", "start": 210, "end": 215, "loc": { "start": { "line": 6, "column": 36 }, "end": { "line": 6, "column": 41 }, "identifierName": "nArcs" }, "name": "nArcs" }, "right": { "type": "NumericLiteral", "start": 218, "end": 219, "loc": { "start": { "line": 6, "column": 44 }, "end": { "line": 6, "column": 45 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } }, { "type": "AssignmentPattern", "start": 221, "end": 232, "loc": { "start": { "line": 6, "column": 47 }, "end": { "line": 6, "column": 58 } }, "left": { "type": "Identifier", "start": 221, "end": 228, "loc": { "start": { "line": 6, "column": 47 }, "end": { "line": 6, "column": 54 }, "identifierName": "nArrows" }, "name": "nArrows" }, "right": { "type": "NumericLiteral", "start": 231, "end": 232, "loc": { "start": { "line": 6, "column": 57 }, "end": { "line": 6, "column": 58 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "body": { "type": "BlockStatement", "start": 234, "end": 2688, "loc": { "start": { "line": 6, "column": 60 }, "end": { "line": 67, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 244, "end": 251, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 15 } }, "expression": { "type": "CallExpression", "start": 244, "end": 251, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 15 } }, "callee": { "type": "Super", "start": 244, "end": 249, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 13 } } }, "arguments": [] } }, { "type": "VariableDeclaration", "start": 261, "end": 305, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 52 } }, "declarations": [ { "type": "VariableDeclarator", "start": 267, "end": 305, "loc": { "start": { "line": 9, "column": 14 }, "end": { "line": 9, "column": 52 } }, "id": { "type": "Identifier", "start": 267, "end": 273, "loc": { "start": { "line": 9, "column": 14 }, "end": { "line": 9, "column": 20 }, "identifierName": "colors" }, "name": "colors" }, "init": { "type": "MemberExpression", "start": 276, "end": 305, "loc": { "start": { "line": 9, "column": 23 }, "end": { "line": 9, "column": 52 } }, "object": { "type": "MemberExpression", "start": 276, "end": 298, "loc": { "start": { "line": 9, "column": 23 }, "end": { "line": 9, "column": 45 } }, "object": { "type": "MemberExpression", "start": 276, "end": 290, "loc": { "start": { "line": 9, "column": 23 }, "end": { "line": 9, "column": 37 } }, "object": { "type": "Identifier", "start": 276, "end": 282, "loc": { "start": { "line": 9, "column": 23 }, "end": { "line": 9, "column": 29 }, "identifierName": "plugin" }, "name": "plugin" }, "property": { "type": "Identifier", "start": 283, "end": 290, "loc": { "start": { "line": 9, "column": 30 }, "end": { "line": 9, "column": 37 }, "identifierName": "session" }, "name": "session" }, "computed": false }, "property": { "type": "Identifier", "start": 291, "end": 298, "loc": { "start": { "line": 9, "column": 38 }, "end": { "line": 9, "column": 45 }, "identifierName": "globals" }, "name": "globals" }, "computed": false }, "property": { "type": "Identifier", "start": 299, "end": 305, "loc": { "start": { "line": 9, "column": 46 }, "end": { "line": 9, "column": 52 }, "identifierName": "colors" }, "name": "colors" }, "computed": false } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 314, "end": 375, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 69 } }, "expression": { "type": "AssignmentExpression", "start": 314, "end": 375, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 69 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 314, "end": 331, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 25 } }, "object": { "type": "ThisExpression", "start": 314, "end": 318, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, "property": { "type": "Identifier", "start": 319, "end": 331, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 25 }, "identifierName": "lineGeometry" }, "name": "lineGeometry" }, "computed": false }, "right": { "type": "NewExpression", "start": 334, "end": 375, "loc": { "start": { "line": 10, "column": 28 }, "end": { "line": 10, "column": 69 } }, "callee": { "type": "MemberExpression", "start": 338, "end": 366, "loc": { "start": { "line": 10, "column": 32 }, "end": { "line": 10, "column": 60 } }, "object": { "type": "Identifier", "start": 338, "end": 343, "loc": { "start": { "line": 10, "column": 32 }, "end": { "line": 10, "column": 37 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 344, "end": 366, "loc": { "start": { "line": 10, "column": 38 }, "end": { "line": 10, "column": 60 }, "identifierName": "CylinderBufferGeometry" }, "name": "CylinderBufferGeometry" }, "computed": false }, "arguments": [ { "type": "NumericLiteral", "start": 367, "end": 368, "loc": { "start": { "line": 10, "column": 61 }, "end": { "line": 10, "column": 62 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, { "type": "NumericLiteral", "start": 370, "end": 371, "loc": { "start": { "line": 10, "column": 64 }, "end": { "line": 10, "column": 65 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, { "type": "NumericLiteral", "start": 373, "end": 374, "loc": { "start": { "line": 10, "column": 67 }, "end": { "line": 10, "column": 68 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } ] } } }, { "type": "ExpressionStatement", "start": 384, "end": 458, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 82 } }, "expression": { "type": "AssignmentExpression", "start": 384, "end": 458, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 82 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 384, "end": 401, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 25 } }, "object": { "type": "ThisExpression", "start": 384, "end": 388, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 12 } } }, "property": { "type": "Identifier", "start": 389, "end": 401, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 25 }, "identifierName": "lineMaterial" }, "name": "lineMaterial" }, "computed": false }, "right": { "type": "NewExpression", "start": 404, "end": 458, "loc": { "start": { "line": 11, "column": 28 }, "end": { "line": 11, "column": 82 } }, "callee": { "type": "MemberExpression", "start": 408, "end": 431, "loc": { "start": { "line": 11, "column": 32 }, "end": { "line": 11, "column": 55 } }, "object": { "type": "Identifier", "start": 408, "end": 413, "loc": { "start": { "line": 11, "column": 32 }, "end": { "line": 11, "column": 37 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 414, "end": 431, "loc": { "start": { "line": 11, "column": 38 }, "end": { "line": 11, "column": 55 }, "identifierName": "MeshBasicMaterial" }, "name": "MeshBasicMaterial" }, "computed": false }, "arguments": [ { "type": "ObjectExpression", "start": 432, "end": 457, "loc": { "start": { "line": 11, "column": 56 }, "end": { "line": 11, "column": 81 } }, "properties": [ { "type": "ObjectProperty", "start": 434, "end": 455, "loc": { "start": { "line": 11, "column": 58 }, "end": { "line": 11, "column": 79 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 434, "end": 439, "loc": { "start": { "line": 11, "column": 58 }, "end": { "line": 11, "column": 63 }, "identifierName": "color" }, "name": "color" }, "value": { "type": "MemberExpression", "start": 441, "end": 455, "loc": { "start": { "line": 11, "column": 65 }, "end": { "line": 11, "column": 79 } }, "object": { "type": "Identifier", "start": 441, "end": 447, "loc": { "start": { "line": 11, "column": 65 }, "end": { "line": 11, "column": 71 }, "identifierName": "colors" }, "name": "colors" }, "property": { "type": "Identifier", "start": 448, "end": 455, "loc": { "start": { "line": 11, "column": 72 }, "end": { "line": 11, "column": 79 }, "identifierName": "primary" }, "name": "primary" }, "computed": false } } ] } ] } } }, { "type": "ExpressionStatement", "start": 467, "end": 540, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 81 } }, "expression": { "type": "AssignmentExpression", "start": 467, "end": 540, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 81 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 467, "end": 490, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 31 } }, "object": { "type": "ThisExpression", "start": 467, "end": 471, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "start": 472, "end": 490, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 31 }, "identifierName": "arcSegmentGeometry" }, "name": "arcSegmentGeometry" }, "computed": false }, "right": { "type": "NewExpression", "start": 493, "end": 540, "loc": { "start": { "line": 12, "column": 34 }, "end": { "line": 12, "column": 81 } }, "callee": { "type": "MemberExpression", "start": 497, "end": 525, "loc": { "start": { "line": 12, "column": 38 }, "end": { "line": 12, "column": 66 } }, "object": { "type": "Identifier", "start": 497, "end": 502, "loc": { "start": { "line": 12, "column": 38 }, "end": { "line": 12, "column": 43 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 503, "end": 525, "loc": { "start": { "line": 12, "column": 44 }, "end": { "line": 12, "column": 66 }, "identifierName": "CylinderBufferGeometry" }, "name": "CylinderBufferGeometry" }, "computed": false }, "arguments": [ { "type": "NumericLiteral", "start": 526, "end": 527, "loc": { "start": { "line": 12, "column": 67 }, "end": { "line": 12, "column": 68 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, { "type": "NumericLiteral", "start": 529, "end": 530, "loc": { "start": { "line": 12, "column": 70 }, "end": { "line": 12, "column": 71 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, { "type": "NumericLiteral", "start": 532,