UNPKG

awv3

Version:
1,303 lines 265 kB
{ "type": "File", "start": 0, "end": 1445, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 39, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 1445, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 39, "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": 74, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 42 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 40, "end": 52, "loc": { "start": { "line": 2, "column": 8 }, "end": { "line": 2, "column": 20 } }, "imported": { "type": "Identifier", "start": 40, "end": 52, "loc": { "start": { "line": 2, "column": 8 }, "end": { "line": 2, "column": 20 }, "identifierName": "getArcAngles" }, "name": "getArcAngles" }, "local": { "type": "Identifier", "start": 40, "end": 52, "loc": { "start": { "line": 2, "column": 8 }, "end": { "line": 2, "column": 20 }, "identifierName": "getArcAngles" }, "name": "getArcAngles" } } ], "source": { "type": "StringLiteral", "start": 59, "end": 73, "loc": { "start": { "line": 2, "column": 27 }, "end": { "line": 2, "column": 41 } }, "extra": { "rawValue": "../geomutils", "raw": "'../geomutils'" }, "value": "../geomutils" } }, { "type": "ImportDeclaration", "start": 75, "end": 109, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 34 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 82, "end": 94, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 19 } }, "local": { "type": "Identifier", "start": 82, "end": 94, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 19 }, "identifierName": "BaseGraphics" }, "name": "BaseGraphics" } } ], "source": { "type": "StringLiteral", "start": 100, "end": 108, "loc": { "start": { "line": 3, "column": 25 }, "end": { "line": 3, "column": 33 } }, "extra": { "rawValue": "./base", "raw": "'./base'" }, "value": "./base" } }, { "type": "ExportDefaultDeclaration", "start": 111, "end": 1444, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 38, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 126, "end": 1444, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 38, "column": 1 } }, "id": { "type": "Identifier", "start": 132, "end": 135, "loc": { "start": { "line": 5, "column": 21 }, "end": { "line": 5, "column": 24 }, "identifierName": "Arc" }, "name": "Arc" }, "superClass": { "type": "Identifier", "start": 144, "end": 156, "loc": { "start": { "line": 5, "column": 33 }, "end": { "line": 5, "column": 45 }, "identifierName": "BaseGraphics" }, "name": "BaseGraphics" }, "body": { "type": "ClassBody", "start": 157, "end": 1444, "loc": { "start": { "line": 5, "column": 46 }, "end": { "line": 38, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 163, "end": 567, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 16, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 163, "end": 174, "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": [], "body": { "type": "BlockStatement", "start": 177, "end": 567, "loc": { "start": { "line": 6, "column": 18 }, "end": { "line": 16, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 187, "end": 195, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 16 } }, "expression": { "type": "CallExpression", "start": 187, "end": 194, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 15 } }, "callee": { "type": "Super", "start": 187, "end": 192, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 13 } } }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 204, "end": 438, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 12, "column": 12 } }, "expression": { "type": "AssignmentExpression", "start": 204, "end": 437, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 12, "column": 11 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 204, "end": 218, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 22 } }, "object": { "type": "ThisExpression", "start": 204, "end": 208, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 12 } } }, "property": { "type": "Identifier", "start": 209, "end": 218, "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 8, "column": 22 }, "identifierName": "localMesh" }, "name": "localMesh" }, "computed": false }, "right": { "type": "NewExpression", "start": 221, "end": 437, "loc": { "start": { "line": 8, "column": 25 }, "end": { "line": 12, "column": 11 } }, "callee": { "type": "MemberExpression", "start": 225, "end": 235, "loc": { "start": { "line": 8, "column": 29 }, "end": { "line": 8, "column": 39 } }, "object": { "type": "Identifier", "start": 225, "end": 230, "loc": { "start": { "line": 8, "column": 29 }, "end": { "line": 8, "column": 34 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 231, "end": 235, "loc": { "start": { "line": 8, "column": 35 }, "end": { "line": 8, "column": 39 }, "identifierName": "Mesh" }, "name": "Mesh" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 236, "end": 245, "loc": { "start": { "line": 8, "column": 40 }, "end": { "line": 8, "column": 49 }, "identifierName": "undefined" }, "name": "undefined" }, { "type": "NewExpression", "start": 247, "end": 436, "loc": { "start": { "line": 8, "column": 51 }, "end": { "line": 12, "column": 10 } }, "callee": { "type": "MemberExpression", "start": 251, "end": 274, "loc": { "start": { "line": 8, "column": 55 }, "end": { "line": 8, "column": 78 } }, "object": { "type": "Identifier", "start": 251, "end": 256, "loc": { "start": { "line": 8, "column": 55 }, "end": { "line": 8, "column": 60 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 257, "end": 274, "loc": { "start": { "line": 8, "column": 61 }, "end": { "line": 8, "column": 78 }, "identifierName": "MeshBasicMaterial" }, "name": "MeshBasicMaterial" }, "computed": false }, "arguments": [ { "type": "ObjectExpression", "start": 275, "end": 435, "loc": { "start": { "line": 8, "column": 79 }, "end": { "line": 12, "column": 9 } }, "properties": [ { "type": "ObjectProperty", "start": 289, "end": 304, "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 27 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 289, "end": 294, "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 17 }, "identifierName": "color" }, "name": "color" }, "value": { "type": "NumericLiteral", "start": 296, "end": 304, "loc": { "start": { "line": 9, "column": 19 }, "end": { "line": 9, "column": 27 } }, "extra": { "rawValue": 7169981, "raw": "0x6d67bd" }, "value": 7169981 } }, { "type": "ObjectProperty", "start": 318, "end": 340, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 34 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 318, "end": 322, "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 16 }, "identifierName": "side" }, "name": "side" }, "value": { "type": "MemberExpression", "start": 324, "end": 340, "loc": { "start": { "line": 10, "column": 18 }, "end": { "line": 10, "column": 34 } }, "object": { "type": "Identifier", "start": 324, "end": 329, "loc": { "start": { "line": 10, "column": 18 }, "end": { "line": 10, "column": 23 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 330, "end": 340, "loc": { "start": { "line": 10, "column": 24 }, "end": { "line": 10, "column": 34 }, "identifierName": "DoubleSide" }, "name": "DoubleSide" }, "computed": false } }, { "type": "ObjectProperty", "start": 354, "end": 373, "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 31 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 354, "end": 367, "loc": { "start": { "line": 11, "column": 12 }, "end": { "line": 11, "column": 25 }, "identifierName": "polygonOffset" }, "name": "polygonOffset" }, "value": { "type": "BooleanLiteral", "start": 369, "end": 373, "loc": { "start": { "line": 11, "column": 27 }, "end": { "line": 11, "column": 31 } }, "value": true } }, { "type": "ObjectProperty", "start": 375, "end": 398, "loc": { "start": { "line": 11, "column": 33 }, "end": { "line": 11, "column": 56 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 375, "end": 394, "loc": { "start": { "line": 11, "column": 33 }, "end": { "line": 11, "column": 52 }, "identifierName": "polygonOffsetFactor" }, "name": "polygonOffsetFactor" }, "value": { "type": "UnaryExpression", "start": 396, "end": 398, "loc": { "start": { "line": 11, "column": 54 }, "end": { "line": 11, "column": 56 } }, "operator": "-", "prefix": true, "argument": { "type": "NumericLiteral", "start": 397, "end": 398, "loc": { "start": { "line": 11, "column": 55 }, "end": { "line": 11, "column": 56 } }, "extra": { "rawValue": 2, "raw": "2" }, "value": 2 }, "extra": { "parenthesizedArgument": false } } }, { "type": "ObjectProperty", "start": 400, "end": 424, "loc": { "start": { "line": 11, "column": 58 }, "end": { "line": 11, "column": 82 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 400, "end": 418, "loc": { "start": { "line": 11, "column": 58 }, "end": { "line": 11, "column": 76 }, "identifierName": "polygonOffsetUnits" }, "name": "polygonOffsetUnits" }, "value": { "type": "UnaryExpression", "start": 421, "end": 424, "loc": { "start": { "line": 11, "column": 79 }, "end": { "line": 11, "column": 82 } }, "operator": "-", "prefix": true, "argument": { "type": "NumericLiteral", "start": 422, "end": 424, "loc": { "start": { "line": 11, "column": 80 }, "end": { "line": 11, "column": 82 } }, "extra": { "rawValue": 10, "raw": "10" }, "value": 10 }, "extra": { "parenthesizedArgument": false } } } ] } ] } ] } } }, { "type": "ExpressionStatement", "start": 447, "end": 484, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 45 } }, "expression": { "type": "AssignmentExpression", "start": 447, "end": 483, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 44 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 447, "end": 466, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 27 } }, "object": { "type": "MemberExpression", "start": 447, "end": 461, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 22 } }, "object": { "type": "ThisExpression", "start": 447, "end": 451, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 12 } } }, "property": { "type": "Identifier", "start": 452, "end": 461, "loc": { "start": { "line": 13, "column": 13 }, "end": { "line": 13, "column": 22 }, "identifierName": "localMesh" }, "name": "localMesh" }, "computed": false }, "property": { "type": "Identifier", "start": 462, "end": 466, "loc": { "start": { "line": 13, "column": 23 }, "end": { "line": 13, "column": 27 }, "identifierName": "type" }, "name": "type" }, "computed": false }, "right": { "type": "StringLiteral", "start": 469, "end": 483, "loc": { "start": { "line": 13, "column": 30 }, "end": { "line": 13, "column": 44 } }, "extra": { "rawValue": "SketcherMesh", "raw": "'SketcherMesh'" }, "value": "SketcherMesh" } } }, { "type": "ExpressionStatement", "start": 493, "end": 527, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 42 } }, "expression": { "type": "AssignmentExpression", "start": 493, "end": 526, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 41 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 493, "end": 521, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 36 } }, "object": { "type": "MemberExpression", "start": 493, "end": 516, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 31 } }, "object": { "type": "MemberExpression", "start": 493, "end": 507, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 22 } }, "object": { "type": "ThisExpression", "start": 493, "end": 497, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 12 } } }, "property": { "type": "Identifier", "start": 498, "end": 507, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 22 }, "identifierName": "localMesh" }, "name": "localMesh" }, "computed": false }, "property": { "type": "Identifier", "start": 508, "end": 516, "loc": { "start": { "line": 14, "column": 23 }, "end": { "line": 14, "column": 31 }, "identifierName": "material" }, "name": "material" }, "computed": false }, "property": { "type": "Identifier", "start": 517, "end": 521, "loc": { "start": { "line": 14, "column": 32 }, "end": { "line": 14, "column": 36 }, "identifierName": "meta" }, "name": "meta" }, "computed": false }, "right": { "type": "ObjectExpression", "start": 524, "end": 526, "loc": { "start": { "line": 14, "column": 39 },