awv3
Version:
AWV client CAD framework
1,519 lines • 968 kB
JSON
{
"type": "Program",
"start": 0,
"end": 8251,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 246,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 41,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 41
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 11,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 11
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 11,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 11
}
},
"name": "Base"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 17,
"end": 40,
"loc": {
"start": {
"line": 1,
"column": 17
},
"end": {
"line": 1,
"column": 40
}
},
"value": "../communication/base",
"rawValue": "../communication/base",
"raw": "'../communication/base'"
}
},
{
"type": "ImportDeclaration",
"start": 42,
"end": 103,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 61
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 51,
"end": 64,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 22
}
},
"imported": {
"type": "Identifier",
"start": 51,
"end": 64,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 22
}
},
"name": "createContext"
},
"local": {
"type": "Identifier",
"start": 51,
"end": 64,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 22
}
},
"name": "createContext"
}
},
{
"type": "ImportSpecifier",
"start": 66,
"end": 78,
"loc": {
"start": {
"line": 2,
"column": 24
},
"end": {
"line": 2,
"column": 36
}
},
"imported": {
"type": "Identifier",
"start": 66,
"end": 78,
"loc": {
"start": {
"line": 2,
"column": 24
},
"end": {
"line": 2,
"column": 36
}
},
"name": "handleResult"
},
"local": {
"type": "Identifier",
"start": 66,
"end": 78,
"loc": {
"start": {
"line": 2,
"column": 24
},
"end": {
"line": 2,
"column": 36
}
},
"name": "handleResult"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 86,
"end": 102,
"loc": {
"start": {
"line": 2,
"column": 44
},
"end": {
"line": 2,
"column": 60
}
},
"value": "../core/parser",
"rawValue": "../core/parser",
"raw": "'../core/parser'"
}
},
{
"type": "ImportDeclaration",
"start": 104,
"end": 140,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 36
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 111,
"end": 117,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 111,
"end": 117,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 13
}
},
"name": "Parser"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 123,
"end": 139,
"loc": {
"start": {
"line": 3,
"column": 19
},
"end": {
"line": 3,
"column": 35
}
},
"value": "../core/parser",
"rawValue": "../core/parser",
"raw": "'../core/parser'"
}
},
{
"type": "ExportDefaultDeclaration",
"start": 142,
"end": 7488,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 224,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 157,
"end": 7488,
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 224,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 163,
"end": 170,
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 28
}
},
"name": "SignalR"
},
"superClass": {
"type": "Identifier",
"start": 179,
"end": 183,
"loc": {
"start": {
"line": 5,
"column": 37
},
"end": {
"line": 5,
"column": 41
}
},
"name": "Base"
},
"body": {
"type": "ClassBody",
"start": 184,
"end": 7488,
"loc": {
"start": {
"line": 5,
"column": 42
},
"end": {
"line": 224,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 190,
"end": 3205,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 96,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 190,
"end": 201,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 15
}
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"value": {
"type": "FunctionExpression",
"start": 201,
"end": 3205,
"loc": {
"start": {
"line": 6,
"column": 15
},
"end": {
"line": 96,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "AssignmentPattern",
"start": 202,
"end": 214,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 28
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 202,
"end": 209,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 23
}
},
"name": "options"
},
"right": {
"type": "ObjectExpression",
"start": 212,
"end": 214,
"loc": {
"start": {
"line": 6,
"column": 26
},
"end": {
"line": 6,
"column": 28
}
},
"properties": []
}
}
],
"body": {
"type": "BlockStatement",
"start": 216,
"end": 3205,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 96,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 226,
"end": 241,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 23
}
},
"expression": {
"type": "CallExpression",
"start": 226,
"end": 240,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 22
}
},
"callee": {
"type": "Super",
"start": 226,
"end": 231,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"start": 232,
"end": 239,
"loc": {
"start": {
"line": 7,
"column": 14
},
"end": {
"line": 7,
"column": 21
}
},
"name": "options"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 251,
"end": 285,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 42
}
},
"expression": {
"type": "AssignmentExpression",
"start": 251,
"end": 284,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 41
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 251,
"end": 260,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 251,
"end": 255,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 256,
"end": 260,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 17
}
},
"name": "ping"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 263,
"end": 284,
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 41
}
},
"left": {
"type": "MemberExpression",
"start": 263,
"end": 275,
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 263,
"end": 270,
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 27
}
},
"name": "options"
},
"property": {
"type": "Identifier",
"start": 271,
"end": 275,
"loc": {
"start": {
"line": 9,
"column": 28
},
"end": {
"line": 9,
"column": 32
}
},
"name": "ping"
},
"computed": false
},
"operator": "||",
"right": {
"type": "Literal",
"start": 279,
"end": 284,
"loc": {
"start": {
"line": 9,
"column": 36
},
"end": {
"line": 9,
"column": 41
}
},
"value": 10000,
"rawValue": 10000,
"raw": "10000"
}
}
}
},
{
"type": "ExpressionStatement",
"start": 294,
"end": 319,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 33
}
},
"expression": {
"type": "AssignmentExpression",
"start": 294,
"end": 318,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 32
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 294,
"end": 306,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 294,
"end": 298,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 299,
"end": 306,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 20
}
},
"name": "onPause"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 309,
"end": 318,
"loc": {
"start": {
"line": 10,
"column": 23
},
"end": {
"line": 10,
"column": 32
}
},
"name": "undefined"
}
}
},
{
"type": "ExpressionStatement",
"start": 328,
"end": 354,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 34
}
},
"expression": {
"type": "AssignmentExpression",
"start": 328,
"end": 353,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 33
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 328,
"end": 341,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 328,
"end": 332,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 333,
"end": 341,
"loc": {
"start": {
"line": 11,
"column": 13
},
"end": {
"line": 11,
"column": 21
}
},
"name": "onResume"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 344,
"end": 353,
"loc": {
"start": {
"line": 11,
"column": 24
},
"end": {
"line": 11,
"column": 33
}
},
"name": "undefined"
}
}
},
{
"type": "ExpressionStatement",
"start": 364,
"end": 381,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 25
}
},
"expression": {
"type": "MemberExpression",
"start": 364,
"end": 380,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 364,
"end": 368,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 369,
"end": 380,
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 24
}
},
"name": "_connection"
},
"computed": false
}
},
{
"type": "ExpressionStatement",
"start": 390,
"end": 406,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 24
}
},
"expression": {
"type": "MemberExpression",
"start": 390,
"end": 405,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 23
}
},
"object": {
"type": "ThisExpression",
"start": 390,
"end": 394,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 395,
"end": 405,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 23
}
},
"name": "_heartbeat"
},
"computed": false
}
},
{
"type": "ExpressionStatement",
"start": 415,
"end": 429,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 22
}
},
"expression": {
"type": "MemberExpression",
"start": 415,
"end": 428,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 415,
"end": 419,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 420,
"end": 428,
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 21
}
},
"name": "_timeout"
},
"computed": false
}
},
{
"type": "ExpressionStatement",
"start": 438,
"end": 455,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 25
}
},
"expression": {
"type": "MemberExpression",
"start": 438,
"end": 454,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 438,
"end": 442,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 443,
"end": 454,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 24
}
},
"name": "_queueBlock"
},
"computed": false
}
},
{
"type": "ExpressionStatement",
"start": 464,
"end": 485,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 29
}
},
"expression": {
"type": "MemberExpression",
"start": 464,
"end": 484,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 28
}
},
"object": {
"type": "ThisExpression",
"start": 464,
"end": 468,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 469,
"end": 484,
"loc": {
"start": {
"line": 17,
"column": 13
},
"end": {
"line": 17,
"column": 28
}
},
"name": "_currentResolve"
},
"computed": false
}
},
{
"type": "ExpressionStatement",
"start": 494,
"end": 514,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 28
}
},
"expression": {
"type": "MemberExpression",
"start": 494,
"end": 513,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 27
}
},
"object": {
"type": "ThisExpression",
"start": 494,
"end": 498,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 499,
"end": 513,
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 27
}
},
"name": "_currentReject"
},
"computed": false
}
},
{
"type": "ExpressionStatement",
"start": 523,
"end": 540,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 523,
"end": 539,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 24
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 523,
"end": 534,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 19
}
},
"object": {
"type": "ThisExpression",
"start": 523,
"end": 527,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 528,
"end": 534,
"loc": {
"start": {
"line": 19,
"column": 13
},
"end": {
"line": 19,
"column": 19
}
},
"name": "_queue"
},
"computed": false
},
"right": {
"type": "ArrayExpression",
"start": 537,
"end": 539,
"loc": {
"start": {
"line": 19,
"column": 22
},
"end": {
"line": 19,
"column": 24
}
},
"elements": []
}
}
},
{
"type": "ExpressionStatement",
"start": 549,
"end": 584,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 43
}
},
"expression": {
"type": "AssignmentExpression",
"start": 549,
"end": 583,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 42
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 549,
"end": 563,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 549,
"end": 553,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 554,
"end": 563,
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 22
}
},
"name": "_sequence"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 566,
"end": 583,
"loc": {
"start": {
"line": 20,
"column": 25
},
"end": {
"line": 20,
"column": 42
}
},
"callee": {
"type": "MemberExpression",
"start": 566,
"end": 581,
"loc": {
"start": {
"line": 20,
"column": 25
},
"end": {
"line": 20,
"column": 40
}
},
"object": {
"type": "Identifier",
"start": 566,
"end": 573,
"loc": {
"start": {
"line": 20,
"column": 25
},
"end": {
"line": 20,
"column": 32
}
},
"name": "Promise"
},
"property": {
"type": "Identifier",
"start": 574,
"end": 581,
"loc": {
"start": {
"line": 20,
"column": 33
},
"end": {
"line": 20,
"column": 40
}
},
"name": "resolve"
},
"computed": false
},
"arguments": []
}
}
},
{
"type": "ExpressionStatement",
"start": 593,
"end": 614,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 29
}
},
"expression": {
"type": "AssignmentExpression",
"start": 593,
"end": 613,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 28
}
},
"op