awv3
Version:
⚡ AWV3 embedded CAD
1,361 lines (1,360 loc) • 259 kB
JSON
{
"type": "File",
"start": 0,
"end": 1417,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 71,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 1417,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 71,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ExportDefaultDeclaration",
"start": 41,
"end": 1416,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 70,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 56,
"end": 1416,
"loc": {
"start": {
"line": 2,
"column": 15
},
"end": {
"line": 70,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 62,
"end": 71,
"loc": {
"start": {
"line": 2,
"column": 21
},
"end": {
"line": 2,
"column": 30
},
"identifierName": "Ccbaseref"
},
"name": "Ccbaseref",
"leadingComments": null
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 72,
"end": 1416,
"loc": {
"start": {
"line": 2,
"column": 31
},
"end": {
"line": 70,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 78,
"end": 281,
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 9,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 82,
"end": 93,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 19
},
"identifierName": "descendants"
},
"name": "descendants"
},
"static": false,
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 96,
"end": 281,
"loc": {
"start": {
"line": 3,
"column": 22
},
"end": {
"line": 9,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 106,
"end": 275,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 8,
"column": 17
}
},
"argument": {
"type": "CallExpression",
"start": 113,
"end": 274,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 8,
"column": 16
}
},
"callee": {
"type": "FunctionExpression",
"start": 114,
"end": 267,
"loc": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 8,
"column": 9
}
},
"id": {
"type": "Identifier",
"start": 124,
"end": 135,
"loc": {
"start": {
"line": 4,
"column": 26
},
"end": {
"line": 4,
"column": 37
},
"identifierName": "descendants"
},
"name": "descendants"
},
"generator": true,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 136,
"end": 141,
"loc": {
"start": {
"line": 4,
"column": 38
},
"end": {
"line": 4,
"column": 43
},
"identifierName": "ccref"
},
"name": "ccref"
}
],
"body": {
"type": "BlockStatement",
"start": 143,
"end": 267,
"loc": {
"start": {
"line": 4,
"column": 45
},
"end": {
"line": 8,
"column": 9
}
},
"body": [
{
"type": "ForOfStatement",
"start": 157,
"end": 232,
"loc": {
"start": {
"line": 5,
"column": 12
},
"end": {
"line": 6,
"column": 41
}
},
"left": {
"type": "VariableDeclaration",
"start": 162,
"end": 171,
"loc": {
"start": {
"line": 5,
"column": 17
},
"end": {
"line": 5,
"column": 26
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 166,
"end": 171,
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 26
}
},
"id": {
"type": "Identifier",
"start": 166,
"end": 171,
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 26
},
"identifierName": "child"
},
"name": "child"
},
"init": null
}
],
"kind": "let"
},
"right": {
"type": "MemberExpression",
"start": 175,
"end": 189,
"loc": {
"start": {
"line": 5,
"column": 30
},
"end": {
"line": 5,
"column": 44
}
},
"object": {
"type": "Identifier",
"start": 175,
"end": 180,
"loc": {
"start": {
"line": 5,
"column": 30
},
"end": {
"line": 5,
"column": 35
},
"identifierName": "ccref"
},
"name": "ccref"
},
"property": {
"type": "Identifier",
"start": 181,
"end": 189,
"loc": {
"start": {
"line": 5,
"column": 36
},
"end": {
"line": 5,
"column": 44
},
"identifierName": "children"
},
"name": "children"
},
"computed": false
},
"body": {
"type": "ExpressionStatement",
"start": 207,
"end": 232,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 41
}
},
"expression": {
"type": "YieldExpression",
"start": 207,
"end": 231,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 40
}
},
"delegate": true,
"argument": {
"type": "MemberExpression",
"start": 214,
"end": 231,
"loc": {
"start": {
"line": 6,
"column": 23
},
"end": {
"line": 6,
"column": 40
}
},
"object": {
"type": "Identifier",
"start": 214,
"end": 219,
"loc": {
"start": {
"line": 6,
"column": 23
},
"end": {
"line": 6,
"column": 28
},
"identifierName": "child"
},
"name": "child"
},
"property": {
"type": "Identifier",
"start": 220,
"end": 231,
"loc": {
"start": {
"line": 6,
"column": 29
},
"end": {
"line": 6,
"column": 40
},
"identifierName": "descendants"
},
"name": "descendants"
},
"computed": false
}
}
}
},
{
"type": "ExpressionStatement",
"start": 245,
"end": 257,
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 24
}
},
"expression": {
"type": "YieldExpression",
"start": 245,
"end": 256,
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 23
}
},
"delegate": false,
"argument": {
"type": "Identifier",
"start": 251,
"end": 256,
"loc": {
"start": {
"line": 7,
"column": 18
},
"end": {
"line": 7,
"column": 23
},
"identifierName": "ccref"
},
"name": "ccref"
}
}
}
],
"directives": []
},
"extra": {
"parenthesized": true,
"parenStart": 113
}
},
"arguments": [
{
"type": "ThisExpression",
"start": 269,
"end": 273,
"loc": {
"start": {
"line": 8,
"column": 11
},
"end": {
"line": 8,
"column": 15
}
}
}
]
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 287,
"end": 360,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 13,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 291,
"end": 301,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 18
},
"identifierName": "startPoint"
},
"name": "startPoint"
},
"static": false,
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 304,
"end": 360,
"loc": {
"start": {
"line": 11,
"column": 21
},
"end": {
"line": 13,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 314,
"end": 354,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 48
}
},
"argument": {
"type": "CallExpression",
"start": 321,
"end": 353,
"loc": {
"start": {
"line": 12,
"column": 15
},
"end": {
"line": 12,
"column": 47
}
},
"callee": {
"type": "MemberExpression",
"start": 321,
"end": 339,
"loc": {
"start": {
"line": 12,
"column": 15
},
"end": {
"line": 12,
"column": 33
}
},
"object": {
"type": "ThisExpression",
"start": 321,
"end": 325,
"loc": {
"start": {
"line": 12,
"column": 15
},
"end": {
"line": 12,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 326,
"end": 339,
"loc": {
"start": {
"line": 12,
"column": 20
},
"end": {
"line": 12,
"column": 33
},
"identifierName": "getNamedChild"
},
"name": "getNamedChild"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 340,
"end": 352,
"loc": {
"start": {
"line": 12,
"column": 34
},
"end": {
"line": 12,
"column": 46
}
},
"extra": {
"rawValue": "startPoint",
"raw": "'startPoint'"
},
"value": "startPoint"
}
]
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 366,
"end": 435,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 17,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 370,
"end": 378,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 16
},
"identifierName": "endPoint"
},
"name": "endPoint"
},
"static": false,
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 381,
"end": 435,
"loc": {
"start": {
"line": 15,
"column": 19
},
"end": {
"line": 17,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 391,
"end": 429,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 46
}
},
"argument": {
"type": "CallExpression",
"start": 398,
"end": 428,
"loc": {
"start": {
"line": 16,
"column": 15
},
"end": {
"line": 16,
"column": 45
}
},
"callee": {
"type": "MemberExpression",
"start": 398,
"end": 416,
"loc": {
"start": {
"line": 16,
"column": 15
},
"end": {
"line": 16,
"column": 33
}
},
"object": {
"type": "ThisExpression",
"start": 398,
"end": 402,
"loc": {
"start": {
"line": 16,
"column": 15
},
"end": {
"line": 16,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 403,
"end": 416,
"loc": {
"start": {
"line": 16,
"column": 20
},
"end": {
"line": 16,
"column": 33
},
"identifierName": "getNamedChild"
},
"name": "getNamedChild"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 417,
"end": 427,
"loc": {
"start": {
"line": 16,
"column": 34
},
"end": {
"line": 16,
"column": 44
}
},
"extra": {
"rawValue": "endPoint",
"raw": "'endPoint'"
},
"value": "endPoint"
}
]
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 441,
"end": 506,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 21,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 445,
"end": 451,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 14
},
"identifierName": "center"
},
"name": "center"
},
"static": false,
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 454,
"end": 506,
"loc": {
"start": {
"line": 19,
"column": 17
},
"end": {
"line": 21,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 464,
"end": 500,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 44
}
},
"argument": {
"type": "CallExpression",
"start": 471,
"end": 499,
"loc": {
"start": {
"line": 20,
"column": 15
},
"end": {
"line": 20,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
"start": 471,
"end": 489,
"loc": {
"start": {
"line": 20,
"column": 15
},
"end": {
"line": 20,
"column": 33
}
},
"object": {
"type": "ThisExpression",
"start": 471,
"end": 475,
"loc": {
"start": {
"line": 20,
"column": 15
},
"end": {
"line": 20,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 476,
"end": 489,
"loc": {
"start": {
"line": 20,
"column": 20
},
"end": {
"line": 20,
"column": 33
},
"identifierName": "getNamedChild"
},
"name": "getNamedChild"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 490,
"end": 498,
"loc": {
"start": {
"line": 20,
"column": 34
},
"end": {
"line": 20,
"column": 42
}
},
"extra": {
"rawValue": "center",
"raw": "'center'"
},
"value": "center"
}
]
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 512,
"end": 593,
"loc": {
"start": {
"line": 23,
"column": 4
},
"end": {
"line": 25,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 516,
"end": 528,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 20
},
"identifierName": "encompassing"
},
"name": "encompassing"
},
"static": false,
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 531,
"end": 593,
"loc": {
"start": {
"line": 23,
"column": 23
},
"end": {
"line": 25,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 541,
"end": 587,
"loc": {
"start": {
"line": 24,
"column": 8
},
"end": {
"line": 24,
"column": 54
}
},
"argument": {
"type": "ConditionalExpression",
"start": 548,
"end": 586,
"loc": {
"start": {
"line": 24,
"column": 15
},
"end": {
"line": 24,
"column": 53
}
},
"test": {
"type": "CallExpression",
"start": 548,
"end": 565,
"loc": {
"start": {
"line": 24,
"column": 15
},
"end": {
"line": 24,
"column": 32
}
},
"callee": {
"type": "MemberExpression",
"start": 548,
"end": 563,
"loc": {
"start": {
"line": 24,
"column": 15
},
"end": {
"line": 24,
"column": 30
}
},
"object": {
"type": "ThisExpression",
"start": 548,
"end": 552,
"loc": {
"start": {
"line": 24,
"column": 15
},
"end": {
"line": 24,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 553,
"end": 563,
"loc": {
"start": {
"line": 24,
"column": 20
},
"end": {
"line": 24,
"column": 30
},
"identifierName": "isSubPoint"
},
"name": "isSubPoint"
},
"computed": false
},
"arguments": []
},
"consequent": {
"type": "MemberExpression",
"start": 568,
"end": 579,
"loc": {
"start": {
"line": 24,
"column": 35
},
"end": {
"line": 24,
"column": 46
}
},
"object": {
"type": "ThisExpression",
"start": 568,
"end": 572,
"loc": {
"start": {
"line": 24,
"column": 35
},
"end": {
"line": 24,
"column": 39
}
}
},
"property": {
"type": "Identifier",
"start": 573,
"end": 579,
"loc": {
"start": {
"line": 24,
"column": 40
},
"end": {
"line": 24,
"column": 46
},
"identifierName": "parent"
},
"name": "parent"
},
"computed": false
},
"alternate": {
"type": "ThisExpression",
"start": 582,
"end": 586,
"loc": {
"start": {
"line": 24,
"column": 49
},
"end": {
"line": 24,
"column": 53
}
}
}
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 599,
"end": 669,
"loc": {
"start": {
"line": 27,
"column": 4
},
"end": {
"line": 29,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 599,
"end": 610,
"loc": {
"start": {
"line": 27,
"column": 4
},
"end": {
"line": 27,
"column": 15
},
"identifierName": "isDimension"
},
"name": "isDimension"
},
"static": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 613,
"end": 669,
"loc": {
"start": {
"line": 27,
"column": 18
},
"end": {
"line": 29,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 623,
"end": 663,
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 28,
"column": 48
}
},
"argument": {
"type": "CallExpression",
"start": 630,
"end": 662,
"loc": {
"start": {
"line": 28,
"column": 15
},
"end": {
"line": 28,
"column": 47
}
},
"callee": {
"type": "MemberExpression",
"start": 630,
"end": 649,
"loc": {
"start": {
"line": 28,
"column": 15
},
"end": {
"line": 28,
"column": 34
}
},
"object": {
"type": "MemberExpression",
"start": 630,
"end": 640,
"loc": {
"start": {
"line": 28,
"column": 15
},
"end": {
"line": 28,
"column": 25
}
},
"object": {
"type": "ThisExpression",
"start": 630,
"end": 634,
"loc": {
"start": {
"line": 28,
"column": 15
},
"end": {
"line": 28,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 635,
"end": 640,
"loc": {
"start": {
"line": 28,
"column": 20
},
"end": {
"line": 28,
"column": 25
},
"identifierName": "class"
},
"name": "class"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 641,
"end": 649,
"loc": {
"start": {
"line": 28,
"column": 26
},