awv3
Version:
⚡ AWV3 embedded CAD
1,791 lines (1,790 loc) • 153 kB
JSON
{
"type": "Program",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "Literal",
"value": "use strict",
"raw": "'use strict'",
"range": [
0,
12
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 12
}
}
},
"range": [
0,
13
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 13
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Object",
"range": [
13,
19
],
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"name": "defineProperty",
"range": [
20,
34
],
"loc": {
"start": {
"line": 1,
"column": 20
},
"end": {
"line": 1,
"column": 34
}
}
},
"range": [
13,
34
],
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 34
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "exports",
"range": [
35,
42
],
"loc": {
"start": {
"line": 1,
"column": 35
},
"end": {
"line": 1,
"column": 42
}
}
},
{
"type": "Literal",
"value": "__esModule",
"raw": "'__esModule'",
"range": [
43,
55
],
"loc": {
"start": {
"line": 1,
"column": 43
},
"end": {
"line": 1,
"column": 55
}
}
},
{
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "value",
"range": [
57,
62
],
"loc": {
"start": {
"line": 1,
"column": 57
},
"end": {
"line": 1,
"column": 62
}
}
},
"value": {
"type": "UnaryExpression",
"operator": "!",
"argument": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
64,
65
],
"loc": {
"start": {
"line": 1,
"column": 64
},
"end": {
"line": 1,
"column": 65
}
}
},
"prefix": true,
"range": [
63,
65
],
"loc": {
"start": {
"line": 1,
"column": 63
},
"end": {
"line": 1,
"column": 65
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
57,
65
],
"loc": {
"start": {
"line": 1,
"column": 57
},
"end": {
"line": 1,
"column": 65
}
}
}
],
"range": [
56,
66
],
"loc": {
"start": {
"line": 1,
"column": 56
},
"end": {
"line": 1,
"column": 66
}
}
}
],
"range": [
13,
67
],
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 67
}
}
},
"range": [
13,
68
],
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 68
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "exports",
"range": [
68,
75
],
"loc": {
"start": {
"line": 1,
"column": 68
},
"end": {
"line": 1,
"column": 75
}
}
},
"property": {
"type": "Identifier",
"name": "helpers",
"range": [
76,
83
],
"loc": {
"start": {
"line": 1,
"column": 76
},
"end": {
"line": 1,
"column": 83
}
}
},
"range": [
68,
83
],
"loc": {
"start": {
"line": 1,
"column": 68
},
"end": {
"line": 1,
"column": 83
}
}
},
"right": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "exports",
"range": [
84,
91
],
"loc": {
"start": {
"line": 1,
"column": 84
},
"end": {
"line": 1,
"column": 91
}
}
},
"property": {
"type": "Identifier",
"name": "error",
"range": [
92,
97
],
"loc": {
"start": {
"line": 1,
"column": 92
},
"end": {
"line": 1,
"column": 97
}
}
},
"range": [
84,
97
],
"loc": {
"start": {
"line": 1,
"column": 84
},
"end": {
"line": 1,
"column": 97
}
}
},
"right": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "exports",
"range": [
98,
105
],
"loc": {
"start": {
"line": 1,
"column": 98
},
"end": {
"line": 1,
"column": 105
}
}
},
"property": {
"type": "Identifier",
"name": "Events",
"range": [
106,
112
],
"loc": {
"start": {
"line": 1,
"column": 106
},
"end": {
"line": 1,
"column": 112
}
}
},
"range": [
98,
112
],
"loc": {
"start": {
"line": 1,
"column": 98
},
"end": {
"line": 1,
"column": 112
}
}
},
"right": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "exports",
"range": [
113,
120
],
"loc": {
"start": {
"line": 1,
"column": 113
},
"end": {
"line": 1,
"column": 120
}
}
},
"property": {
"type": "Identifier",
"name": "Dom",
"range": [
121,
124
],
"loc": {
"start": {
"line": 1,
"column": 121
},
"end": {
"line": 1,
"column": 124
}
}
},
"range": [
113,
124
],
"loc": {
"start": {
"line": 1,
"column": 113
},
"end": {
"line": 1,
"column": 124
}
}
},
"right": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "exports",
"range": [
125,
132
],
"loc": {
"start": {
"line": 1,
"column": 125
},
"end": {
"line": 1,
"column": 132
}
}
},
"property": {
"type": "Identifier",
"name": "Interaction",
"range": [
133,
144
],
"loc": {
"start": {
"line": 1,
"column": 133
},
"end": {
"line": 1,
"column": 144
}
}
},
"range": [
125,
144
],
"loc": {
"start": {
"line": 1,
"column": 125
},
"end": {
"line": 1,
"column": 144
}
}
},
"right": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "exports",
"range": [
145,
152
],
"loc": {
"start": {
"line": 1,
"column": 145
},
"end": {
"line": 1,
"column": 152
}
}
},
"property": {
"type": "Identifier",
"name": "Renderer",
"range": [
153,
161
],
"loc": {
"start": {
"line": 1,
"column": 153
},
"end": {
"line": 1,
"column": 161
}
}
},
"range": [
145,
161
],
"loc": {
"start": {
"line": 1,
"column": 145
},
"end": {
"line": 1,
"column": 161
}
}
},
"right": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "exports",
"range": [
162,
169
],
"loc": {
"start": {
"line": 1,
"column": 162
},
"end": {
"line": 1,
"column": 169
}
}
},
"property": {
"type": "Identifier",
"name": "Parser",
"range": [
170,
176
],
"loc": {
"start": {
"line": 1,
"column": 170
},
"end": {
"line": 1,
"column": 176
}
}
},
"range": [
162,
176
],
"loc": {
"start": {
"line": 1,
"column": 162
},
"end": {
"line": 1,
"column": 176
}
}
},
"right": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "exports",
"range": [
177,
184
],
"loc": {
"start": {
"line": 1,
"column": 177
},
"end": {
"line": 1,
"column": 184
}
}
},
"property": {
"type": "Identifier",
"name": "View",
"range": [
185,
189
],
"loc": {
"start": {
"line": 1,
"column": 185
},
"end": {
"line": 1,
"column": 189
}
}
},
"range": [
177,
189
],
"loc": {
"start": {
"line": 1,
"column": 177
},
"end": {
"line": 1,
"column": 189
}
}
},
"right": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "exports",
"range": [
190,
197
],
"loc": {
"start": {
"line": 1,
"column": 190
},
"end": {
"line": 1,
"column": 197
}
}
},
"property": {
"type": "Identifier",
"name": "Canvas",
"range": [
198,
204
],
"loc": {
"start": {
"line": 1,
"column": 198
},
"end": {
"line": 1,
"column": 204
}
}
},
"range": [
190,
204
],
"loc": {
"start": {
"line": 1,
"column": 190
},
"end": {
"line": 1,
"column": 204
}
}
},
"right": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "exports",
"range": [
205,
212
],
"loc": {
"start": {
"line": 1,
"column": 205
},
"end": {
"line": 1,
"column": 212
}
}
},
"property": {
"type": "Identifier",
"name": "lastCreated",
"range": [
213,
224
],
"loc": {
"start": {
"line": 1,
"column": 213
},
"end": {
"line": 1,
"column": 224
}
}
},
"range": [
205,
224
],
"loc": {
"start": {
"line": 1,
"column": 205
},
"end": {
"line": 1,
"column": 224
}
}
},
"right": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "exports",
"range": [
225,
232
],
"loc": {
"start": {
"line": 1,
"column": 225
},
"end": {
"line": 1,
"column": 232
}
}
},
"property": {
"type": "Identifier",
"name": "version",
"range": [
233,
240
],
"loc": {
"start": {
"line": 1,
"column": 233
},
"end": {
"line": 1,
"column": 240
}
}
},
"range": [
225,
240
],
"loc": {
"start": {
"line": 1,
"column": 225
},
"end": {
"line": 1,
"column": 240
}
}
},
"right": {
"type": "UnaryExpression",
"operator": "void",
"argument": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
246,
247
],
"loc": {
"start": {
"line": 1,
"column": 246
},
"end": {
"line": 1,
"column": 247
}
}
},
"prefix": true,
"range": [
241,
247
],
"loc": {
"start": {
"line": 1,
"column": 241
},
"end": {
"line": 1,
"column": 247
}
}
},
"range": [
225,
247
],
"loc": {
"start": {
"line": 1,
"column": 225
},
"end": {
"line": 1,
"column": 247
}
}
},
"range": [
205,
247
],
"loc": {
"start": {
"line": 1,
"column": 205
},
"end": {
"line": 1,
"column": 247
}
}
},
"range": [
190,
247
],
"loc": {
"start": {
"line": 1,
"column": 190
},
"end": {
"line": 1,
"column": 247
}
}
},
"range": [
177,
247
],
"loc": {
"start": {
"line": 1,
"column": 177
},
"end": {
"line": 1,
"column": 247
}
}
},
"range": [
162,
247
],
"loc": {
"start": {
"line": 1,
"column": 162
},
"end": {
"line": 1,
"column": 247
}
}
},
"range": [
145,
247
],
"loc": {
"start": {
"line": 1,
"column": 145
},
"end": {
"line": 1,
"column": 247
}
}
},
"range": [
125,
247
],
"loc": {
"start": {
"line": 1,
"column": 125
},
"end": {
"line": 1,
"column": 247
}
}
},
"range": [
113,
247
],
"loc": {
"start": {
"line": 1,
"column": 113
},
"end": {
"line": 1,
"column": 247
}
}
},
"range": [
98,
247
],
"loc": {
"start": {
"line": 1,
"column": 98
},
"end": {
"line": 1,
"column": 247
}
}
},
"range": [
84,
247
],
"loc": {
"start": {
"line": 1,
"column": 84
},
"end": {
"line": 1,
"column": 247
}
}
},
"range": [
68,
247
],
"loc": {
"start": {
"line": 1,
"column": 68
},
"end": {
"line": 1,
"column": 247
}
}
},
"range": [
68,
248
],
"loc": {
"start": {
"line": 1,
"column": 68
},
"end": {
"line": 1,
"column": 248
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_canvas",
"range": [
252,
259
],
"loc": {
"start": {
"line": 1,
"column": 252
},
"end": {
"line": 1,
"column": 259
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require",
"range": [
260,
267
],
"loc": {
"start": {
"line": 1,
"column": 260
},
"end": {
"line": 1,
"column": 267
}
}
},
"arguments": [
{
"type": "Literal",
"value": "../core/canvas",
"raw": "'../core/canvas'",
"range": [
268,
284
],
"loc": {
"start": {
"line": 1,
"column": 268
},
"end": {
"line": 1,
"column": 284
}
}
}
],
"range": [
260,
285
],
"loc": {
"start": {
"line": 1,
"column": 260
},
"end": {
"line": 1,
"column": 285
}
}
},
"range": [
252,
285
],
"loc": {
"start": {
"line": 1,
"column": 252
},
"end": {
"line": 1,
"column": 285
}
}
}
],
"kind": "var",
"range": [
248,
286
],
"loc": {
"start": {
"line": 1,
"column": 248
},
"end": {
"line": 1,
"column": 286
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Object",
"range": [
286,
292
],
"loc": {
"start": {
"line": 1,
"column": 286
},
"end": {
"line": 1,
"column": 292
}
}
},
"property": {
"type": "Identifier",
"name": "defineProperty",
"range": [
293,
307
],
"loc": {
"start": {
"line": 1,
"column": 293
},
"end": {
"line": 1,
"column": 307
}
}
},
"range": [
286,
307
],
"loc": {
"start": {
"line": 1,
"column": 286
},
"end": {
"line": 1,
"column": 307
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "exports",
"range": [
308,
315
],
"loc": {
"start": {
"line": 1,
"column": 308
},
"end": {
"line": 1,
"column": 315
}
}
},
{
"type": "Literal",
"value": "version",
"raw": "'version'",
"range": [
316,
325
],
"loc": {
"start": {
"line": 1,
"column": 316
},
"end": {
"line": 1,
"column": 325
}
}
},
{
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "enumerable",
"range": [
327,
337
],
"loc": {
"start": {
"line": 1,
"column": 327
},
"end": {
"line": 1,
"column": 337
}
}
},
"value": {
"type": "UnaryExpression",
"operator": "!",
"argument": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
339,
340
],
"loc": {
"start": {
"line": 1,
"column": 339
},
"end": {
"line": 1,
"column": 340
}
}
},
"prefix": true,
"range": [
338,
340
],
"loc": {
"start": {
"line": 1,
"column": 338
},
"end": {
"line": 1,
"column": 340
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
327,
340
],
"loc": {
"start": {
"line": 1,
"column": 327
},
"end": {
"line": 1,
"column": 340
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "get",
"range": [
341,
344
],
"loc": {
"start": {
"line": 1,
"column": 341
},
"end": {
"line": 1,
"column": 344
}
}
},
"value": {
"type": "FunctionExpression",
"id": {
"type": "Identifier",
"name": "get",
"range": [
354,
357
],
"loc": {
"start": {
"line": 1,
"column": 354
},
"end": {
"line": 1,
"column": 357
}
}
},
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "_canvas",
"range": [
367,
374
],
"loc": {
"start": {
"line": 1,
"column": 367
},
"end": {
"line": 1,
"column": 374
}
}
},
"property": {
"type": "Identifier",
"name": "version",
"range": [
375,
382
],
"loc": {
"start": {
"line": 1,
"column": 375
},
"end": {
"line": 1,
"column": 382
}
}
},
"range": [
367,
382
],
"loc": {
"start": {
"line": 1,
"column": 367
},
"end": {
"line": 1,
"column": 382
}
}
},
"range": [
360,
382
],
"loc": {
"start": {
"line": 1,
"column": 360
},
"end": {
"line": 1,
"column": 382
}
}
}
],
"range": [
359,
383
],
"loc": {
"start": {
"line": 1,
"column": 359
},
"end": {
"line": 1,
"column": 383
}
}
},
"generator": false,
"expression": false,
"range": [
345,
383
],
"loc": {
"start": {
"line": 1,
"column": 345
},
"end": {
"line": 1,
"column": 383
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
341,
383
],
"loc": {
"start": {
"line": 1,
"column": 341
},
"end": {
"line": 1,
"column": 383
}
}
}
],
"range": [
326,
384
],
"loc": {
"start": {
"line": 1,
"column": 326
},
"end": {
"line": 1,
"column": 384
}
}
}
],
"range": [
286,
385
],
"loc": {
"start": {
"line": 1,
"column": 286
},
"end": {
"line": 1,
"column": 385
}
}
},
"range": [
286,
386
],
"loc": {
"start": {
"line": 1,
"column": 286
},
"end": {
"line": 1,
"column": 386
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Object",
"range": [
386,
392
],
"loc": {
"start": {
"line": 1,
"column": 386
},
"end": {
"line": 1,
"column": 392
}
}
},
"property": {
"type": "Identifier",
"name": "defineProperty",
"range": [
393,
407
],
"loc": {
"start": {
"line": 1,
"column": 393
},
"end": {
"line": 1,
"column": 407
}
}
},
"range": [
386,
407
],
"loc": {
"start": {
"line": 1,
"column": 386
},
"end": {
"line": 1,
"column": 407
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "exports",
"range": [
408,
415
],
"loc": {
"start": {
"line": 1,
"column": 408
},
"end": {
"line": 1,
"column": 415
}
}
},
{
"type": "Literal",
"value": "lastCreated",
"raw": "'lastCreated'",
"range": [
416,
429
],
"loc": {
"start": {
"line": 1,
"column": 416
},
"end": {
"line": 1,
"column": 429
}
}
},
{
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "enumerable",
"range": [
431,
441
],
"loc": {
"start": {
"line": 1,
"column": 431
},
"end": {
"line": 1,
"column": 441
}
}
},
"value": {
"type": "UnaryExpression",
"operator": "!",
"argument": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
443,
444
],
"loc": {
"start": {
"line": 1,
"column": 443
},
"end": {
"line": 1,
"column": 444
}
}
},
"prefix": true,
"range": [
442,
444
],
"loc": {
"start": {
"line": 1,
"column": 442
},
"end": {
"line": 1,
"column": 444
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
431,
444
],
"loc": {
"start": {
"line": 1,
"column": 431
},
"end": {
"line": 1,
"column": 444
}
}
},
{
"type": "Property",
"key": {
"type": "Identifier",