UNPKG

awv3

Version:
1,629 lines 959 kB
{ "type": "File", "start": 0, "end": 5889, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 151, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 5889, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 151, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 26, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 26 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 7, "end": 12, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 12 } }, "local": { "type": "Identifier", "start": 7, "end": 12, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 12 }, "identifierName": "delay" }, "name": "delay" } } ], "source": { "type": "StringLiteral", "start": 18, "end": 25, "loc": { "start": { "line": 1, "column": 18 }, "end": { "line": 1, "column": 25 } }, "extra": { "rawValue": "delay", "raw": "'delay'" }, "value": "delay" } }, { "type": "ImportDeclaration", "start": 27, "end": 72, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 45 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 34, "end": 41, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 14 } }, "local": { "type": "Identifier", "start": 34, "end": 41, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 14 }, "identifierName": "Object3" }, "name": "Object3" } } ], "source": { "type": "StringLiteral", "start": 47, "end": 71, "loc": { "start": { "line": 2, "column": 20 }, "end": { "line": 2, "column": 44 } }, "extra": { "rawValue": "../../../three/object3", "raw": "'../../../three/object3'" }, "value": "../../../three/object3" } }, { "type": "ImportDeclaration", "start": 73, "end": 124, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 51 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 81, "end": 94, "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 21 } }, "imported": { "type": "Identifier", "start": 81, "end": 94, "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 21 }, "identifierName": "updateCommand" }, "name": "updateCommand" }, "local": { "type": "Identifier", "start": 81, "end": 94, "loc": { "start": { "line": 3, "column": 8 }, "end": { "line": 3, "column": 21 }, "identifierName": "updateCommand" }, "name": "updateCommand" } } ], "source": { "type": "StringLiteral", "start": 101, "end": 123, "loc": { "start": { "line": 3, "column": 28 }, "end": { "line": 3, "column": 50 } }, "extra": { "rawValue": "../command/highlevel", "raw": "'../command/highlevel'" }, "value": "../command/highlevel" } }, { "type": "ImportDeclaration", "start": 125, "end": 178, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 53 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 133, "end": 149, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 24 } }, "imported": { "type": "Identifier", "start": 133, "end": 149, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 24 }, "identifierName": "UpdateDimensions" }, "name": "UpdateDimensions" }, "local": { "type": "Identifier", "start": 133, "end": 149, "loc": { "start": { "line": 4, "column": 8 }, "end": { "line": 4, "column": 24 }, "identifierName": "UpdateDimensions" }, "name": "UpdateDimensions" } } ], "source": { "type": "StringLiteral", "start": 156, "end": 177, "loc": { "start": { "line": 4, "column": 31 }, "end": { "line": 4, "column": 52 } }, "extra": { "rawValue": "../command/lowlevel", "raw": "'../command/lowlevel'" }, "value": "../command/lowlevel" } }, { "type": "ImportDeclaration", "start": 179, "end": 213, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 34 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 187, "end": 191, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 12 } }, "imported": { "type": "Identifier", "start": 187, "end": 191, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 12 }, "identifierName": "move" }, "name": "move" }, "local": { "type": "Identifier", "start": 187, "end": 191, "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 12 }, "identifierName": "move" }, "name": "move" } } ], "source": { "type": "StringLiteral", "start": 198, "end": 212, "loc": { "start": { "line": 5, "column": 19 }, "end": { "line": 5, "column": 33 } }, "extra": { "rawValue": "../geomutils", "raw": "'../geomutils'" }, "value": "../geomutils" } }, { "type": "ImportDeclaration", "start": 214, "end": 257, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 43 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 222, "end": 235, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 21 } }, "imported": { "type": "Identifier", "start": 222, "end": 235, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 21 }, "identifierName": "calcSketchPos" }, "name": "calcSketchPos" }, "local": { "type": "Identifier", "start": 222, "end": 235, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 21 }, "identifierName": "calcSketchPos" }, "name": "calcSketchPos" } } ], "source": { "type": "StringLiteral", "start": 242, "end": 256, "loc": { "start": { "line": 6, "column": 28 }, "end": { "line": 6, "column": 42 } }, "extra": { "rawValue": "../viewutils", "raw": "'../viewutils'" }, "value": "../viewutils" } }, { "type": "ImportDeclaration", "start": 258, "end": 293, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 35 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 265, "end": 277, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 19 } }, "local": { "type": "Identifier", "start": 265, "end": 277, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 19 }, "identifierName": "HoverHandler" }, "name": "HoverHandler" } } ], "source": { "type": "StringLiteral", "start": 283, "end": 292, "loc": { "start": { "line": 7, "column": 25 }, "end": { "line": 7, "column": 34 } }, "extra": { "rawValue": "./hover", "raw": "'./hover'" }, "value": "./hover" }, "trailingComments": [ { "type": "CommentLine", "value": "minimal time between MUC solves (in milliseconds)", "start": 295, "end": 346, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 9, "column": 51 } } }, { "type": "CommentLine", "value": "note: 16ms delay is VERY SMALL", "start": 347, "end": 379, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 32 } } } ] }, { "type": "VariableDeclaration", "start": 380, "end": 407, "loc": { "start": { "line": 11, "column": 0 }, "end": { "line": 11, "column": 27 } }, "declarations": [ { "type": "VariableDeclarator", "start": 386, "end": 406, "loc": { "start": { "line": 11, "column": 6 }, "end": { "line": 11, "column": 26 } }, "id": { "type": "Identifier", "start": 386, "end": 398, "loc": { "start": { "line": 11, "column": 6 }, "end": { "line": 11, "column": 18 }, "identifierName": "MucDelayTime" }, "name": "MucDelayTime", "leadingComments": null }, "init": { "type": "NumericLiteral", "start": 401, "end": 406, "loc": { "start": { "line": 11, "column": 21 }, "end": { "line": 11, "column": 26 } }, "extra": { "rawValue": 16.66, "raw": "16.66" }, "value": 16.66 }, "leadingComments": null } ], "kind": "const", "leadingComments": [ { "type": "CommentLine", "value": "minimal time between MUC solves (in milliseconds)", "start": 295, "end": 346, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 9, "column": 51 } } }, { "type": "CommentLine", "value": "note: 16ms delay is VERY SMALL", "start": 347, "end": 379, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 32 } } } ] }, { "type": "ExportDefaultDeclaration", "start": 409, "end": 5888, "loc": { "start": { "line": 13, "column": 0 }, "end": { "line": 150, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 424, "end": 5888, "loc": { "start": { "line": 13, "column": 15 }, "end": { "line": 150, "column": 1 } }, "id": { "type": "Identifier", "start": 430, "end": 441, "loc": { "start": { "line": 13, "column": 21 }, "end": { "line": 13, "column": 32 }, "identifierName": "DragHandler" }, "name": "DragHandler" }, "superClass": { "type": "Identifier", "start": 450, "end": 462, "loc": { "start": { "line": 13, "column": 41 }, "end": { "line": 13, "column": 53 }, "identifierName": "HoverHandler" }, "name": "HoverHandler" }, "body": { "type": "ClassBody", "start": 463, "end": 5888, "loc": { "start": { "line": 13, "column": 54 }, "end": { "line": 150, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 469, "end": 1135, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 27, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 469, "end": 480, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 15 }, "identifierName": "constructor" }, "name": "constructor" }, "static": false, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 481, "end": 489, "loc": { "start": { "line": 14, "column": 16 }, "end": { "line": 14, "column": 24 }, "identifierName": "sketcher" }, "name": "sketcher" }, { "type": "Identifier", "start": 491, "end": 495, "loc": { "start": { "line": 14, "column": 26 }, "end": { "line": 14, "column": 30 }, "identifierName": "name" }, "name": "name" } ], "body": { "type": "BlockStatement", "start": 497, "end": 1135, "loc": { "start": { "line": 14, "column": 32 }, "end": { "line": 27, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 507, "end": 529, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 30 } }, "expression": { "type": "CallExpression", "start": 507, "end": 528, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 29 } }, "callee": { "type": "Super", "start": 507, "end": 512, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 13 } } }, "arguments": [ { "type": "Identifier", "start": 513, "end": 521, "loc": { "start": { "line": 15, "column": 14 }, "end": { "line": 15, "column": 22 }, "identifierName": "sketcher" }, "name": "sketcher" }, { "type": "Identifier", "start": 523, "end": 527, "loc": { "start": { "line": 15, "column": 24 }, "end": { "line": 15, "column": 28 }, "identifierName": "name" }, "name": "name" } ] }, "trailingComments": [ { "type": "CommentLine", "value": "allows to snap currently dragged object", "start": 538, "end": 579, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 49 } } } ] }, { "type": "ExpressionStatement", "start": 588, "end": 613, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 33 } }, "expression": { "type": "AssignmentExpression", "start": 588, "end": 612, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 32 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 588, "end": 600, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 20 } }, "object": { "type": "ThisExpression", "start": 588, "end": 592, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 593, "end": 600, "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 20 }, "identifierName": "snapper" }, "name": "snapper" }, "computed": false, "leadingComments": null }, "right": { "type": "Identifier", "start": 603, "end": 612, "loc": { "start": { "line": 17, "column": 23 }, "end": { "line": 17, "column": 32 }, "identifierName": "undefined" }, "name": "undefined" }, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": "allows to snap currently dragged object", "start": 538, "end": 579, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 49 } } } ], "trailingComments": [ { "type": "CommentLine", "value": "the sketch object currently being dragged", "start": 622, "end": 665, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 51 } } } ] }, { "type": "ExpressionStatement", "start": 674, "end": 702, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 36 } }, "expression": { "type": "AssignmentExpression", "start": 674, "end": 701, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 35 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 674, "end": 689, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 23 } }, "object": { "type": "ThisExpression", "start": 674, "end": 678, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 679, "end": 689, "loc": { "start": { "line": 19, "column": 13 }, "end": { "line": 19, "column": 23 }, "identifierName": "dragObject" }, "name": "dragObject" }, "computed": false, "leadingComments": null }, "right": { "type": "Identifier", "start": 692, "end": 701, "loc": { "start": { "line": 19, "column": 26 }, "end": { "line": 19, "column": 35 }, "identifierName": "undefined" }, "name": "undefined" }, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": "the sketch object currently being dragged", "start": 622, "end": 665, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 51 } } } ], "trailingComments": [ { "type": "CommentLine", "value": "promise of the MUC task currently being solve on server", "start": 711, "end": 768, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 65 } } } ] }, { "type": "ExpressionStatement", "start": 777, "end": 805, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 36 } }, "expression": { "type": "AssignmentExpression", "start": 777, "end": 804, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 35 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 777, "end": 792, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 23 } }, "object": { "type": "ThisExpression", "start": 777, "end": 781, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 782, "end": 792, "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 21, "column": 23 }, "identifierName": "mucPromise" }, "name": "mucPromise" }, "computed": false, "leadingComments": null }, "right": { "type": "Identifier", "start": 795, "end": 804, "loc": { "start": { "line": 21, "column": 26 }, "end": { "line": 21, "column": 35 }, "identifierName": "undefined" }, "name": "undefined" }, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": "promise of the MUC task currently being solve on server", "start": 711, "end": 768, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 65 } } } ], "trailingComments": [ { "type": "CommentLine", "value": "array of snapped sketch coordinates of mouse during mousemove events", "start": 814, "end": 884, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 78 } } }, { "type": "CommentLine", "value": "note: during dragging 0-th point is always present:", "start": 893, "end": 946, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 61 } } }, { "type": "CommentLine", "value": "it is located at where the last processed movement finished", "start": 955, "end": 1016, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 69 } } } ] }, { "type": "ExpressionStatement", "start": 1025, "end": 1049, "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 32 } }, "expression": { "type": "AssignmentExpression", "start": 1025, "end": 1048, "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 31 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1025, "end": 1043, "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 26 } }, "object": { "type": "ThisExpression", "start": 1025, "end": 1029, "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 1030, "end": 1043, "loc": { "start": { "line": 25, "column": 13 }, "end": { "line": 25, "column": 26 }, "identifierName": "dragPositions" }, "name": "dragPositions" }, "computed": false, "leadingComments": null }, "right": { "type": "ArrayExpression", "start": 1046, "end": 1048, "loc": { "start": { "line": 25, "column": 29 }, "end": { "line": 25, "column": 31 } }, "elements": [] }, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": "array of snapped sketch coordinates of mouse during mousemove events", "start": 814, "end": 884, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 78 } } }, { "type": "CommentLine", "value": "note: during dragging 0-th point is always present:", "start": 893, "end": 946, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 61 } } }, { "type": "CommentLine", "value": "it is located at where the last processed movement finished", "start": 955, "end": 1016, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 69 } } } ] }, { "type": "ExpressionStatement", "start": 1058, "end": 1129, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 79 } }, "expression": { "type": "CallExpression", "start": 1058, "end": 1128, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 78 } }, "callee": { "type": "MemberExpression", "start": 1058, "end": 1089, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 39 } }, "object": { "type": "MemberExpression", "start": 1058, "end": 1080, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 26, "column": 30 } }, "object": { "type": "MemberExpressi