UNPKG

awv3

Version:
1,625 lines 969 kB
{ "type": "File", "start": 0, "end": 5578, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 137, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 5578, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 137, "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": 58, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 31 } }, "specifiers": [ { "type": "ImportNamespaceSpecifier", "start": 34, "end": 44, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 17 } }, "local": { "type": "Identifier", "start": 39, "end": 44, "loc": { "start": { "line": 2, "column": 12 }, "end": { "line": 2, "column": 17 }, "identifierName": "THREE" }, "name": "THREE" } } ], "source": { "type": "StringLiteral", "start": 50, "end": 57, "loc": { "start": { "line": 2, "column": 23 }, "end": { "line": 2, "column": 30 } }, "extra": { "rawValue": "three", "raw": "'three'" }, "value": "three" } }, { "type": "ImportDeclaration", "start": 59, "end": 104, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 45 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 66, "end": 73, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 14 } }, "local": { "type": "Identifier", "start": 66, "end": 73, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 14 }, "identifierName": "Object3" }, "name": "Object3" } } ], "source": { "type": "StringLiteral", "start": 79, "end": 103, "loc": { "start": { "line": 3, "column": 20 }, "end": { "line": 3, "column": 44 } }, "extra": { "rawValue": "../../../three/object3", "raw": "'../../../three/object3'" }, "value": "../../../three/object3" } }, { "type": "ImportDeclaration", "start": 105, "end": 158, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 53 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 114, "end": 127, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 22 } }, "imported": { "type": "Identifier", "start": 114, "end": 127, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 22 }, "identifierName": "updateCommand" }, "name": "updateCommand" }, "local": { "type": "Identifier", "start": 114, "end": 127, "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 22 }, "identifierName": "updateCommand" }, "name": "updateCommand" } } ], "source": { "type": "StringLiteral", "start": 135, "end": 157, "loc": { "start": { "line": 4, "column": 30 }, "end": { "line": 4, "column": 52 } }, "extra": { "rawValue": "../command/highlevel", "raw": "'../command/highlevel'" }, "value": "../command/highlevel" } }, { "type": "ImportDeclaration", "start": 159, "end": 214, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 55 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 168, "end": 184, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 25 } }, "imported": { "type": "Identifier", "start": 168, "end": 184, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 25 }, "identifierName": "UpdateDimensions" }, "name": "UpdateDimensions" }, "local": { "type": "Identifier", "start": 168, "end": 184, "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 25 }, "identifierName": "UpdateDimensions" }, "name": "UpdateDimensions" } } ], "source": { "type": "StringLiteral", "start": 192, "end": 213, "loc": { "start": { "line": 5, "column": 33 }, "end": { "line": 5, "column": 54 } }, "extra": { "rawValue": "../command/lowlevel", "raw": "'../command/lowlevel'" }, "value": "../command/lowlevel" } }, { "type": "ImportDeclaration", "start": 215, "end": 251, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 36 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 224, "end": 228, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 13 } }, "imported": { "type": "Identifier", "start": 224, "end": 228, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 13 }, "identifierName": "move" }, "name": "move" }, "local": { "type": "Identifier", "start": 224, "end": 228, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 13 }, "identifierName": "move" }, "name": "move" } } ], "source": { "type": "StringLiteral", "start": 236, "end": 250, "loc": { "start": { "line": 6, "column": 21 }, "end": { "line": 6, "column": 35 } }, "extra": { "rawValue": "../geomutils", "raw": "'../geomutils'" }, "value": "../geomutils" } }, { "type": "ImportDeclaration", "start": 252, "end": 287, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 35 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 259, "end": 271, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 19 } }, "local": { "type": "Identifier", "start": 259, "end": 271, "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 19 }, "identifierName": "HoverHandler" }, "name": "HoverHandler" } } ], "source": { "type": "StringLiteral", "start": 277, "end": 286, "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": 289, "end": 340, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 9, "column": 51 } } }, { "type": "CommentLine", "value": "note: 16ms delay is VERY SMALL", "start": 341, "end": 373, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 32 } } } ] }, { "type": "VariableDeclaration", "start": 374, "end": 401, "loc": { "start": { "line": 11, "column": 0 }, "end": { "line": 11, "column": 27 } }, "declarations": [ { "type": "VariableDeclarator", "start": 380, "end": 400, "loc": { "start": { "line": 11, "column": 6 }, "end": { "line": 11, "column": 26 } }, "id": { "type": "Identifier", "start": 380, "end": 392, "loc": { "start": { "line": 11, "column": 6 }, "end": { "line": 11, "column": 18 }, "identifierName": "MucDelayTime" }, "name": "MucDelayTime", "leadingComments": null }, "init": { "type": "NumericLiteral", "start": 395, "end": 400, "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": 289, "end": 340, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 9, "column": 51 } } }, { "type": "CommentLine", "value": "note: 16ms delay is VERY SMALL", "start": 341, "end": 373, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 32 } } } ] }, { "type": "ExportDefaultDeclaration", "start": 403, "end": 5577, "loc": { "start": { "line": 13, "column": 0 }, "end": { "line": 136, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 418, "end": 5577, "loc": { "start": { "line": 13, "column": 15 }, "end": { "line": 136, "column": 1 } }, "id": { "type": "Identifier", "start": 424, "end": 435, "loc": { "start": { "line": 13, "column": 21 }, "end": { "line": 13, "column": 32 }, "identifierName": "DragHandler" }, "name": "DragHandler" }, "superClass": { "type": "Identifier", "start": 444, "end": 456, "loc": { "start": { "line": 13, "column": 41 }, "end": { "line": 13, "column": 53 }, "identifierName": "HoverHandler" }, "name": "HoverHandler" }, "body": { "type": "ClassBody", "start": 457, "end": 5577, "loc": { "start": { "line": 13, "column": 54 }, "end": { "line": 136, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 463, "end": 1096, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 28, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 463, "end": 474, "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": 475, "end": 483, "loc": { "start": { "line": 14, "column": 16 }, "end": { "line": 14, "column": 24 }, "identifierName": "sketcher" }, "name": "sketcher" }, { "type": "Identifier", "start": 485, "end": 489, "loc": { "start": { "line": 14, "column": 26 }, "end": { "line": 14, "column": 30 }, "identifierName": "name" }, "name": "name" } ], "body": { "type": "BlockStatement", "start": 491, "end": 1096, "loc": { "start": { "line": 14, "column": 32 }, "end": { "line": 28, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 501, "end": 523, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 30 } }, "expression": { "type": "CallExpression", "start": 501, "end": 522, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 29 } }, "callee": { "type": "Super", "start": 501, "end": 506, "loc": { "start": { "line": 15, "column": 8 }, "end": { "line": 15, "column": 13 } } }, "arguments": [ { "type": "Identifier", "start": 507, "end": 515, "loc": { "start": { "line": 15, "column": 14 }, "end": { "line": 15, "column": 22 }, "identifierName": "sketcher" }, "name": "sketcher" }, { "type": "Identifier", "start": 517, "end": 521, "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": 532, "end": 574, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 50 } } } ] }, { "type": "ExpressionStatement", "start": 583, "end": 608, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 33 } }, "expression": { "type": "AssignmentExpression", "start": 583, "end": 607, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 32 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 583, "end": 595, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 20 } }, "object": { "type": "ThisExpression", "start": 583, "end": 587, "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 588, "end": 595, "loc": { "start": { "line": 17, "column": 13 }, "end": { "line": 17, "column": 20 }, "identifierName": "snapper" }, "name": "snapper" }, "computed": false, "leadingComments": null }, "right": { "type": "Identifier", "start": 598, "end": 607, "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": 532, "end": 574, "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 50 } } } ], "trailingComments": [ { "type": "CommentLine", "value": " the point that should follow the mouse position or undefined", "start": 617, "end": 680, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 71 } } } ] }, { "type": "ExpressionStatement", "start": 689, "end": 719, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 38 } }, "expression": { "type": "AssignmentExpression", "start": 689, "end": 718, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 37 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 689, "end": 706, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 25 } }, "object": { "type": "ThisExpression", "start": 689, "end": 693, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 694, "end": 706, "loc": { "start": { "line": 19, "column": 13 }, "end": { "line": 19, "column": 25 }, "identifierName": "draggedPoint" }, "name": "draggedPoint" }, "computed": false, "leadingComments": null }, "right": { "type": "Identifier", "start": 709, "end": 718, "loc": { "start": { "line": 19, "column": 28 }, "end": { "line": 19, "column": 37 }, "identifierName": "undefined" }, "name": "undefined" }, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " the point that should follow the mouse position or undefined", "start": 617, "end": 680, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 71 } } } ], "trailingComments": [ { "type": "CommentLine", "value": " the sketch objects currently being dragged", "start": 728, "end": 773, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 53 } } } ] }, { "type": "ExpressionStatement", "start": 782, "end": 807, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 33 } }, "expression": { "type": "AssignmentExpression", "start": 782, "end": 806, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 32 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 782, "end": 801, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 27 } }, "object": { "type": "ThisExpression", "start": 782, "end": 786, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 787, "end": 801, "loc": { "start": { "line": 21, "column": 13 }, "end": { "line": 21, "column": 27 }, "identifierName": "draggedObjects" }, "name": "draggedObjects" }, "computed": false, "leadingComments": null }, "right": { "type": "ArrayExpression", "start": 804, "end": 806, "loc": { "start": { "line": 21, "column": 30 }, "end": { "line": 21, "column": 32 } }, "elements": [] }, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " the sketch objects currently being dragged", "start": 728, "end": 773, "loc": { "start": { "line": 20, "column": 8 }, "end": { "line": 20, "column": 53 } } } ], "trailingComments": [ { "type": "CommentLine", "value": " promise of the MUC task currently being solve on server", "start": 816, "end": 874, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 66 } } } ] }, { "type": "ExpressionStatement", "start": 883, "end": 911, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 36 } }, "expression": { "type": "AssignmentExpression", "start": 883, "end": 910, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 35 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 883, "end": 898, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 23 } }, "object": { "type": "ThisExpression", "start": 883, "end": 887, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 23, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 888, "end": 898, "loc": { "start": { "line": 23, "column": 13 }, "end": { "line": 23, "column": 23 }, "identifierName": "mucPromise" }, "name": "mucPromise" }, "computed": false, "leadingComments": null }, "right": { "type": "Identifier", "start": 901, "end": 910, "loc": { "start": { "line": 23, "column": 26 }, "end": { "line": 23, "column": 35 }, "identifierName": "undefined" }, "name": "undefined" }, "leadingComments": null }, "leadingComments": [ { "type": "CommentLine", "value": " promise of the MUC task currently being solve on server", "start": 816, "end": 874, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 66 } } } ], "trailingComments": [ { "type": "CommentLine", "value": " position where last processed movement finished", "start": 920, "end": 970, "loc": { "start": { "line": 24, "column": 8 }, "end": { "line": 24, "column": 58 } } } ] }, { "type": "ExpressionStatement", "start": 979, "end": 1015, "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 44 } }, "expression": { "type": "AssignmentExpression", "start": 979, "end": 1014, "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 43 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 979, "end": 992, "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 21 } }, "object": { "type": "ThisExpression", "start": 979, "end": 983, "loc": { "start": { "line": 25, "column": 8 }, "end": { "line": 25, "column": 12 } }, "leadingComments": null }, "property": { "type": "Identifier", "start": 984, "end": 992, "loc": { "start": { "line": 25, "column": 13 }, "end": { "line": 25, "column": 21 }, "identifierName": "dragFrom" }, "name": "dragFrom" }, "computed": false, "leadingComments": null }, "right": { "type": "NewExpression", "start": 995, "end": 1014, "loc": { "start": { "line": 25, "column": 24 }, "end": { "line": 25, "column": 43 } }, "callee": { "type": "MemberExpression", "start": 999, "end": 1012, "loc": { "start": { "line": 25, "column": 28 }, "end": { "line": 25, "column": 41 } }, "object": { "type": "Identifier", "start": 999, "end": 1004, "loc": { "start": { "line": 25, "column": 28 }, "end"