awv3
Version:
⚡ AWV3 embedded CAD
1,251 lines (1,250 loc) • 1.49 MB
JSON
{
"type": "File",
"start": 0,
"end": 4051,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 185,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 4051,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 185,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ExportNamedDeclaration",
"start": 0,
"end": 388,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 17,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 7,
"end": 388,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 17,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 13,
"end": 387,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 17,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 13,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 17
},
"identifierName": "back"
},
"name": "back"
},
"init": {
"type": "ObjectExpression",
"start": 20,
"end": 387,
"loc": {
"start": {
"line": 1,
"column": 20
},
"end": {
"line": 17,
"column": 1
}
},
"properties": [
{
"type": "ObjectMethod",
"start": 26,
"end": 106,
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 5,
"column": 5
}
},
"method": true,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 26,
"end": 28,
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 6
},
"identifierName": "in"
},
"name": "in"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 29,
"end": 30,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 8
},
"identifierName": "k"
},
"name": "k"
}
],
"body": {
"type": "BlockStatement",
"start": 32,
"end": 106,
"loc": {
"start": {
"line": 2,
"column": 10
},
"end": {
"line": 5,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 42,
"end": 58,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 24
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 46,
"end": 57,
"loc": {
"start": {
"line": 3,
"column": 12
},
"end": {
"line": 3,
"column": 23
}
},
"id": {
"type": "Identifier",
"start": 46,
"end": 47,
"loc": {
"start": {
"line": 3,
"column": 12
},
"end": {
"line": 3,
"column": 13
},
"identifierName": "s"
},
"name": "s"
},
"init": {
"type": "NumericLiteral",
"start": 50,
"end": 57,
"loc": {
"start": {
"line": 3,
"column": 16
},
"end": {
"line": 3,
"column": 23
}
},
"extra": {
"rawValue": 1.70158,
"raw": "1.70158"
},
"value": 1.70158
}
}
],
"kind": "let"
},
{
"type": "ReturnStatement",
"start": 67,
"end": 100,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 41
}
},
"argument": {
"type": "BinaryExpression",
"start": 74,
"end": 99,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 4,
"column": 40
}
},
"left": {
"type": "BinaryExpression",
"start": 74,
"end": 79,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 4,
"column": 20
}
},
"left": {
"type": "Identifier",
"start": 74,
"end": 75,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 4,
"column": 16
},
"identifierName": "k"
},
"name": "k"
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 78,
"end": 79,
"loc": {
"start": {
"line": 4,
"column": 19
},
"end": {
"line": 4,
"column": 20
},
"identifierName": "k"
},
"name": "k"
}
},
"operator": "*",
"right": {
"type": "BinaryExpression",
"start": 83,
"end": 98,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 39
}
},
"left": {
"type": "BinaryExpression",
"start": 83,
"end": 94,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 35
}
},
"left": {
"type": "BinaryExpression",
"start": 84,
"end": 89,
"loc": {
"start": {
"line": 4,
"column": 25
},
"end": {
"line": 4,
"column": 30
}
},
"left": {
"type": "Identifier",
"start": 84,
"end": 85,
"loc": {
"start": {
"line": 4,
"column": 25
},
"end": {
"line": 4,
"column": 26
},
"identifierName": "s"
},
"name": "s"
},
"operator": "+",
"right": {
"type": "NumericLiteral",
"start": 88,
"end": 89,
"loc": {
"start": {
"line": 4,
"column": 29
},
"end": {
"line": 4,
"column": 30
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
},
"extra": {
"parenthesized": true,
"parenStart": 83
}
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 93,
"end": 94,
"loc": {
"start": {
"line": 4,
"column": 34
},
"end": {
"line": 4,
"column": 35
},
"identifierName": "k"
},
"name": "k"
}
},
"operator": "-",
"right": {
"type": "Identifier",
"start": 97,
"end": 98,
"loc": {
"start": {
"line": 4,
"column": 38
},
"end": {
"line": 4,
"column": 39
},
"identifierName": "s"
},
"name": "s"
},
"extra": {
"parenthesized": true,
"parenStart": 82
}
}
}
}
],
"directives": []
}
},
{
"type": "ObjectMethod",
"start": 113,
"end": 200,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 10,
"column": 5
}
},
"method": true,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 113,
"end": 116,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 7
},
"identifierName": "out"
},
"name": "out"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 117,
"end": 118,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 9
},
"identifierName": "k"
},
"name": "k"
}
],
"body": {
"type": "BlockStatement",
"start": 120,
"end": 200,
"loc": {
"start": {
"line": 7,
"column": 11
},
"end": {
"line": 10,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 130,
"end": 146,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 24
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 134,
"end": 145,
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 23
}
},
"id": {
"type": "Identifier",
"start": 134,
"end": 135,
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 13
},
"identifierName": "s"
},
"name": "s"
},
"init": {
"type": "NumericLiteral",
"start": 138,
"end": 145,
"loc": {
"start": {
"line": 8,
"column": 16
},
"end": {
"line": 8,
"column": 23
}
},
"extra": {
"rawValue": 1.70158,
"raw": "1.70158"
},
"value": 1.70158
}
}
],
"kind": "let"
},
{
"type": "ReturnStatement",
"start": 155,
"end": 194,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 47
}
},
"argument": {
"type": "BinaryExpression",
"start": 162,
"end": 193,
"loc": {
"start": {
"line": 9,
"column": 15
},
"end": {
"line": 9,
"column": 46
}
},
"left": {
"type": "BinaryExpression",
"start": 162,
"end": 189,
"loc": {
"start": {
"line": 9,
"column": 15
},
"end": {
"line": 9,
"column": 42
}
},
"left": {
"type": "BinaryExpression",
"start": 162,
"end": 169,
"loc": {
"start": {
"line": 9,
"column": 15
},
"end": {
"line": 9,
"column": 22
}
},
"left": {
"type": "UpdateExpression",
"start": 162,
"end": 165,
"loc": {
"start": {
"line": 9,
"column": 15
},
"end": {
"line": 9,
"column": 18
}
},
"operator": "--",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 164,
"end": 165,
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 9,
"column": 18
},
"identifierName": "k"
},
"name": "k"
},
"extra": {
"parenthesizedArgument": false
}
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 168,
"end": 169,
"loc": {
"start": {
"line": 9,
"column": 21
},
"end": {
"line": 9,
"column": 22
},
"identifierName": "k"
},
"name": "k"
}
},
"operator": "*",
"right": {
"type": "BinaryExpression",
"start": 173,
"end": 188,
"loc": {
"start": {
"line": 9,
"column": 26
},
"end": {
"line": 9,
"column": 41
}
},
"left": {
"type": "BinaryExpression",
"start": 173,
"end": 184,
"loc": {
"start": {
"line": 9,
"column": 26
},
"end": {
"line": 9,
"column": 37
}
},
"left": {
"type": "BinaryExpression",
"start": 174,
"end": 179,
"loc": {
"start": {
"line": 9,
"column": 27
},
"end": {
"line": 9,
"column": 32
}
},
"left": {
"type": "Identifier",
"start": 174,
"end": 175,
"loc": {
"start": {
"line": 9,
"column": 27
},
"end": {
"line": 9,
"column": 28
},
"identifierName": "s"
},
"name": "s"
},
"operator": "+",
"right": {
"type": "NumericLiteral",
"start": 178,
"end": 179,
"loc": {
"start": {
"line": 9,
"column": 31
},
"end": {
"line": 9,
"column": 32
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
},
"extra": {
"parenthesized": true,
"parenStart": 173
}
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 183,
"end": 184,
"loc": {
"start": {
"line": 9,
"column": 36
},
"end": {
"line": 9,
"column": 37
},
"identifierName": "k"
},
"name": "k"
}
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 187,
"end": 188,
"loc": {
"start": {
"line": 9,
"column": 40
},
"end": {
"line": 9,
"column": 41
},
"identifierName": "s"
},
"name": "s"
},
"extra": {
"parenthesized": true,
"parenStart": 172
}
}
},
"operator": "+",
"right": {
"type": "NumericLiteral",
"start": 192,
"end": 193,
"loc": {
"start": {
"line": 9,
"column": 45
},
"end": {
"line": 9,
"column": 46
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
}
}
],
"directives": []
}
},
{
"type": "ObjectMethod",
"start": 207,
"end": 385,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 16,
"column": 5
}
},
"method": true,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 207,
"end": 212,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 9
},
"identifierName": "inOut"
},
"name": "inOut"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 213,
"end": 214,
"loc": {
"start": {
"line": 12,
"column": 10
},
"end": {
"line": 12,
"column": 11
},
"identifierName": "k"
},
"name": "k"
}
],
"body": {
"type": "BlockStatement",
"start": 216,
"end": 385,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 16,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 226,
"end": 250,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 32
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 230,
"end": 249,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 31
}
},
"id": {
"type": "Identifier",
"start": 230,
"end": 231,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 13
},
"identifierName": "s"
},
"name": "s"
},
"init": {
"type": "BinaryExpression",
"start": 234,
"end": 249,
"loc": {
"start": {
"line": 13,
"column": 16
},
"end": {
"line": 13,
"column": 31
}
},
"left": {
"type": "NumericLiteral",
"start": 234,
"end": 241,
"loc": {
"start": {
"line": 13,
"column": 16
},
"end": {
"line": 13,
"column": 23
}
},
"extra": {
"rawValue": 1.70158,
"raw": "1.70158"
},
"value": 1.70158
},
"operator": "*",
"right": {
"type": "NumericLiteral",
"start": 244,
"end": 249,
"loc": {
"start": {
"line": 13,
"column": 26
},
"end": {
"line": 13,
"column": 31
}
},
"extra": {
"rawValue": 1.525,
"raw": "1.525"
},
"value": 1.525
}
}
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 259,
"end": 318,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 67
}
},
"test": {
"type": "BinaryExpression",
"start": 263,
"end": 275,
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 24
}
},
"left": {
"type": "AssignmentExpression",
"start": 264,
"end": 270,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 19
}
},
"operator": "*=",
"left": {
"type": "Identifier",
"start": 264,
"end": 265,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 14
},
"identifierName": "k"
},
"name": "k"
},
"right": {
"type": "NumericLiteral",
"start": 269,
"end": 270,
"loc": {
"start": {
"line": 14,
"column": 18
},
"end": {
"line": 14,
"column": 19
}
},
"extra": {
"rawValue": 2,
"raw": "2"
},
"value": 2
},
"extra": {
"parenthesized": true,
"parenStart": 263
}
},
"operator": "<",
"right": {
"type": "NumericLiteral",
"start": 274,
"end": 275,
"loc": {
"start": {
"line": 14,
"column": 23
},
"end": {
"line": 14,
"column": 24
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
},
"consequent": {
"type": "ReturnStatement",
"start": 277,
"end": 318,
"loc": {
"start": {
"line": 14,
"column": 26
},
"end": {
"line": 14,
"column": 67
}
},
"argument": {
"type": "BinaryExpression",
"start": 284,
"end": 317,
"loc": {
"start": {
"line": 14,
"column": 33
},
"end": {
"line": 14,
"column": 66
}
},
"left": {
"type": "NumericLiteral",
"start": 284,
"end": 287,
"loc": {
"start": {
"line": 14,
"column": 33
},
"end": {
"line": 14,
"column": 36
}
},
"extra": {
"rawValue": 0.5,
"raw": "0.5"
},
"value": 0.5
},
"operator": "*",
"right": {
"type": "BinaryExpression",
"start": 291,
"end": 316,
"loc": {
"start": {
"line": 14,
"column": 40
},
"end": {
"line": 14,
"column": 65
}
},
"left": {
"type": "BinaryExpression",
"start": 291,
"end": 296,
"loc": {
"start": {
"line": 14,
"column": 40
},
"end": {
"line": 14,
"column": 45
}
},
"left": {
"type": "Identifier",
"start": 291,
"end": 292,
"loc": {
"start": {
"line": 14,
"column": 40
},
"end": {
"line": 14,
"column": 41
},
"identifierName": "k"