awv3
Version:
AWV client CAD framework
1,264 lines (1,263 loc) • 735 kB
JSON
{
"type": "Program",
"start": 0,
"end": 4073,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 189,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ExportNamedDeclaration",
"start": 0,
"end": 387,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 17,
"column": 1
}
},
"declaration": {
"type": "VariableDeclaration",
"start": 7,
"end": 387,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 17,
"column": 1
}
},
"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
}
},
"name": "back"
},
"init": {
"type": "ObjectExpression",
"start": 20,
"end": 387,
"loc": {
"start": {
"line": 1,
"column": 20
},
"end": {
"line": 17,
"column": 1
}
},
"properties": [
{
"type": "Property",
"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
}
},
"name": "in"
},
"kind": "init",
"value": {
"type": "FunctionExpression",
"start": 28,
"end": 106,
"loc": {
"start": {
"line": 2,
"column": 6
},
"end": {
"line": 5,
"column": 5
}
},
"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
}
},
"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
}
},
"name": "s"
},
"init": {
"type": "Literal",
"start": 50,
"end": 57,
"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": 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
}
},
"name": "k"
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 78,
"end": 79,
"loc": {
"start": {
"line": 4,
"column": 19
},
"end": {
"line": 4,
"column": 20
}
},
"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
}
},
"name": "s"
},
"operator": "+",
"right": {
"type": "Literal",
"start": 88,
"end": 89,
"loc": {
"start": {
"line": 4,
"column": 29
},
"end": {
"line": 4,
"column": 30
}
},
"value": 1,
"rawValue": 1,
"raw": "1"
},
"parenthesizedExpression": true
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 93,
"end": 94,
"loc": {
"start": {
"line": 4,
"column": 34
},
"end": {
"line": 4,
"column": 35
}
},
"name": "k"
}
},
"operator": "-",
"right": {
"type": "Identifier",
"start": 97,
"end": 98,
"loc": {
"start": {
"line": 4,
"column": 38
},
"end": {
"line": 4,
"column": 39
}
},
"name": "s"
},
"parenthesizedExpression": true
}
}
}
]
}
}
},
{
"type": "Property",
"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
}
},
"name": "out"
},
"kind": "init",
"value": {
"type": "FunctionExpression",
"start": 116,
"end": 200,
"loc": {
"start": {
"line": 7,
"column": 7
},
"end": {
"line": 10,
"column": 5
}
},
"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
}
},
"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
}
},
"name": "s"
},
"init": {
"type": "Literal",
"start": 138,
"end": 145,
"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": 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
}
},
"name": "k"
}
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 168,
"end": 169,
"loc": {
"start": {
"line": 9,
"column": 21
},
"end": {
"line": 9,
"column": 22
}
},
"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
}
},
"name": "s"
},
"operator": "+",
"right": {
"type": "Literal",
"start": 178,
"end": 179,
"loc": {
"start": {
"line": 9,
"column": 31
},
"end": {
"line": 9,
"column": 32
}
},
"value": 1,
"rawValue": 1,
"raw": "1"
},
"parenthesizedExpression": true
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 183,
"end": 184,
"loc": {
"start": {
"line": 9,
"column": 36
},
"end": {
"line": 9,
"column": 37
}
},
"name": "k"
}
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 187,
"end": 188,
"loc": {
"start": {
"line": 9,
"column": 40
},
"end": {
"line": 9,
"column": 41
}
},
"name": "s"
},
"parenthesizedExpression": true
}
},
"operator": "+",
"right": {
"type": "Literal",
"start": 192,
"end": 193,
"loc": {
"start": {
"line": 9,
"column": 45
},
"end": {
"line": 9,
"column": 46
}
},
"value": 1,
"rawValue": 1,
"raw": "1"
}
}
}
]
}
}
},
{
"type": "Property",
"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
}
},
"name": "inOut"
},
"kind": "init",
"value": {
"type": "FunctionExpression",
"start": 212,
"end": 385,
"loc": {
"start": {
"line": 12,
"column": 9
},
"end": {
"line": 16,
"column": 5
}
},
"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
}
},
"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
}
},
"name": "s"
},
"init": {
"type": "BinaryExpression",
"start": 234,
"end": 249,
"loc": {
"start": {
"line": 13,
"column": 16
},
"end": {
"line": 13,
"column": 31
}
},
"left": {
"type": "Literal",
"start": 234,
"end": 241,
"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": 244,
"end": 249,
"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": 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
}
},
"name": "k"
},
"right": {
"type": "Literal",
"start": 269,
"end": 270,
"loc": {
"start": {
"line": 14,
"column": 18
},
"end": {
"line": 14,
"column": 19
}
},
"value": 2,
"rawValue": 2,
"raw": "2"
},
"parenthesizedExpression": true
},
"operator": "<",
"right": {
"type": "Literal",
"start": 274,
"end": 275,
"loc": {
"start": {
"line": 14,
"column": 23
},
"end": {
"line": 14,
"column": 24
}
},
"value": 1,
"rawValue": 1,
"raw": "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": "Literal",
"start": 284,
"end": 287,
"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": 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
}
},
"name": "k"
},
"operator": "*",
"right": {
"type": "Identifier",
"start": 295,
"end": 296,
"loc": {
"start": {
"line": 14,
"column": 44
},
"end": {
"line": 14,
"column": 45
}
},
"name": "k"
}
},
"operator": "*",
"right": {
"type": "BinaryExpression",
"start": 300,
"end": 315,
"loc": {
"start": {
"line": 14,
"column": 49
},
"end": {
"line": 14,
"column": 64
}
},
"left": {
"type": "BinaryExpression",
"start": 300,
"end": 311,
"loc": {
"start": {
"line": 14,
"column": 49
},
"end": {
"line": 14,