awv3
Version:
AWV client CAD framework
1,264 lines (1,263 loc) • 735 kB
JSON
{
"type": "Program",
"start": 0,
"end": 4261,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 189,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ExportNamedDeclaration",
"start": 0,
"end": 403,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 17,
"column": 1
}
},
"declaration": {
"type": "VariableDeclaration",
"start": 7,
"end": 403,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 17,
"column": 1
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 13,
"end": 403,
"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
}
},
"name": "back"
},
"init": {
"type": "ObjectExpression",
"start": 20,
"end": 403,
"loc": {
"start": {
"line": 1,
"column": 20
},
"end": {
"line": 17,
"column": 1
}
},
"properties": [
{
"type": "Property",
"start": 27,
"end": 110,
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 5,
"column": 5
}
},
"method": true,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 27,
"end": 29,
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 6
}
},
"name": "in"
},
"kind": "init",
"value": {
"type": "FunctionExpression",
"start": 29,
"end": 110,
"loc": {
"start": {
"line": 2,
"column": 6
},
"end": {
"line": 5,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 30,
"end": 31,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 8
}
},
"name": "k"
}
],
"body": {
"type": "BlockStatement",
"start": 33,
"end": 110,
"loc": {
"start": {
"line": 2,
"column": 10
},
"end": {
"line": 5,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 44,
"end": 60,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 24
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 48,
"end": 59,
"loc": {
"start": {
"line": 3,
"column": 12
},
"end": {
"line": 3,
"column": 23
}
},
"id": {
"type": "Identifier",
"start": 48,
"end": 49,
"loc": {
"start": {
"line": 3,
"column": 12
},
"end": {
"line": 3,
"column": 13
}
},
"name": "s"
},
"init": {
"type": "Literal",
"start": 52,
"end": 59,
"loc": {
"start": {
"line": 3,
"column": 16
},
"end": {
"line": 3,
"column": 23
}
},
"value": 1.70158,
"rawValue": 1.70158,
"raw": "1.70158"
}
}
],
"kind": "let"
},
{
"type": "ReturnStatement",
"start": 70,
"end": 103,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 41
}
},
"argument": {
"type": "BinaryExpression",
"start": 77,
"end": 102,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 4,
"column": 40
}
},
"left": {
"type": "BinaryExpression",
"start": 77,
"end": 82,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 4,
"column": 20
}
},
"left": {
"type": "Identifier",
"start": 77,
"end": 78,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 4,
"column": 16
}
},
"name": "k"
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 81,
"end": 82,
"loc": {
"start": {
"line": 4,
"column": 19
},
"end": {
"line": 4,
"column": 20
}
},
"name": "k"
}
},
"operator": "*",
"right": {
"type": "BinaryExpression",
"start": 86,
"end": 101,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 39
}
},
"left": {
"type": "BinaryExpression",
"start": 86,
"end": 97,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 35
}
},
"left": {
"type": "BinaryExpression",
"start": 87,
"end": 92,
"loc": {
"start": {
"line": 4,
"column": 25
},
"end": {
"line": 4,
"column": 30
}
},
"left": {
"type": "Identifier",
"start": 87,
"end": 88,
"loc": {
"start": {
"line": 4,
"column": 25
},
"end": {
"line": 4,
"column": 26
}
},
"name": "s"
},
"operator": "+",
"right": {
"type": "Literal",
"start": 91,
"end": 92,
"loc": {
"start": {
"line": 4,
"column": 29
},
"end": {
"line": 4,
"column": 30
}
},
"value": 1,
"rawValue": 1,
"raw": "1"
},
"parenthesizedExpression": true
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 96,
"end": 97,
"loc": {
"start": {
"line": 4,
"column": 34
},
"end": {
"line": 4,
"column": 35
}
},
"name": "k"
}
},
"operator": "-",
"right": {
"type": "Identifier",
"start": 100,
"end": 101,
"loc": {
"start": {
"line": 4,
"column": 38
},
"end": {
"line": 4,
"column": 39
}
},
"name": "s"
},
"parenthesizedExpression": true
}
}
}
]
}
}
},
{
"type": "Property",
"start": 119,
"end": 209,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 10,
"column": 5
}
},
"method": true,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 119,
"end": 122,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 7
}
},
"name": "out"
},
"kind": "init",
"value": {
"type": "FunctionExpression",
"start": 122,
"end": 209,
"loc": {
"start": {
"line": 7,
"column": 7
},
"end": {
"line": 10,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 123,
"end": 124,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 9
}
},
"name": "k"
}
],
"body": {
"type": "BlockStatement",
"start": 126,
"end": 209,
"loc": {
"start": {
"line": 7,
"column": 11
},
"end": {
"line": 10,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 137,
"end": 153,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 24
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 141,
"end": 152,
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 23
}
},
"id": {
"type": "Identifier",
"start": 141,
"end": 142,
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 13
}
},
"name": "s"
},
"init": {
"type": "Literal",
"start": 145,
"end": 152,
"loc": {
"start": {
"line": 8,
"column": 16
},
"end": {
"line": 8,
"column": 23
}
},
"value": 1.70158,
"rawValue": 1.70158,
"raw": "1.70158"
}
}
],
"kind": "let"
},
{
"type": "ReturnStatement",
"start": 163,
"end": 202,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 47
}
},
"argument": {
"type": "BinaryExpression",
"start": 170,
"end": 201,
"loc": {
"start": {
"line": 9,
"column": 15
},
"end": {
"line": 9,
"column": 46
}
},
"left": {
"type": "BinaryExpression",
"start": 170,
"end": 197,
"loc": {
"start": {
"line": 9,
"column": 15
},
"end": {
"line": 9,
"column": 42
}
},
"left": {
"type": "BinaryExpression",
"start": 170,
"end": 177,
"loc": {
"start": {
"line": 9,
"column": 15
},
"end": {
"line": 9,
"column": 22
}
},
"left": {
"type": "UpdateExpression",
"start": 170,
"end": 173,
"loc": {
"start": {
"line": 9,
"column": 15
},
"end": {
"line": 9,
"column": 18
}
},
"operator": "--",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 172,
"end": 173,
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 9,
"column": 18
}
},
"name": "k"
}
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 176,
"end": 177,
"loc": {
"start": {
"line": 9,
"column": 21
},
"end": {
"line": 9,
"column": 22
}
},
"name": "k"
}
},
"operator": "*",
"right": {
"type": "BinaryExpression",
"start": 181,
"end": 196,
"loc": {
"start": {
"line": 9,
"column": 26
},
"end": {
"line": 9,
"column": 41
}
},
"left": {
"type": "BinaryExpression",
"start": 181,
"end": 192,
"loc": {
"start": {
"line": 9,
"column": 26
},
"end": {
"line": 9,
"column": 37
}
},
"left": {
"type": "BinaryExpression",
"start": 182,
"end": 187,
"loc": {
"start": {
"line": 9,
"column": 27
},
"end": {
"line": 9,
"column": 32
}
},
"left": {
"type": "Identifier",
"start": 182,
"end": 183,
"loc": {
"start": {
"line": 9,
"column": 27
},
"end": {
"line": 9,
"column": 28
}
},
"name": "s"
},
"operator": "+",
"right": {
"type": "Literal",
"start": 186,
"end": 187,
"loc": {
"start": {
"line": 9,
"column": 31
},
"end": {
"line": 9,
"column": 32
}
},
"value": 1,
"rawValue": 1,
"raw": "1"
},
"parenthesizedExpression": true
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 191,
"end": 192,
"loc": {
"start": {
"line": 9,
"column": 36
},
"end": {
"line": 9,
"column": 37
}
},
"name": "k"
}
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 195,
"end": 196,
"loc": {
"start": {
"line": 9,
"column": 40
},
"end": {
"line": 9,
"column": 41
}
},
"name": "s"
},
"parenthesizedExpression": true
}
},
"operator": "+",
"right": {
"type": "Literal",
"start": 200,
"end": 201,
"loc": {
"start": {
"line": 9,
"column": 45
},
"end": {
"line": 9,
"column": 46
}
},
"value": 1,
"rawValue": 1,
"raw": "1"
}
}
}
]
}
}
},
{
"type": "Property",
"start": 218,
"end": 400,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 16,
"column": 5
}
},
"method": true,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 218,
"end": 223,
"loc": {
"start": {
"line": 12,
"column": 4
},
"end": {
"line": 12,
"column": 9
}
},
"name": "inOut"
},
"kind": "init",
"value": {
"type": "FunctionExpression",
"start": 223,
"end": 400,
"loc": {
"start": {
"line": 12,
"column": 9
},
"end": {
"line": 16,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 224,
"end": 225,
"loc": {
"start": {
"line": 12,
"column": 10
},
"end": {
"line": 12,
"column": 11
}
},
"name": "k"
}
],
"body": {
"type": "BlockStatement",
"start": 227,
"end": 400,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 16,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 238,
"end": 262,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 32
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 242,
"end": 261,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 31
}
},
"id": {
"type": "Identifier",
"start": 242,
"end": 243,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 13
}
},
"name": "s"
},
"init": {
"type": "BinaryExpression",
"start": 246,
"end": 261,
"loc": {
"start": {
"line": 13,
"column": 16
},
"end": {
"line": 13,
"column": 31
}
},
"left": {
"type": "Literal",
"start": 246,
"end": 253,
"loc": {
"start": {
"line": 13,
"column": 16
},
"end": {
"line": 13,
"column": 23
}
},
"value": 1.70158,
"rawValue": 1.70158,
"raw": "1.70158"
},
"operator": "*",
"right": {
"type": "Literal",
"start": 256,
"end": 261,
"loc": {
"start": {
"line": 13,
"column": 26
},
"end": {
"line": 13,
"column": 31
}
},
"value": 1.525,
"rawValue": 1.525,
"raw": "1.525"
}
}
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 272,
"end": 331,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 67
}
},
"test": {
"type": "BinaryExpression",
"start": 276,
"end": 288,
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 24
}
},
"left": {
"type": "AssignmentExpression",
"start": 277,
"end": 283,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 19
}
},
"operator": "*=",
"left": {
"type": "Identifier",
"start": 277,
"end": 278,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 14
}
},
"name": "k"
},
"right": {
"type": "Literal",
"start": 282,
"end": 283,
"loc": {
"start": {
"line": 14,
"column": 18
},
"end": {
"line": 14,
"column": 19
}
},
"value": 2,
"rawValue": 2,
"raw": "2"
},
"parenthesizedExpression": true
},
"operator": "<",
"right": {
"type": "Literal",
"start": 287,
"end": 288,
"loc": {
"start": {
"line": 14,
"column": 23
},
"end": {
"line": 14,
"column": 24
}
},
"value": 1,
"rawValue": 1,
"raw": "1"
}
},
"consequent": {
"type": "ReturnStatement",
"start": 290,
"end": 331,
"loc": {
"start": {
"line": 14,
"column": 26
},
"end": {
"line": 14,
"column": 67
}
},
"argument": {
"type": "BinaryExpression",
"start": 297,
"end": 330,
"loc": {
"start": {
"line": 14,
"column": 33
},
"end": {
"line": 14,
"column": 66
}
},
"left": {
"type": "Literal",
"start": 297,
"end": 300,
"loc": {
"start": {
"line": 14,
"column": 33
},
"end": {
"line": 14,
"column": 36
}
},
"value": 0.5,
"rawValue": 0.5,
"raw": "0.5"
},
"operator": "*",
"right": {
"type": "BinaryExpression",
"start": 304,
"end": 329,
"loc": {
"start": {
"line": 14,
"column": 40
},
"end": {
"line": 14,
"column": 65
}
},
"left": {
"type": "BinaryExpression",
"start": 304,
"end": 309,
"loc": {
"start": {
"line": 14,
"column": 40
},
"end": {
"line": 14,
"column": 45
}
},
"left": {
"type": "Identifier",
"start": 304,
"end": 305,
"loc": {
"start": {
"line": 14,
"column": 40
},
"end": {
"line": 14,
"column": 41
}
},
"name": "k"
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 308,
"end": 309,
"loc": {
"start": {
"line": 14,
"column": 44
},
"end": {
"line": 14,
"column": 45
}
},
"name": "k"
}
},
"operator": "*",
"right": {
"type": "BinaryExpression",
"start": 313,
"end": 328,
"loc": {
"start": {
"line": 14,
"column": 49
},
"end": {
"line": 14,
"column": 64
}
},
"left": {
"type": "BinaryExpression",
"start": 313,
"end": 324,
"loc": {
"start": {
"line": 14,
"column": 49
},
"end": {
"line": 14,