awv3
Version:
⚡ AWV3 embedded CAD
1,320 lines (1,319 loc) • 312 kB
JSON
{
"type": "File",
"start": 0,
"end": 2097,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 55,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 2097,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 55,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ClassDeclaration",
"start": 0,
"end": 777,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 21,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 6,
"end": 22,
"loc": {
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 22
},
"identifierName": "StoredProperties"
},
"name": "StoredProperties"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 23,
"end": 777,
"loc": {
"start": {
"line": 1,
"column": 23
},
"end": {
"line": 21,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 29,
"end": 234,
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 5,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 29,
"end": 40,
"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": 43,
"end": 234,
"loc": {
"start": {
"line": 2,
"column": 18
},
"end": {
"line": 5,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 53,
"end": 69,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 24
}
},
"expression": {
"type": "AssignmentExpression",
"start": 53,
"end": 68,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 23
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 53,
"end": 63,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 18
}
},
"object": {
"type": "ThisExpression",
"start": 53,
"end": 57,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 58,
"end": 63,
"loc": {
"start": {
"line": 3,
"column": 13
},
"end": {
"line": 3,
"column": 18
},
"identifierName": "props"
},
"name": "props"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 66,
"end": 68,
"loc": {
"start": {
"line": 3,
"column": 21
},
"end": {
"line": 3,
"column": 23
}
},
"properties": []
}
},
"trailingComments": [
{
"type": "CommentLine",
"value": " saved original properties of a material",
"start": 70,
"end": 112,
"loc": {
"start": {
"line": 3,
"column": 25
},
"end": {
"line": 3,
"column": 67
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 121,
"end": 139,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 26
}
},
"expression": {
"type": "AssignmentExpression",
"start": 121,
"end": 138,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 25
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 121,
"end": 134,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 121,
"end": 125,
"loc": {
"start": {
"line": 4,
"column": 8
},
"end": {
"line": 4,
"column": 12
}
},
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 126,
"end": 134,
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 21
},
"identifierName": "refcount"
},
"name": "refcount"
},
"computed": false,
"leadingComments": null
},
"right": {
"type": "NumericLiteral",
"start": 137,
"end": 138,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 25
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " saved original properties of a material",
"start": 70,
"end": 112,
"loc": {
"start": {
"line": 3,
"column": 25
},
"end": {
"line": 3,
"column": 67
}
}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " so that we won't forget original properties before all restore animation are complete",
"start": 140,
"end": 228,
"loc": {
"start": {
"line": 4,
"column": 27
},
"end": {
"line": 4,
"column": 115
}
}
}
]
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 240,
"end": 699,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 16,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 240,
"end": 245,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 9
},
"identifierName": "store"
},
"name": "store"
},
"static": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 246,
"end": 254,
"loc": {
"start": {
"line": 7,
"column": 10
},
"end": {
"line": 7,
"column": 18
},
"identifierName": "material"
},
"name": "material"
},
{
"type": "Identifier",
"start": 256,
"end": 261,
"loc": {
"start": {
"line": 7,
"column": 20
},
"end": {
"line": 7,
"column": 25
},
"identifierName": "props"
},
"name": "props"
}
],
"body": {
"type": "BlockStatement",
"start": 263,
"end": 699,
"loc": {
"start": {
"line": 7,
"column": 27
},
"end": {
"line": 16,
"column": 5
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 273,
"end": 297,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 32
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 277,
"end": 296,
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 31
}
},
"id": {
"type": "Identifier",
"start": 277,
"end": 291,
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 26
},
"identifierName": "animationProps"
},
"name": "animationProps"
},
"init": {
"type": "ObjectExpression",
"start": 294,
"end": 296,
"loc": {
"start": {
"line": 8,
"column": 29
},
"end": {
"line": 8,
"column": 31
}
},
"properties": []
}
}
],
"kind": "let"
},
{
"type": "ForOfStatement",
"start": 306,
"end": 644,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 14,
"column": 9
}
},
"left": {
"type": "VariableDeclaration",
"start": 311,
"end": 318,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 20
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 315,
"end": 318,
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 9,
"column": 20
}
},
"id": {
"type": "Identifier",
"start": 315,
"end": 318,
"loc": {
"start": {
"line": 9,
"column": 17
},
"end": {
"line": 9,
"column": 20
},
"identifierName": "key"
},
"name": "key"
},
"init": null
}
],
"kind": "let"
},
"right": {
"type": "CallExpression",
"start": 322,
"end": 340,
"loc": {
"start": {
"line": 9,
"column": 24
},
"end": {
"line": 9,
"column": 42
}
},
"callee": {
"type": "MemberExpression",
"start": 322,
"end": 333,
"loc": {
"start": {
"line": 9,
"column": 24
},
"end": {
"line": 9,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 322,
"end": 328,
"loc": {
"start": {
"line": 9,
"column": 24
},
"end": {
"line": 9,
"column": 30
},
"identifierName": "Object"
},
"name": "Object"
},
"property": {
"type": "Identifier",
"start": 329,
"end": 333,
"loc": {
"start": {
"line": 9,
"column": 31
},
"end": {
"line": 9,
"column": 35
},
"identifierName": "keys"
},
"name": "keys"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 334,
"end": 339,
"loc": {
"start": {
"line": 9,
"column": 36
},
"end": {
"line": 9,
"column": 41
},
"identifierName": "props"
},
"name": "props"
}
]
},
"body": {
"type": "BlockStatement",
"start": 342,
"end": 644,
"loc": {
"start": {
"line": 9,
"column": 44
},
"end": {
"line": 14,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
"start": 356,
"end": 398,
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 54
}
},
"test": {
"type": "BinaryExpression",
"start": 360,
"end": 387,
"loc": {
"start": {
"line": 10,
"column": 16
},
"end": {
"line": 10,
"column": 43
}
},
"left": {
"type": "MemberExpression",
"start": 360,
"end": 373,
"loc": {
"start": {
"line": 10,
"column": 16
},
"end": {
"line": 10,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 360,
"end": 368,
"loc": {
"start": {
"line": 10,
"column": 16
},
"end": {
"line": 10,
"column": 24
},
"identifierName": "material"
},
"name": "material"
},
"property": {
"type": "Identifier",
"start": 369,
"end": 372,
"loc": {
"start": {
"line": 10,
"column": 25
},
"end": {
"line": 10,
"column": 28
},
"identifierName": "key"
},
"name": "key"
},
"computed": true
},
"operator": "===",
"right": {
"type": "Identifier",
"start": 378,
"end": 387,
"loc": {
"start": {
"line": 10,
"column": 34
},
"end": {
"line": 10,
"column": 43
},
"identifierName": "undefined"
},
"name": "undefined"
}
},
"consequent": {
"type": "ContinueStatement",
"start": 389,
"end": 398,
"loc": {
"start": {
"line": 10,
"column": 45
},
"end": {
"line": 10,
"column": 54
}
},
"label": null,
"leadingComments": null,
"trailingComments": null
},
"alternate": null,
"trailingComments": [
{
"type": "CommentLine",
"value": " skip properties unappliable to this material",
"start": 399,
"end": 446,
"loc": {
"start": {
"line": 10,
"column": 55
},
"end": {
"line": 10,
"column": 102
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 459,
"end": 492,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 45
}
},
"expression": {
"type": "AssignmentExpression",
"start": 459,
"end": 491,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 44
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 459,
"end": 478,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 31
}
},
"object": {
"type": "Identifier",
"start": 459,
"end": 473,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 26
},
"identifierName": "animationProps"
},
"name": "animationProps",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 474,
"end": 477,
"loc": {
"start": {
"line": 11,
"column": 27
},
"end": {
"line": 11,
"column": 30
},
"identifierName": "key"
},
"name": "key"
},
"computed": true,
"leadingComments": null
},
"right": {
"type": "MemberExpression",
"start": 481,
"end": 491,
"loc": {
"start": {
"line": 11,
"column": 34
},
"end": {
"line": 11,
"column": 44
}
},
"object": {
"type": "Identifier",
"start": 481,
"end": 486,
"loc": {
"start": {
"line": 11,
"column": 34
},
"end": {
"line": 11,
"column": 39
},
"identifierName": "props"
},
"name": "props"
},
"property": {
"type": "Identifier",
"start": 487,
"end": 490,
"loc": {
"start": {
"line": 11,
"column": 40
},
"end": {
"line": 11,
"column": 43
},
"identifierName": "key"
},
"name": "key"
},
"computed": true
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " skip properties unappliable to this material",
"start": 399,
"end": 446,
"loc": {
"start": {
"line": 10,
"column": 55
},
"end": {
"line": 10,
"column": 102
}
}
}
]
},
{
"type": "IfStatement",
"start": 505,
"end": 634,
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 13,
"column": 94
}
},
"test": {
"type": "BinaryExpression",
"start": 509,
"end": 538,
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 45
}
},
"left": {
"type": "MemberExpression",
"start": 509,
"end": 524,
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 31
}
},
"object": {
"type": "MemberExpression",
"start": 509,
"end": 519,
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 26
}
},
"object": {
"type": "ThisExpression",
"start": 509,
"end": 513,
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 20
}
}
},
"property": {
"type": "Identifier",
"start": 514,
"end": 519,
"loc": {
"start": {
"line": 12,
"column": 21
},
"end": {
"line": 12,
"column": 26
},
"identifierName": "props"
},
"name": "props"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 520,
"end": 523,
"loc": {
"start": {
"line": 12,
"column": 27
},
"end": {
"line": 12,
"column": 30
},
"identifierName": "key"
},
"name": "key"
},
"computed": true
},
"operator": "===",
"right": {
"type": "Identifier",
"start": 529,
"end": 538,
"loc": {
"start": {
"line": 12,
"column": 36
},
"end": {
"line": 12,
"column": 45
},
"identifierName": "undefined"
},
"name": "undefined"
}
},
"consequent": {
"type": "ExpressionStatement",
"start": 556,
"end": 634,
"loc": {
"start": {
"line": 13,
"column": 16
},
"end": {
"line": 13,
"column": 94
}
},
"expression": {
"type": "AssignmentExpression",
"start": 556,
"end": 633,
"loc": {
"start": {
"line": 13,
"column": 16
},
"end": {
"line": 13,
"column": 93
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 556,
"end": 571,
"loc": {
"start": {
"line": 13,
"column": 16
},
"end": {
"line": 13,
"column": 31
}
},
"object": {
"type": "MemberExpression",
"start": 556,
"end": 566,
"loc": {
"start": {
"line": 13,
"column": 16
},
"end": {
"line": 13,
"column": 26
}
},
"object": {
"type": "ThisExpression",
"start": 556,
"end": 560,
"loc": {
"start": {
"line": 13,
"column": 16
},
"end": {
"line": 13,
"column": 20
}
}
},
"property": {
"type": "Identifier",
"start": 561,
"end": 566,
"loc": {
"start": {
"line": 13,
"column": 21
},
"end": {
"line": 13,
"column": 26
},
"identifierName": "props"
},
"name": "props"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 567,
"end": 570,
"loc": {
"start": {
"line": 13,
"column": 27
},
"end": {
"line": 13,
"column": 30
},
"identifierName": "key"
},
"name": "key"
},
"computed": true
},
"right": {
"type": "ConditionalExpression",
"start": 574,
"end": 633,
"loc": {
"start": {
"line": 13,
"column": 34
},
"end": {
"line": 13,
"column": 93
}
},
"test": {
"type": "MemberExpression",
"start": 574,
"end": 593,
"loc": {
"start": {
"line": 13,
"column": 34
},
"end": {
"line": 13,
"column": 53
}
},
"object": {
"type": "MemberExpression",
"start": 574,
"end": 587,
"loc": {
"start": {
"line": 13,
"column": 34
},
"end": {
"line": 13,
"column": 47
}
},
"object": {
"type": "Identifier",
"start": 574,
"end": 582,
"loc": {
"start": {
"line": 13,
"column": 34
},
"end": {
"line": 13,
"column": 42
},
"identifierName": "material"
},
"name": "material"
},
"property": {
"type": "Identifier",
"start": 583,
"end": 586,
"loc": {
"start": {
"line": 13,
"column": 43
},
"end": {
"line": 13,
"column": 46
},
"identifierName": "key"
},
"name": "key"
},
"computed": true
},
"property": {
"type": "Identifier",
"start": 588,
"end": 593,
"loc": {
"start": {
"line": 13,
"column": 48
},
"end": {
"line": 13,