awv3
Version:
AWV client CAD framework
1,285 lines (1,284 loc) • 507 kB
JSON
{
"type": "Program",
"start": 0,
"end": 4126,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 117,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ExportDefaultDeclaration",
"start": 0,
"end": 4124,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 116,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 15,
"end": 4124,
"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
}
},
"name": "Stats"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 27,
"end": 4124,
"loc": {
"start": {
"line": 1,
"column": 27
},
"end": {
"line": 116,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 34,
"end": 1316,
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 35,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 34,
"end": 45,
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 15
}
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"value": {
"type": "FunctionExpression",
"start": 45,
"end": 1316,
"loc": {
"start": {
"line": 2,
"column": 15
},
"end": {
"line": 35,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 48,
"end": 1316,
"loc": {
"start": {
"line": 2,
"column": 18
},
"end": {
"line": 35,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 61,
"end": 75,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 22
}
},
"expression": {
"type": "AssignmentExpression",
"start": 61,
"end": 74,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 21
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 61,
"end": 70,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 61,
"end": 65,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 66,
"end": 70,
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 17
}
},
"name": "mode"
},
"computed": false
},
"right": {
"type": "Literal",
"start": 73,
"end": 74,
"loc": {
"start": {
"line": 4,
"column": 20
},
"end": {
"line": 4,
"column": 21
}
},
"value": 0,
"rawValue": 0,
"raw": "0"
}
}
},
{
"type": "ExpressionStatement",
"start": 85,
"end": 132,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 55
}
},
"expression": {
"type": "AssignmentExpression",
"start": 85,
"end": 131,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 54
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 85,
"end": 99,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 85,
"end": 89,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 90,
"end": 99,
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 22
}
},
"name": "beginTime"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 102,
"end": 131,
"loc": {
"start": {
"line": 5,
"column": 25
},
"end": {
"line": 5,
"column": 54
}
},
"callee": {
"type": "MemberExpression",
"start": 102,
"end": 129,
"loc": {
"start": {
"line": 5,
"column": 25
},
"end": {
"line": 5,
"column": 52
}
},
"object": {
"type": "LogicalExpression",
"start": 104,
"end": 123,
"loc": {
"start": {
"line": 5,
"column": 27
},
"end": {
"line": 5,
"column": 46
}
},
"left": {
"type": "Identifier",
"start": 104,
"end": 115,
"loc": {
"start": {
"line": 5,
"column": 27
},
"end": {
"line": 5,
"column": 38
}
},
"name": "performance"
},
"operator": "||",
"right": {
"type": "Identifier",
"start": 119,
"end": 123,
"loc": {
"start": {
"line": 5,
"column": 42
},
"end": {
"line": 5,
"column": 46
}
},
"name": "Date"
},
"parenthesizedExpression": true
},
"property": {
"type": "Identifier",
"start": 126,
"end": 129,
"loc": {
"start": {
"line": 5,
"column": 49
},
"end": {
"line": 5,
"column": 52
}
},
"name": "now"
},
"computed": false
},
"arguments": []
}
}
},
{
"type": "ExpressionStatement",
"start": 142,
"end": 173,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 39
}
},
"expression": {
"type": "AssignmentExpression",
"start": 142,
"end": 172,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 38
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 142,
"end": 155,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 142,
"end": 146,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 147,
"end": 155,
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 21
}
},
"name": "prevTime"
},
"computed": false
},
"right": {
"type": "MemberExpression",
"start": 158,
"end": 172,
"loc": {
"start": {
"line": 6,
"column": 24
},
"end": {
"line": 6,
"column": 38
}
},
"object": {
"type": "ThisExpression",
"start": 158,
"end": 162,
"loc": {
"start": {
"line": 6,
"column": 24
},
"end": {
"line": 6,
"column": 28
}
}
},
"property": {
"type": "Identifier",
"start": 163,
"end": 172,
"loc": {
"start": {
"line": 6,
"column": 29
},
"end": {
"line": 6,
"column": 38
}
},
"name": "beginTime"
},
"computed": false
}
}
},
{
"type": "ExpressionStatement",
"start": 183,
"end": 199,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 24
}
},
"expression": {
"type": "AssignmentExpression",
"start": 183,
"end": 198,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 23
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 183,
"end": 194,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 19
}
},
"object": {
"type": "ThisExpression",
"start": 183,
"end": 187,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 188,
"end": 194,
"loc": {
"start": {
"line": 7,
"column": 13
},
"end": {
"line": 7,
"column": 19
}
},
"name": "frames"
},
"computed": false
},
"right": {
"type": "Literal",
"start": 197,
"end": 198,
"loc": {
"start": {
"line": 7,
"column": 22
},
"end": {
"line": 7,
"column": 23
}
},
"value": 0,
"rawValue": 0,
"raw": "0"
}
}
},
{
"type": "ExpressionStatement",
"start": 209,
"end": 252,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 51
}
},
"expression": {
"type": "AssignmentExpression",
"start": 209,
"end": 251,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 50
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 209,
"end": 217,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 16
}
},
"object": {
"type": "ThisExpression",
"start": 209,
"end": 213,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 214,
"end": 217,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 16
}
},
"name": "dom"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 220,
"end": 251,
"loc": {
"start": {
"line": 8,
"column": 19
},
"end": {
"line": 8,
"column": 50
}
},
"callee": {
"type": "MemberExpression",
"start": 220,
"end": 242,
"loc": {
"start": {
"line": 8,
"column": 19
},
"end": {
"line": 8,
"column": 41
}
},
"object": {
"type": "Identifier",
"start": 220,
"end": 228,
"loc": {
"start": {
"line": 8,
"column": 19
},
"end": {
"line": 8,
"column": 27
}
},
"name": "document"
},
"property": {
"type": "Identifier",
"start": 229,
"end": 242,
"loc": {
"start": {
"line": 8,
"column": 28
},
"end": {
"line": 8,
"column": 41
}
},
"name": "createElement"
},
"computed": false
},
"arguments": [
{
"type": "Literal",
"start": 244,
"end": 249,
"loc": {
"start": {
"line": 8,
"column": 43
},
"end": {
"line": 8,
"column": 48
}
},
"value": "div",
"rawValue": "div",
"raw": "'div'"
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 262,
"end": 398,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 144
}
},
"expression": {
"type": "AssignmentExpression",
"start": 262,
"end": 397,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 143
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 262,
"end": 284,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 30
}
},
"object": {
"type": "MemberExpression",
"start": 262,
"end": 276,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 22
}
},
"object": {
"type": "MemberExpression",
"start": 262,
"end": 270,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 16
}
},
"object": {
"type": "ThisExpression",
"start": 262,
"end": 266,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 267,
"end": 270,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 16
}
},
"name": "dom"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 271,
"end": 276,
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 9,
"column": 22
}
},
"name": "style"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 277,
"end": 284,
"loc": {
"start": {
"line": 9,
"column": 23
},
"end": {
"line": 9,
"column": 30
}
},
"name": "cssText"
},
"computed": false
},
"right": {
"type": "Literal",
"start": 287,
"end": 397,
"loc": {
"start": {
"line": 9,
"column": 33
},
"end": {
"line": 9,
"column": 143
}
},
"value": "position:absolute;top:10px;left:10px;cursor:pointer;opacity:0.9;z-index:10000;transform: translate3d(0,0,0);",
"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);'"
}
}
},
{
"type": "ExpressionStatement",
"start": 408,
"end": 550,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 13,
"column": 10
}
},
"expression": {
"type": "AssignmentExpression",
"start": 408,
"end": 549,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 13,
"column": 9
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 408,
"end": 421,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 408,
"end": 412,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 413,
"end": 421,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 21
}
},
"name": "callback"
},
"computed": false
},
"right": {
"type": "ArrowFunctionExpression",
"start": 424,
"end": 549,
"loc": {
"start": {
"line": 10,
"column": 24
},
"end": {
"line": 13,
"column": 9
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 424,
"end": 429,
"loc": {
"start": {
"line": 10,
"column": 24
},
"end": {
"line": 10,
"column": 29
}
},
"name": "event"
}
],
"body": {
"type": "BlockStatement",
"start": 433,
"end": 549,
"loc": {
"start": {
"line": 10,
"column": 33
},
"end": {
"line": 13,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 448,
"end": 471,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 35
}
},
"expression": {
"type": "CallExpression",
"start": 448,
"end": 470,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 34
}
},
"callee": {
"type": "MemberExpression",
"start": 448,
"end": 468,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 32
}
},
"object": {
"type": "Identifier",
"start": 448,
"end": 453,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 17
}
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 454,
"end": 468,
"loc": {
"start": {
"line": 11,
"column": 18
},
"end": {
"line": 11,
"column": 32
}
},
"name": "preventDefault"
},
"computed": false
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 485,
"end": 538,
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 65
}
},
"expression": {
"type": "CallExpression",
"start": 485,
"end": 537,
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 64
}
},
"callee": {
"type": "Identifier",
"start": 485,
"end": 494,
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 21
}
},
"name": "showPanel"
},
"arguments": [
{
"type": "BinaryExpression",
"start": 496,
"end": 535,
"loc": {
"start": {
"line": 12,
"column": 23
},
"end": {
"line": 12,
"column": 62
}
},
"left": {
"type": "UpdateExpression",
"start": 496,
"end": 508,
"loc": {
"start": {
"line": 12,
"column": 23
},
"end": {
"line": 12,
"column": 35
}
},
"operator": "++",
"prefix": true,
"argument": {
"type": "MemberExpression",
"start": 499,
"end": 508,
"loc": {
"start": {
"line": 12,
"column": 26
},
"end": {
"line": 12,
"column": 35
}
},
"object": {
"type": "ThisExpression",
"start": 499,
"end": 503,
"loc": {
"start": {
"line": 12,
"column": 26
},
"end": {
"line": 12,
"column": 30
}
}
},
"property": {
"type": "Identifier",
"start": 504,
"end": 508,
"loc": {
"start": {
"line": 12,
"column": 31
},
"end": {
"line": 12,
"column": 35
}
},
"name": "mode"
},
"computed": false
}