UNPKG

awv3

Version:
1,476 lines (1,475 loc) 1.06 MB
{ "type": "File", "start": 0, "end": 4218, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 128, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 4218, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 128, "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": 137, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 59 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 85, "end": 102, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 24 } }, "local": { "type": "Identifier", "start": 85, "end": 102, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 24 }, "identifierName": "DimensionGraphics" }, "name": "DimensionGraphics" } } ], "source": { "type": "StringLiteral", "start": 108, "end": 136, "loc": { "start": { "line": 3, "column": 30 }, "end": { "line": 3, "column": 58 } }, "extra": { "rawValue": "../../dimensions/graphics/", "raw": "'../../dimensions/graphics/'" }, "value": "../../dimensions/graphics/" } }, { "type": "ImportDeclaration", "start": 138, "end": 171, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 33 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 145, "end": 156, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 18 } }, "local": { "type": "Identifier", "start": 145, "end": 156, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 18 }, "identifierName": "BaseHandler" }, "name": "BaseHandler" } } ], "source": { "type": "StringLiteral", "start": 162, "end": 170, "loc": { "start": { "line": 4, "column": 24 }, "end": { "line": 4, "column": 32 } }, "extra": { "rawValue": "./base", "raw": "'./base'" }, "value": "./base" } }, { "type": "ImportDeclaration", "start": 172, "end": 230, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 58 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 181, "end": 195, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 23 } }, "imported": { "type": "Identifier", "start": 181, "end": 195, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 23 }, "identifierName": "intersectLines" }, "name": "intersectLines" }, "local": { "type": "Identifier", "start": 181, "end": 195, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 23 }, "identifierName": "intersectLines" }, "name": "intersectLines" } } ], "source": { "type": "StringLiteral", "start": 203, "end": 229, "loc": { "start": { "line": 5, "column": 31 }, "end": { "line": 5, "column": 57 } }, "extra": { "rawValue": "../../sketcher/geomutils", "raw": "'../../sketcher/geomutils'" }, "value": "../../sketcher/geomutils" } }, { "type": "ExportDefaultDeclaration", "start": 232, "end": 3969, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 117, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 247, "end": 3969, "loc": { "start": { "line": 7, "column": 15 }, "end": { "line": 117, "column": 1 } }, "id": { "type": "Identifier", "start": 253, "end": 265, "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 7, "column": 33 }, "identifierName": "AngleHandler" }, "name": "AngleHandler" }, "superClass": { "type": "Identifier", "start": 274, "end": 285, "loc": { "start": { "line": 7, "column": 42 }, "end": { "line": 7, "column": 53 }, "identifierName": "BaseHandler" }, "name": "BaseHandler" }, "body": { "type": "ClassBody", "start": 286, "end": 3969, "loc": { "start": { "line": 7, "column": 54 }, "end": { "line": 117, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 292, "end": 764, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 17, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 292, "end": 303, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "static": false, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "RestElement", "start": 304, "end": 311, "loc": { "start": { "line": 8, "column": 16 }, "end": { "line": 8, "column": 23 } }, "argument": { "type": "Identifier", "start": 307, "end": 311, "loc": { "start": { "line": 8, "column": 19 }, "end": { "line": 8, "column": 23 }, "identifierName": "args" }, "name": "args" } } ], "body": { "type": "BlockStatement", "start": 313, "end": 764, "loc": { "start": { "line": 8, "column": 25 }, "end": { "line": 17, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 323, "end": 338, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 23 } }, "expression": { "type": "CallExpression", "start": 323, "end": 337, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 22 } }, "callee": { "type": "Super", "start": 323, "end": 328, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 13 } } }, "arguments": [ { "type": "SpreadElement", "start": 329, "end": 336, "loc": { "start": { "line": 9, "column": 14 }, "end": { "line": 9, "column": 21 } }, "argument": { "type": "Identifier", "start": 332, "end": 336, "loc": { "start": { "line": 9, "column": 17 }, "end": { "line": 9, "column": 21 }, "identifierName": "args" }, "name": "args" } } ] } }, { "type": "ExpressionStatement", "start": 347, "end": 432, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 93 } }, "expression": { "type": "AssignmentExpression", "start": 347, "end": 431, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 92 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 347, "end": 359, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 20 } }, "object": { "type": "ThisExpression", "start": 347, "end": 351, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, "property": { "type": "Identifier", "start": 352, "end": 359, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 20 }, "identifierName": "preview" }, "name": "preview" }, "computed": false }, "right": { "type": "NewExpression", "start": 362, "end": 431, "loc": { "start": { "line": 10, "column": 23 }, "end": { "line": 10, "column": 92 } }, "callee": { "type": "Identifier", "start": 366, "end": 383, "loc": { "start": { "line": 10, "column": 27 }, "end": { "line": 10, "column": 44 }, "identifierName": "DimensionGraphics" }, "name": "DimensionGraphics" }, "arguments": [ { "type": "StringLiteral", "start": 384, "end": 405, "loc": { "start": { "line": 10, "column": 45 }, "end": { "line": 10, "column": 66 } }, "extra": { "rawValue": "CC_AngularDimension", "raw": "'CC_AngularDimension'" }, "value": "CC_AngularDimension" }, { "type": "MemberExpression", "start": 407, "end": 430, "loc": { "start": { "line": 10, "column": 68 }, "end": { "line": 10, "column": 91 } }, "object": { "type": "MemberExpression", "start": 407, "end": 420, "loc": { "start": { "line": 10, "column": 68 }, "end": { "line": 10, "column": 81 } }, "object": { "type": "ThisExpression", "start": 407, "end": 411, "loc": { "start": { "line": 10, "column": 68 }, "end": { "line": 10, "column": 72 } } }, "property": { "type": "Identifier", "start": 412, "end": 420, "loc": { "start": { "line": 10, "column": 73 }, "end": { "line": 10, "column": 81 }, "identifierName": "sketcher" }, "name": "sketcher" }, "computed": false }, "property": { "type": "Identifier", "start": 421, "end": 430, "loc": { "start": { "line": 10, "column": 82 }, "end": { "line": 10, "column": 91 }, "identifierName": "dimension" }, "name": "dimension" }, "computed": false } ] } } }, { "type": "ExpressionStatement", "start": 441, "end": 478, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 45 } }, "expression": { "type": "CallExpression", "start": 441, "end": 477, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 44 } }, "callee": { "type": "MemberExpression", "start": 441, "end": 463, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 30 } }, "object": { "type": "MemberExpression", "start": 441, "end": 459, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 26 } }, "object": { "type": "MemberExpression", "start": 441, "end": 454, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 21 } }, "object": { "type": "ThisExpression", "start": 441, "end": 445, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 12 } } }, "property": { "type": "Identifier", "start": 446, "end": 454, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 21 }, "identifierName": "sketcher" }, "name": "sketcher" }, "computed": false }, "property": { "type": "Identifier", "start": 455, "end": 459, "loc": { "start": { "line": 11, "column": 22 }, "end": { "line": 11, "column": 26 }, "identifierName": "pool" }, "name": "pool" }, "computed": false }, "property": { "type": "Identifier", "start": 460, "end": 463, "loc": { "start": { "line": 11, "column": 27 }, "end": { "line": 11, "column": 30 }, "identifierName": "add" }, "name": "add" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 464, "end": 476, "loc": { "start": { "line": 11, "column": 31 }, "end": { "line": 11, "column": 43 } }, "object": { "type": "ThisExpression", "start": 464, "end": 468, "loc": { "start": { "line": 11, "column": 31 }, "end": { "line": 11, "column": 35 } } }, "property": { "type": "Identifier", "start": 469, "end": 476, "loc": { "start": { "line": 11, "column": 36 }, "end": { "line": 11, "column": 43 }, "identifierName": "preview" }, "name": "preview" }, "computed": false } ] } }, { "type": "ExpressionStatement", "start": 487, "end": 532, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 53 } }, "expression": { "type": "AssignmentExpression", "start": 487, "end": 531, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 52 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 487, "end": 509, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 30 } }, "object": { "type": "ThisExpression", "start": 487, "end": 491, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "start": 492, "end": 509, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 30 }, "identifierName": "intersectionPoint" }, "name": "intersectionPoint" }, "computed": false }, "right": { "type": "NewExpression", "start": 512, "end": 531, "loc": { "start": { "line": 12, "column": 33 }, "end": { "line": 12, "column": 52 } }, "callee": { "type": "MemberExpression", "start": 516, "end": 529, "loc": { "start": { "line": 12, "column": 37 }, "end": { "line": 12, "column": 50 } }, "object": { "type": "Identifier", "start": 516, "end": 521, "loc": { "start": { "line": 12, "column": 37 }, "end": { "line": 12, "column": 42 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 522, "end": 529, "loc": { "start": { "line": 12, "column": 43 }, "end": { "line": 12, "column": 50 }, "identifierName": "Vector3" }, "name": "Vector3" }, "computed": false }, "arguments": [] } } }, { "type": "ExpressionStatement", "start": 541, "end": 573, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 40 } }, "expression": { "type": "AssignmentExpression", "start": 541, "end": 572, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 39 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 541, "end": 550, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 17 } }, "object": { "type": "ThisExpression", "start": 541, "end": 545, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 12 } } }, "property": { "type": "Identifier", "start": 546, "end": 550, "loc": { "start": { "line": 13, "column": 13 }, "end": { "line": 13, "column": 17 }, "identifierName": "dir0" }, "name": "dir0" }, "computed": false }, "right": { "type": "NewExpression", "start": 553, "end": 572, "loc": { "start": { "line": 13, "column": 20 }, "end": { "line": 13, "column": 39 } }, "callee": { "type": "MemberExpression", "start": 557, "end": 570, "loc": { "start": { "line": 13, "column": 24 }, "end": { "line": 13, "column": 37 } }, "object": { "type": "Identifier", "start": 557, "end": 562, "loc": { "start": { "line": 13, "column": 24 }, "end": { "line": 13, "column": 29 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 563, "end": 570, "loc": { "start": { "line": 13, "column": 30 }, "end": { "line": 13, "column": 37 }, "identifierName": "Vector3" }, "name": "Vector3" }, "computed": false }, "arguments": [] } } }, { "type": "ExpressionStatement", "start": 582, "end": 614, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 40 } }, "expression": { "type": "AssignmentExpression", "start": 582, "end": 613, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 39 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 582, "end": 591, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 17 } }, "object": { "type": "ThisExpression", "start": 582, "end": 586, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 12 } } }, "property": { "type": "Identifier", "start": 587, "end": 591, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 17 }, "identifierName": "dir1" }, "name": "dir1" }, "computed": false }, "right": { "type": "NewExpression", "start": 594, "end": 613, "loc": { "start": { "line": 14, "column": 20 }, "end": { "line": 14, "column": 39 } }, "callee": { "type": "MemberExpression", "start": 598, "end": 611, "loc": { "start": { "line": 14, "column": 24 }, "end": { "line": 14, "column": 37 } }, "object": { "type": "Identifier", "start": 598, "end": 603, "loc": { "start": { "line": 14, "column": 24 }, "end": { "line": 14, "column": 29 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 604, "end": 611, "loc": { "start": { "line": 14, "column": 30 }, "end": { "line": 14, "column": 37 }, "identifierName": "Vector3" }, "name": "Vector3" }, "computed": false }, "arguments": []