awv3
Version:
AWV client CAD framework
1,457 lines (1,456 loc) • 276 kB
JSON
{
"type": "Program",
"start": 0,
"end": 3281,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 108,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 36,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 36
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
},
"name": "Events"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 19,
"end": 35,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 35
}
},
"value": "../core/events",
"rawValue": "../core/events",
"raw": "'../core/events'"
}
},
{
"type": "ExportDefaultDeclaration",
"start": 38,
"end": 3010,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 96,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 53,
"end": 3010,
"loc": {
"start": {
"line": 3,
"column": 15
},
"end": {
"line": 96,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 59,
"end": 65,
"loc": {
"start": {
"line": 3,
"column": 21
},
"end": {
"line": 3,
"column": 27
}
},
"name": "Plugin"
},
"superClass": {
"type": "Identifier",
"start": 74,
"end": 80,
"loc": {
"start": {
"line": 3,
"column": 36
},
"end": {
"line": 3,
"column": 42
}
},
"name": "Events"
},
"body": {
"type": "ClassBody",
"start": 81,
"end": 3010,
"loc": {
"start": {
"line": 3,
"column": 43
},
"end": {
"line": 96,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 87,
"end": 306,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 13,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 87,
"end": 98,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 15
}
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"value": {
"type": "FunctionExpression",
"start": 98,
"end": 306,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 13,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "AssignmentPattern",
"start": 99,
"end": 111,
"loc": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 4,
"column": 28
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 99,
"end": 106,
"loc": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 4,
"column": 23
}
},
"name": "options"
},
"right": {
"type": "ObjectExpression",
"start": 109,
"end": 111,
"loc": {
"start": {
"line": 4,
"column": 26
},
"end": {
"line": 4,
"column": 28
}
},
"properties": []
}
}
],
"body": {
"type": "BlockStatement",
"start": 113,
"end": 306,
"loc": {
"start": {
"line": 4,
"column": 30
},
"end": {
"line": 13,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 123,
"end": 131,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 16
}
},
"expression": {
"type": "CallExpression",
"start": 123,
"end": 130,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 15
}
},
"callee": {
"type": "Super",
"start": 123,
"end": 128,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 13
}
}
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 141,
"end": 163,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 30
}
},
"expression": {
"type": "AssignmentExpression",
"start": 141,
"end": 162,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 29
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 141,
"end": 154,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 141,
"end": 145,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 146,
"end": 154,
"loc": {
"start": {
"line": 7,
"column": 13
},
"end": {
"line": 7,
"column": 21
}
},
"name": "_enabled"
},
"computed": false
},
"right": {
"type": "Literal",
"start": 157,
"end": 162,
"loc": {
"start": {
"line": 7,
"column": 24
},
"end": {
"line": 7,
"column": 29
}
},
"value": false,
"rawValue": false,
"raw": "false"
}
}
},
{
"type": "ExpressionStatement",
"start": 172,
"end": 192,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 28
}
},
"expression": {
"type": "AssignmentExpression",
"start": 172,
"end": 191,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 27
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 172,
"end": 184,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 172,
"end": 176,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 177,
"end": 184,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 20
}
},
"name": "_socket"
},
"computed": false
},
"right": {
"type": "Literal",
"start": 187,
"end": 191,
"loc": {
"start": {
"line": 8,
"column": 23
},
"end": {
"line": 8,
"column": 27
}
},
"value": null,
"rawValue": null,
"raw": "null"
}
}
},
{
"type": "ExpressionStatement",
"start": 202,
"end": 217,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 23
}
},
"expression": {
"type": "AssignmentExpression",
"start": 202,
"end": 216,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 22
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 202,
"end": 211,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 202,
"end": 206,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 207,
"end": 211,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 17
}
},
"name": "data"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 214,
"end": 216,
"loc": {
"start": {
"line": 10,
"column": 20
},
"end": {
"line": 10,
"column": 22
}
},
"properties": []
}
}
},
{
"type": "ExpressionStatement",
"start": 226,
"end": 249,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 31
}
},
"expression": {
"type": "AssignmentExpression",
"start": 226,
"end": 248,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 30
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 226,
"end": 238,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 226,
"end": 230,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 231,
"end": 238,
"loc": {
"start": {
"line": 11,
"column": 13
},
"end": {
"line": 11,
"column": 20
}
},
"name": "options"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 241,
"end": 248,
"loc": {
"start": {
"line": 11,
"column": 23
},
"end": {
"line": 11,
"column": 30
}
},
"name": "options"
}
}
},
{
"type": "ExpressionStatement",
"start": 258,
"end": 300,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 50
}
},
"expression": {
"type": "AssignmentExpression",
"start": 258,
"end": 299,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 49
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 258,
"end": 269,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 19
}
},
"object": {
"type": "ThisExpression",
"start": 258,
"end": 262,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 263,
"end": 269,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 19
}
},
"name": "socket"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 272,
"end": 299,
"loc": {
"start": {
"line": 12,
"column": 22
},
"end": {
"line": 12,
"column": 49
}
},
"left": {
"type": "Literal",
"start": 272,
"end": 276,
"loc": {
"start": {
"line": 12,
"column": 22
},
"end": {
"line": 12,
"column": 26
}
},
"value": null,
"rawValue": null,
"raw": "null"
},
"operator": "||",
"right": {
"type": "MemberExpression",
"start": 280,
"end": 299,
"loc": {
"start": {
"line": 12,
"column": 30
},
"end": {
"line": 12,
"column": 49
}
},
"object": {
"type": "MemberExpression",
"start": 280,
"end": 292,
"loc": {
"start": {
"line": 12,
"column": 30
},
"end": {
"line": 12,
"column": 42
}
},
"object": {
"type": "ThisExpression",
"start": 280,
"end": 284,
"loc": {
"start": {
"line": 12,
"column": 30
},
"end": {
"line": 12,
"column": 34
}
}
},
"property": {
"type": "Identifier",
"start": 285,
"end": 292,
"loc": {
"start": {
"line": 12,
"column": 35
},
"end": {
"line": 12,
"column": 42
}
},
"name": "options"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 293,
"end": 299,
"loc": {
"start": {
"line": 12,
"column": 43
},
"end": {
"line": 12,
"column": 49
}
},
"name": "socket"
},
"computed": false
}
}
}
}
],
"trailingComments": null
},
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentLine",
"value": " Toast: removes itself after a ahwile, depends on the application",
"start": 312,
"end": 379,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 71
}
},
"range": [
312,
379
]
}
]
},
{
"type": "MethodDefinition",
"start": 384,
"end": 514,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 19,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 384,
"end": 396,
"loc": {
"start": {
"line": 16,
"column": 4
},
"end": {
"line": 16,
"column": 16
}
},
"name": "requestToast",
"leadingComments": null
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 396,
"end": 514,
"loc": {
"start": {
"line": 16,
"column": 16
},
"end": {
"line": 19,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 397,
"end": 404,
"loc": {
"start": {
"line": 16,
"column": 17
},
"end": {
"line": 16,
"column": 24
}
},
"name": "options"
}
],
"body": {
"type": "BlockStatement",
"start": 406,
"end": 514,
"loc": {
"start": {
"line": 16,
"column": 26
},
"end": {
"line": 19,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 416,
"end": 452,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 44
}
},
"expression": {
"type": "AssignmentExpression",
"start": 416,
"end": 451,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 43
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 416,
"end": 423,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 15
}
},
"name": "options"
},
"right": {
"type": "ObjectExpression",
"start": 426,
"end": 451,
"loc": {
"start": {
"line": 17,
"column": 18
},
"end": {
"line": 17,
"column": 43
}
},
"properties": [
{
"type": "Property",
"start": 428,
"end": 437,
"loc": {
"start": {
"line": 17,
"column": 20
},
"end": {
"line": 17,
"column": 29
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 428,
"end": 433,
"loc": {
"start": {
"line": 17,
"column": 20
},
"end": {
"line": 17,
"column": 25
}
},
"name": "value"
},
"value": {
"type": "Literal",
"start": 435,
"end": 437,
"loc": {
"start": {
"line": 17,
"column": 27
},
"end": {
"line": 17,
"column": 29
}
},
"value": "",
"rawValue": "",
"raw": "''"
},
"kind": "init"
},
{
"type": "SpreadProperty",
"start": 439,
"end": 449,
"loc": {
"start": {
"line": 17,
"column": 31
},
"end": {
"line": 17,
"column": 41
}
},
"argument": {
"type": "Identifier",
"start": 442,
"end": 449,
"loc": {
"start": {
"line": 17,
"column": 34
},
"end": {
"line": 17,
"column": 41
}
},
"name": "options"
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 461,
"end": 508,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 55
}
},
"expression": {
"type": "CallExpression",
"start": 461,
"end": 507,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 54
}
},
"callee": {
"type": "MemberExpression",
"start": 461,
"end": 470,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 461,
"end": 465,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 466,
"end": 470,
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 17
}
},
"name": "emit"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 471,
"end": 497,
"loc": {
"start": {
"line": 18,
"column": 18
},
"end": {
"line": 18,
"column": 44
}
},
"object": {
"type": "MemberExpression",
"start": 471,
"end": 484,
"loc": {
"start": {
"line": 18,
"column": 18
},
"end": {
"line": 18,
"column": 31
}
},
"object": {
"type": "Identifier",
"start": 471,
"end": 477,
"loc": {
"start": {
"line": 18,
"column": 18
},
"end": {
"line": 18,
"column": 24
}
},
"name": "Plugin"
},
"property": {
"type": "Identifier",
"start": 478,
"end": 484,
"loc": {
"start": {
"line": 18,
"column": 25
},
"end": {
"line": 18,
"column": 31
}
},
"name": "Events"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 485,
"end": 497,
"loc": {
"start": {
"line": 18,
"column": 32
},
"end": {
"line": 18,
"column": 44
}
},
"name": "RequestToast"
},
"computed": false
},
{
"type": "Identifier",
"start": 499,
"end": 506,
"loc": {
"start": {
"line": 18,
"column": 46
},
"end": {
"line": 18,
"column": 53
}
},
"name": "options"
}
]
}
}
],
"trailingComments": null
},
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " Toast: removes itself after a ahwile, depends on the application",
"start": 312,
"end": 379,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 15,
"column": 71
}
},
"range": [
312,
379
]
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " Label: resolve to remove",
"start": 520,
"end": 547,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 21,
"column": 31
}
},
"range": [
520,
547
]
}
]
},
{
"type": "MethodDefinition",
"start": 552,
"end": 812,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 28,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 552,
"end": 564,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"column": 16
}
},
"name": "requestLabel",
"leadingComments": null
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 564,
"end": 812,
"loc": {
"start": {
"line": 22,
"column": 16
},
"end": {
"line": 28,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 565,
"end": 572,
"loc": {
"start": {
"line": 22,
"column": 17
},
"end": {
"line": 22,
"column": 24
}
},
"name": "options"
}
],
"body": {
"type": "BlockStatement",
"start": 574,
"end": 812,
"loc": {
"start": {
"line": 22,
"column": 26
},