awv3
Version:
⚡ AWV3 embedded CAD
1,405 lines (1,404 loc) • 1.3 MB
JSON
{
"type": "File",
"start": 0,
"end": 6331,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 183,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 6331,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 183,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ExportDefaultDeclaration",
"start": 0,
"end": 6330,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 182,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 15,
"end": 6330,
"loc": {
"start": {
"line": 1,
"column": 15
},
"end": {
"line": 182,
"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": 6330,
"loc": {
"start": {
"line": 1,
"column": 28
},
"end": {
"line": 182,
"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": 257,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 9,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 136,
"end": 145,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 13
},
"identifierName": "subscribe"
},
"name": "subscribe"
},
"static": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 146,
"end": 150,
"loc": {
"start": {
"line": 7,
"column": 14
},
"end": {
"line": 7,
"column": 18
},
"identifierName": "arg1"
},
"name": "arg1"
},
{
"type": "Identifier",
"start": 152,
"end": 156,
"loc": {
"start": {
"line": 7,
"column": 20
},
"end": {
"line": 7,
"column": 24
},
"identifierName": "arg2"
},
"name": "arg2"
},
{
"type": "Identifier",
"start": 158,
"end": 165,
"loc": {
"start": {
"line": 7,
"column": 26
},
"end": {
"line": 7,
"column": 33
},
"identifierName": "options"
},
"name": "options"
}
],
"body": {
"type": "BlockStatement",
"start": 167,
"end": 257,
"loc": {
"start": {
"line": 7,
"column": 35
},
"end": {
"line": 9,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 177,
"end": 251,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 82
}
},
"argument": {
"type": "CallExpression",
"start": 184,
"end": 250,
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 81
}
},
"callee": {
"type": "MemberExpression",
"start": 184,
"end": 232,
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 63
}
},
"object": {
"type": "MemberExpression",
"start": 184,
"end": 227,
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 58
}
},
"object": {
"type": "CallExpression",
"start": 184,
"end": 212,
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 43
}
},
"callee": {
"type": "MemberExpression",
"start": 184,
"end": 191,
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 184,
"end": 188,
"loc": {
"start": {
"line": 8,
"column": 15
},
"end": {
"line": 8,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 189,
"end": 191,
"loc": {
"start": {
"line": 8,
"column": 20
},
"end": {
"line": 8,
"column": 22
},
"identifierName": "on"
},
"name": "on"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 192,
"end": 196,
"loc": {
"start": {
"line": 8,
"column": 23
},
"end": {
"line": 8,
"column": 27
},
"identifierName": "arg1"
},
"name": "arg1"
},
{
"type": "Identifier",
"start": 198,
"end": 202,
"loc": {
"start": {
"line": 8,
"column": 29
},
"end": {
"line": 8,
"column": 33
},
"identifierName": "arg2"
},
"name": "arg2"
},
{
"type": "Identifier",
"start": 204,
"end": 211,
"loc": {
"start": {
"line": 8,
"column": 35
},
"end": {
"line": 8,
"column": 42
},
"identifierName": "options"
},
"name": "options"
}
]
},
"property": {
"type": "Identifier",
"start": 213,
"end": 227,
"loc": {
"start": {
"line": 8,
"column": 44
},
"end": {
"line": 8,
"column": 58
},
"identifierName": "removeListener"
},
"name": "removeListener"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 228,
"end": 232,
"loc": {
"start": {
"line": 8,
"column": 59
},
"end": {
"line": 8,
"column": 63
},
"identifierName": "bind"
},
"name": "bind"
},
"computed": false
},
"arguments": [
{
"type": "ThisExpression",
"start": 233,
"end": 237,
"loc": {
"start": {
"line": 8,
"column": 64
},
"end": {
"line": 8,
"column": 68
}
}
},
{
"type": "Identifier",
"start": 239,
"end": 243,
"loc": {
"start": {
"line": 8,
"column": 70
},
"end": {
"line": 8,
"column": 74
},
"identifierName": "arg1"
},
"name": "arg1"
},
{
"type": "Identifier",
"start": 245,
"end": 249,
"loc": {
"start": {
"line": 8,
"column": 76
},
"end": {
"line": 8,
"column": 80
},
"identifierName": "arg2"
},
"name": "arg2"
}
]
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 263,
"end": 340,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 13,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 263,
"end": 267,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 8
},
"identifierName": "once"
},
"name": "once"
},
"static": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 268,
"end": 272,
"loc": {
"start": {
"line": 11,
"column": 9
},
"end": {
"line": 11,
"column": 13
},
"identifierName": "type"
},
"name": "type"
},
{
"type": "Identifier",
"start": 274,
"end": 282,
"loc": {
"start": {
"line": 11,
"column": 15
},
"end": {
"line": 11,
"column": 23
},
"identifierName": "callback"
},
"name": "callback"
}
],
"body": {
"type": "BlockStatement",
"start": 284,
"end": 340,
"loc": {
"start": {
"line": 11,
"column": 25
},
"end": {
"line": 13,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 294,
"end": 334,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 48
}
},
"expression": {
"type": "CallExpression",
"start": 294,
"end": 333,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 47
}
},
"callee": {
"type": "MemberExpression",
"start": 294,
"end": 301,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 294,
"end": 298,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 299,
"end": 301,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 15
},
"identifierName": "on"
},
"name": "on"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 302,
"end": 306,
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 20
},
"identifierName": "type"
},
"name": "type"
},
{
"type": "Identifier",
"start": 308,
"end": 316,
"loc": {
"start": {
"line": 12,
"column": 22
},
"end": {
"line": 12,
"column": 30
},
"identifierName": "callback"
},
"name": "callback"
},
{
"type": "ObjectExpression",
"start": 318,
"end": 332,
"loc": {
"start": {
"line": 12,
"column": 32
},
"end": {
"line": 12,
"column": 46
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 319,
"end": 331,
"loc": {
"start": {
"line": 12,
"column": 33
},
"end": {
"line": 12,
"column": 45
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 319,
"end": 325,
"loc": {
"start": {
"line": 12,
"column": 33
},
"end": {
"line": 12,
"column": 39
},
"identifierName": "remove"
},
"name": "remove"
},
"value": {
"type": "BooleanLiteral",
"start": 327,
"end": 331,
"loc": {
"start": {
"line": 12,
"column": 41
},
"end": {
"line": 12,
"column": 45
}
},
"value": true
}
}
]
}
]
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 346,
"end": 425,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 17,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 346,
"end": 353,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 11
},
"identifierName": "onFirst"
},
"name": "onFirst"
},
"static": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 354,
"end": 358,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 16
},
"identifierName": "type"
},
"name": "type"
},
{
"type": "Identifier",
"start": 360,
"end": 368,
"loc": {
"start": {
"line": 15,
"column": 18
},
"end": {
"line": 15,
"column": 26
},
"identifierName": "callback"
},
"name": "callback"
}
],
"body": {
"type": "BlockStatement",
"start": 370,
"end": 425,
"loc": {
"start": {
"line": 15,
"column": 28
},
"end": {
"line": 17,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 380,
"end": 419,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 47
}
},
"expression": {
"type": "CallExpression",
"start": 380,
"end": 418,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 46
}
},
"callee": {
"type": "MemberExpression",
"start": 380,
"end": 387,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 380,
"end": 384,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 385,
"end": 387,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 15
},
"identifierName": "on"
},
"name": "on"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 388,
"end": 392,
"loc": {
"start": {
"line": 16,
"column": 16
},
"end": {
"line": 16,
"column": 20
},
"identifierName": "type"
},
"name": "type"
},
{
"type": "Identifier",
"start": 394,
"end": 402,
"loc": {
"start": {
"line": 16,
"column": 22
},
"end": {
"line": 16,
"column": 30
},
"identifierName": "callback"
},
"name": "callback"
},
{
"type": "ObjectExpression",
"start": 404,
"end": 417,
"loc": {
"start": {
"line": 16,
"column": 32
},
"end": {
"line": 16,
"column": 45
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 405,
"end": 416,
"loc": {
"start": {
"line": 16,
"column": 33
},
"end": {
"line": 16,
"column": 44
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 405,
"end": 413,
"loc": {
"start": {
"line": 16,
"column": 33
},
"end": {
"line": 16,
"column": 41
},
"identifierName": "priority"
},
"name": "priority"
},
"value": {
"type": "NumericLiteral",
"start": 415,
"end": 416,
"loc": {
"start": {
"line": 16,
"column": 43
},
"end": {
"line": 16,
"column": 44
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
}
]
}
]
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 431,
"end": 510,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 21,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 431,
"end": 437,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 10
},
"identifierName": "onLast"
},
"name": "onLast"
},
"static": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 438,
"end": 442,
"loc": {
"start": {
"line": 19,
"column": 11
},
"end": {
"line": 19,
"column": 15
},
"identifierName": "type"
},
"name": "type"
},
{
"type": "Identifier",
"start": 444,
"end": 452,
"loc": {
"start": {
"line": 19,
"column": 17
},
"end": {
"line": 19,
"column": 25
},
"identifierName": "callback"
},
"name": "callback"
}
],
"body": {
"type": "BlockStatement",
"start": 454,
"end": 510,
"loc": {
"start": {
"line": 19,
"column": 27
},
"end": {
"line": 21,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 464,
"end": 504,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 48
}
},
"expression": {
"type": "CallExpression",
"start": 464,
"end": 503,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 47
}
},
"callee": {
"type": "MemberExpression",
"start": 464,
"end": 471,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 464,
"end": 468,
"loc": {