UNPKG

awv3

Version:
1,427 lines (1,426 loc) 1.48 MB
{ "type": "File", "start": 0, "end": 6041, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 141, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 6041, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 141, "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": 77, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 45 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 39, "end": 46, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 14 } }, "local": { "type": "Identifier", "start": 39, "end": 46, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 14 }, "identifierName": "Object3" }, "name": "Object3" } } ], "source": { "type": "StringLiteral", "start": 52, "end": 76, "loc": { "start": { "line": 2, "column": 20 }, "end": { "line": 2, "column": 44 } }, "extra": { "rawValue": "../../../three/object3", "raw": "'../../../three/object3'" }, "value": "../../../three/object3" } }, { "type": "ImportDeclaration", "start": 78, "end": 116, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 38 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 85, "end": 89, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 11 } }, "local": { "type": "Identifier", "start": 85, "end": 89, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 11 }, "identifierName": "View" }, "name": "View" } } ], "source": { "type": "StringLiteral", "start": 95, "end": 115, "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 3, "column": 37 } }, "extra": { "rawValue": "../../../core/view", "raw": "'../../../core/view'" }, "value": "../../../core/view" } }, { "type": "ExportDefaultDeclaration", "start": 118, "end": 6040, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 140, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 133, "end": 6040, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 140, "column": 1 } }, "id": { "type": "Identifier", "start": 139, "end": 151, "loc": { "start": { "line": 5, "column": 21 }, "end": { "line": 5, "column": 33 }, "identifierName": "BaseGraphics" }, "name": "BaseGraphics" }, "superClass": { "type": "MemberExpression", "start": 160, "end": 174, "loc": { "start": { "line": 5, "column": 42 }, "end": { "line": 5, "column": 56 } }, "object": { "type": "Identifier", "start": 160, "end": 165, "loc": { "start": { "line": 5, "column": 42 }, "end": { "line": 5, "column": 47 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 166, "end": 174, "loc": { "start": { "line": 5, "column": 48 }, "end": { "line": 5, "column": 56 }, "identifierName": "Object3D" }, "name": "Object3D" }, "computed": false }, "body": { "type": "ClassBody", "start": 175, "end": 6040, "loc": { "start": { "line": 5, "column": 57 }, "end": { "line": 140, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 181, "end": 2912, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 68, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 181, "end": 192, "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": 193, "end": 199, "loc": { "start": { "line": 6, "column": 16 }, "end": { "line": 6, "column": 22 }, "identifierName": "plugin" }, "name": "plugin" }, { "type": "AssignmentPattern", "start": 201, "end": 211, "loc": { "start": { "line": 6, "column": 24 }, "end": { "line": 6, "column": 34 } }, "left": { "type": "Identifier", "start": 201, "end": 207, "loc": { "start": { "line": 6, "column": 24 }, "end": { "line": 6, "column": 30 }, "identifierName": "nLines" }, "name": "nLines" }, "right": { "type": "NumericLiteral", "start": 210, "end": 211, "loc": { "start": { "line": 6, "column": 33 }, "end": { "line": 6, "column": 34 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } }, { "type": "AssignmentPattern", "start": 213, "end": 222, "loc": { "start": { "line": 6, "column": 36 }, "end": { "line": 6, "column": 45 } }, "left": { "type": "Identifier", "start": 213, "end": 218, "loc": { "start": { "line": 6, "column": 36 }, "end": { "line": 6, "column": 41 }, "identifierName": "nArcs" }, "name": "nArcs" }, "right": { "type": "NumericLiteral", "start": 221, "end": 222, "loc": { "start": { "line": 6, "column": 44 }, "end": { "line": 6, "column": 45 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } }, { "type": "AssignmentPattern", "start": 224, "end": 235, "loc": { "start": { "line": 6, "column": 47 }, "end": { "line": 6, "column": 58 } }, "left": { "type": "Identifier", "start": 224, "end": 231, "loc": { "start": { "line": 6, "column": 47 }, "end": { "line": 6, "column": 54 }, "identifierName": "nArrows" }, "name": "nArrows" }, "right": { "type": "NumericLiteral", "start": 234, "end": 235, "loc": { "start": { "line": 6, "column": 57 }, "end": { "line": 6, "column": 58 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 } } ], "body": { "type": "BlockStatement", "start": 237, "end": 2912, "loc": { "start": { "line": 6, "column": 60 }, "end": { "line": 68, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 247, "end": 255, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 16 } }, "expression": { "type": "CallExpression", "start": 247, "end": 254, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 15 } }, "callee": { "type": "Super", "start": 247, "end": 252, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 13 } } }, "arguments": [] } }, { "type": "VariableDeclaration", "start": 265, "end": 310, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 53 } }, "declarations": [ { "type": "VariableDeclarator", "start": 271, "end": 309, "loc": { "start": { "line": 9, "column": 14 }, "end": { "line": 9, "column": 52 } }, "id": { "type": "Identifier", "start": 271, "end": 277, "loc": { "start": { "line": 9, "column": 14 }, "end": { "line": 9, "column": 20 }, "identifierName": "colors" }, "name": "colors" }, "init": { "type": "MemberExpression", "start": 280, "end": 309, "loc": { "start": { "line": 9, "column": 23 }, "end": { "line": 9, "column": 52 } }, "object": { "type": "MemberExpression", "start": 280, "end": 302, "loc": { "start": { "line": 9, "column": 23 }, "end": { "line": 9, "column": 45 } }, "object": { "type": "MemberExpression", "start": 280, "end": 294, "loc": { "start": { "line": 9, "column": 23 }, "end": { "line": 9, "column": 37 } }, "object": { "type": "Identifier", "start": 280, "end": 286, "loc": { "start": { "line": 9, "column": 23 }, "end": { "line": 9, "column": 29 }, "identifierName": "plugin" }, "name": "plugin" }, "property": { "type": "Identifier", "start": 287, "end": 294, "loc": { "start": { "line": 9, "column": 30 }, "end": { "line": 9, "column": 37 }, "identifierName": "session" }, "name": "session" }, "computed": false }, "property": { "type": "Identifier", "start": 295, "end": 302, "loc": { "start": { "line": 9, "column": 38 }, "end": { "line": 9, "column": 45 }, "identifierName": "globals" }, "name": "globals" }, "computed": false }, "property": { "type": "Identifier", "start": 303, "end": 309, "loc": { "start": { "line": 9, "column": 46 }, "end": { "line": 9, "column": 52 }, "identifierName": "colors" }, "name": "colors" }, "computed": false } } ], "kind": "const" }, { "type": "ExpressionStatement", "start": 319, "end": 381, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 70 } }, "expression": { "type": "AssignmentExpression", "start": 319, "end": 380, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 69 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 319, "end": 336, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 25 } }, "object": { "type": "ThisExpression", "start": 319, "end": 323, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, "property": { "type": "Identifier", "start": 324, "end": 336, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 25 }, "identifierName": "lineGeometry" }, "name": "lineGeometry" }, "computed": false }, "right": { "type": "NewExpression", "start": 339, "end": 380, "loc": { "start": { "line": 10, "column": 28 }, "end": { "line": 10, "column": 69 } }, "callee": { "type": "MemberExpression", "start": 343, "end": 371, "loc": { "start": { "line": 10, "column": 32 }, "end": { "line": 10, "column": 60 } }, "object": { "type": "Identifier", "start": 343, "end": 348, "loc": { "start": { "line": 10, "column": 32 }, "end": { "line": 10, "column": 37 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 349, "end": 371, "loc": { "start": { "line": 10, "column": 38 }, "end": { "line": 10, "column": 60 }, "identifierName": "CylinderBufferGeometry" }, "name": "CylinderBufferGeometry" }, "computed": false }, "arguments": [ { "type": "NumericLiteral", "start": 372, "end": 373, "loc": { "start": { "line": 10, "column": 61 }, "end": { "line": 10, "column": 62 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, { "type": "NumericLiteral", "start": 375, "end": 376, "loc": { "start": { "line": 10, "column": 64 }, "end": { "line": 10, "column": 65 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, { "type": "NumericLiteral", "start": 378, "end": 379, "loc": { "start": { "line": 10, "column": 67 }, "end": { "line": 10, "column": 68 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 } ] } } }, { "type": "ExpressionStatement", "start": 390, "end": 465, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 83 } }, "expression": { "type": "AssignmentExpression", "start": 390, "end": 464, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 82 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 390, "end": 407, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 25 } }, "object": { "type": "ThisExpression", "start": 390, "end": 394, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 12 } } }, "property": { "type": "Identifier", "start": 395, "end": 407, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 25 }, "identifierName": "lineMaterial" }, "name": "lineMaterial" }, "computed": false }, "right": { "type": "NewExpression", "start": 410, "end": 464, "loc": { "start": { "line": 11, "column": 28 }, "end": { "line": 11, "column": 82 } }, "callee": { "type": "MemberExpression", "start": 414, "end": 437, "loc": { "start": { "line": 11, "column": 32 }, "end": { "line": 11, "column": 55 } }, "object": { "type": "Identifier", "start": 414, "end": 419, "loc": { "start": { "line": 11, "column": 32 }, "end": { "line": 11, "column": 37 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 420, "end": 437, "loc": { "start": { "line": 11, "column": 38 }, "end": { "line": 11, "column": 55 }, "identifierName": "MeshBasicMaterial" }, "name": "MeshBasicMaterial" }, "computed": false }, "arguments": [ { "type": "ObjectExpression", "start": 438, "end": 463, "loc": { "start": { "line": 11, "column": 56 }, "end": { "line": 11, "column": 81 } }, "properties": [ { "type": "ObjectProperty", "start": 440, "end": 461, "loc": { "start": { "line": 11, "column": 58 }, "end": { "line": 11, "column": 79 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 440, "end": 445, "loc": { "start": { "line": 11, "column": 58 }, "end": { "line": 11, "column": 63 }, "identifierName": "color" }, "name": "color" }, "value": { "type": "MemberExpression", "start": 447, "end": 461, "loc": { "start": { "line": 11, "column": 65 }, "end": { "line": 11, "column": 79 } }, "object": { "type": "Identifier", "start": 447, "end": 453, "loc": { "start": { "line": 11, "column": 65 }, "end": { "line": 11, "column": 71 }, "identifierName": "colors" }, "name": "colors" }, "property": { "type": "Identifier", "start": 454, "end": 461, "loc": { "start": { "line": 11, "column": 72 }, "end": { "line": 11, "column": 79 }, "identifierName": "primary" }, "name": "primary" }, "computed": false } } ] } ] } } }, { "type": "ExpressionStatement", "start": 474, "end": 548, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 82 } }, "expression": { "type": "AssignmentExpression", "start": 474, "end": 547, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 81 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 474, "end": 497, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 31 } }, "object": { "type": "ThisExpression", "start": 474, "end": 478, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "start": 479, "end": 497, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 31 }, "identifierName": "arcSegmentGeometry" }, "name": "arcSegmentGeometry" }, "computed": false }, "right": { "type": "NewExpression", "start": 500, "end": 547, "loc": { "start": { "line": 12, "column": 34 }, "end": { "line": 12, "column": 81 } }, "callee": { "type": "MemberExpression", "start": 504, "end": 532, "loc": { "start": { "line": 12, "column": 38 }, "end": { "line": 12, "column": 66 } }, "object": { "type": "Identifier", "start": 504, "end": 509, "loc": { "start": { "line": 12, "column": 38 }, "end": { "line": 12, "column": 43 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 510, "end": 532, "loc": { "start": { "line": 12, "column": 44 }, "end": { "line": 12, "column": 66 }, "identifierName": "CylinderBufferGeometry" }, "name": "CylinderBufferGeometry" }, "computed": false }, "arguments": [ { "type": "NumericLiteral", "start": 533, "end": 534, "loc": { "start": { "line": 12, "column": 67 }, "end": { "line": 12, "column": 68 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, { "type": "NumericLiteral", "start": 536, "end": 537, "loc": { "start": { "line": 12, "column": 70 }, "end": { "line": 12, "column": 71 } }, "extra": { "rawValue": 1, "raw": "1" }, "value": 1 }, { "type": "NumericLiteral", "start": 539,