awv3
Version:
⚡ AWV3 embedded CAD
2,027 lines (2,026 loc) • 290 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": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_extends2",
"range": [
72,
81
],
"loc": {
"start": {
"line": 1,
"column": 72
},
"end": {
"line": 1,
"column": 81
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require",
"range": [
82,
89
],
"loc": {
"start": {
"line": 1,
"column": 82
},
"end": {
"line": 1,
"column": 89
}
}
},
"arguments": [
{
"type": "Literal",
"value": "babel-runtime/helpers/extends",
"raw": "'babel-runtime/helpers/extends'",
"range": [
90,
121
],
"loc": {
"start": {
"line": 1,
"column": 90
},
"end": {
"line": 1,
"column": 121
}
}
}
],
"range": [
82,
122
],
"loc": {
"start": {
"line": 1,
"column": 82
},
"end": {
"line": 1,
"column": 122
}
}
},
"range": [
72,
122
],
"loc": {
"start": {
"line": 1,
"column": 72
},
"end": {
"line": 1,
"column": 122
}
}
},
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_extends3",
"range": [
123,
132
],
"loc": {
"start": {
"line": 1,
"column": 123
},
"end": {
"line": 1,
"column": 132
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault",
"range": [
133,
155
],
"loc": {
"start": {
"line": 1,
"column": 133
},
"end": {
"line": 1,
"column": 155
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "_extends2",
"range": [
156,
165
],
"loc": {
"start": {
"line": 1,
"column": 156
},
"end": {
"line": 1,
"column": 165
}
}
}
],
"range": [
133,
166
],
"loc": {
"start": {
"line": 1,
"column": 133
},
"end": {
"line": 1,
"column": 166
}
}
},
"range": [
123,
166
],
"loc": {
"start": {
"line": 1,
"column": 123
},
"end": {
"line": 1,
"column": 166
}
}
},
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_getIterator2",
"range": [
167,
180
],
"loc": {
"start": {
"line": 1,
"column": 167
},
"end": {
"line": 1,
"column": 180
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require",
"range": [
181,
188
],
"loc": {
"start": {
"line": 1,
"column": 181
},
"end": {
"line": 1,
"column": 188
}
}
},
"arguments": [
{
"type": "Literal",
"value": "babel-runtime/core-js/get-iterator",
"raw": "'babel-runtime/core-js/get-iterator'",
"range": [
189,
225
],
"loc": {
"start": {
"line": 1,
"column": 189
},
"end": {
"line": 1,
"column": 225
}
}
}
],
"range": [
181,
226
],
"loc": {
"start": {
"line": 1,
"column": 181
},
"end": {
"line": 1,
"column": 226
}
}
},
"range": [
167,
226
],
"loc": {
"start": {
"line": 1,
"column": 167
},
"end": {
"line": 1,
"column": 226
}
}
},
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_getIterator3",
"range": [
227,
240
],
"loc": {
"start": {
"line": 1,
"column": 227
},
"end": {
"line": 1,
"column": 240
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault",
"range": [
241,
263
],
"loc": {
"start": {
"line": 1,
"column": 241
},
"end": {
"line": 1,
"column": 263
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "_getIterator2",
"range": [
264,
277
],
"loc": {
"start": {
"line": 1,
"column": 264
},
"end": {
"line": 1,
"column": 277
}
}
}
],
"range": [
241,
278
],
"loc": {
"start": {
"line": 1,
"column": 241
},
"end": {
"line": 1,
"column": 278
}
}
},
"range": [
227,
278
],
"loc": {
"start": {
"line": 1,
"column": 227
},
"end": {
"line": 1,
"column": 278
}
}
}
],
"kind": "var",
"range": [
68,
279
],
"loc": {
"start": {
"line": 1,
"column": 68
},
"end": {
"line": 1,
"column": 279
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "exports",
"range": [
279,
286
],
"loc": {
"start": {
"line": 1,
"column": 279
},
"end": {
"line": 1,
"column": 286
}
}
},
"property": {
"type": "Identifier",
"name": "updateGeomObjectContainer",
"range": [
287,
312
],
"loc": {
"start": {
"line": 1,
"column": 287
},
"end": {
"line": 1,
"column": 312
}
}
},
"range": [
279,
312
],
"loc": {
"start": {
"line": 1,
"column": 279
},
"end": {
"line": 1,
"column": 312
}
}
},
"right": {
"type": "Identifier",
"name": "updateGeomObjectContainer",
"range": [
313,
338
],
"loc": {
"start": {
"line": 1,
"column": 313
},
"end": {
"line": 1,
"column": 338
}
}
},
"range": [
279,
338
],
"loc": {
"start": {
"line": 1,
"column": 279
},
"end": {
"line": 1,
"column": 338
}
}
},
"range": [
279,
339
],
"loc": {
"start": {
"line": 1,
"column": 279
},
"end": {
"line": 1,
"column": 339
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_point",
"range": [
343,
349
],
"loc": {
"start": {
"line": 1,
"column": 343
},
"end": {
"line": 1,
"column": 349
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require",
"range": [
350,
357
],
"loc": {
"start": {
"line": 1,
"column": 350
},
"end": {
"line": 1,
"column": 357
}
}
},
"arguments": [
{
"type": "Literal",
"value": "./graphics/point",
"raw": "'./graphics/point'",
"range": [
358,
376
],
"loc": {
"start": {
"line": 1,
"column": 358
},
"end": {
"line": 1,
"column": 376
}
}
}
],
"range": [
350,
377
],
"loc": {
"start": {
"line": 1,
"column": 350
},
"end": {
"line": 1,
"column": 377
}
}
},
"range": [
343,
377
],
"loc": {
"start": {
"line": 1,
"column": 343
},
"end": {
"line": 1,
"column": 377
}
}
},
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_point2",
"range": [
378,
385
],
"loc": {
"start": {
"line": 1,
"column": 378
},
"end": {
"line": 1,
"column": 385
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault",
"range": [
386,
408
],
"loc": {
"start": {
"line": 1,
"column": 386
},
"end": {
"line": 1,
"column": 408
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "_point",
"range": [
409,
415
],
"loc": {
"start": {
"line": 1,
"column": 409
},
"end": {
"line": 1,
"column": 415
}
}
}
],
"range": [
386,
416
],
"loc": {
"start": {
"line": 1,
"column": 386
},
"end": {
"line": 1,
"column": 416
}
}
},
"range": [
378,
416
],
"loc": {
"start": {
"line": 1,
"column": 378
},
"end": {
"line": 1,
"column": 416
}
}
},
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_line",
"range": [
417,
422
],
"loc": {
"start": {
"line": 1,
"column": 417
},
"end": {
"line": 1,
"column": 422
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require",
"range": [
423,
430
],
"loc": {
"start": {
"line": 1,
"column": 423
},
"end": {
"line": 1,
"column": 430
}
}
},
"arguments": [
{
"type": "Literal",
"value": "./graphics/line",
"raw": "'./graphics/line'",
"range": [
431,
448
],
"loc": {
"start": {
"line": 1,
"column": 431
},
"end": {
"line": 1,
"column": 448
}
}
}
],
"range": [
423,
449
],
"loc": {
"start": {
"line": 1,
"column": 423
},
"end": {
"line": 1,
"column": 449
}
}
},
"range": [
417,
449
],
"loc": {
"start": {
"line": 1,
"column": 417
},
"end": {
"line": 1,
"column": 449
}
}
},
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_line2",
"range": [
450,
456
],
"loc": {
"start": {
"line": 1,
"column": 450
},
"end": {
"line": 1,
"column": 456
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault",
"range": [
457,
479
],
"loc": {
"start": {
"line": 1,
"column": 457
},
"end": {
"line": 1,
"column": 479
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "_line",
"range": [
480,
485
],
"loc": {
"start": {
"line": 1,
"column": 480
},
"end": {
"line": 1,
"column": 485
}
}
}
],
"range": [
457,
486
],
"loc": {
"start": {
"line": 1,
"column": 457
},
"end": {
"line": 1,
"column": 486
}
}
},
"range": [
450,
486
],
"loc": {
"start": {
"line": 1,
"column": 450
},
"end": {
"line": 1,
"column": 486
}
}
},
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_arc",
"range": [
487,
491
],
"loc": {
"start": {
"line": 1,
"column": 487
},
"end": {
"line": 1,
"column": 491
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require",
"range": [
492,
499
],
"loc": {
"start": {
"line": 1,
"column": 492
},
"end": {
"line": 1,
"column": 499
}
}
},
"arguments": [
{
"type": "Literal",
"value": "./graphics/arc",
"raw": "'./graphics/arc'",
"range": [
500,
516
],
"loc": {
"start": {
"line": 1,
"column": 500
},
"end": {
"line": 1,
"column": 516
}
}
}
],
"range": [
492,
517
],
"loc": {
"start": {
"line": 1,
"column": 492
},
"end": {
"line": 1,
"column": 517
}
}
},
"range": [
487,
517
],
"loc": {
"start": {
"line": 1,
"column": 487
},
"end": {
"line": 1,
"column": 517
}
}
},
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "_arc2",
"range": [
518,
523
],
"loc": {
"start": {
"line": 1,
"column": 518
},
"end": {
"line": 1,
"column": 523
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "_interopRequireDefault",
"range": [
524,
546
],
"loc": {
"start": {
"line": 1,
"column": 524
},
"end": {
"line": 1,
"column": 546
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "_arc",
"range": [
547,
551
],
"loc": {
"start": {
"line": 1,
"column": 547
},
"end": {
"line": 1,
"column": 551
}
}
}
],
"range": [
524,
552
],
"loc": {
"start": {
"line": 1,
"column": 524
},
"end": {
"line": 1,
"column": 552
}
}
},
"range": [
518,
552
],
"loc": {
"start": {
"line": 1,
"column": 518
},
"end": {
"line": 1,
"column": 552
}
}
}
],
"kind": "var",
"range": [
339,
553
],
"loc": {
"start": {
"line": 1,
"column": 339
},
"end": {
"line": 1,
"column": 553
}
}
},
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "_interopRequireDefault",
"range": [
562,
584
],
"loc": {
"start": {
"line": 1,
"column": 562
},
"end": {
"line": 1,
"column": 584
}
}
},
"params": [
{
"type": "Identifier",
"name": "obj",
"range": [
585,
588
],
"loc": {
"start": {
"line": 1,
"column": 585
},
"end": {
"line": 1,
"column": 588
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "ConditionalExpression",
"test": {
"type": "LogicalExpression",
"operator": "&&",
"left": {
"type": "Identifier",
"name": "obj",
"range": [
597,
600
],
"loc": {
"start": {
"line": 1,
"column": 597
},
"end": {
"line": 1,
"column": 600
}
}
},
"right": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "obj",
"range": [
602,
605
],
"loc": {
"start": {
"line": 1,
"column": 602
},
"end": {
"line": 1,
"column": 605
}
}
},
"property": {
"type": "Identifier",
"name": "__esModule",
"range": [
606,
616
],
"loc": {
"start": {
"line": 1,
"column": 606
},
"end": {
"line": 1,
"column": 616
}
}
},
"range": [
602,
616
],
"loc": {
"start": {
"line": 1,
"column": 602
},
"end": {
"line": 1,
"column": 616
}
}
},
"range": [
597,
616
],
"loc": {
"start": {
"line": 1,
"column": 597
},
"end": {
"line": 1,
"column": 616
}
}
},
"consequent": {
"type": "Identifier",
"name": "obj",
"range": [
617,
620
],
"loc": {
"start": {
"line": 1,
"column": 617
},
"end": {
"line": 1,
"column": 620
}
}
},
"alternate": {
"type": "ObjectExpression",
"properties": [
{
"type": "Property",
"key": {
"type": "Identifier",
"name": "default",
"range": [
622,
629
],
"loc": {
"start": {
"line": 1,
"column": 622
},
"end": {
"line": 1,
"column": 629
}
}
},
"value": {
"type": "Identifier",
"name": "obj",
"range": [
630,
633
],
"loc": {
"start": {
"line": 1,
"column": 630
},
"end": {
"line": 1,
"column": 633
}
}
},
"kind": "init",
"method": false,
"shorthand": false,
"computed": false,
"range": [
622,
633
],
"loc": {
"start": {
"line": 1,
"column": 622
},
"end": {
"line": 1,
"column": 633
}
}
}
],
"range": [
621,
634
],
"loc": {
"start": {
"line": 1,
"column": 621
},
"end": {
"line": 1,
"column": 634
}
}
},
"range": [
597,
634
],
"loc": {
"start": {
"line": 1,
"column": 597
},
"end": {
"line": 1,
"column": 634
}
}
},
"range": [
590,
634
],
"loc": {
"start": {
"line": 1,
"column": 590
},
"end": {
"line": 1,
"column": 634
}
}
}
],
"range": [
589,
635
],
"loc": {
"start": {
"line": 1,
"column": 589
},
"end": {
"line": 1,
"column": 635
}
}
},
"generator": false,
"expression": false,
"range": [
553,
635
],
"loc": {
"start": {
"line": 1,
"column": 553
},
"end": {
"line": 1,
"column": 635
}
}
},
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "changeGeomObjectContainerType",
"range": [
644,
673
],
"loc": {
"start": {
"line": 1,
"column": 644
},
"end": {
"line": 1,
"column": 673
}
}
},
"params": [
{
"type": "Identifier",
"name": "a",
"range": [
674,
675
],
"loc": {
"start": {
"line": 1,
"column": 674
},
"end": {
"line": 1,
"column": 675
}
}
},
{
"type": "Identifier",
"name": "b",
"range": [
676,
677
],
"loc": {
"start": {
"line": 1,
"column": 676
},
"end": {
"line": 1,
"column": 677
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "IfStatement",
"test": {
"type": "BinaryExpression",
"operator": "!==",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "a",
"range": [
682,
683
],
"loc": {
"start": {
"line": 1,
"column": 682
},
"end": {
"line": 1,
"column": 683
}
}
},
"property": {
"type": "Identifier",
"name": "geomType",
"range": [
684,
692
],
"loc": {
"start": {
"line": 1,
"column": 684
},
"end": {
"line": 1,
"column": 692
}
}
},
"range": [
682,
692
],
"loc": {
"start": {
"line": 1,
"column": 682
},
"end": {
"line": 1,
"column": 692
}
}
},
"right": {
"type": "Identifier",
"name": "b",
"range": [
695,
696
],
"loc": {
"start": {
"line": 1,
"column": 695
},
"end": {
"line": 1,
"column": 696
}
}
},
"range": [
682,
696
],
"loc": {
"start": {
"line": 1,
"column": 682
},
"end": {
"line": 1,
"column": 696
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ForStatement",
"init": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "a",
"range": [
702,
703
],
"loc": {
"start": {
"line": 1,
"column": 702
},
"end": {
"line": 1,
"column": 703
}
}
},
"property": {
"type": "Identifier",
"name": "geomType",
"range": [
704,
712
],
"loc": {
"start": {
"line": 1,
"column": 704
},
"end": {
"line": 1,
"column": 712
}
}
},
"range": [
702,
712
],
"loc": {
"start": {
"line": 1,
"column": 702
},
"end": {
"line": 1,
"column": 712
}
}
},
"right": {
"type": "Identifier",
"name": "b",
"range": [
713,
714
],
"loc": {
"start": {
"line": 1,
"column": 713
},
"end": {
"line": 1,
"column": 714
}
}
},
"range": [
702,
714
],
"loc": {
"start": {
"line": 1,
"column": 702
},
"end": {
"line": 1,
"column": 714
}
}
},
"test": {
"type": "BinaryExpression",
"operator": "<",
"left": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
715,
716
],
"loc": {
"start": {
"line": 1,
"column": 715
},
"end": {
"line": 1,
"column": 716
}
}
},
"right": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "a",
"range": [
717,
718
],
"loc": {
"start": {
"line": 1,
"column": 717
},
"end": {
"line": 1,
"column": 718
}
}
},
"property": {
"type": "Identifier",
"name": "children",
"range": [
719,
727
],
"loc": {
"start": {
"line": 1,
"column": 719
},
"end": {
"line": 1,
"column": 727
}
}
},
"range": [
717,
727
],
"loc": {
"start": {
"line": 1,
"column": 717
},
"end": {
"line": 1,
"column": 727
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
728,
734
],
"loc": {
"start": {
"line": 1,
"column": 728
},
"end": {
"line": 1,
"column": 734
}
}
},
"range": [
717,
734
],
"loc": {
"start": {
"line": 1,
"column": 717
},
"end": {
"line": 1,
"column": 734
}
}
},
"range": [
715,
734
],
"loc": {
"start": {
"line": 1,
"column": 715
},
"end": {
"line": 1,
"column": 734
}
}
},
"update": null,
"body": {
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "a",
"range": [
736,
737
],
"loc": {
"start": {
"line": 1,
"column": 736
},
"end": {
"line": 1,
"column": 737
}
}
},
"property": {
"type": "Identifier",
"name": "remove",
"range": [
738,
744
],
"loc": {
"start": {
"line": 1,
"column": 738
},
"end": {
"line": 1,
"column": 744
}
}