UNPKG

awv3

Version:
1,596 lines (1,595 loc) 3.19 MB
{ "type": "File", "start": 0, "end": 15646, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 350, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 15646, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 350, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 78, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 78 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 9, "end": 26, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 26 } }, "imported": { "type": "Identifier", "start": 9, "end": 26, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 26 }, "identifierName": "drawArcBy_Angle_M" }, "name": "drawArcBy_Angle_M" }, "local": { "type": "Identifier", "start": 9, "end": 26, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 26 }, "identifierName": "drawArcBy_Angle_M" }, "name": "drawArcBy_Angle_M" } }, { "type": "ImportSpecifier", "start": 28, "end": 46, "loc": { "start": { "line": 1, "column": 28 }, "end": { "line": 1, "column": 46 } }, "imported": { "type": "Identifier", "start": 28, "end": 46, "loc": { "start": { "line": 1, "column": 28 }, "end": { "line": 1, "column": 46 }, "identifierName": "drawLineBy_Angle_M" }, "name": "drawLineBy_Angle_M" }, "local": { "type": "Identifier", "start": 28, "end": 46, "loc": { "start": { "line": 1, "column": 28 }, "end": { "line": 1, "column": 46 }, "identifierName": "drawLineBy_Angle_M" }, "name": "drawLineBy_Angle_M" } } ], "source": { "type": "StringLiteral", "start": 54, "end": 77, "loc": { "start": { "line": 1, "column": 54 }, "end": { "line": 1, "column": 77 } }, "extra": { "rawValue": "../sketcher/geomutils", "raw": "'../sketcher/geomutils'" }, "value": "../sketcher/geomutils" } }, { "type": "ImportDeclaration", "start": 80, "end": 117, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 37 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 87, "end": 92, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 12 } }, "local": { "type": "Identifier", "start": 87, "end": 92, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 12 }, "identifierName": "Point" }, "name": "Point" } } ], "source": { "type": "StringLiteral", "start": 98, "end": 116, "loc": { "start": { "line": 2, "column": 18 }, "end": { "line": 2, "column": 36 } }, "extra": { "rawValue": "./graphics/point", "raw": "'./graphics/point'" }, "value": "./graphics/point" } }, { "type": "ImportDeclaration", "start": 119, "end": 154, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 35 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 126, "end": 130, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 11 } }, "local": { "type": "Identifier", "start": 126, "end": 130, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 11 }, "identifierName": "Line" }, "name": "Line" } } ], "source": { "type": "StringLiteral", "start": 136, "end": 153, "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 3, "column": 34 } }, "extra": { "rawValue": "./graphics/line", "raw": "'./graphics/line'" }, "value": "./graphics/line" } }, { "type": "ImportDeclaration", "start": 156, "end": 189, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 33 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 163, "end": 166, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 10 } }, "local": { "type": "Identifier", "start": 163, "end": 166, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 10 }, "identifierName": "Arc" }, "name": "Arc" } } ], "source": { "type": "StringLiteral", "start": 172, "end": 188, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 32 } }, "extra": { "rawValue": "./graphics/arc", "raw": "'./graphics/arc'" }, "value": "./graphics/arc" } }, { "type": "ImportDeclaration", "start": 191, "end": 240, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 49 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 198, "end": 213, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 22 } }, "local": { "type": "Identifier", "start": 198, "end": 213, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 22 }, "identifierName": "FilletProcessor" }, "name": "FilletProcessor" } } ], "source": { "type": "StringLiteral", "start": 219, "end": 239, "loc": { "start": { "line": 5, "column": 28 }, "end": { "line": 5, "column": 48 } }, "extra": { "rawValue": "../sketcher/fillet", "raw": "'../sketcher/fillet'" }, "value": "../sketcher/fillet" } }, { "type": "ImportDeclaration", "start": 242, "end": 284, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 42 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 249, "end": 256, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 14 } }, "local": { "type": "Identifier", "start": 249, "end": 256, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 14 }, "identifierName": "Object3" }, "name": "Object3" } } ], "source": { "type": "StringLiteral", "start": 262, "end": 283, "loc": { "start": { "line": 6, "column": 20 }, "end": { "line": 6, "column": 41 } }, "extra": { "rawValue": "../../three/object3", "raw": "'../../three/object3'" }, "value": "../../three/object3" } }, { "type": "ImportDeclaration", "start": 286, "end": 328, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 42 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 293, "end": 304, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 18 } }, "local": { "type": "Identifier", "start": 293, "end": 304, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 18 }, "identifierName": "BaseHandler" }, "name": "BaseHandler" } } ], "source": { "type": "StringLiteral", "start": 310, "end": 327, "loc": { "start": { "line": 7, "column": 24 }, "end": { "line": 7, "column": 41 } }, "extra": { "rawValue": "./handlers/base", "raw": "'./handlers/base'" }, "value": "./handlers/base" } }, { "type": "ExportNamedDeclaration", "start": 332, "end": 15644, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 349, "column": 1 } }, "specifiers": [], "source": null, "declaration": { "type": "ClassDeclaration", "start": 339, "end": 15644, "loc": { "start": { "line": 9, "column": 7 }, "end": { "line": 349, "column": 1 } }, "id": { "type": "Identifier", "start": 345, "end": 358, "loc": { "start": { "line": 9, "column": 13 }, "end": { "line": 9, "column": 26 }, "identifierName": "filletHandler" }, "name": "filletHandler" }, "superClass": { "type": "Identifier", "start": 367, "end": 378, "loc": { "start": { "line": 9, "column": 35 }, "end": { "line": 9, "column": 46 }, "identifierName": "BaseHandler" }, "name": "BaseHandler" }, "body": { "type": "ClassBody", "start": 379, "end": 15644, "loc": { "start": { "line": 9, "column": 47 }, "end": { "line": 349, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 386, "end": 729, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 22, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 386, "end": 397, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "static": false, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 398, "end": 406, "loc": { "start": { "line": 10, "column": 16 }, "end": { "line": 10, "column": 24 }, "identifierName": "sketcher" }, "name": "sketcher" } ], "body": { "type": "BlockStatement", "start": 408, "end": 729, "loc": { "start": { "line": 10, "column": 26 }, "end": { "line": 22, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 419, "end": 435, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 24 } }, "expression": { "type": "CallExpression", "start": 419, "end": 434, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 23 } }, "callee": { "type": "Super", "start": 419, "end": 424, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 13 } } }, "arguments": [ { "type": "Identifier", "start": 425, "end": 433, "loc": { "start": { "line": 11, "column": 14 }, "end": { "line": 11, "column": 22 }, "identifierName": "sketcher" }, "name": "sketcher" } ] } }, { "type": "ExpressionStatement", "start": 447, "end": 518, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 79 } }, "expression": { "type": "AssignmentExpression", "start": 447, "end": 517, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 78 } }, "operator": "=", "left": { "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": "processor" }, "name": "processor" }, "computed": false }, "right": { "type": "NewExpression", "start": 464, "end": 517, "loc": { "start": { "line": 13, "column": 25 }, "end": { "line": 13, "column": 78 } }, "callee": { "type": "Identifier", "start": 468, "end": 483, "loc": { "start": { "line": 13, "column": 29 }, "end": { "line": 13, "column": 44 }, "identifierName": "FilletProcessor" }, "name": "FilletProcessor" }, "arguments": [ { "type": "Identifier", "start": 484, "end": 492, "loc": { "start": { "line": 13, "column": 45 }, "end": { "line": 13, "column": 53 }, "identifierName": "sketcher" }, "name": "sketcher" }, { "type": "MemberExpression", "start": 494, "end": 516, "loc": { "start": { "line": 13, "column": 55 }, "end": { "line": 13, "column": 77 } }, "object": { "type": "Identifier", "start": 494, "end": 502, "loc": { "start": { "line": 13, "column": 55 }, "end": { "line": 13, "column": 63 }, "identifierName": "sketcher" }, "name": "sketcher" }, "property": { "type": "Identifier", "start": 503, "end": 516, "loc": { "start": { "line": 13, "column": 64 }, "end": { "line": 13, "column": 77 }, "identifierName": "currentSketch" }, "name": "currentSketch" }, "computed": false } ] } } }, { "type": "ExpressionStatement", "start": 528, "end": 546, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 26 } }, "expression": { "type": "AssignmentExpression", "start": 528, "end": 545, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 25 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 528, "end": 537, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 17 } }, "object": { "type": "ThisExpression", "start": 528, "end": 532, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 12 } } }, "property": { "type": "Identifier", "start": 533, "end": 537, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 17 }, "identifierName": "busy" }, "name": "busy" }, "computed": false }, "right": { "type": "BooleanLiteral", "start": 540, "end": 545, "loc": { "start": { "line": 14, "column": 20 }, "end": { "line": 14, "column": 25 } }, "value": false } } }, { "type": "ExpressionStatement", "start": 556, "end": 583, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 35 } }, "expression": { "type": "AssignmentExpression", "start": 556, "end": 582, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 34 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 556, "end": 577, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 29 } }, "object": { "type": "ThisExpression", "start": 556, "end": 560, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 12 } } }, "property": { "type": "Identifier", "start": 561, "end": 577, "loc": { "start": { "line": 15, "column": 13 }, "end": { "line": 15, "column": 29 }, "identifierName": "filletablePoints" }, "name": "filletablePoints" }, "computed": false }, "right": { "type": "ArrayExpression", "start": 580, "end": 582, "loc": { "start": { "line": 15, "column": 32 }, "end": { "line": 15, "column": 34 } }, "elements": [] } } }, { "type": "ExpressionStatement", "start": 593, "end": 614, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 29 } }, "expression": { "type": "AssignmentExpression", "start": 593, "end": 613, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 28 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 593, "end": 608, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 23 } }, "object": { "type": "ThisExpression", "start": 593, "end": 597, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 12 } } }, "property": { "type": "Identifier", "start": 598, "end": 608, "loc": { "start": { "line": 16, "column": 13 }, "end": { "line": 16, "column": 23 }, "identifierName": "filletArcs" }, "name": "filletArcs" }, "computed": false }, "right": { "type": "ArrayExpression", "start": 611, "end": 613, "loc": { "start": { "line": 16, "column": 26 }, "end": { "line": 16, "column": 28 } }, "elements": [] } } }, { "type": "ExpressionStatement", "start": 624, "end": 646, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 30 } }, "expression": { "type": "AssignmentExpression", "start": 624, "end": 645, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 29 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 624, "end": 640, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 24 } }, "object": { "type": "ThisExpression", "start": 624, "end": 628, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 12 } } }, "property": { "type": "Identifier", "start": 629, "end": 640, "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 24 }, "identifierName": "filletLines" }, "name": "filletLines" }, "computed": false }, "right": { "type": "ArrayExpression", "start": 643, "end": 645, "loc": { "start": { "line": 17, "column": 27 }, "end": { "line": 17, "column": 29 } }, "elements": [] } } }, { "type": "ExpressionStatement", "start": 658, "end": 678, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 28 } }, "expression": { "type": "AssignmentExpression", "start": 658, "end": 677, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 27 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 658, "end": 670, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 20 } }, "object": { "type": "ThisExpression", "start": 658, "end": 662, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 12 } } }, "property": { "type": "Identifier", "start": 663, "end": 670, "loc": { "start": { "line": 19, "column": 13 }, "end": { "line": 19, "column": 20 }, "identifierName": "preview" }, "name": "preview" }, "computed": false }, "right": { "type": "NullLiteral", "start": 673, "end": 677, "loc": { "start": { "line": 19, "column": 23 }, "end": { "line": 19, "column": 27 } } } } }, { "type": "ExpressionStatement", "start": 690, "end": 722, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 40 } }, "expression": { "type": "CallExpression", "start": 690, "end": 721, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 39 } }, "callee": { "type": "MemberExpression", "start": 690, "end": 719, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 37 } }, "object": { "type": "ThisExpression", "start": 690, "end": 694, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 12 } } }, "property": { "type": "Identifier", "start": 695, "end": 719, "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 21, "column": 37 }, "identifierName": "updateInteractiveObjects" }, "name": "updateInteractiveObjects" }, "computed": false }, "arguments": [] } } ], "directives": [] } }, { "type": "ClassMethod", "start": 737, "end": 1085, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 31, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 737, "end": 742, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 9 }, "identifierName": "clear" }, "name": "clear" }, "static": false, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 745, "end": 1085, "loc": { "start": { "line": 24, "column": 12 }, "end": { "line": 31, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 756, "end": 827, "loc": { "start": { "line": 25, "column": 8 }, "end": {