awv3
Version:
⚡ AWV3 embedded CAD
1,587 lines (1,586 loc) • 124 kB
JSON
{
"type": "File",
"start": 0,
"end": 488,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 25,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 488,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 25,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 30
}
},
"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
},
"identifierName": "Events"
},
"name": "Events"
}
}
],
"source": {
"type": "StringLiteral",
"start": 19,
"end": 29,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 29
}
},
"extra": {
"rawValue": "./events",
"raw": "'./events'"
},
"value": "./events"
}
},
{
"type": "Identifier",
"start": 32,
"end": 382,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 17,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 38,
"end": 46,
"loc": {
"start": {
"line": 3,
"column": 6
},
"end": {
"line": 3,
"column": 14
},
"identifierName": "Defaults"
},
"name": "Defaults"
},
"superClass": {
"type": "Identifier",
"start": 55,
"end": 61,
"loc": {
"start": {
"line": 3,
"column": 23
},
"end": {
"line": 3,
"column": 29
},
"identifierName": "Events"
},
"name": "Events"
},
"body": {
"type": "ClassBody",
"start": 62,
"end": 382,
"loc": {
"start": {
"line": 3,
"column": 30
},
"end": {
"line": 17,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 68,
"end": 166,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 7,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 68,
"end": 79,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 82,
"end": 166,
"loc": {
"start": {
"line": 4,
"column": 18
},
"end": {
"line": 7,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 92,
"end": 100,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 16
}
},
"expression": {
"type": "CallExpression",
"start": 92,
"end": 99,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 15
}
},
"callee": {
"type": "Super",
"start": 92,
"end": 97,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 13
}
}
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 109,
"end": 160,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 59
}
},
"expression": {
"type": "AssignmentExpression",
"start": 109,
"end": 159,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 58
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 109,
"end": 126,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 25
}
},
"object": {
"type": "ThisExpression",
"start": 109,
"end": 113,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 114,
"end": 126,
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 25
},
"identifierName": "_renderOrder"
},
"name": "_renderOrder"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 129,
"end": 159,
"loc": {
"start": {
"line": 6,
"column": 28
},
"end": {
"line": 6,
"column": 58
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 131,
"end": 138,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 6,
"column": 37
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 131,
"end": 135,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 6,
"column": 34
},
"identifierName": "Mesh"
},
"name": "Mesh"
},
"value": {
"type": "NumericLiteral",
"start": 137,
"end": 138,
"loc": {
"start": {
"line": 6,
"column": 36
},
"end": {
"line": 6,
"column": 37
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
},
{
"type": "ObjectProperty",
"start": 140,
"end": 157,
"loc": {
"start": {
"line": 6,
"column": 39
},
"end": {
"line": 6,
"column": 56
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 140,
"end": 152,
"loc": {
"start": {
"line": 6,
"column": 39
},
"end": {
"line": 6,
"column": 51
},
"identifierName": "LineSegments"
},
"name": "LineSegments"
},
"value": {
"type": "NumericLiteral",
"start": 154,
"end": 157,
"loc": {
"start": {
"line": 6,
"column": 53
},
"end": {
"line": 6,
"column": 56
}
},
"extra": {
"rawValue": 100,
"raw": "100"
},
"value": 100
}
}
]
}
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 172,
"end": 231,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 11,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 176,
"end": 187,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 19
},
"identifierName": "renderOrder"
},
"name": "renderOrder"
},
"static": false,
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 190,
"end": 231,
"loc": {
"start": {
"line": 9,
"column": 22
},
"end": {
"line": 11,
"column": 5
}
},
"body": [
{
"type": "ReturnStatement",
"start": 200,
"end": 225,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 33
}
},
"argument": {
"type": "MemberExpression",
"start": 207,
"end": 224,
"loc": {
"start": {
"line": 10,
"column": 15
},
"end": {
"line": 10,
"column": 32
}
},
"object": {
"type": "ThisExpression",
"start": 207,
"end": 211,
"loc": {
"start": {
"line": 10,
"column": 15
},
"end": {
"line": 10,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"start": 212,
"end": 224,
"loc": {
"start": {
"line": 10,
"column": 20
},
"end": {
"line": 10,
"column": 32
},
"identifierName": "_renderOrder"
},
"name": "_renderOrder"
},
"computed": false
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 237,
"end": 380,
"loc": {
"start": {
"line": 13,
"column": 4
},
"end": {
"line": 16,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 241,
"end": 252,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 19
},
"identifierName": "renderOrder"
},
"name": "renderOrder"
},
"static": false,
"kind": "set",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 253,
"end": 258,
"loc": {
"start": {
"line": 13,
"column": 20
},
"end": {
"line": 13,
"column": 25
},
"identifierName": "value"
},
"name": "value"
}
],
"body": {
"type": "BlockStatement",
"start": 260,
"end": 380,
"loc": {
"start": {
"line": 13,
"column": 27
},
"end": {
"line": 16,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 270,
"end": 296,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 34
}
},
"expression": {
"type": "AssignmentExpression",
"start": 270,
"end": 295,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 33
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 270,
"end": 287,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 25
}
},
"object": {
"type": "ThisExpression",
"start": 270,
"end": 274,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 275,
"end": 287,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 25
},
"identifierName": "_renderOrder"
},
"name": "_renderOrder"
},
"computed": false
},
"right": {
"type": "Identifier",
"start": 290,
"end": 295,
"loc": {
"start": {
"line": 14,
"column": 28
},
"end": {
"line": 14,
"column": 33
},
"identifierName": "value"
},
"name": "value"
}
}
},
{
"type": "ExpressionStatement",
"start": 305,
"end": 374,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 77
}
},
"expression": {
"type": "CallExpression",
"start": 305,
"end": 373,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 76
}
},
"callee": {
"type": "MemberExpression",
"start": 305,
"end": 314,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 305,
"end": 309,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 310,
"end": 314,
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 17
},
"identifierName": "emit"
},
"name": "emit"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 315,
"end": 338,
"loc": {
"start": {
"line": 15,
"column": 18
},
"end": {
"line": 15,
"column": 41
}
},
"object": {
"type": "MemberExpression",
"start": 315,
"end": 330,
"loc": {
"start": {
"line": 15,
"column": 18
},
"end": {
"line": 15,
"column": 33
}
},
"object": {
"type": "Identifier",
"start": 315,
"end": 323,
"loc": {
"start": {
"line": 15,
"column": 18
},
"end": {
"line": 15,
"column": 26
},
"identifierName": "Defaults"
},
"name": "Defaults"
},
"property": {
"type": "Identifier",
"start": 324,
"end": 330,
"loc": {
"start": {
"line": 15,
"column": 27
},
"end": {
"line": 15,
"column": 33
},
"identifierName": "Events"
},
"name": "Events"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 331,
"end": 338,
"loc": {
"start": {
"line": 15,
"column": 34
},
"end": {
"line": 15,
"column": 41
},
"identifierName": "Changed"
},
"name": "Changed"
},
"computed": false
},
{
"type": "StringLiteral",
"start": 340,
"end": 353,
"loc": {
"start": {
"line": 15,
"column": 43
},
"end": {
"line": 15,
"column": 56
}
},
"extra": {
"rawValue": "renderOrder",
"raw": "'renderOrder'"
},
"value": "renderOrder"
},
{
"type": "MemberExpression",
"start": 355,
"end": 372,
"loc": {
"start": {
"line": 15,
"column": 58
},
"end": {
"line": 15,
"column": 75
}
},
"object": {
"type": "ThisExpression",
"start": 355,
"end": 359,
"loc": {
"start": {
"line": 15,
"column": 58
},
"end": {
"line": 15,
"column": 62
}
}
},
"property": {
"type": "Identifier",
"start": 360,
"end": 372,
"loc": {
"start": {
"line": 15,
"column": 63
},
"end": {
"line": 15,
"column": 75
},
"identifierName": "_renderOrder"
},
"name": "_renderOrder"
},
"computed": false
}
]
}
}
],
"directives": []
}
}
]
},
"name": "_",
"leadingComments": [],
"trailingComments": []
},
{
"type": "ExpressionStatement",
"start": 384,
"end": 428,
"loc": {
"start": {
"line": 19,
"column": 0
},
"end": {
"line": 21,
"column": 1
}
},
"expression": {
"type": "AssignmentExpression",
"start": 384,
"end": 428,
"loc": {
"start": {
"line": 19,
"column": 0
},
"end": {
"line": 21,
"column": 1
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 384,
"end": 399,
"loc": {
"start": {
"line": 19,
"column": 0
},
"end": {
"line": 19,
"column": 15
}
},
"object": {
"type": "Identifier",
"start": 384,
"end": 392,
"loc": {
"start": {
"line": 19,
"column": 0
},
"end": {
"line": 19,
"column": 8
},
"identifierName": "Defaults"
},
"name": "Defaults"
},
"property": {
"type": "Identifier",
"start": 393,
"end": 399,
"loc": {
"start": {
"line": 19,
"column": 9
},
"end": {
"line": 19,
"column": 15
},
"identifierName": "Events"
},
"name": "Events"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 402,
"end": 428,
"loc": {
"start": {
"line": 19,
"column": 18
},
"end": {
"line": 21,
"column": 1
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 408,
"end": 426,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 22
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 408,
"end": 415,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 11
},
"identifierName": "Changed"
},
"name": "Changed"
},
"value": {
"type": "StringLiteral",
"start": 417,
"end": 426,
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 22
}
},
"extra": {
"rawValue": "Changed",
"raw": "'Changed'"
},
"value": "Changed"
}
}
]
}
}
},
{
"type": "Identifier",
"start": 430,
"end": 462,
"loc": {
"start": {
"line": 23,
"column": 0
},
"end": {
"line": 23,
"column": 32
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 436,
"end": 461,
"loc": {
"start": {
"line": 23,
"column": 6
},
"end": {
"line": 23,
"column": 31
}
},
"id": {
"type": "Identifier",
"start": 436,
"end": 444,
"loc": {
"start": {
"line": 23,
"column": 6
},
"end": {
"line": 23,
"column": 14
},
"identifierName": "instance"
},
"name": "instance"
},
"init": {
"type": "NewExpression",
"start": 447,
"end": 461,
"loc": {
"start": {
"line": 23,
"column": 17
},
"end": {
"line": 23,
"column": 31
}
},
"callee": {
"type": "Identifier",
"start": 451,
"end": 459,
"loc": {
"start": {
"line": 23,
"column": 21
},
"end": {
"line": 23,
"column": 29
},
"identifierName": "Defaults"
},
"name": "Defaults"
},
"arguments": []
}
}
],
"kind": "const",
"name": "_",
"leadingComments": [],
"trailingComments": []
},
{
"type": "Identifier",
"start": 463,
"end": 487,
"loc": {
"start": {
"line": 24,
"column": 0
},
"end": {
"line": 24,
"column": 24
}
},
"declaration": {
"type": "Identifier",
"start": 478,
"end": 486,
"loc": {
"start": {
"line": 24,
"column": 15
},
"end": {
"line": 24,
"column": 23
},
"identifierName": "instance"
},
"name": "instance"
},
"name": "_",
"leadingComments": [],
"trailingComments": []
},
{
"type": "ExportDefaultDeclaration",
"start": 463,
"end": 487,
"loc": {
"start": {
"line": 24,
"column": 0
},
"end": {
"line": 24,
"column": 24
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 32,
"end": 382,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 17,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 38,
"end": 46,
"loc": {
"start": {
"line": 3,
"column": 6
},
"end": {
"line": 3,
"column": 14
},
"identifierName": "Defaults"
},
"name": "Defaults"
},
"superClass": {
"type": "Identifier",
"start": 55,
"end": 61,
"loc": {
"start": {
"line": 3,
"column": 23
},
"end": {
"line": 3,
"column": 29
},
"identifierName": "Events"
},
"name": "Events"
},
"body": {
"type": "ClassBody",
"start": 62,
"end": 382,
"loc": {
"start": {
"line": 3,
"column": 30
},
"end": {
"line": 17,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 68,
"end": 166,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 7,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 68,
"end": 79,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 82,
"end": 166,
"loc": {
"start": {
"line": 4,
"column": 18
},
"end": {
"line": 7,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 92,
"end": 100,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 16
}
},
"expression": {
"type": "CallExpression",
"start": 92,
"end": 99,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 15
}
},
"callee": {
"type": "Super",
"start": 92,
"end": 97,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 13
}
}
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 109,
"end": 160,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 59
}
},
"expression": {
"type": "AssignmentExpression",
"start": 109,
"end": 159,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 58
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 109,
"end": 126,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 25
}
},
"object": {
"type": "ThisExpression",
"start": 109,
"end": 113,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 114,
"end": 126,
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 25
},
"identifierName": "_renderOrder"
},
"name": "_renderOrder"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 129,
"end": 159,
"loc": {
"start": {
"line": 6,
"column": 28
},
"end": {
"line": 6,
"column": 58
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 131,
"end": 138,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 6,
"column": 37
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 131,
"end": 135,
"loc": {
"start": {
"line": 6,
"column": 30
},
"end": {
"line": 6,
"column": 34
},
"identifierName": "Mesh"
},
"name": "Mesh"
},
"value": {
"type": "NumericLiteral",
"start": 137,
"end": 138,
"loc": {
"start": {
"line": 6,