awv3
Version:
AWV client CAD framework
1,441 lines (1,440 loc) • 269 kB
JSON
{
"type": "Program",
"start": 0,
"end": 2585,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 100,
"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": 2336,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 87,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 53,
"end": 2336,
"loc": {
"start": {
"line": 3,
"column": 15
},
"end": {
"line": 87,
"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": 2336,
"loc": {
"start": {
"line": 3,
"column": 43
},
"end": {
"line": 87,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 87,
"end": 316,
"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": 316,
"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": 316,
"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": 179,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 46
}
},
"expression": {
"type": "AssignmentExpression",
"start": 141,
"end": 178,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 45
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 141,
"end": 150,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 141,
"end": 145,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 146,
"end": 150,
"loc": {
"start": {
"line": 7,
"column": 13
},
"end": {
"line": 7,
"column": 17
}
},
"name": "name"
},
"computed": false
},
"right": {
"type": "LogicalExpression",
"start": 153,
"end": 178,
"loc": {
"start": {
"line": 7,
"column": 20
},
"end": {
"line": 7,
"column": 45
}
},
"left": {
"type": "MemberExpression",
"start": 153,
"end": 165,
"loc": {
"start": {
"line": 7,
"column": 20
},
"end": {
"line": 7,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 153,
"end": 160,
"loc": {
"start": {
"line": 7,
"column": 20
},
"end": {
"line": 7,
"column": 27
}
},
"name": "options"
},
"property": {
"type": "Identifier",
"start": 161,
"end": 165,
"loc": {
"start": {
"line": 7,
"column": 28
},
"end": {
"line": 7,
"column": 32
}
},
"name": "name"
},
"computed": false
},
"operator": "||",
"right": {
"type": "Literal",
"start": 169,
"end": 178,
"loc": {
"start": {
"line": 7,
"column": 36
},
"end": {
"line": 7,
"column": 45
}
},
"value": "Unnamed",
"rawValue": "Unnamed",
"raw": "'Unnamed'"
}
}
}
},
{
"type": "ExpressionStatement",
"start": 188,
"end": 203,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 23
}
},
"expression": {
"type": "AssignmentExpression",
"start": 188,
"end": 202,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 22
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 188,
"end": 197,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 188,
"end": 192,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 193,
"end": 197,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 17
}
},
"name": "data"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 200,
"end": 202,
"loc": {
"start": {
"line": 8,
"column": 20
},
"end": {
"line": 8,
"column": 22
}
},
"properties": []
}
}
},
{
"type": "ExpressionStatement",
"start": 212,
"end": 235,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 31
}
},
"expression": {
"type": "AssignmentExpression",
"start": 212,
"end": 234,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 30
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 212,
"end": 224,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 212,
"end": 216,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 217,
"end": 224,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 20
}
},
"name": "options"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 227,
"end": 234,
"loc": {
"start": {
"line": 9,
"column": 23
},
"end": {
"line": 9,
"column": 30
}
},
"name": "options"
}
}
},
{
"type": "ExpressionStatement",
"start": 244,
"end": 278,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 42
}
},
"expression": {
"type": "AssignmentExpression",
"start": 244,
"end": 277,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 41
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 244,
"end": 255,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 19
}
},
"object": {
"type": "ThisExpression",
"start": 244,
"end": 248,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 249,
"end": 255,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 19
}
},
"name": "socket"
},
"computed": false
},
"right": {
"type": "MemberExpression",
"start": 258,
"end": 277,
"loc": {
"start": {
"line": 10,
"column": 22
},
"end": {
"line": 10,
"column": 41
}
},
"object": {
"type": "MemberExpression",
"start": 258,
"end": 270,
"loc": {
"start": {
"line": 10,
"column": 22
},
"end": {
"line": 10,
"column": 34
}
},
"object": {
"type": "ThisExpression",
"start": 258,
"end": 262,
"loc": {
"start": {
"line": 10,
"column": 22
},
"end": {
"line": 10,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"start": 263,
"end": 270,
"loc": {
"start": {
"line": 10,
"column": 27
},
"end": {
"line": 10,
"column": 34
}
},
"name": "options"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 271,
"end": 277,
"loc": {
"start": {
"line": 10,
"column": 35
},
"end": {
"line": 10,
"column": 41
}
},
"name": "socket"
},
"computed": false
}
}
},
{
"type": "ExpressionStatement",
"start": 288,
"end": 310,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 30
}
},
"expression": {
"type": "AssignmentExpression",
"start": 288,
"end": 309,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 29
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 288,
"end": 301,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 288,
"end": 292,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 293,
"end": 301,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 21
}
},
"name": "_enabled"
},
"computed": false
},
"right": {
"type": "Literal",
"start": 304,
"end": 309,
"loc": {
"start": {
"line": 12,
"column": 24
},
"end": {
"line": 12,
"column": 29
}
},
"value": false,
"rawValue": false,
"raw": "false"
}
}
}
]
}
}
},
{
"type": "MethodDefinition",
"start": 322,
"end": 395,
"loc": {
"start": {
"line": 15,
"column": 4
},
"end": {
"line": 17,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 328,
"end": 335,
"loc": {
"start": {
"line": 15,
"column": 10
},
"end": {
"line": 15,
"column": 17
}
},
"name": "destroy"
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 335,
"end": 395,
"loc": {
"start": {
"line": 15,
"column": 17
},
"end": {
"line": 17,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": true,
"params": [],
"body": {
"type": "BlockStatement",
"start": 338,
"end": 395,
"loc": {
"start": {
"line": 15,
"column": 20
},
"end": {
"line": 17,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 348,
"end": 389,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 49
}
},
"expression": {
"type": "AwaitExpression",
"start": 348,
"end": 388,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 48
}
},
"all": false,
"argument": {
"type": "CallExpression",
"start": 354,
"end": 388,
"loc": {
"start": {
"line": 16,
"column": 14
},
"end": {
"line": 16,
"column": 48
}
},
"callee": {
"type": "MemberExpression",
"start": 354,
"end": 363,
"loc": {
"start": {
"line": 16,
"column": 14
},
"end": {
"line": 16,
"column": 23
}
},
"object": {
"type": "ThisExpression",
"start": 354,
"end": 358,
"loc": {
"start": {
"line": 16,
"column": 14
},
"end": {
"line": 16,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"start": 359,
"end": 363,
"loc": {
"start": {
"line": 16,
"column": 19
},
"end": {
"line": 16,
"column": 23
}
},
"name": "emit"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 364,
"end": 387,
"loc": {
"start": {
"line": 16,
"column": 24
},
"end": {
"line": 16,
"column": 47
}
},
"object": {
"type": "MemberExpression",
"start": 364,
"end": 377,
"loc": {
"start": {
"line": 16,
"column": 24
},
"end": {
"line": 16,
"column": 37
}
},
"object": {
"type": "Identifier",
"start": 364,
"end": 370,
"loc": {
"start": {
"line": 16,
"column": 24
},
"end": {
"line": 16,
"column": 30
}
},
"name": "Plugin"
},
"property": {
"type": "Identifier",
"start": 371,
"end": 377,
"loc": {
"start": {
"line": 16,
"column": 31
},
"end": {
"line": 16,
"column": 37
}
},
"name": "Events"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 378,
"end": 387,
"loc": {
"start": {
"line": 16,
"column": 38
},
"end": {
"line": 16,
"column": 47
}
},
"name": "Destroyed"
},
"computed": false
}
]
}
}
}
],
"trailingComments": null
},
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentLine",
"value": " Toast: removes itself after a ahwile, depends on the application",
"start": 401,
"end": 468,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"column": 71
}
},
"range": [
401,
468
]
}
]
},
{
"type": "MethodDefinition",
"start": 473,
"end": 603,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 23,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 473,
"end": 485,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 16
}
},
"name": "requestToast",
"leadingComments": null
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 485,
"end": 603,
"loc": {
"start": {
"line": 20,
"column": 16
},
"end": {
"line": 23,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 486,
"end": 493,
"loc": {
"start": {
"line": 20,
"column": 17
},
"end": {
"line": 20,
"column": 24
}
},
"name": "options"
}
],
"body": {
"type": "BlockStatement",
"start": 495,
"end": 603,
"loc": {
"start": {
"line": 20,
"column": 26
},
"end": {
"line": 23,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 505,
"end": 541,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 44
}
},
"expression": {
"type": "AssignmentExpression",
"start": 505,
"end": 540,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 43
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 505,
"end": 512,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 15
}
},
"name": "options"
},
"right": {
"type": "ObjectExpression",
"start": 515,
"end": 540,
"loc": {
"start": {
"line": 21,
"column": 18
},
"end": {
"line": 21,
"column": 43
}
},
"properties": [
{
"type": "Property",
"start": 517,
"end": 526,
"loc": {
"start": {
"line": 21,
"column": 20
},
"end": {
"line": 21,
"column": 29
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 517,
"end": 522,
"loc": {
"start": {
"line": 21,
"column": 20
},
"end": {
"line": 21,
"column": 25
}
},
"name": "value"
},
"value": {
"type": "Literal",
"start": 524,
"end": 526,
"loc": {
"start": {
"line": 21,
"column": 27
},
"end": {
"line": 21,
"column": 29
}
},
"value": "",
"rawValue": "",
"raw": "''"
},
"kind": "init"
},
{
"type": "SpreadProperty",
"start": 528,
"end": 538,
"loc": {
"start": {
"line": 21,
"column": 31
},
"end": {
"line": 21,
"column": 41
}
},
"argument": {
"type": "Identifier",
"start": 531,
"end": 538,
"loc": {
"start": {
"line": 21,
"column": 34
},
"end": {
"line": 21,
"column": 41
}
},
"name": "options"
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 550,
"end": 597,
"loc": {
"start": {
"line": 22,
"column": 8
},
"end": {
"line": 22,
"column": 55