awv3
Version:
⚡ AWV3 embedded CAD
1,286 lines • 981 kB
JSON
{
"type": "File",
"start": 0,
"end": 4010,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 117,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 4010,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 117,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ExportDefaultDeclaration",
"start": 0,
"end": 4009,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 116,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 15,
"end": 4009,
"loc": {
"start": {
"line": 1,
"column": 15
},
"end": {
"line": 116,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 21,
"end": 26,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 26
},
"identifierName": "Stats"
},
"name": "Stats"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 27,
"end": 4009,
"loc": {
"start": {
"line": 1,
"column": 27
},
"end": {
"line": 116,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 33,
"end": 1282,
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 35,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 33,
"end": 44,
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 47,
"end": 1282,
"loc": {
"start": {
"line": 2,
"column": 18
},
"end": {
"line": 35,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 58,
"end": 72,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 22
}
},
"expression": {
"type": "AssignmentExpression",
"start": 58,
"end": 71,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 21
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 58,
"end": 67,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 58,
"end": 62,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 63,
"end": 67,
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 17
},
"identifierName": "mode"
},
"name": "mode"
},
"computed": false
},
"right": {
"type": "NumericLiteral",
"start": 70,
"end": 71,
"loc": {
"start": {
"line": 4,
"column": 20
},
"end": {
"line": 4,
"column": 21
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
},
{
"type": "ExpressionStatement",
"start": 81,
"end": 128,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 55
}
},
"expression": {
"type": "AssignmentExpression",
"start": 81,
"end": 127,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 54
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 81,
"end": 95,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 81,
"end": 85,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 86,
"end": 95,
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 22
},
"identifierName": "beginTime"
},
"name": "beginTime"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 98,
"end": 127,
"loc": {
"start": {
"line": 5,
"column": 25
},
"end": {
"line": 5,
"column": 54
}
},
"callee": {
"type": "MemberExpression",
"start": 98,
"end": 125,
"loc": {
"start": {
"line": 5,
"column": 25
},
"end": {
"line": 5,
"column": 52
}
},
"object": {
"type": "LogicalExpression",
"start": 100,
"end": 119,
"loc": {
"start": {
"line": 5,
"column": 27
},
"end": {
"line": 5,
"column": 46
}
},
"left": {
"type": "Identifier",
"start": 100,
"end": 111,
"loc": {
"start": {
"line": 5,
"column": 27
},
"end": {
"line": 5,
"column": 38
},
"identifierName": "performance"
},
"name": "performance"
},
"operator": "||",
"right": {
"type": "Identifier",
"start": 115,
"end": 119,
"loc": {
"start": {
"line": 5,
"column": 42
},
"end": {
"line": 5,
"column": 46
},
"identifierName": "Date"
},
"name": "Date"
},
"extra": {
"parenthesized": true,
"parenStart": 98
}
},
"property": {
"type": "Identifier",
"start": 122,
"end": 125,
"loc": {
"start": {
"line": 5,
"column": 49
},
"end": {
"line": 5,
"column": 52
},
"identifierName": "now"
},
"name": "now"
},
"computed": false
},
"arguments": []
}
}
},
{
"type": "ExpressionStatement",
"start": 137,
"end": 168,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 39
}
},
"expression": {
"type": "AssignmentExpression",
"start": 137,
"end": 167,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 38
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 137,
"end": 150,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 137,
"end": 141,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 142,
"end": 150,
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 21
},
"identifierName": "prevTime"
},
"name": "prevTime"
},
"computed": false
},
"right": {
"type": "MemberExpression",
"start": 153,
"end": 167,
"loc": {
"start": {
"line": 6,
"column": 24
},
"end": {
"line": 6,
"column": 38
}
},
"object": {
"type": "ThisExpression",
"start": 153,
"end": 157,
"loc": {
"start": {
"line": 6,
"column": 24
},
"end": {
"line": 6,
"column": 28
}
}
},
"property": {
"type": "Identifier",
"start": 158,
"end": 167,
"loc": {
"start": {
"line": 6,
"column": 29
},
"end": {
"line": 6,
"column": 38
},
"identifierName": "beginTime"
},
"name": "beginTime"
},
"computed": false
}
}
},
{
"type": "ExpressionStatement",
"start": 177,
"end": 193,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 24
}
},
"expression": {
"type": "AssignmentExpression",
"start": 177,
"end": 192,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 23
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 177,
"end": 188,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 19
}
},
"object": {
"type": "ThisExpression",
"start": 177,
"end": 181,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 182,
"end": 188,
"loc": {
"start": {
"line": 7,
"column": 13
},
"end": {
"line": 7,
"column": 19
},
"identifierName": "frames"
},
"name": "frames"
},
"computed": false
},
"right": {
"type": "NumericLiteral",
"start": 191,
"end": 192,
"loc": {
"start": {
"line": 7,
"column": 22
},
"end": {
"line": 7,
"column": 23
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
},
{
"type": "ExpressionStatement",
"start": 202,
"end": 245,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 51
}
},
"expression": {
"type": "AssignmentExpression",
"start": 202,
"end": 244,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 50
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 202,
"end": 210,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 16
}
},
"object": {
"type": "ThisExpression",
"start": 202,
"end": 206,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 207,
"end": 210,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 16
},
"identifierName": "dom"
},
"name": "dom"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 213,
"end": 244,
"loc": {
"start": {
"line": 8,
"column": 19
},
"end": {
"line": 8,
"column": 50
}
},
"callee": {
"type": "MemberExpression",
"start": 213,
"end": 235,
"loc": {
"start": {
"line": 8,
"column": 19
},
"end": {
"line": 8,
"column": 41
}
},
"object": {
"type": "Identifier",
"start": 213,
"end": 221,
"loc": {
"start": {
"line": 8,
"column": 19
},
"end": {
"line": 8,
"column": 27
},
"identifierName": "document"
},
"name": "document"
},
"property": {
"type": "Identifier",
"start": 222,
"end": 235,
"loc": {
"start": {
"line": 8,
"column": 28
},
"end": {
"line": 8,
"column": 41
},
"identifierName": "createElement"
},
"name": "createElement"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 237,
"end": 242,
"loc": {
"start": {
"line": 8,
"column": 43
},
"end": {
"line": 8,
"column": 48
}
},
"extra": {
"rawValue": "div",
"raw": "'div'"
},
"value": "div"
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 254,
"end": 390,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 144
}
},
"expression": {
"type": "AssignmentExpression",
"start": 254,
"end": 389,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 143
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 254,
"end": 276,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 30
}
},
"object": {
"type": "MemberExpression",
"start": 254,
"end": 268,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 22
}
},
"object": {
"type": "MemberExpression",
"start": 254,
"end": 262,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 16
}
},
"object": {
"type": "ThisExpression",
"start": 254,
"end": 258,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 259,
"end": 262,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 16
},
"identifierName": "dom"
},
"name": "dom"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 263,
"end": 268,
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 9,
"column": 22
},
"identifierName": "style"
},
"name": "style"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 269,
"end": 276,
"loc": {
"start": {
"line": 9,
"column": 23
},
"end": {
"line": 9,
"column": 30
},
"identifierName": "cssText"
},
"name": "cssText"
},
"computed": false
},
"right": {
"type": "StringLiteral",
"start": 279,
"end": 389,
"loc": {
"start": {
"line": 9,
"column": 33
},
"end": {
"line": 9,
"column": 143
}
},
"extra": {
"rawValue": "position:absolute;top:10px;left:10px;cursor:pointer;opacity:0.9;z-index:10000;transform: translate3d(0,0,0);",
"raw": "'position:absolute;top:10px;left:10px;cursor:pointer;opacity:0.9;z-index:10000;transform: translate3d(0,0,0);'"
},
"value": "position:absolute;top:10px;left:10px;cursor:pointer;opacity:0.9;z-index:10000;transform: translate3d(0,0,0);"
}
}
},
{
"type": "ExpressionStatement",
"start": 399,
"end": 538,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 13,
"column": 10
}
},
"expression": {
"type": "AssignmentExpression",
"start": 399,
"end": 537,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 13,
"column": 9
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 399,
"end": 412,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 399,
"end": 403,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 404,
"end": 412,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 21
},
"identifierName": "callback"
},
"name": "callback"
},
"computed": false
},
"right": {
"type": "ArrowFunctionExpression",
"start": 415,
"end": 537,
"loc": {
"start": {
"line": 10,
"column": 24
},
"end": {
"line": 13,
"column": 9
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 415,
"end": 420,
"loc": {
"start": {
"line": 10,
"column": 24
},
"end": {
"line": 10,
"column": 29
},
"identifierName": "event"
},
"name": "event"
}
],
"body": {
"type": "BlockStatement",
"start": 424,
"end": 537,
"loc": {
"start": {
"line": 10,
"column": 33
},
"end": {
"line": 13,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 438,
"end": 461,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 35
}
},
"expression": {
"type": "CallExpression",
"start": 438,
"end": 460,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 438,
"end": 458,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 438,
"end": 443,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 17
},
"identifierName": "event"
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 444,
"end": 458,
"loc": {
"start": {
"line": 11,
"column": 18
},
"end": {
"line": 11,
"column": 32
},
"identifierName": "preventDefault"
},
"name": "preventDefault"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 474,
"end": 527,
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 65
}
},
"expression": {
"type": "CallExpression",
"start": 474,
"end": 526,
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 64
}
},
"callee": {
"type": "Identifier",
"start": 474,
"end": 483,
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 21
},
"identifierName": "showPanel"
},
"name": "showPanel"
},
"arguments": [
{
"type": "BinaryExpression",
"start": 485,
"end": 524,
"loc": {
"start": {
"line": 12,
"column": 23
},
"end": {
"line": 12,
"column": 62
}
},
"left": {
"type": "UpdateExpression",
"start": 485,
"end": 497,
"loc": {
"start": {
"line": 12,
"column": 23
},
"end": {
"line": 12,
"column": 35
}
},
"operator": "++",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 488,
"end": 497,
"loc": {
"start": {
"line": 12,
"column": 26
},
"end": {
"line": 12,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"