awv3
Version:
⚡ AWV3 embedded CAD
1,340 lines (1,339 loc) • 499 kB
JSON
{
"type": "File",
"start": 0,
"end": 5681,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 146,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 5681,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 146,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 31,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 31
}
},
"specifiers": [
{
"type": "ImportNamespaceSpecifier",
"start": 7,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 17
}
},
"local": {
"type": "Identifier",
"start": 12,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 17
},
"identifierName": "THREE"
},
"name": "THREE"
}
}
],
"source": {
"type": "StringLiteral",
"start": 23,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 23
},
"end": {
"line": 1,
"column": 30
}
},
"extra": {
"rawValue": "three",
"raw": "'three'"
},
"value": "three"
}
},
{
"type": "ExportDefaultDeclaration",
"start": 33,
"end": 5680,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 145,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 48,
"end": 5680,
"loc": {
"start": {
"line": 3,
"column": 15
},
"end": {
"line": 145,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 54,
"end": 71,
"loc": {
"start": {
"line": 3,
"column": 21
},
"end": {
"line": 3,
"column": 38
},
"identifierName": "MeshPhongMaterial"
},
"name": "MeshPhongMaterial"
},
"superClass": {
"type": "MemberExpression",
"start": 80,
"end": 103,
"loc": {
"start": {
"line": 3,
"column": 47
},
"end": {
"line": 3,
"column": 70
}
},
"object": {
"type": "Identifier",
"start": 80,
"end": 85,
"loc": {
"start": {
"line": 3,
"column": 47
},
"end": {
"line": 3,
"column": 52
},
"identifierName": "THREE"
},
"name": "THREE"
},
"property": {
"type": "Identifier",
"start": 86,
"end": 103,
"loc": {
"start": {
"line": 3,
"column": 53
},
"end": {
"line": 3,
"column": 70
},
"identifierName": "MeshPhongMaterial"
},
"name": "MeshPhongMaterial"
},
"computed": false
},
"body": {
"type": "ClassBody",
"start": 104,
"end": 5680,
"loc": {
"start": {
"line": 3,
"column": 71
},
"end": {
"line": 145,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 110,
"end": 4873,
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 123,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 110,
"end": 121,
"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": [
{
"type": "Identifier",
"start": 122,
"end": 129,
"loc": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 4,
"column": 23
},
"identifierName": "options"
},
"name": "options"
}
],
"body": {
"type": "BlockStatement",
"start": 131,
"end": 4873,
"loc": {
"start": {
"line": 4,
"column": 25
},
"end": {
"line": 123,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 141,
"end": 149,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 16
}
},
"expression": {
"type": "CallExpression",
"start": 141,
"end": 148,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 15
}
},
"callee": {
"type": "Super",
"start": 141,
"end": 146,
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 13
}
}
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 159,
"end": 196,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 45
}
},
"expression": {
"type": "AssignmentExpression",
"start": 159,
"end": 195,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 44
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 159,
"end": 168,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 159,
"end": 163,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 164,
"end": 168,
"loc": {
"start": {
"line": 7,
"column": 13
},
"end": {
"line": 7,
"column": 17
},
"identifierName": "type"
},
"name": "type"
},
"computed": false
},
"right": {
"type": "StringLiteral",
"start": 171,
"end": 195,
"loc": {
"start": {
"line": 7,
"column": 20
},
"end": {
"line": 7,
"column": 44
}
},
"extra": {
"rawValue": "AWV3.MeshPhongMaterial",
"raw": "'AWV3.MeshPhongMaterial'"
},
"value": "AWV3.MeshPhongMaterial"
}
}
},
{
"type": "ExpressionStatement",
"start": 205,
"end": 222,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 205,
"end": 221,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 24
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 205,
"end": 213,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 16
}
},
"object": {
"type": "ThisExpression",
"start": 205,
"end": 209,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 210,
"end": 213,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 16
},
"identifierName": "fog"
},
"name": "fog"
},
"computed": false
},
"right": {
"type": "BooleanLiteral",
"start": 216,
"end": 221,
"loc": {
"start": {
"line": 8,
"column": 19
},
"end": {
"line": 8,
"column": 24
}
},
"value": false
}
}
},
{
"type": "ExpressionStatement",
"start": 231,
"end": 255,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 32
}
},
"expression": {
"type": "AssignmentExpression",
"start": 231,
"end": 254,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 31
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 231,
"end": 247,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 231,
"end": 235,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 236,
"end": 247,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 24
},
"identifierName": "transparent"
},
"name": "transparent"
},
"computed": false
},
"right": {
"type": "BooleanLiteral",
"start": 250,
"end": 254,
"loc": {
"start": {
"line": 9,
"column": 27
},
"end": {
"line": 9,
"column": 31
}
},
"value": true
}
}
},
{
"type": "ExpressionStatement",
"start": 264,
"end": 290,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 34
}
},
"expression": {
"type": "AssignmentExpression",
"start": 264,
"end": 289,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 33
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 264,
"end": 282,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 26
}
},
"object": {
"type": "ThisExpression",
"start": 264,
"end": 268,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 269,
"end": 282,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 26
},
"identifierName": "polygonOffset"
},
"name": "polygonOffset"
},
"computed": false
},
"right": {
"type": "BooleanLiteral",
"start": 285,
"end": 289,
"loc": {
"start": {
"line": 10,
"column": 29
},
"end": {
"line": 10,
"column": 33
}
},
"value": true
}
}
},
{
"type": "ExpressionStatement",
"start": 299,
"end": 328,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 37
}
},
"expression": {
"type": "AssignmentExpression",
"start": 299,
"end": 327,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 36
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 299,
"end": 323,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 32
}
},
"object": {
"type": "ThisExpression",
"start": 299,
"end": 303,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 304,
"end": 323,
"loc": {
"start": {
"line": 11,
"column": 13
},
"end": {
"line": 11,
"column": 32
},
"identifierName": "polygonOffsetFactor"
},
"name": "polygonOffsetFactor"
},
"computed": false
},
"right": {
"type": "NumericLiteral",
"start": 326,
"end": 327,
"loc": {
"start": {
"line": 11,
"column": 35
},
"end": {
"line": 11,
"column": 36
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
}
},
{
"type": "ExpressionStatement",
"start": 337,
"end": 365,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 36
}
},
"expression": {
"type": "AssignmentExpression",
"start": 337,
"end": 364,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 35
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 337,
"end": 360,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 337,
"end": 341,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 342,
"end": 360,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 31
},
"identifierName": "polygonOffsetUnits"
},
"name": "polygonOffsetUnits"
},
"computed": false
},
"right": {
"type": "NumericLiteral",
"start": 363,
"end": 364,
"loc": {
"start": {
"line": 12,
"column": 34
},
"end": {
"line": 12,
"column": 35
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
}
},
{
"type": "ExpressionStatement",
"start": 375,
"end": 1238,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 35,
"column": 11
}
},
"expression": {
"type": "AssignmentExpression",
"start": 375,
"end": 1237,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 35,
"column": 10
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 375,
"end": 388,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 375,
"end": 379,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 380,
"end": 388,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 21
},
"identifierName": "uniforms"
},
"name": "uniforms"
},
"computed": false
},
"right": {
"type": "CallExpression",
"start": 391,
"end": 1237,
"loc": {
"start": {
"line": 14,
"column": 24
},
"end": {
"line": 35,
"column": 10
}
},
"callee": {
"type": "MemberExpression",
"start": 391,
"end": 416,
"loc": {
"start": {
"line": 14,
"column": 24
},
"end": {
"line": 14,
"column": 49
}
},
"object": {
"type": "MemberExpression",
"start": 391,
"end": 410,
"loc": {
"start": {
"line": 14,
"column": 24
},
"end": {
"line": 14,
"column": 43
}
},
"object": {
"type": "Identifier",
"start": 391,
"end": 396,
"loc": {
"start": {
"line": 14,
"column": 24
},
"end": {
"line": 14,
"column": 29
},
"identifierName": "THREE"
},
"name": "THREE"
},
"property": {
"type": "Identifier",
"start": 397,
"end": 410,
"loc": {
"start": {
"line": 14,
"column": 30
},
"end": {
"line": 14,
"column": 43
},
"identifierName": "UniformsUtils"
},
"name": "UniformsUtils"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 411,
"end": 416,
"loc": {
"start": {
"line": 14,
"column": 44
},
"end": {
"line": 14,
"column": 49
},
"identifierName": "merge"
},
"name": "merge"
},
"computed": false
},
"arguments": [
{
"type": "ArrayExpression",
"start": 418,
"end": 1236,
"loc": {
"start": {
"line": 14,
"column": 51
},
"end": {
"line": 35,
"column": 9
}
},
"elements": [
{
"type": "MemberExpression",
"start": 432,
"end": 461,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 41
}
},
"object": {
"type": "MemberExpression",
"start": 432,
"end": 449,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 29
}
},
"object": {
"type": "Identifier",
"start": 432,
"end": 437,
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 17
},
"identifierName": "THREE"
},
"name": "THREE"
},
"property": {
"type": "Identifier",
"start": 438,
"end": 449,
"loc": {
"start": {
"line": 15,
"column": 18
},
"end": {
"line": 15,
"column": 29
},
"identifierName": "UniformsLib"
},
"name": "UniformsLib"
},
"computed": false
},
"property": {
"type": "StringLiteral",
"start": 451,
"end": 459,
"loc": {
"start": {
"line": 15,
"column": 31
},
"end": {
"line": 15,
"column": 39
}
},
"extra": {
"rawValue": "common",
"raw": "'common'"
},
"value": "common"
},
"computed": true
},
{
"type": "MemberExpression",
"start": 466,
"end": 494,
"loc": {
"start": {
"line": 16,
"column": 3
},
"end": {
"line": 16,
"column": 31
}
},
"object": {
"type": "MemberExpression",
"start": 466,
"end": 483,
"loc": {
"start": {
"line": 16,
"column": 3
},
"end": {
"line": 16,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 466,
"end": 471,
"loc": {
"start": {
"line": 16,
"column": 3
},
"end": {
"line": 16,
"column": 8
},
"identifierName": "THREE"
},
"name": "THREE"
},
"property": {
"type": "Identifier",
"start": 472,
"end": 483,
"loc": {
"start": {
"line": 16,
"column": 9
},
"end": {
"line": 16,
"column": 20
},
"identifierName": "UniformsLib"
},
"name": "UniformsLib"
},
"computed": false
},
"property": {
"type": "StringLiteral",
"start": 485,
"end": 492,
"loc": {
"start": {
"line": 16,
"column": 22
},
"end": {
"line": 16,
"column": 29
}
},
"extra": {
"rawValue": "aomap",
"raw": "'aomap'"
},
"value": "aomap"
},
"computed": true
},
{
"type": "MemberExpression",
"start": 499,
"end": 530,
"loc": {
"start": {
"line": 17,
"column": 3
},
"end": {
"line": 17,
"column": 34
}
},
"object": {
"type": "MemberExpression",
"start": 499,
"end": 516,
"loc": {
"start": {
"line": 17,
"column": 3
},
"end": {
"line": 17,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 499,
"end": 504,
"loc": {
"start": {
"line": 17,
"column": 3
},
"end": {
"line": 17,
"column": 8
},
"identifierName": "THREE"
},
"name": "THREE"
},
"property": {
"type": "Identifier",
"start": 505,
"end": 516,
"loc": {
"start": {
"line": 17,
"column": 9
},
"end": {
"line": 17,
"column": 20
},
"identifierName": "UniformsLib"
},
"name": "UniformsLib"
},
"computed": false
},
"property": {
"type": "StringLiteral",
"start": 518,
"end": 528,