awv3
Version:
⚡ AWV3 embedded CAD
1,593 lines • 953 kB
JSON
{
"type": "File",
"start": 0,
"end": 5377,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 134,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 5377,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 134,
"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": 131,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 53
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 87,
"end": 100,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 22
}
},
"imported": {
"type": "Identifier",
"start": 87,
"end": 100,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 22
},
"identifierName": "updateCommand"
},
"name": "updateCommand"
},
"local": {
"type": "Identifier",
"start": 87,
"end": 100,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 22
},
"identifierName": "updateCommand"
},
"name": "updateCommand"
}
}
],
"source": {
"type": "StringLiteral",
"start": 108,
"end": 130,
"loc": {
"start": {
"line": 3,
"column": 30
},
"end": {
"line": 3,
"column": 52
}
},
"extra": {
"rawValue": "../command/highlevel",
"raw": "'../command/highlevel'"
},
"value": "../command/highlevel"
}
},
{
"type": "ImportDeclaration",
"start": 132,
"end": 187,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 55
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 141,
"end": 157,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 25
}
},
"imported": {
"type": "Identifier",
"start": 141,
"end": 157,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 25
},
"identifierName": "UpdateDimensions"
},
"name": "UpdateDimensions"
},
"local": {
"type": "Identifier",
"start": 141,
"end": 157,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 25
},
"identifierName": "UpdateDimensions"
},
"name": "UpdateDimensions"
}
}
],
"source": {
"type": "StringLiteral",
"start": 165,
"end": 186,
"loc": {
"start": {
"line": 4,
"column": 33
},
"end": {
"line": 4,
"column": 54
}
},
"extra": {
"rawValue": "../command/lowlevel",
"raw": "'../command/lowlevel'"
},
"value": "../command/lowlevel"
}
},
{
"type": "ImportDeclaration",
"start": 188,
"end": 224,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 36
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 197,
"end": 201,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 13
}
},
"imported": {
"type": "Identifier",
"start": 197,
"end": 201,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 13
},
"identifierName": "move"
},
"name": "move"
},
"local": {
"type": "Identifier",
"start": 197,
"end": 201,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 13
},
"identifierName": "move"
},
"name": "move"
}
}
],
"source": {
"type": "StringLiteral",
"start": 209,
"end": 223,
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 35
}
},
"extra": {
"rawValue": "../geomutils",
"raw": "'../geomutils'"
},
"value": "../geomutils"
}
},
{
"type": "ImportDeclaration",
"start": 225,
"end": 260,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 35
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 232,
"end": 244,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 19
}
},
"local": {
"type": "Identifier",
"start": 232,
"end": 244,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 19
},
"identifierName": "HoverHandler"
},
"name": "HoverHandler"
}
}
],
"source": {
"type": "StringLiteral",
"start": 250,
"end": 259,
"loc": {
"start": {
"line": 6,
"column": 25
},
"end": {
"line": 6,
"column": 34
}
},
"extra": {
"rawValue": "./hover",
"raw": "'./hover'"
},
"value": "./hover"
},
"trailingComments": [
{
"type": "CommentLine",
"value": "minimal time between MUC solves (in milliseconds)",
"start": 262,
"end": 313,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 51
}
}
},
{
"type": "CommentLine",
"value": "note: 16ms delay is VERY SMALL",
"start": 314,
"end": 346,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 9,
"column": 32
}
}
}
]
},
{
"type": "VariableDeclaration",
"start": 347,
"end": 374,
"loc": {
"start": {
"line": 10,
"column": 0
},
"end": {
"line": 10,
"column": 27
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 353,
"end": 373,
"loc": {
"start": {
"line": 10,
"column": 6
},
"end": {
"line": 10,
"column": 26
}
},
"id": {
"type": "Identifier",
"start": 353,
"end": 365,
"loc": {
"start": {
"line": 10,
"column": 6
},
"end": {
"line": 10,
"column": 18
},
"identifierName": "MucDelayTime"
},
"name": "MucDelayTime",
"leadingComments": null
},
"init": {
"type": "NumericLiteral",
"start": 368,
"end": 373,
"loc": {
"start": {
"line": 10,
"column": 21
},
"end": {
"line": 10,
"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": 262,
"end": 313,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 51
}
}
},
{
"type": "CommentLine",
"value": "note: 16ms delay is VERY SMALL",
"start": 314,
"end": 346,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 9,
"column": 32
}
}
}
]
},
{
"type": "ExportDefaultDeclaration",
"start": 376,
"end": 5376,
"loc": {
"start": {
"line": 12,
"column": 0
},
"end": {
"line": 133,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 391,
"end": 5376,
"loc": {
"start": {
"line": 12,
"column": 15
},
"end": {
"line": 133,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 397,
"end": 408,
"loc": {
"start": {
"line": 12,
"column": 21
},
"end": {
"line": 12,
"column": 32
},
"identifierName": "DragHandler"
},
"name": "DragHandler"
},
"superClass": {
"type": "Identifier",
"start": 417,
"end": 429,
"loc": {
"start": {
"line": 12,
"column": 41
},
"end": {
"line": 12,
"column": 53
},
"identifierName": "HoverHandler"
},
"name": "HoverHandler"
},
"body": {
"type": "ClassBody",
"start": 430,
"end": 5376,
"loc": {
"start": {
"line": 12,
"column": 54
},
"end": {
"line": 133,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 436,
"end": 1069,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 27,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 436,
"end": 447,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 13,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 448,
"end": 456,
"loc": {
"start": {
"line": 13,
"column": 16
},
"end": {
"line": 13,
"column": 24
},
"identifierName": "sketcher"
},
"name": "sketcher"
},
{
"type": "Identifier",
"start": 458,
"end": 462,
"loc": {
"start": {
"line": 13,
"column": 26
},
"end": {
"line": 13,
"column": 30
},
"identifierName": "name"
},
"name": "name"
}
],
"body": {
"type": "BlockStatement",
"start": 464,
"end": 1069,
"loc": {
"start": {
"line": 13,
"column": 32
},
"end": {
"line": 27,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 474,
"end": 496,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 30
}
},
"expression": {
"type": "CallExpression",
"start": 474,
"end": 495,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 29
}
},
"callee": {
"type": "Super",
"start": 474,
"end": 479,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"start": 480,
"end": 488,
"loc": {
"start": {
"line": 14,
"column": 14
},
"end": {
"line": 14,
"column": 22
},
"identifierName": "sketcher"
},
"name": "sketcher"
},
{
"type": "Identifier",
"start": 490,
"end": 494,
"loc": {
"start": {
"line": 14,
"column": 24
},
"end": {
"line": 14,
"column": 28
},
"identifierName": "name"
},
"name": "name"
}
]
},
"trailingComments": [
{
"type": "CommentLine",
"value": " allows to snap currently dragged object",
"start": 505,
"end": 547,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 50
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 556,
"end": 581,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 33
}
},
"expression": {
"type": "AssignmentExpression",
"start": 556,
"end": 580,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 32
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 556,
"end": 568,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 556,
"end": 560,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 561,
"end": 568,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 20
},
"identifierName": "snapper"
},
"name": "snapper"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "Identifier",
"start": 571,
"end": 580,
"loc": {
"start": {
"line": 16,
"column": 23
},
"end": {
"line": 16,
"column": 32
},
"identifierName": "undefined"
},
"name": "undefined"
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " allows to snap currently dragged object",
"start": 505,
"end": 547,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 50
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " the point that should follow the mouse position or undefined",
"start": 590,
"end": 653,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 71
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 662,
"end": 692,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 38
}
},
"expression": {
"type": "AssignmentExpression",
"start": 662,
"end": 691,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 37
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 662,
"end": 679,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 25
}
},
"object": {
"type": "ThisExpression",
"start": 662,
"end": 666,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 667,
"end": 679,
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 25
},
"identifierName": "draggedPoint"
},
"name": "draggedPoint"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "Identifier",
"start": 682,
"end": 691,
"loc": {
"start": {
"line": 18,
"column": 28
},
"end": {
"line": 18,
"column": 37
},
"identifierName": "undefined"
},
"name": "undefined"
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " the point that should follow the mouse position or undefined",
"start": 590,
"end": 653,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 71
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " the sketch objects currently being dragged",
"start": 701,
"end": 746,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 53
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 755,
"end": 780,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 33
}
},
"expression": {
"type": "AssignmentExpression",
"start": 755,
"end": 779,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 32
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 755,
"end": 774,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 27
}
},
"object": {
"type": "ThisExpression",
"start": 755,
"end": 759,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 760,
"end": 774,
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 27
},
"identifierName": "draggedObjects"
},
"name": "draggedObjects"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "ArrayExpression",
"start": 777,
"end": 779,
"loc": {
"start": {
"line": 20,
"column": 30
},
"end": {
"line": 20,
"column": 32
}
},
"elements": []
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " the sketch objects currently being dragged",
"start": 701,
"end": 746,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 53
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " promise of the MUC task currently being solve on server",
"start": 789,
"end": 847,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 66
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 856,
"end": 884,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 36
}
},
"expression": {
"type": "AssignmentExpression",
"start": 856,
"end": 883,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 35
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 856,
"end": 871,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 23
}
},
"object": {
"type": "ThisExpression",
"start": 856,
"end": 860,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 861,
"end": 871,
"loc": {
"start": {
"line": 22,
"column": 13
},
"end": {
"line": 22,
"column": 23
},
"identifierName": "mucPromise"
},
"name": "mucPromise"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "Identifier",
"start": 874,
"end": 883,
"loc": {
"start": {
"line": 22,
"column": 26
},
"end": {
"line": 22,
"column": 35
},
"identifierName": "undefined"
},
"name": "undefined"
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " promise of the MUC task currently being solve on server",
"start": 789,
"end": 847,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 66
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " position where last processed movement finished",
"start": 893,
"end": 943,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 58
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 952,
"end": 988,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 44
}
},
"expression": {
"type": "AssignmentExpression",
"start": 952,
"end": 987,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 43
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 952,
"end": 965,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 952,
"end": 956,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 957,
"end": 965,
"loc": {
"start": {
"line": 24,
"column": 13
},
"end": {
"line": 24,
"column": 21
},
"identifierName": "dragFrom"
},
"name": "dragFrom"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "NewExpression",
"start": 968,
"end": 987,
"loc": {
"start": {
"line": 24,
"column": 24
},
"end": {
"line": 24,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
"start": 972,
"end": 985,
"loc": {
"start": {
"line": 24,
"column": 28
},
"end": {
"line": 24,
"column": 41
}
},
"object": {
"type": "Identifier",
"start": 972,
"end": 977,
"loc": {
"start": {
"line": 24,
"column": 28
},
"end": {
"line": 24,
"column": 33
},
"identifierName": "THREE"
},
"name": "THREE"
},
"property": {
"type": "Identifier",
"start": 978,
"end": 985,
"loc": {
"start": {
"line": 24,
"column": 34
},
"end": {
"line": 24,
"column": 41
},
"identifierName": "Vector3"
},
"name": "Vector3"
},
"computed": false
},
"arguments": []
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " position where last processed movement finished",
"start": 893,
"end": 943,
"loc":