awv3
Version:
⚡ AWV3 embedded CAD
1,608 lines (1,607 loc) • 163 kB
JSON
{
"type": "File",
"start": 0,
"end": 1122,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 26,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 1122,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 26,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 33,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 33
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 18
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 18
},
"identifierName": "DragHandler"
},
"name": "DragHandler"
}
}
],
"source": {
"type": "StringLiteral",
"start": 24,
"end": 32,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 32
}
},
"extra": {
"rawValue": "./drag",
"raw": "'./drag'"
},
"value": "./drag"
}
},
{
"type": "ImportDeclaration",
"start": 34,
"end": 69,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 35
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 41,
"end": 53,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 19
}
},
"local": {
"type": "Identifier",
"start": 41,
"end": 53,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 19
},
"identifierName": "PointHandler"
},
"name": "PointHandler"
}
}
],
"source": {
"type": "StringLiteral",
"start": 59,
"end": 68,
"loc": {
"start": {
"line": 2,
"column": 25
},
"end": {
"line": 2,
"column": 34
}
},
"extra": {
"rawValue": "./point",
"raw": "'./point'"
},
"value": "./point"
}
},
{
"type": "ImportDeclaration",
"start": 70,
"end": 103,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 33
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 77,
"end": 88,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 18
}
},
"local": {
"type": "Identifier",
"start": 77,
"end": 88,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 18
},
"identifierName": "LineHandler"
},
"name": "LineHandler"
}
}
],
"source": {
"type": "StringLiteral",
"start": 94,
"end": 102,
"loc": {
"start": {
"line": 3,
"column": 24
},
"end": {
"line": 3,
"column": 32
}
},
"extra": {
"rawValue": "./line",
"raw": "'./line'"
},
"value": "./line"
}
},
{
"type": "ImportDeclaration",
"start": 104,
"end": 147,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 43
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 111,
"end": 127,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 23
}
},
"local": {
"type": "Identifier",
"start": 111,
"end": 127,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 23
},
"identifierName": "ArcCenterHandler"
},
"name": "ArcCenterHandler"
}
}
],
"source": {
"type": "StringLiteral",
"start": 133,
"end": 146,
"loc": {
"start": {
"line": 4,
"column": 29
},
"end": {
"line": 4,
"column": 42
}
},
"extra": {
"rawValue": "./arccenter",
"raw": "'./arccenter'"
},
"value": "./arccenter"
}
},
{
"type": "ImportDeclaration",
"start": 148,
"end": 193,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 45
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 155,
"end": 172,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 24
}
},
"local": {
"type": "Identifier",
"start": 155,
"end": 172,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 24
},
"identifierName": "ArcControlHandler"
},
"name": "ArcControlHandler"
}
}
],
"source": {
"type": "StringLiteral",
"start": 178,
"end": 192,
"loc": {
"start": {
"line": 5,
"column": 30
},
"end": {
"line": 5,
"column": 44
}
},
"extra": {
"rawValue": "./arccontrol",
"raw": "'./arccontrol'"
},
"value": "./arccontrol"
}
},
{
"type": "ImportDeclaration",
"start": 194,
"end": 237,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 43
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 201,
"end": 217,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 23
}
},
"local": {
"type": "Identifier",
"start": 201,
"end": 217,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 23
},
"identifierName": "ArcMiddleHandler"
},
"name": "ArcMiddleHandler"
}
}
],
"source": {
"type": "StringLiteral",
"start": 223,
"end": 236,
"loc": {
"start": {
"line": 6,
"column": 29
},
"end": {
"line": 6,
"column": 42
}
},
"extra": {
"rawValue": "./arcmiddle",
"raw": "'./arcmiddle'"
},
"value": "./arcmiddle"
}
},
{
"type": "ImportDeclaration",
"start": 238,
"end": 283,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 45
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 245,
"end": 262,
"loc": {
"start": {
"line": 7,
"column": 7
},
"end": {
"line": 7,
"column": 24
}
},
"local": {
"type": "Identifier",
"start": 245,
"end": 262,
"loc": {
"start": {
"line": 7,
"column": 7
},
"end": {
"line": 7,
"column": 24
},
"identifierName": "ArcTangentHandler"
},
"name": "ArcTangentHandler"
}
}
],
"source": {
"type": "StringLiteral",
"start": 268,
"end": 282,
"loc": {
"start": {
"line": 7,
"column": 30
},
"end": {
"line": 7,
"column": 44
}
},
"extra": {
"rawValue": "./arctangent",
"raw": "'./arctangent'"
},
"value": "./arctangent"
}
},
{
"type": "ImportDeclaration",
"start": 284,
"end": 325,
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 41
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 291,
"end": 306,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 8,
"column": 22
}
},
"local": {
"type": "Identifier",
"start": 291,
"end": 306,
"loc": {
"start": {
"line": 8,
"column": 7
},
"end": {
"line": 8,
"column": 22
},
"identifierName": "PolylineHandler"
},
"name": "PolylineHandler"
}
}
],
"source": {
"type": "StringLiteral",
"start": 312,
"end": 324,
"loc": {
"start": {
"line": 8,
"column": 28
},
"end": {
"line": 8,
"column": 40
}
},
"extra": {
"rawValue": "./polyline",
"raw": "'./polyline'"
},
"value": "./polyline"
}
},
{
"type": "ExportDefaultDeclaration",
"start": 327,
"end": 946,
"loc": {
"start": {
"line": 10,
"column": 0
},
"end": {
"line": 21,
"column": 1
}
},
"declaration": {
"type": "FunctionDeclaration",
"start": 342,
"end": 946,
"loc": {
"start": {
"line": 10,
"column": 15
},
"end": {
"line": 21,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 351,
"end": 358,
"loc": {
"start": {
"line": 10,
"column": 24
},
"end": {
"line": 10,
"column": 31
},
"identifierName": "Handler"
},
"name": "Handler"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 359,
"end": 367,
"loc": {
"start": {
"line": 10,
"column": 32
},
"end": {
"line": 10,
"column": 40
},
"identifierName": "sketcher"
},
"name": "sketcher"
},
{
"type": "Identifier",
"start": 369,
"end": 373,
"loc": {
"start": {
"line": 10,
"column": 42
},
"end": {
"line": 10,
"column": 46
},
"identifierName": "name"
},
"name": "name"
}
],
"body": {
"type": "BlockStatement",
"start": 375,
"end": 946,
"loc": {
"start": {
"line": 10,
"column": 48
},
"end": {
"line": 21,
"column": 1
}
},
"body": [
{
"type": "SwitchStatement",
"start": 381,
"end": 944,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 20,
"column": 5
}
},
"discriminant": {
"type": "Identifier",
"start": 389,
"end": 393,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 16
},
"identifierName": "name"
},
"name": "name"
},
"cases": [
{
"type": "SwitchCase",
"start": 405,
"end": 457,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 60
}
},
"consequent": [
{
"type": "ReturnStatement",
"start": 418,
"end": 457,
"loc": {
"start": {
"line": 12,
"column": 21
},
"end": {
"line": 12,
"column": 60
}
},
"argument": {
"type": "NewExpression",
"start": 425,
"end": 456,
"loc": {
"start": {
"line": 12,
"column": 28
},
"end": {
"line": 12,
"column": 59
}
},
"callee": {
"type": "Identifier",
"start": 429,
"end": 440,
"loc": {
"start": {
"line": 12,
"column": 32
},
"end": {
"line": 12,
"column": 43
},
"identifierName": "DragHandler"
},
"name": "DragHandler"
},
"arguments": [
{
"type": "Identifier",
"start": 441,
"end": 449,
"loc": {
"start": {
"line": 12,
"column": 44
},
"end": {
"line": 12,
"column": 52
},
"identifierName": "sketcher"
},
"name": "sketcher"
},
{
"type": "Identifier",
"start": 451,
"end": 455,
"loc": {
"start": {
"line": 12,
"column": 54
},
"end": {
"line": 12,
"column": 58
},
"identifierName": "name"
},
"name": "name"
}
]
}
}
],
"test": {
"type": "StringLiteral",
"start": 410,
"end": 416,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 19
}
},
"extra": {
"rawValue": "drag",
"raw": "'drag'"
},
"value": "drag"
}
},
{
"type": "SwitchCase",
"start": 466,
"end": 520,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 62
}
},
"consequent": [
{
"type": "ReturnStatement",
"start": 480,
"end": 520,
"loc": {
"start": {
"line": 13,
"column": 22
},
"end": {
"line": 13,
"column": 62
}
},
"argument": {
"type": "NewExpression",
"start": 487,
"end": 519,
"loc": {
"start": {
"line": 13,
"column": 29
},
"end": {
"line": 13,
"column": 61
}
},
"callee": {
"type": "Identifier",
"start": 491,
"end": 503,
"loc": {
"start": {
"line": 13,
"column": 33
},
"end": {
"line": 13,
"column": 45
},
"identifierName": "PointHandler"
},
"name": "PointHandler"
},
"arguments": [
{
"type": "Identifier",
"start": 504,
"end": 512,
"loc": {
"start": {
"line": 13,
"column": 46
},
"end": {
"line": 13,
"column": 54
},
"identifierName": "sketcher"
},
"name": "sketcher"
},
{
"type": "Identifier",
"start": 514,
"end": 518,
"loc": {
"start": {
"line": 13,
"column": 56
},
"end": {
"line": 13,
"column": 60
},
"identifierName": "name"
},
"name": "name"
}
]
}
}
],
"test": {
"type": "StringLiteral",
"start": 471,
"end": 478,
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 20
}
},
"extra": {
"rawValue": "point",
"raw": "'point'"
},
"value": "point"
}
},
{
"type": "SwitchCase",
"start": 529,
"end": 581,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 60
}
},
"consequent": [
{
"type": "ReturnStatement",
"start": 542,
"end": 581,
"loc": {
"start": {
"line": 14,
"column": 21
},
"end": {
"line": 14,
"column": 60
}
},
"argument": {
"type": "NewExpression",
"start": 549,
"end": 580,
"loc": {
"start": {
"line": 14,
"column": 28
},
"end": {
"line": 14,
"column": 59
}
},
"callee": {
"type": "Identifier",
"start": 553,
"end": 564,
"loc": {
"start": {
"line": 14,
"column": 32
},
"end": {
"line": 14,
"column": 43
},
"identifierName": "LineHandler"
},
"name": "LineHandler"
},
"arguments": [
{
"type": "Identifier",
"start": 565,
"end": 573,
"loc": {
"start": {
"line": 14,
"column": 44
},
"end": {
"line": 14,
"column": 52
},
"identifierName": "sketcher"
},
"name": "sketcher"
},
{
"type": "Identifier",
"start": 575,
"end": 579,
"loc": {
"start": {
"line": 14,
"column": 54
},
"end": {
"line": 14,
"column": 58
},
"identifierName": "name"
},
"name": "name"
}
]
}
}
],
"test": {
"type": "StringLiteral",
"start": 534,
"end": 540,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 19
}
},
"extra": {
"rawValue": "line",
"raw": "'line'"
},
"value": "line"
}
},
{
"type": "SwitchCase",
"start": 590,
"end": 652,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 70
}
},
"consequent": [
{
"type": "ReturnStatement",
"start": 608,
"end": 652,
"loc": {
"start": {
"line": 15,
"column": 26
},
"end": {
"line": 15,
"column": 70
}
},
"argument": {
"type": "NewExpression",
"start": 615,
"end": 651,
"loc": {
"start": {
"line": 15,
"column": 33
},
"end": {
"line": 15,
"column": 69
}
},
"callee": {
"type": "Identifier",
"start": 619,
"end": 635,
"loc": {
"start": {
"line": 15,
"column": 37
},
"end": {
"line": 15,
"column": 53
},
"identifierName": "ArcCenterHandler"
},
"name": "ArcCenterHandler"
},
"arguments": [
{
"type": "Identifier",
"start": 636,
"end": 644,
"loc": {
"start": {
"line": 15,
"column": 54
},
"end": {
"line": 15,
"column": 62
},
"identifierName": "sketcher"
},
"name": "sketcher"
},
{
"type": "Identifier",
"start": 646,
"end": 650,
"loc": {
"start": {
"line": 15,
"column": 64
},
"end": {
"line": 15,
"column": 68
},
"identifierName": "name"
},
"name": "name"
}
]
}
}
],
"test": {
"type": "StringLiteral",
"start": 595,
"end": 606,
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 24
}
},
"extra": {
"rawValue": "arccenter",
"raw": "'arccenter'"
},
"value": "arccenter"
}
},
{
"type": "SwitchCase",
"start": 661,
"end": 725,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 72
}
},
"consequent": [
{
"type": "ReturnStatement",
"start": 680,
"end": 725,
"loc": {
"start": {
"line": 16,
"column": 27
},
"end": {
"line": 16,
"column": 72
}
},
"argument": {
"type": "NewExpression",
"start": 687,
"end": 724,
"loc": {
"start": {
"line": 16,
"column": 34
},
"end": {
"line": 16,
"column": 71
}
},
"callee": {
"type": "Identifier",
"start": 691,
"end": 708,
"loc": {
"start": {
"line": 16,
"column": 38
},
"end": {
"line": 16,
"column": 55
},
"identifierName": "ArcControlHandler"
},
"name": "ArcControlHandler"
},
"arguments": [
{
"type": "Identifier",
"start": 709,
"end": 717,
"loc": {
"start": {
"line": 16,
"column": 56
},
"end": {
"line": 16,
"column": 64
},
"identifierName": "sketcher"
},
"name": "sketcher"
},
{
"type": "Identifier",
"start": 719,
"end": 723,
"loc": {
"start": {
"line": 16,
"column": 66
},
"end": {
"line": 16,
"column": 70
},
"identifierName": "name"
},
"name": "name"
}
]
}
}
],
"test": {
"type": "StringLiteral",
"start": 666,
"end": 678,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 25
}
},
"extra": {
"rawValue": "arccontrol",
"raw": "'arccontrol'"
},
"value": "arccontrol"
}
},
{
"type": "SwitchCase",
"start": 734,
"end": 796,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 70
}
},
"consequent": [
{
"type": "ReturnStatement",
"start": 752,
"end": 796,
"loc": {
"start": {
"line": 17,
"column": 26
},
"end": {
"line": 17,
"column": 70
}
},
"argument": {
"type": "NewExpression",
"start": 759,
"end": 795,
"loc": {
"start": {
"line": 17,
"column": 33
},
"end": {
"line": 17,
"column": 69
}
},
"callee": {
"type": "Identifier",
"start": 763,
"end": 779,
"loc": {
"start": {
"line": 17,
"column": 37
},
"end": {
"line": 17,
"column": 53
},
"identifierName": "ArcMiddleHandler"
},
"name": "ArcMiddleHandler"
},
"arguments": [
{
"type": "Identifier",
"start": 780,
"end": 788,
"loc": {
"start": {
"line": 17,
"column": 54
},
"end": {
"line": 17,
"column": 62
},
"identifierName": "sketcher"
},
"name": "sketcher"
},
{
"type": "Identifier",
"start": 790,
"end": 794,
"loc": {
"start": {
"line": 17,
"column": 64
},
"end": {
"line": 17,
"column": 68
},
"identifierName": "name"
},
"name": "name"
}
]
}
}
],
"test": {
"type": "StringLiteral",
"start": 739,
"end": 750,
"loc": {
"start": {
"line": 17,
"column": 13
},
"end": {
"line": 17,
"column": 24
}
},
"extra": {
"rawValue": "arcmiddle",
"raw": "'arcmiddle'"
},
"value": "arcmiddle"
}
},
{
"type": "SwitchCase",
"start": 805,
"end": 869,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 72
}
},
"consequent": [
{
"type": "ReturnStatement",
"start": 824,
"end": 869,
"loc": {
"start": {
"line": 18,
"column": 27
},
"end": {
"line": 18,
"column": 72
}
},
"argument": {
"type": "NewExpression",
"start": 831,
"end": 868,
"loc": {
"start": {
"line": 18,
"column": 34
},
"end": {
"line": 18,
"column": 71
}
},
"callee": {
"type": "Identifier",
"start": 835,
"end": 852,
"loc": {
"start": {
"line": 18,
"column": 38
},
"end": {
"line": 18,
"column": 55
},
"identifierName": "ArcTangentHandler"
},
"name": "ArcTangentHandler"
},
"arguments": [
{
"type": "Identifier",
"start": 853,
"end": 861,
"loc": {
"start": {
"line": 18,
"column": 56
},
"end": {
"line": 18,
"column": 64
},
"identifierName": "sketcher"
},
"name": "sketcher"
},
{
"type": "Identifier",
"start": 863,
"end": 867,
"loc": {
"start": {
"line": 18,
"column": 66
},
"end": {
"line": 18,
"column": 70
},
"identifierName": "name"
},
"name": "name"
}
]
}
}
],
"test": {
"type": "StringLiteral",
"start": 810,
"end": 822,
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 25
}
},
"extra": {
"rawValue": "arctangent",
"raw": "'arctangent'"
},
"value": "arctangent"
}
},
{
"type": "SwitchCase",
"start": 878,
"end": 938,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 68
}
},
"consequent": [
{
"type": "ReturnStatement",
"start": 895,
"end": 938,
"loc": {
"start": {
"line": 19,
"column": 25
},
"end": {
"line": 19,
"column": 68
}
},
"argument": {
"type": "NewExpression",
"start": 902,
"end": 937,
"loc": {
"start": {
"line": 19,
"column": 32
},
"end": {
"line": 19,
"column": 67
}
},
"callee": {
"type": "Identifier",
"start": 906,
"end": 921,
"loc": {
"start": {
"line": 19,
"column": 36
},
"end": {
"line": 19,