awv3
Version:
⚡ AWV3 embedded CAD
1,337 lines (1,336 loc) • 636 kB
JSON
{
"type": "File",
"start": 0,
"end": 2711,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 80,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 2711,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 80,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 34,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 34
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 9,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 9
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 9,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 9
},
"identifierName": "io"
},
"name": "io"
}
}
],
"source": {
"type": "StringLiteral",
"start": 15,
"end": 33,
"loc": {
"start": {
"line": 1,
"column": 15
},
"end": {
"line": 1,
"column": 33
}
},
"extra": {
"rawValue": "socket.io-client",
"raw": "'socket.io-client'"
},
"value": "socket.io-client"
}
},
{
"type": "ImportDeclaration",
"start": 35,
"end": 61,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 26
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 42,
"end": 46,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 11
}
},
"local": {
"type": "Identifier",
"start": 42,
"end": 46,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 11
},
"identifierName": "Base"
},
"name": "Base"
}
}
],
"source": {
"type": "StringLiteral",
"start": 52,
"end": 60,
"loc": {
"start": {
"line": 2,
"column": 17
},
"end": {
"line": 2,
"column": 25
}
},
"extra": {
"rawValue": "./base",
"raw": "'./base'"
},
"value": "./base"
}
},
{
"type": "ImportDeclaration",
"start": 62,
"end": 98,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 36
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 69,
"end": 75,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 69,
"end": 75,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 13
},
"identifierName": "Parser"
},
"name": "Parser"
}
}
],
"source": {
"type": "StringLiteral",
"start": 81,
"end": 97,
"loc": {
"start": {
"line": 3,
"column": 19
},
"end": {
"line": 3,
"column": 35
}
},
"extra": {
"rawValue": "../core/parser",
"raw": "'../core/parser'"
},
"value": "../core/parser"
}
},
{
"type": "ImportDeclaration",
"start": 99,
"end": 160,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 61
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 108,
"end": 121,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 22
}
},
"imported": {
"type": "Identifier",
"start": 108,
"end": 121,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 22
},
"identifierName": "createContext"
},
"name": "createContext"
},
"local": {
"type": "Identifier",
"start": 108,
"end": 121,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 4,
"column": 22
},
"identifierName": "createContext"
},
"name": "createContext"
}
},
{
"type": "ImportSpecifier",
"start": 123,
"end": 135,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 36
}
},
"imported": {
"type": "Identifier",
"start": 123,
"end": 135,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 36
},
"identifierName": "handleResult"
},
"name": "handleResult"
},
"local": {
"type": "Identifier",
"start": 123,
"end": 135,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 36
},
"identifierName": "handleResult"
},
"name": "handleResult"
}
}
],
"source": {
"type": "StringLiteral",
"start": 143,
"end": 159,
"loc": {
"start": {
"line": 4,
"column": 44
},
"end": {
"line": 4,
"column": 60
}
},
"extra": {
"rawValue": "../core/parser",
"raw": "'../core/parser'"
},
"value": "../core/parser"
}
},
{
"type": "ExportDefaultDeclaration",
"start": 162,
"end": 2710,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 79,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 177,
"end": 2710,
"loc": {
"start": {
"line": 6,
"column": 15
},
"end": {
"line": 79,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 183,
"end": 191,
"loc": {
"start": {
"line": 6,
"column": 21
},
"end": {
"line": 6,
"column": 29
},
"identifierName": "SocketIO"
},
"name": "SocketIO"
},
"superClass": {
"type": "Identifier",
"start": 200,
"end": 204,
"loc": {
"start": {
"line": 6,
"column": 38
},
"end": {
"line": 6,
"column": 42
},
"identifierName": "Base"
},
"name": "Base"
},
"body": {
"type": "ClassBody",
"start": 205,
"end": 2710,
"loc": {
"start": {
"line": 6,
"column": 43
},
"end": {
"line": 79,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 211,
"end": 263,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 9,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 211,
"end": 222,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 223,
"end": 230,
"loc": {
"start": {
"line": 7,
"column": 16
},
"end": {
"line": 7,
"column": 23
},
"identifierName": "options"
},
"name": "options"
}
],
"body": {
"type": "BlockStatement",
"start": 232,
"end": 263,
"loc": {
"start": {
"line": 7,
"column": 25
},
"end": {
"line": 9,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 242,
"end": 257,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 23
}
},
"expression": {
"type": "CallExpression",
"start": 242,
"end": 256,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 22
}
},
"callee": {
"type": "Super",
"start": 242,
"end": 247,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"start": 248,
"end": 255,
"loc": {
"start": {
"line": 8,
"column": 14
},
"end": {
"line": 8,
"column": 21
},
"identifierName": "options"
},
"name": "options"
}
]
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 269,
"end": 1866,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 54,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 269,
"end": 276,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 11
},
"identifierName": "connect"
},
"name": "connect"
},
"static": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "AssignmentPattern",
"start": 277,
"end": 291,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 26
}
},
"left": {
"type": "Identifier",
"start": 277,
"end": 280,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 15
},
"identifierName": "url"
},
"name": "url"
},
"right": {
"type": "MemberExpression",
"start": 283,
"end": 291,
"loc": {
"start": {
"line": 11,
"column": 18
},
"end": {
"line": 11,
"column": 26
}
},
"object": {
"type": "ThisExpression",
"start": 283,
"end": 287,
"loc": {
"start": {
"line": 11,
"column": 18
},
"end": {
"line": 11,
"column": 22
}
}
},
"property": {
"type": "Identifier",
"start": 288,
"end": 291,
"loc": {
"start": {
"line": 11,
"column": 23
},
"end": {
"line": 11,
"column": 26
},
"identifierName": "url"
},
"name": "url"
},
"computed": false
}
},
{
"type": "Identifier",
"start": 293,
"end": 300,
"loc": {
"start": {
"line": 11,
"column": 28
},
"end": {
"line": 11,
"column": 35
},
"identifierName": "options"
},
"name": "options"
}
],
"body": {
"type": "BlockStatement",
"start": 302,
"end": 1866,
"loc": {
"start": {
"line": 11,
"column": 37
},
"end": {
"line": 54,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 312,
"end": 1860,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 53,
"column": 11
}
},
"argument": {
"type": "NewExpression",
"start": 319,
"end": 1859,
"loc": {
"start": {
"line": 12,
"column": 15
},
"end": {
"line": 53,
"column": 10
}
},
"callee": {
"type": "Identifier",
"start": 323,
"end": 330,
"loc": {
"start": {
"line": 12,
"column": 19
},
"end": {
"line": 12,
"column": 26
},
"identifierName": "Promise"
},
"name": "Promise"
},
"arguments": [
{
"type": "ArrowFunctionExpression",
"start": 331,
"end": 1858,
"loc": {
"start": {
"line": 12,
"column": 27
},
"end": {
"line": 53,
"column": 9
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 332,
"end": 339,
"loc": {
"start": {
"line": 12,
"column": 28
},
"end": {
"line": 12,
"column": 35
},
"identifierName": "resolve"
},
"name": "resolve"
},
{
"type": "Identifier",
"start": 341,
"end": 347,
"loc": {
"start": {
"line": 12,
"column": 37
},
"end": {
"line": 12,
"column": 43
},
"identifierName": "reject"
},
"name": "reject"
}
],
"body": {
"type": "BlockStatement",
"start": 352,
"end": 1858,
"loc": {
"start": {
"line": 12,
"column": 48
},
"end": {
"line": 53,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 366,
"end": 381,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 27
}
},
"expression": {
"type": "AssignmentExpression",
"start": 366,
"end": 380,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 26
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 366,
"end": 374,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 366,
"end": 370,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 371,
"end": 374,
"loc": {
"start": {
"line": 13,
"column": 17
},
"end": {
"line": 13,
"column": 20
},
"identifierName": "url"
},
"name": "url"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 377,
"end": 380,
"loc": {
"start": {
"line": 13,
"column": 23
},
"end": {
"line": 13,
"column": 26
},
"identifierName": "url"
},
"name": "url"
}
}
},
{
"type": "ExpressionStatement",
"start": 394,
"end": 416,
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 34
}
},
"expression": {
"type": "AssignmentExpression",
"start": 394,
"end": 415,
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 33
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 394,
"end": 405,
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 23
}
},
"object": {
"type": "ThisExpression",
"start": 394,
"end": 398,
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 399,
"end": 405,
"loc": {
"start": {
"line": 14,
"column": 17
},
"end": {
"line": 14,
"column": 23
},
"identifierName": "socket"
},
"name": "socket"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 408,
"end": 415,
"loc": {
"start": {
"line": 14,
"column": 26
},
"end": {
"line": 14,
"column": 33
}
},
"callee": {
"type": "Identifier",
"start": 408,
"end": 410,
"loc": {
"start": {
"line": 14,
"column": 26
},
"end": {
"line": 14,
"column": 28
},
"identifierName": "io"
},
"name": "io"
},
"arguments": [
{
"type": "Identifier",
"start": 411,
"end": 414,
"loc": {
"start": {
"line": 14,
"column": 29
},
"end": {
"line": 14,
"column": 32
},
"identifierName": "url"
},
"name": "url"
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 429,
"end": 797,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 23,
"column": 15
}
},
"expression": {
"type": "CallExpression",
"start": 429,
"end": 796,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 23,
"column": 14
}
},
"callee": {
"type": "MemberExpression",
"start": 429,
"end": 445,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 429,
"end": 440,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 23
}
},
"object": {
"type": "ThisExpression",
"start": 429,
"end": 433,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 434,
"end": 440,
"loc": {
"start": {
"line": 15,
"column": 17
},
"end": {
"line": 15,
"column": 23
},
"identifierName": "socket"
},
"name": "socket"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 441,
"end": 445,
"loc": {
"start": {
"line": 15,
"column": 24
},
"end": {
"line": 15,
"column": 28
},
"identifierName": "once"
},
"name": "once"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 446,
"end": 455,
"loc": {
"start": {
"line": 15,
"column": 29
},
"end": {
"line": 15,
"column": 38
}
},
"extra": {
"rawValue": "connect",
"raw": "\"connect\""
},
"value": "connect"
},
{
"type": "ArrowFunctionExpression",
"start": 457,
"end": 795,
"loc": {
"start": {
"line": 15,
"column": 40
},
"end": {
"line": 23,
"column": 13
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 463,
"end": 795,
"loc": {
"start": {
"line": 15,
"column": 46
},
"end": {
"line": 23,
"column": 13
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 481,
"end": 714,
"loc": {
"start": {
"line": 16,
"column": 16
},
"end": {
"line": 21,
"column": 19
}
},
"expression": {
"type": "CallExpression",
"start": 481,
"end": 713,
"loc": {
"start": {
"line": 16,
"column": 16
},
"end": {
"line": 21,
"column": 18
}
},
"callee": {
"type": "MemberExpression",
"start": 481,
"end": 497,
"loc": {
"start": {
"line": 16,
"column": 16
},
"end": {
"line": 16,
"column": 32
}
},
"object": {
"type": "MemberExpression",
"start": 481,
"end": 492,
"loc": {
"start": {
"line": 16,
"column": 16
},
"end": {
"line": 16,
"column": 27
}
},
"object": {
"type": "ThisExpression",
"start": 481,
"end": 485,
"loc": {
"start": {
"line": 16,
"column": 16
},
"end": {
"line": 16,
"column": 20
}
}
},
"property": {
"type": "Identifier",
"start": 486,
"end": 492,
"loc": {
"start": {
"line": 16,
"column": 21
},
"end": {
"line": 16,
"column": 27
},
"identifierName": "socket"
},
"name": "socket"
},
"computed": false
},