awv3
Version:
⚡ AWV3 embedded CAD
1,423 lines (1,422 loc) • 1.25 MB
JSON
{
"type": "File",
"start": 0,
"end": 6149,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 178,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 6149,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 178,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ExportDefaultDeclaration",
"start": 0,
"end": 6148,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 177,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 15,
"end": 6148,
"loc": {
"start": {
"line": 1,
"column": 15
},
"end": {
"line": 177,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 21,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 27
},
"identifierName": "Events"
},
"name": "Events"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 28,
"end": 6148,
"loc": {
"start": {
"line": 1,
"column": 28
},
"end": {
"line": 177,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 34,
"end": 130,
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 5,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 34,
"end": 45,
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 48,
"end": 130,
"loc": {
"start": {
"line": 2,
"column": 18
},
"end": {
"line": 5,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 58,
"end": 86,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 36
}
},
"expression": {
"type": "AssignmentExpression",
"start": 58,
"end": 85,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 35
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 58,
"end": 73,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 23
}
},
"object": {
"type": "ThisExpression",
"start": 58,
"end": 62,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 63,
"end": 73,
"loc": {
"start": {
"line": 3,
"column": 13
},
"end": {
"line": 3,
"column": 23
},
"identifierName": "_callbacks"
},
"name": "_callbacks"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 76,
"end": 85,
"loc": {
"start": {
"line": 3,
"column": 26
},
"end": {
"line": 3,
"column": 35
},
"identifierName": "undefined"
},
"name": "undefined"
}
}
},
{
"type": "ExpressionStatement",
"start": 95,
"end": 124,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 37
}
},
"expression": {
"type": "AssignmentExpression",
"start": 95,
"end": 123,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 36
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 95,
"end": 111,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 95,
"end": 99,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 100,
"end": 111,
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 24
},
"identifierName": "_inspectors"
},
"name": "_inspectors"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 114,
"end": 123,
"loc": {
"start": {
"line": 4,
"column": 27
},
"end": {
"line": 4,
"column": 36
},
"identifierName": "undefined"
},
"name": "undefined"
}
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 136,
"end": 213,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 9,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 136,
"end": 140,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 8
},
"identifierName": "once"
},
"name": "once"
},
"static": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 141,
"end": 145,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 13
},
"identifierName": "type"
},
"name": "type"
},
{
"type": "Identifier",
"start": 147,
"end": 155,
"loc": {
"start": {
"line": 7,
"column": 15
},
"end": {
"line": 7,
"column": 23
},
"identifierName": "callback"
},
"name": "callback"
}
],
"body": {
"type": "BlockStatement",
"start": 157,
"end": 213,
"loc": {
"start": {
"line": 7,
"column": 25
},
"end": {
"line": 9,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 167,
"end": 207,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 48
}
},
"expression": {
"type": "CallExpression",
"start": 167,
"end": 206,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 47
}
},
"callee": {
"type": "MemberExpression",
"start": 167,
"end": 174,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 167,
"end": 171,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 172,
"end": 174,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 15
},
"identifierName": "on"
},
"name": "on"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 175,
"end": 179,
"loc": {
"start": {
"line": 8,
"column": 16
},
"end": {
"line": 8,
"column": 20
},
"identifierName": "type"
},
"name": "type"
},
{
"type": "Identifier",
"start": 181,
"end": 189,
"loc": {
"start": {
"line": 8,
"column": 22
},
"end": {
"line": 8,
"column": 30
},
"identifierName": "callback"
},
"name": "callback"
},
{
"type": "ObjectExpression",
"start": 191,
"end": 205,
"loc": {
"start": {
"line": 8,
"column": 32
},
"end": {
"line": 8,
"column": 46
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 192,
"end": 204,
"loc": {
"start": {
"line": 8,
"column": 33
},
"end": {
"line": 8,
"column": 45
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 192,
"end": 198,
"loc": {
"start": {
"line": 8,
"column": 33
},
"end": {
"line": 8,
"column": 39
},
"identifierName": "remove"
},
"name": "remove"
},
"value": {
"type": "BooleanLiteral",
"start": 200,
"end": 204,
"loc": {
"start": {
"line": 8,
"column": 41
},
"end": {
"line": 8,
"column": 45
}
},
"value": true
}
}
]
}
]
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 219,
"end": 298,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 13,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 219,
"end": 226,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 11
},
"identifierName": "onFirst"
},
"name": "onFirst"
},
"static": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 227,
"end": 231,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 16
},
"identifierName": "type"
},
"name": "type"
},
{
"type": "Identifier",
"start": 233,
"end": 241,
"loc": {
"start": {
"line": 11,
"column": 18
},
"end": {
"line": 11,
"column": 26
},
"identifierName": "callback"
},
"name": "callback"
}
],
"body": {
"type": "BlockStatement",
"start": 243,
"end": 298,
"loc": {
"start": {
"line": 11,
"column": 28
},
"end": {
"line": 13,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 253,
"end": 292,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 47
}
},
"expression": {
"type": "CallExpression",
"start": 253,
"end": 291,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 46
}
},
"callee": {
"type": "MemberExpression",
"start": 253,
"end": 260,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 253,
"end": 257,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 258,
"end": 260,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 15
},
"identifierName": "on"
},
"name": "on"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 261,
"end": 265,
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 20
},
"identifierName": "type"
},
"name": "type"
},
{
"type": "Identifier",
"start": 267,
"end": 275,
"loc": {
"start": {
"line": 12,
"column": 22
},
"end": {
"line": 12,
"column": 30
},
"identifierName": "callback"
},
"name": "callback"
},
{
"type": "ObjectExpression",
"start": 277,
"end": 290,
"loc": {
"start": {
"line": 12,
"column": 32
},
"end": {
"line": 12,
"column": 45
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 278,
"end": 289,
"loc": {
"start": {
"line": 12,
"column": 33
},
"end": {
"line": 12,
"column": 44
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 278,
"end": 286,
"loc": {
"start": {
"line": 12,
"column": 33
},
"end": {
"line": 12,
"column": 41
},
"identifierName": "priority"
},
"name": "priority"
},
"value": {
"type": "NumericLiteral",
"start": 288,
"end": 289,
"loc": {
"start": {
"line": 12,
"column": 43
},
"end": {
"line": 12,
"column": 44
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
}
]
}
]
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 304,
"end": 383,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 17,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 304,
"end": 310,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 10
},
"identifierName": "onLast"
},
"name": "onLast"
},
"static": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 311,
"end": 315,
"loc": {
"start": {
"line": 15,
"column": 11
},
"end": {
"line": 15,
"column": 15
},
"identifierName": "type"
},
"name": "type"
},
{
"type": "Identifier",
"start": 317,
"end": 325,
"loc": {
"start": {
"line": 15,
"column": 17
},
"end": {
"line": 15,
"column": 25
},
"identifierName": "callback"
},
"name": "callback"
}
],
"body": {
"type": "BlockStatement",
"start": 327,
"end": 383,
"loc": {
"start": {
"line": 15,
"column": 27
},
"end": {
"line": 17,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 337,
"end": 377,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 48
}
},
"expression": {
"type": "CallExpression",
"start": 337,
"end": 376,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 47
}
},
"callee": {
"type": "MemberExpression",
"start": 337,
"end": 344,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 337,
"end": 341,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 342,
"end": 344,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 15
},
"identifierName": "on"
},
"name": "on"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 345,
"end": 349,
"loc": {
"start": {
"line": 16,
"column": 16
},
"end": {
"line": 16,
"column": 20
},
"identifierName": "type"
},
"name": "type"
},
{
"type": "Identifier",
"start": 351,
"end": 359,
"loc": {
"start": {
"line": 16,
"column": 22
},
"end": {
"line": 16,
"column": 30
},
"identifierName": "callback"
},
"name": "callback"
},
{
"type": "ObjectExpression",
"start": 361,
"end": 375,
"loc": {
"start": {
"line": 16,
"column": 32
},
"end": {
"line": 16,
"column": 46
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 362,
"end": 374,
"loc": {
"start": {
"line": 16,
"column": 33
},
"end": {
"line": 16,
"column": 45
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 362,
"end": 370,
"loc": {
"start": {
"line": 16,
"column": 33
},
"end": {
"line": 16,
"column": 41
},
"identifierName": "priority"
},
"name": "priority"
},
"value": {
"type": "UnaryExpression",
"start": 372,
"end": 374,
"loc": {
"start": {
"line": 16,
"column": 43
},
"end": {
"line": 16,
"column": 45
}
},
"operator": "-",
"prefix": true,
"argument": {
"type": "NumericLiteral",
"start": 373,
"end": 374,
"loc": {
"start": {
"line": 16,
"column": 44
},
"end": {
"line": 16,
"column": 45
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
},
"extra": {
"parenthesizedArgument": false
}
}
}
]
}
]
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 389,
"end": 1917,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 57,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 389,
"end": 391,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 6
},
"identifierName": "on"
},
"name": "on"
},
"static": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "AssignmentPattern",
"start": 392,
"end": 401,
"loc": {
"start": {
"line": 19,
"column": 7
},
"end": {
"line": 19,
"column": 16
}
},
"left": {
"type": "Identifier",
"start": 392,
"end": 396,
"loc": {
"start": {
"line": 19,
"column": 7
},
"end": {
"line": 19,
"column": 11
},
"identifierName": "arg1"
},
"name": "arg1"
},
"right": {
"type": "ObjectExpression",
"start": 399,
"end": 401,
"loc": {
"start": {
"line": 19,
"column": 14
},
"end": {
"line": 19,
"column": 16
}
},
"properties": []
}
},
{
"type": "AssignmentPattern",
"start": 403,
"end": 419,
"loc": {
"start": {
"line": 19,
"column": 18
},
"end": {
"line": 19,
"column": 34
}
},
"left": {
"type": "Identifier",
"start": 403,
"end": 407,
"loc": {
"start": {
"line": 19,
"column": 18
},
"end": {
"line": 19,
"column": 22
},
"identifierName": "arg2"
},
"name": "arg2"
},
"right": {
"type": "Identifier",
"start": 410,
"end": 419,
"loc": {
"start": {
"line": 19,
"column": 25
},
"end": {
"line": 19,
"column": 34
},
"identifierName": "undefined"
},
"name": "undefined"
}
},
{
"type": "AssignmentPattern",
"start": 421,
"end": 433,
"loc": {
"start": {
"line": 19,
"column": 36
},
"end": {
"line": 19,
"column": 48
}
},
"left": {
"type": "Identifier",
"start": 421,
"end": 428,
"loc": {
"start": {
"line": 19,
"column": 36
},
"end": {
"line": 19,
"column": 43
},
"identifierName": "options"
},
"name": "options"
},
"right": {
"type": "ObjectExpression",
"start": 431,
"end": 433,
"loc": {
"start": {
"line": 19,
"column": 46
},
"end": {
"line": 19,
"column": 48
}
},
"properties": []
}
}
],
"body": {
"type": "BlockStatement",
"start": 435,
"end": 1917,
"loc": {
"start": {
"line": 19,
"column": 50
},
"end": {
"line": 57,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 445,
"end": 1889,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 54,
"column": 9
}
},
"test": {
"type": "CallExpression",
"start": 449,
"end": 468,
"loc": {
"start": {
"line": 20,
"column": 12
},
"end": {
"line": 20,
"column": 31
}
},