awv3
Version:
AWV client CAD framework
1,519 lines • 968 kB
JSON
{
"type": "Program",
"start": 0,
"end": 8496,
"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": 43,
"end": 104,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 61
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 52,
"end": 65,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 22
}
},
"imported": {
"type": "Identifier",
"start": 52,
"end": 65,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 22
}
},
"name": "createContext"
},
"local": {
"type": "Identifier",
"start": 52,
"end": 65,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 22
}
},
"name": "createContext"
}
},
{
"type": "ImportSpecifier",
"start": 67,
"end": 79,
"loc": {
"start": {
"line": 2,
"column": 24
},
"end": {
"line": 2,
"column": 36
}
},
"imported": {
"type": "Identifier",
"start": 67,
"end": 79,
"loc": {
"start": {
"line": 2,
"column": 24
},
"end": {
"line": 2,
"column": 36
}
},
"name": "handleResult"
},
"local": {
"type": "Identifier",
"start": 67,
"end": 79,
"loc": {
"start": {
"line": 2,
"column": 24
},
"end": {
"line": 2,
"column": 36
}
},
"name": "handleResult"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 87,
"end": 103,
"loc": {
"start": {
"line": 2,
"column": 44
},
"end": {
"line": 2,
"column": 60
}
},
"value": "../core/parser",
"rawValue": "../core/parser",
"raw": "'../core/parser'"
}
},
{
"type": "ImportDeclaration",
"start": 106,
"end": 142,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 36
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 113,
"end": 119,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 113,
"end": 119,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 13
}
},
"name": "Parser"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 125,
"end": 141,
"loc": {
"start": {
"line": 3,
"column": 19
},
"end": {
"line": 3,
"column": 35
}
},
"value": "../core/parser",
"rawValue": "../core/parser",
"raw": "'../core/parser'"
}
},
{
"type": "ExportDefaultDeclaration",
"start": 146,
"end": 7711,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 224,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 161,
"end": 7711,
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 224,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 167,
"end": 174,
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 28
}
},
"name": "SignalR"
},
"superClass": {
"type": "Identifier",
"start": 183,
"end": 187,
"loc": {
"start": {
"line": 5,
"column": 37
},
"end": {
"line": 5,
"column": 41
}
},
"name": "Base"
},
"body": {
"type": "ClassBody",
"start": 188,
"end": 7711,
"loc": {
"start": {
"line": 5,
"column": 42
},
"end": {
"line": 224,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 195,
"end": 3300,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 96,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 195,
"end": 206,
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 15
}
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"value": {
"type": "FunctionExpression",
"start": 206,
"end": 3300,
"loc": {
"start": {
"line": 6,
"column": 15
},
"end": {
"line": 96,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "AssignmentPattern",
"start": 207,
"end": 219,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 28
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 207,
"end": 214,
"loc": {
"start": {
"line": 6,
"column": 16
},
"end": {
"line": 6,
"column": 23
}
},
"name": "options"
},
"right": {
"type": "ObjectExpression",
"start": 217,
"end": 219,
"loc": {
"start": {
"line": 6,
"column": 26
},
"end": {
"line": 6,
"column": 28
}
},
"properties": []
}
}
],
"body": {
"type": "BlockStatement",
"start": 221,
"end": 3300,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 96,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 232,
"end": 247,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 23
}
},
"expression": {
"type": "CallExpression",
"start": 232,
"end": 246,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 22
}
},
"callee": {
"type": "Super",
"start": 232,
"end": 237,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"start": 238,
"end": 245,
"loc": {
"start": {
"line": 7,
"column": 14
},
"end": {
"line": 7,
"column": 21
}
},
"name": "options"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 259,
"end": 293,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 42
}
},
"expression": {
"type": "AssignmentExpression",
"start": 259,
"end": 292,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 41
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 259,
"end": 268,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 259,
"end": 263,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 264,
"end": 268,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 17
}
},
"name": "ping"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 271,
"end": 292,
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 41
}
},
"left": {
"type": "MemberExpression",
"start": 271,
"end": 283,
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 271,
"end": 278,
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 27
}
},
"name": "options"
},
"property": {
"type": "Identifier",
"start": 279,
"end": 283,
"loc": {
"start": {
"line": 9,
"column": 28
},
"end": {
"line": 9,
"column": 32
}
},
"name": "ping"
},
"computed": false
},
"operator": "||",
"right": {
"type": "Literal",
"start": 287,
"end": 292,
"loc": {
"start": {
"line": 9,
"column": 36
},
"end": {
"line": 9,
"column": 41
}
},
"value": 10000,
"rawValue": 10000,
"raw": "10000"
}
}
}
},
{
"type": "ExpressionStatement",
"start": 303,
"end": 328,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 33
}
},
"expression": {
"type": "AssignmentExpression",
"start": 303,
"end": 327,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 32
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 303,
"end": 315,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 303,
"end": 307,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 308,
"end": 315,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 20
}
},
"name": "onPause"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 318,
"end": 327,
"loc": {
"start": {
"line": 10,
"column": 23
},
"end": {
"line": 10,
"column": 32
}
},
"name": "undefined"
}
}
},
{
"type": "ExpressionStatement",
"start": 338,
"end": 364,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 34
}
},
"expression": {
"type": "AssignmentExpression",
"start": 338,
"end": 363,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 33
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 338,
"end": 351,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 338,
"end": 342,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 343,
"end": 351,
"loc": {
"start": {
"line": 11,
"column": 13
},
"end": {
"line": 11,
"column": 21
}
},
"name": "onResume"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 354,
"end": 363,
"loc": {
"start": {
"line": 11,
"column": 24
},
"end": {
"line": 11,
"column": 33
}
},
"name": "undefined"
}
}
},
{
"type": "ExpressionStatement",
"start": 376,
"end": 393,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 25
}
},
"expression": {
"type": "MemberExpression",
"start": 376,
"end": 392,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 376,
"end": 380,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 381,
"end": 392,
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 24
}
},
"name": "_connection"
},
"computed": false
}
},
{
"type": "ExpressionStatement",
"start": 403,
"end": 419,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 24
}
},
"expression": {
"type": "MemberExpression",
"start": 403,
"end": 418,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 23
}
},
"object": {
"type": "ThisExpression",
"start": 403,
"end": 407,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 408,
"end": 418,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 23
}
},
"name": "_heartbeat"
},
"computed": false
}
},
{
"type": "ExpressionStatement",
"start": 429,
"end": 443,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 22
}
},
"expression": {
"type": "MemberExpression",
"start": 429,
"end": 442,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 429,
"end": 433,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 434,
"end": 442,
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 21
}
},
"name": "_timeout"
},
"computed": false
}
},
{
"type": "ExpressionStatement",
"start": 453,
"end": 470,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 25
}
},
"expression": {
"type": "MemberExpression",
"start": 453,
"end": 469,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 453,
"end": 457,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 458,
"end": 469,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 24
}
},
"name": "_queueBlock"
},
"computed": false
}
},
{
"type": "ExpressionStatement",
"start": 480,
"end": 501,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 29
}
},
"expression": {
"type": "MemberExpression",
"start": 480,
"end": 500,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 28
}
},
"object": {
"type": "ThisExpression",
"start": 480,
"end": 484,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 485,
"end": 500,
"loc": {
"start": {
"line": 17,
"column": 13
},
"end": {
"line": 17,
"column": 28
}
},
"name": "_currentResolve"
},
"computed": false
}
},
{
"type": "ExpressionStatement",
"start": 511,
"end": 531,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 28
}
},
"expression": {
"type": "MemberExpression",
"start": 511,
"end": 530,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 27
}
},
"object": {
"type": "ThisExpression",
"start": 511,
"end": 515,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 516,
"end": 530,
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 27
}
},
"name": "_currentReject"
},
"computed": false
}
},
{
"type": "ExpressionStatement",
"start": 541,
"end": 558,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 541,
"end": 557,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 24
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 541,
"end": 552,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 19
}
},
"object": {
"type": "ThisExpression",
"start": 541,
"end": 545,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 546,
"end": 552,
"loc": {
"start": {
"line": 19,
"column": 13
},
"end": {
"line": 19,
"column": 19
}
},
"name": "_queue"
},
"computed": false
},
"right": {
"type": "ArrayExpression",
"start": 555,
"end": 557,
"loc": {
"start": {
"line": 19,
"column": 22
},
"end": {
"line": 19,
"column": 24
}
},
"elements": []
}
}
},
{
"type": "ExpressionStatement",
"start": 568,
"end": 603,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 43
}
},
"expression": {
"type": "AssignmentExpression",
"start": 568,
"end": 602,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 42
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 568,
"end": 582,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 568,
"end": 572,
"loc": {
"start": {
"line": 20,
"column": 8
},
"end": {
"line": 20,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 573,
"end": 582,
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 22
}
},
"name": "_sequence"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 585,
"end": 602,
"loc": {
"start": {
"line": 20,
"column": 25
},
"end": {
"line": 20,
"column": 42
}
},
"callee": {
"type": "MemberExpression",
"start": 585,
"end": 600,
"loc": {
"start": {
"line": 20,
"column": 25
},
"end": {
"line": 20,
"column": 40
}
},
"object": {
"type": "Identifier",
"start": 585,
"end": 592,
"loc": {
"start": {
"line": 20,
"column": 25
},
"end": {
"line": 20,
"column": 32
}
},
"name": "Promise"
},
"property": {
"type": "Identifier",
"start": 593,
"end": 600,
"loc": {
"start": {
"line": 20,
"column": 33
},
"end": {
"line": 20,
"column": 40
}
},
"name": "resolve"
},
"computed": false
},
"arguments": []
}
}
},
{
"type": "ExpressionStatement",
"start": 613,
"end": 634,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 29
}
},
"expression": {
"type": "AssignmentExpression",
"start": 613,
"end": 633,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 28
}
},
"op