UNPKG

awv3

Version:
1,476 lines (1,475 loc) 1.06 MB
{ "type": "File", "start": 0, "end": 4217, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 128, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 4217, "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": 136, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 58 } }, "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": 135, "loc": { "start": { "line": 3, "column": 30 }, "end": { "line": 3, "column": 57 } }, "extra": { "rawValue": "../../dimension/graphics/", "raw": "'../../dimension/graphics/'" }, "value": "../../dimension/graphics/" } }, { "type": "ImportDeclaration", "start": 137, "end": 170, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 33 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 144, "end": 155, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 18 } }, "local": { "type": "Identifier", "start": 144, "end": 155, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 18 }, "identifierName": "BaseHandler" }, "name": "BaseHandler" } } ], "source": { "type": "StringLiteral", "start": 161, "end": 169, "loc": { "start": { "line": 4, "column": 24 }, "end": { "line": 4, "column": 32 } }, "extra": { "rawValue": "./base", "raw": "'./base'" }, "value": "./base" } }, { "type": "ImportDeclaration", "start": 171, "end": 229, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 58 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 180, "end": 194, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 23 } }, "imported": { "type": "Identifier", "start": 180, "end": 194, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 23 }, "identifierName": "intersectLines" }, "name": "intersectLines" }, "local": { "type": "Identifier", "start": 180, "end": 194, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 23 }, "identifierName": "intersectLines" }, "name": "intersectLines" } } ], "source": { "type": "StringLiteral", "start": 202, "end": 228, "loc": { "start": { "line": 5, "column": 31 }, "end": { "line": 5, "column": 57 } }, "extra": { "rawValue": "../../sketcher/geomutils", "raw": "'../../sketcher/geomutils'" }, "value": "../../sketcher/geomutils" } }, { "type": "ExportDefaultDeclaration", "start": 231, "end": 3968, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 117, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 246, "end": 3968, "loc": { "start": { "line": 7, "column": 15 }, "end": { "line": 117, "column": 1 } }, "id": { "type": "Identifier", "start": 252, "end": 264, "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 7, "column": 33 }, "identifierName": "AngleHandler" }, "name": "AngleHandler" }, "superClass": { "type": "Identifier", "start": 273, "end": 284, "loc": { "start": { "line": 7, "column": 42 }, "end": { "line": 7, "column": 53 }, "identifierName": "BaseHandler" }, "name": "BaseHandler" }, "body": { "type": "ClassBody", "start": 285, "end": 3968, "loc": { "start": { "line": 7, "column": 54 }, "end": { "line": 117, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 291, "end": 763, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 17, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 291, "end": 302, "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": 303, "end": 310, "loc": { "start": { "line": 8, "column": 16 }, "end": { "line": 8, "column": 23 } }, "argument": { "type": "Identifier", "start": 306, "end": 310, "loc": { "start": { "line": 8, "column": 19 }, "end": { "line": 8, "column": 23 }, "identifierName": "args" }, "name": "args" } } ], "body": { "type": "BlockStatement", "start": 312, "end": 763, "loc": { "start": { "line": 8, "column": 25 }, "end": { "line": 17, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 322, "end": 337, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 23 } }, "expression": { "type": "CallExpression", "start": 322, "end": 336, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 22 } }, "callee": { "type": "Super", "start": 322, "end": 327, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 13 } } }, "arguments": [ { "type": "SpreadElement", "start": 328, "end": 335, "loc": { "start": { "line": 9, "column": 14 }, "end": { "line": 9, "column": 21 } }, "argument": { "type": "Identifier", "start": 331, "end": 335, "loc": { "start": { "line": 9, "column": 17 }, "end": { "line": 9, "column": 21 }, "identifierName": "args" }, "name": "args" } } ] } }, { "type": "ExpressionStatement", "start": 346, "end": 431, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 93 } }, "expression": { "type": "AssignmentExpression", "start": 346, "end": 430, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 92 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 346, "end": 358, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 20 } }, "object": { "type": "ThisExpression", "start": 346, "end": 350, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 12 } } }, "property": { "type": "Identifier", "start": 351, "end": 358, "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 20 }, "identifierName": "preview" }, "name": "preview" }, "computed": false }, "right": { "type": "NewExpression", "start": 361, "end": 430, "loc": { "start": { "line": 10, "column": 23 }, "end": { "line": 10, "column": 92 } }, "callee": { "type": "Identifier", "start": 365, "end": 382, "loc": { "start": { "line": 10, "column": 27 }, "end": { "line": 10, "column": 44 }, "identifierName": "DimensionGraphics" }, "name": "DimensionGraphics" }, "arguments": [ { "type": "StringLiteral", "start": 383, "end": 404, "loc": { "start": { "line": 10, "column": 45 }, "end": { "line": 10, "column": 66 } }, "extra": { "rawValue": "CC_AngularDimension", "raw": "'CC_AngularDimension'" }, "value": "CC_AngularDimension" }, { "type": "MemberExpression", "start": 406, "end": 429, "loc": { "start": { "line": 10, "column": 68 }, "end": { "line": 10, "column": 91 } }, "object": { "type": "MemberExpression", "start": 406, "end": 419, "loc": { "start": { "line": 10, "column": 68 }, "end": { "line": 10, "column": 81 } }, "object": { "type": "ThisExpression", "start": 406, "end": 410, "loc": { "start": { "line": 10, "column": 68 }, "end": { "line": 10, "column": 72 } } }, "property": { "type": "Identifier", "start": 411, "end": 419, "loc": { "start": { "line": 10, "column": 73 }, "end": { "line": 10, "column": 81 }, "identifierName": "sketcher" }, "name": "sketcher" }, "computed": false }, "property": { "type": "Identifier", "start": 420, "end": 429, "loc": { "start": { "line": 10, "column": 82 }, "end": { "line": 10, "column": 91 }, "identifierName": "dimension" }, "name": "dimension" }, "computed": false } ] } } }, { "type": "ExpressionStatement", "start": 440, "end": 477, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 45 } }, "expression": { "type": "CallExpression", "start": 440, "end": 476, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 44 } }, "callee": { "type": "MemberExpression", "start": 440, "end": 462, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 30 } }, "object": { "type": "MemberExpression", "start": 440, "end": 458, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 26 } }, "object": { "type": "MemberExpression", "start": 440, "end": 453, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 21 } }, "object": { "type": "ThisExpression", "start": 440, "end": 444, "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 12 } } }, "property": { "type": "Identifier", "start": 445, "end": 453, "loc": { "start": { "line": 11, "column": 13 }, "end": { "line": 11, "column": 21 }, "identifierName": "sketcher" }, "name": "sketcher" }, "computed": false }, "property": { "type": "Identifier", "start": 454, "end": 458, "loc": { "start": { "line": 11, "column": 22 }, "end": { "line": 11, "column": 26 }, "identifierName": "pool" }, "name": "pool" }, "computed": false }, "property": { "type": "Identifier", "start": 459, "end": 462, "loc": { "start": { "line": 11, "column": 27 }, "end": { "line": 11, "column": 30 }, "identifierName": "add" }, "name": "add" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 463, "end": 475, "loc": { "start": { "line": 11, "column": 31 }, "end": { "line": 11, "column": 43 } }, "object": { "type": "ThisExpression", "start": 463, "end": 467, "loc": { "start": { "line": 11, "column": 31 }, "end": { "line": 11, "column": 35 } } }, "property": { "type": "Identifier", "start": 468, "end": 475, "loc": { "start": { "line": 11, "column": 36 }, "end": { "line": 11, "column": 43 }, "identifierName": "preview" }, "name": "preview" }, "computed": false } ] } }, { "type": "ExpressionStatement", "start": 486, "end": 531, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 53 } }, "expression": { "type": "AssignmentExpression", "start": 486, "end": 530, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 52 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 486, "end": 508, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 30 } }, "object": { "type": "ThisExpression", "start": 486, "end": 490, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 12 } } }, "property": { "type": "Identifier", "start": 491, "end": 508, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 30 }, "identifierName": "intersectionPoint" }, "name": "intersectionPoint" }, "computed": false }, "right": { "type": "NewExpression", "start": 511, "end": 530, "loc": { "start": { "line": 12, "column": 33 }, "end": { "line": 12, "column": 52 } }, "callee": { "type": "MemberExpression", "start": 515, "end": 528, "loc": { "start": { "line": 12, "column": 37 }, "end": { "line": 12, "column": 50 } }, "object": { "type": "Identifier", "start": 515, "end": 520, "loc": { "start": { "line": 12, "column": 37 }, "end": { "line": 12, "column": 42 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 521, "end": 528, "loc": { "start": { "line": 12, "column": 43 }, "end": { "line": 12, "column": 50 }, "identifierName": "Vector3" }, "name": "Vector3" }, "computed": false }, "arguments": [] } } }, { "type": "ExpressionStatement", "start": 540, "end": 572, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 40 } }, "expression": { "type": "AssignmentExpression", "start": 540, "end": 571, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 39 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 540, "end": 549, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 17 } }, "object": { "type": "ThisExpression", "start": 540, "end": 544, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 12 } } }, "property": { "type": "Identifier", "start": 545, "end": 549, "loc": { "start": { "line": 13, "column": 13 }, "end": { "line": 13, "column": 17 }, "identifierName": "dir0" }, "name": "dir0" }, "computed": false }, "right": { "type": "NewExpression", "start": 552, "end": 571, "loc": { "start": { "line": 13, "column": 20 }, "end": { "line": 13, "column": 39 } }, "callee": { "type": "MemberExpression", "start": 556, "end": 569, "loc": { "start": { "line": 13, "column": 24 }, "end": { "line": 13, "column": 37 } }, "object": { "type": "Identifier", "start": 556, "end": 561, "loc": { "start": { "line": 13, "column": 24 }, "end": { "line": 13, "column": 29 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 562, "end": 569, "loc": { "start": { "line": 13, "column": 30 }, "end": { "line": 13, "column": 37 }, "identifierName": "Vector3" }, "name": "Vector3" }, "computed": false }, "arguments": [] } } }, { "type": "ExpressionStatement", "start": 581, "end": 613, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 40 } }, "expression": { "type": "AssignmentExpression", "start": 581, "end": 612, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 39 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 581, "end": 590, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 17 } }, "object": { "type": "ThisExpression", "start": 581, "end": 585, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 12 } } }, "property": { "type": "Identifier", "start": 586, "end": 590, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 17 }, "identifierName": "dir1" }, "name": "dir1" }, "computed": false }, "right": { "type": "NewExpression", "start": 593, "end": 612, "loc": { "start": { "line": 14, "column": 20 }, "end": { "line": 14, "column": 39 } }, "callee": { "type": "MemberExpression", "start": 597, "end": 610, "loc": { "start": { "line": 14, "column": 24 }, "end": { "line": 14, "column": 37 } }, "object": { "type": "Identifier", "start": 597, "end": 602, "loc": { "start": { "line": 14, "column": 24 }, "end": { "line": 14, "column": 29 }, "identifierName": "THREE" }, "name": "THREE" }, "property": { "type": "Identifier", "start": 603, "end": 610, "loc": { "start": { "line": 14, "column": 30 }, "end": { "line": 14, "column": 37 }, "identifierName": "Vector3" }, "name": "Vector3" }, "computed": false }, "arguments": []