awv3
Version:
⚡ AWV3 embedded CAD
1,320 lines (1,319 loc) • 312 kB
JSON
{
"type": "File",
"start": 0,
"end": 2153,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 59,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 2153,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 59,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ClassDeclaration",
"start": 0,
"end": 793,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 22,
"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": 793,
"loc": {
"start": {
"line": 1,
"column": 23
},
"end": {
"line": 22,
"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": 715,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 17,
"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": 715,
"loc": {
"start": {
"line": 7,
"column": 27
},
"end": {
"line": 17,
"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": 660,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 15,
"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": 660,
"loc": {
"start": {
"line": 9,
"column": 44
},
"end": {
"line": 15,
"column": 9
}
},
"body": [
{
"type": "IfStatement",
"start": 356,
"end": 414,
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 11,
"column": 25
}
},
"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": 405,
"end": 414,
"loc": {
"start": {
"line": 11,
"column": 16
},
"end": {
"line": 11,
"column": 25
}
},
"label": null,
"leadingComments": null,
"trailingComments": null
},
"alternate": null,
"trailingComments": [
{
"type": "CommentLine",
"value": " skip properties unappliable to this material",
"start": 415,
"end": 462,
"loc": {
"start": {
"line": 11,
"column": 26
},
"end": {
"line": 11,
"column": 73
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 475,
"end": 508,
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 45
}
},
"expression": {
"type": "AssignmentExpression",
"start": 475,
"end": 507,
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 44
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 475,
"end": 494,
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 31
}
},
"object": {
"type": "Identifier",
"start": 475,
"end": 489,
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 26
},
"identifierName": "animationProps"
},
"name": "animationProps",
"leadingComments": null
},
"property": {
"type": "Identifier",
"start": 490,
"end": 493,
"loc": {
"start": {
"line": 12,
"column": 27
},
"end": {
"line": 12,
"column": 30
},
"identifierName": "key"
},
"name": "key"
},
"computed": true,
"leadingComments": null
},
"right": {
"type": "MemberExpression",
"start": 497,
"end": 507,
"loc": {
"start": {
"line": 12,
"column": 34
},
"end": {
"line": 12,
"column": 44
}
},
"object": {
"type": "Identifier",
"start": 497,
"end": 502,
"loc": {
"start": {
"line": 12,
"column": 34
},
"end": {
"line": 12,
"column": 39
},
"identifierName": "props"
},
"name": "props"
},
"property": {
"type": "Identifier",
"start": 503,
"end": 506,
"loc": {
"start": {
"line": 12,
"column": 40
},
"end": {
"line": 12,
"column": 43
},
"identifierName": "key"
},
"name": "key"
},
"computed": true
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " skip properties unappliable to this material",
"start": 415,
"end": 462,
"loc": {
"start": {
"line": 11,
"column": 26
},
"end": {
"line": 11,
"column": 73
}
}
}
]
},
{
"type": "IfStatement",
"start": 521,
"end": 650,
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 14,
"column": 94
}
},
"test": {
"type": "BinaryExpression",
"start": 525,
"end": 554,
"loc": {
"start": {
"line": 13,
"column": 16
},
"end": {
"line": 13,
"column": 45
}
},
"left": {
"type": "MemberExpression",
"start": 525,
"end": 540,
"loc": {
"start": {
"line": 13,
"column": 16
},
"end": {
"line": 13,
"column": 31
}
},
"object": {
"type": "MemberExpression",
"start": 525,
"end": 535,
"loc": {
"start": {
"line": 13,
"column": 16
},
"end": {
"line": 13,
"column": 26
}
},
"object": {
"type": "ThisExpression",
"start": 525,
"end": 529,
"loc": {
"start": {
"line": 13,
"column": 16
},
"end": {
"line": 13,
"column": 20
}
}
},
"property": {
"type": "Identifier",
"start": 530,
"end": 535,
"loc": {
"start": {
"line": 13,
"column": 21
},
"end": {
"line": 13,
"column": 26
},
"identifierName": "props"
},
"name": "props"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 536,
"end": 539,
"loc": {
"start": {
"line": 13,
"column": 27
},
"end": {
"line": 13,
"column": 30
},
"identifierName": "key"
},
"name": "key"
},
"computed": true
},
"operator": "===",
"right": {
"type": "Identifier",
"start": 545,
"end": 554,
"loc": {
"start": {
"line": 13,
"column": 36
},
"end": {
"line": 13,
"column": 45
},
"identifierName": "undefined"
},
"name": "undefined"
}
},
"consequent": {
"type": "ExpressionStatement",
"start": 572,
"end": 650,
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 94
}
},
"expression": {
"type": "AssignmentExpression",
"start": 572,
"end": 649,
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 93
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 572,
"end": 587,
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 31
}
},
"object": {
"type": "MemberExpression",
"start": 572,
"end": 582,
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 26
}
},
"object": {
"type": "ThisExpression",
"start": 572,
"end": 576,
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 20
}
}
},
"property": {
"type": "Identifier",
"start": 577,
"end": 582,
"loc": {
"start": {
"line": 14,
"column": 21
},
"end": {
"line": 14,
"column": 26
},
"identifierName": "props"
},
"name": "props"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 583,
"end": 586,
"loc": {
"start": {
"line": 14,
"column": 27
},
"end": {
"line": 14,
"column": 30
},
"identifierName": "key"
},
"name": "key"
},
"computed": true
},
"right": {
"type": "ConditionalExpression",
"start": 590,
"end": 649,
"loc": {
"start": {
"line": 14,
"column": 34
},
"end": {
"line": 14,
"column": 93
}
},
"test": {
"type": "MemberExpression",
"start": 590,
"end": 609,
"loc": {
"start": {
"line": 14,
"column": 34
},
"end": {
"line": 14,
"column": 53
}
},
"object": {
"type": "MemberExpression",
"start": 590,
"end": 603,
"loc": {
"start": {
"line": 14,
"column": 34
},
"end": {
"line": 14,
"column": 47
}
},
"object": {
"type": "Identifier",
"start": 590,
"end": 598,
"loc": {
"start": {
"line": 14,
"column": 34
},
"end": {
"line": 14,
"column": 42
},
"identifierName": "material"
},
"name": "material"
},
"property": {
"type": "Identifier",
"start": 599,
"end": 602,
"loc": {
"start": {
"line": 14,
"column": 43
},
"end": {
"line": 14,
"column": 46
},
"identifierName": "key"
},
"name": "key"
},
"computed": true
},
"property": {
"type": "Identifier",
"start": 604,
"end": 609,
"loc": {
"start": {
"line": 14,
"column": 48
},
"end": {
"line": 14,