UNPKG

awv3

Version:
1,747 lines (1,746 loc) 595 kB
{ "type": "File", "start": 0, "end": 3227, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 87, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 3227, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 87, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 45, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 45 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 7, "end": 14, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 14 } }, "local": { "type": "Identifier", "start": 7, "end": 14, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 14 }, "identifierName": "Object3" }, "name": "Object3" } } ], "source": { "type": "StringLiteral", "start": 20, "end": 44, "loc": { "start": { "line": 1, "column": 20 }, "end": { "line": 1, "column": 44 } }, "extra": { "rawValue": "../../../three/object3", "raw": "'../../../three/object3'" }, "value": "../../../three/object3" } }, { "type": "ImportDeclaration", "start": 47, "end": 84, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 37 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 54, "end": 63, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 16 } }, "local": { "type": "Identifier", "start": 54, "end": 63, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 16 }, "identifierName": "Ccfuturef" }, "name": "Ccfuturef" } } ], "source": { "type": "StringLiteral", "start": 69, "end": 83, "loc": { "start": { "line": 2, "column": 22 }, "end": { "line": 2, "column": 36 } }, "extra": { "rawValue": "../ccfuturef", "raw": "'../ccfuturef'" }, "value": "../ccfuturef" } }, { "type": "ImportDeclaration", "start": 86, "end": 115, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 29 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 93, "end": 98, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 12 } }, "local": { "type": "Identifier", "start": 93, "end": 98, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 12 }, "identifierName": "Ccref" }, "name": "Ccref" } } ], "source": { "type": "StringLiteral", "start": 104, "end": 114, "loc": { "start": { "line": 3, "column": 18 }, "end": { "line": 3, "column": 28 } }, "extra": { "rawValue": "../ccref", "raw": "'../ccref'" }, "value": "../ccref" } }, { "type": "ImportDeclaration", "start": 117, "end": 188, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 71 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 126, "end": 136, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 19 } }, "imported": { "type": "Identifier", "start": 126, "end": 136, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 19 }, "identifierName": "addCommand" }, "name": "addCommand" }, "local": { "type": "Identifier", "start": 126, "end": 136, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 19 }, "identifierName": "addCommand" }, "name": "addCommand" } }, { "type": "ImportSpecifier", "start": 138, "end": 157, "loc": { "start": { "line": 4, "column": 21 }, "end": { "line": 4, "column": 40 } }, "imported": { "type": "Identifier", "start": 138, "end": 157, "loc": { "start": { "line": 4, "column": 21 }, "end": { "line": 4, "column": 40 }, "identifierName": "restrictionCommands" }, "name": "restrictionCommands" }, "local": { "type": "Identifier", "start": 138, "end": 157, "loc": { "start": { "line": 4, "column": 21 }, "end": { "line": 4, "column": 40 }, "identifierName": "restrictionCommands" }, "name": "restrictionCommands" } } ], "source": { "type": "StringLiteral", "start": 165, "end": 187, "loc": { "start": { "line": 4, "column": 48 }, "end": { "line": 4, "column": 70 } }, "extra": { "rawValue": "../command/highlevel", "raw": "'../command/highlevel'" }, "value": "../command/highlevel" } }, { "type": "ImportDeclaration", "start": 190, "end": 281, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 91 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 199, "end": 205, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 15 } }, "imported": { "type": "Identifier", "start": 199, "end": 205, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 15 }, "identifierName": "Assign" }, "name": "Assign" }, "local": { "type": "Identifier", "start": 199, "end": 205, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 15 }, "identifierName": "Assign" }, "name": "Assign" } }, { "type": "ImportSpecifier", "start": 207, "end": 215, "loc": { "start": { "line": 5, "column": 17 }, "end": { "line": 5, "column": 25 } }, "imported": { "type": "Identifier", "start": 207, "end": 215, "loc": { "start": { "line": 5, "column": 17 }, "end": { "line": 5, "column": 25 }, "identifierName": "IdToReal" }, "name": "IdToReal" }, "local": { "type": "Identifier", "start": 207, "end": 215, "loc": { "start": { "line": 5, "column": 17 }, "end": { "line": 5, "column": 25 }, "identifierName": "IdToReal" }, "name": "IdToReal" } }, { "type": "ImportSpecifier", "start": 217, "end": 223, "loc": { "start": { "line": 5, "column": 27 }, "end": { "line": 5, "column": 33 } }, "imported": { "type": "Identifier", "start": 217, "end": 223, "loc": { "start": { "line": 5, "column": 27 }, "end": { "line": 5, "column": 33 }, "identifierName": "Member" }, "name": "Member" }, "local": { "type": "Identifier", "start": 217, "end": 223, "loc": { "start": { "line": 5, "column": 27 }, "end": { "line": 5, "column": 33 }, "identifierName": "Member" }, "name": "Member" } }, { "type": "ImportSpecifier", "start": 225, "end": 233, "loc": { "start": { "line": 5, "column": 35 }, "end": { "line": 5, "column": 43 } }, "imported": { "type": "Identifier", "start": 225, "end": 233, "loc": { "start": { "line": 5, "column": 35 }, "end": { "line": 5, "column": 43 }, "identifierName": "Variable" }, "name": "Variable" }, "local": { "type": "Identifier", "start": 225, "end": 233, "loc": { "start": { "line": 5, "column": 35 }, "end": { "line": 5, "column": 43 }, "identifierName": "Variable" }, "name": "Variable" } }, { "type": "ImportSpecifier", "start": 235, "end": 241, "loc": { "start": { "line": 5, "column": 45 }, "end": { "line": 5, "column": 51 } }, "imported": { "type": "Identifier", "start": 235, "end": 241, "loc": { "start": { "line": 5, "column": 45 }, "end": { "line": 5, "column": 51 }, "identifierName": "Return" }, "name": "Return" }, "local": { "type": "Identifier", "start": 235, "end": 241, "loc": { "start": { "line": 5, "column": 45 }, "end": { "line": 5, "column": 51 }, "identifierName": "Return" }, "name": "Return" } }, { "type": "ImportSpecifier", "start": 243, "end": 251, "loc": { "start": { "line": 5, "column": 53 }, "end": { "line": 5, "column": 61 } }, "imported": { "type": "Identifier", "start": 243, "end": 251, "loc": { "start": { "line": 5, "column": 53 }, "end": { "line": 5, "column": 61 }, "identifierName": "Sequence" }, "name": "Sequence" }, "local": { "type": "Identifier", "start": 243, "end": 251, "loc": { "start": { "line": 5, "column": 53 }, "end": { "line": 5, "column": 61 }, "identifierName": "Sequence" }, "name": "Sequence" } } ], "source": { "type": "StringLiteral", "start": 259, "end": 280, "loc": { "start": { "line": 5, "column": 69 }, "end": { "line": 5, "column": 90 } }, "extra": { "rawValue": "../command/lowlevel", "raw": "'../command/lowlevel'" }, "value": "../command/lowlevel" } }, { "type": "ImportDeclaration", "start": 283, "end": 330, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 47 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 292, "end": 301, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 18 } }, "imported": { "type": "Identifier", "start": 292, "end": 301, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 18 }, "identifierName": "incidence" }, "name": "incidence" }, "local": { "type": "Identifier", "start": 292, "end": 301, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 18 }, "identifierName": "incidence" }, "name": "incidence" } } ], "source": { "type": "StringLiteral", "start": 309, "end": 329, "loc": { "start": { "line": 6, "column": 26 }, "end": { "line": 6, "column": 46 } }, "extra": { "rawValue": "../constraint/type", "raw": "'../constraint/type'" }, "value": "../constraint/type" } }, { "type": "ImportDeclaration", "start": 332, "end": 377, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 45 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 341, "end": 354, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 22 } }, "imported": { "type": "Identifier", "start": 341, "end": 354, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 22 }, "identifierName": "calcSketchPos" }, "name": "calcSketchPos" }, "local": { "type": "Identifier", "start": 341, "end": 354, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 22 }, "identifierName": "calcSketchPos" }, "name": "calcSketchPos" } } ], "source": { "type": "StringLiteral", "start": 362, "end": 376, "loc": { "start": { "line": 7, "column": 30 }, "end": { "line": 7, "column": 44 } }, "extra": { "rawValue": "../viewutils", "raw": "'../viewutils'" }, "value": "../viewutils" } }, { "type": "ImportDeclaration", "start": 379, "end": 412, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 33 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 386, "end": 397, "loc": { "start": { "line": 8, "column": 7 }, "end": { "line": 8, "column": 18 } }, "local": { "type": "Identifier", "start": 386, "end": 397, "loc": { "start": { "line": 8, "column": 7 }, "end": { "line": 8, "column": 18 }, "identifierName": "DrawHandler" }, "name": "DrawHandler" } } ], "source": { "type": "StringLiteral", "start": 403, "end": 411, "loc": { "start": { "line": 8, "column": 24 }, "end": { "line": 8, "column": 32 } }, "extra": { "rawValue": "./draw", "raw": "'./draw'" }, "value": "./draw" } }, { "type": "ExportDefaultDeclaration", "start": 416, "end": 3225, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 86, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 431, "end": 3225, "loc": { "start": { "line": 10, "column": 15 }, "end": { "line": 86, "column": 1 } }, "id": { "type": "Identifier", "start": 437, "end": 452, "loc": { "start": { "line": 10, "column": 21 }, "end": { "line": 10, "column": 36 }, "identifierName": "PolylineHandler" }, "name": "PolylineHandler" }, "superClass": { "type": "Identifier", "start": 461, "end": 472, "loc": { "start": { "line": 10, "column": 45 }, "end": { "line": 10, "column": 56 }, "identifierName": "DrawHandler" }, "name": "DrawHandler" }, "body": { "type": "ClassBody", "start": 473, "end": 3225, "loc": { "start": { "line": 10, "column": 57 }, "end": { "line": 86, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 480, "end": 614, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 15, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 480, "end": 491, "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "static": false, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 492, "end": 500, "loc": { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 24 }, "identifierName": "sketcher" }, "name": "sketcher" }, { "type": "Identifier", "start": 502, "end": 506, "loc": { "start": { "line": 11, "column": 26 }, "end": { "line": 11, "column": 30 }, "identifierName": "type" }, "name": "type" } ], "body": { "type": "BlockStatement", "start": 508, "end": 614, "loc": { "start": { "line": 11, "column": 32 }, "end": { "line": 15, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 519, "end": 541, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 30 } }, "expression": { "type": "CallExpression", "start": 519, "end": 540, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 29 } }, "callee": { "type": "Super", "start": 519, "end": 524, "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 13 } } }, "arguments": [ { "type": "Identifier", "start": 525, "end": 533, "loc": { "start": { "line": 12, "column": 14 }, "end": { "line": 12, "column": 22 }, "identifierName": "sketcher" }, "name": "sketcher" }, { "type": "Identifier", "start": 535, "end": 539, "loc": { "start": { "line": 12, "column": 24 }, "end": { "line": 12, "column": 28 }, "identifierName": "type" }, "name": "type" } ] } }, { "type": "ExpressionStatement", "start": 551, "end": 573, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 30 } }, "expression": { "type": "AssignmentExpression", "start": 551, "end": 572, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 29 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 551, "end": 565, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 22 } }, "object": { "type": "ThisExpression", "start": 551, "end": 555, "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 12 } } }, "property": { "type": "Identifier", "start": 556, "end": 565, "loc": { "start": { "line": 13, "column": 13 }, "end": { "line": 13, "column": 22 }, "identifierName": "lastPoint" }, "name": "lastPoint" }, "computed": false }, "right": { "type": "NullLiteral", "start": 568, "end": 572, "loc": { "start": { "line": 13, "column": 25 }, "end": { "line": 13, "column": 29 } } } } }, { "type": "ExpressionStatement", "start": 583, "end": 607, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 32 } }, "expression": { "type": "AssignmentExpression", "start": 583, "end": 606, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 31 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 583, "end": 599, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 24 } }, "object": { "type": "ThisExpression", "start": 583, "end": 587, "loc": { "start": { "line": 14, "column": 8 }, "end": { "line": 14, "column": 12 } } }, "property": { "type": "Identifier", "start": 588, "end": 599, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 24 }, "identifierName": "edgeHandler" }, "name": "edgeHandler" }, "computed": false }, "right": { "type": "NullLiteral", "start": 602, "end": 606, "loc": { "start": { "line": 14, "column": 27 }, "end": { "line": 14, "column": 31 } } } } } ], "directives": [] } }, { "type": "ClassMethod", "start": 622, "end": 709, "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 20, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 622, "end": 629, "loc": { "start": { "line": 17, "column": 4 }, "end": { "line": 17, "column": 11 }, "identifierName": "destroy" }, "name": "destroy" }, "static": false, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 630, "end": 637, "loc": { "start": { "line": 17, "column": 12 }, "end": { "line": 17, "column": 19 }, "identifierName": "options" }, "name": "options" } ], "body": { "type": "BlockStatement", "start": 639, "end": 709, "loc": { "start": { "line": 17, "column": 21 }, "end": { "line": 20, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 650, "end": 676, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 34 } }, "expression": { "type": "CallExpression", "start": 650, "end": 675, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 33 } }, "callee": { "type": "MemberExpression", "start": 650, "end": 669, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 27 } }, "object": { "type": "ThisExpression", "start": 650, "end": 654, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 12 } } }, "property": { "type": "Identifier", "start": 655, "end": 669, "loc": { "start": { "line": 18, "column": 13 }, "end": { "line": 18, "column": 27 }, "identifierName": "setEdgeHandler" }, "name": "setEdgeHandler" }, "computed": false }, "arguments": [ { "type": "NullLiteral", "start": 670, "end": 674, "loc": { "start": { "line": 18, "column": 28 }, "end": { "line": 18, "column": 32 } } } ] } }, { "type": "ExpressionStatement", "start": 686, "end": 702, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 24 } }, "expression": { "type": "CallExpression", "start": 686, "end": 701, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 23 } }, "callee": { "type": "MemberExpression", "start": 686, "end": 699, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 21 } }, "object": { "type": "Super", "start": 686, "end": 691, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 13 } } }, "property": { "type": "Identifier", "start": 692, "end": 699, "loc": { "start": { "line": 19, "column": 14 }, "end": { "line": 19, "column": 21 }, "identifierName": "destroy" }, "name": "destroy" }, "computed": false }, "arguments": [] } } ], "directives": [] } }, { "type": "ClassMethod", "start": 717, "end": 791, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 24, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 721, "end": 733, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 20 }, "identifierName": "restrictions" }, "name": "restrictions" }, "static": false, "kind": "get", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 736, "end": 791, "loc": { "start": { "line": 22, "column": 23 }, "end": { "line": 24, "column": 5 } }, "body": [ { "type": "ReturnStatement", "start": 747, "end": 784, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 45 } }, "argument": { "type": "MemberExpression", "start": 754, "end": 783, "loc": { "start": { "line": 23, "column": 15 }, "end": { "line": 23, "column": 44 } }, "object": { "type": "MemberExpression", "start": 754, "end": 770, "loc": { "start": { "line": 23, "column": 15 }, "end": { "line": 23, "column": 31 } }, "object": { "type": "ThisExpression", "start": 754, "end": 758, "loc": { "start": { "line": 23, "column": 15 }, "end": { "line": 23, "column": 19 } } }, "property": { "type": "Identifier",