awv3
Version:
⚡ AWV3 embedded CAD
1,258 lines (1,257 loc) • 247 kB
JSON
{
"type": "File",
"start": 0,
"end": 1072,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 28,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 1072,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 28,
"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": "ImportDeclaration",
"start": 32,
"end": 66,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 34
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 39,
"end": 51,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 19
}
},
"local": {
"type": "Identifier",
"start": 39,
"end": 51,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 19
},
"identifierName": "BaseGraphics"
},
"name": "BaseGraphics"
}
}
],
"source": {
"type": "StringLiteral",
"start": 57,
"end": 65,
"loc": {
"start": {
"line": 2,
"column": 25
},
"end": {
"line": 2,
"column": 33
}
},
"extra": {
"rawValue": "./base",
"raw": "'./base'"
},
"value": "./base"
}
},
{
"type": "ExportDefaultDeclaration",
"start": 68,
"end": 1071,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 27,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 83,
"end": 1071,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 27,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 89,
"end": 93,
"loc": {
"start": {
"line": 4,
"column": 21
},
"end": {
"line": 4,
"column": 25
},
"identifierName": "Line"
},
"name": "Line"
},
"superClass": {
"type": "Identifier",
"start": 102,
"end": 114,
"loc": {
"start": {
"line": 4,
"column": 34
},
"end": {
"line": 4,
"column": 46
},
"identifierName": "BaseGraphics"
},
"name": "BaseGraphics"
},
"body": {
"type": "ClassBody",
"start": 115,
"end": 1071,
"loc": {
"start": {
"line": 4,
"column": 47
},
"end": {
"line": 27,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 121,
"end": 545,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 15,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 121,
"end": 132,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 135,
"end": 545,
"loc": {
"start": {
"line": 5,
"column": 18
},
"end": {
"line": 15,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 145,
"end": 153,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 16
}
},
"expression": {
"type": "CallExpression",
"start": 145,
"end": 152,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 15
}
},
"callee": {
"type": "Super",
"start": 145,
"end": 150,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 13
}
}
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 162,
"end": 416,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 11,
"column": 12
}
},
"expression": {
"type": "AssignmentExpression",
"start": 162,
"end": 415,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 11,
"column": 11
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 162,
"end": 176,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 162,
"end": 166,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 167,
"end": 176,
"loc": {
"start": {
"line": 7,
"column": 13
},
"end": {
"line": 7,
"column": 22
},
"identifierName": "localMesh"
},
"name": "localMesh"
},
"computed": false
},
"right": {
"type": "NewExpression",
"start": 179,
"end": 415,
"loc": {
"start": {
"line": 7,
"column": 25
},
"end": {
"line": 11,
"column": 11
}
},
"callee": {
"type": "MemberExpression",
"start": 183,
"end": 193,
"loc": {
"start": {
"line": 7,
"column": 29
},
"end": {
"line": 7,
"column": 39
}
},
"object": {
"type": "Identifier",
"start": 183,
"end": 188,
"loc": {
"start": {
"line": 7,
"column": 29
},
"end": {
"line": 7,
"column": 34
},
"identifierName": "THREE"
},
"name": "THREE"
},
"property": {
"type": "Identifier",
"start": 189,
"end": 193,
"loc": {
"start": {
"line": 7,
"column": 35
},
"end": {
"line": 7,
"column": 39
},
"identifierName": "Mesh"
},
"name": "Mesh"
},
"computed": false
},
"arguments": [
{
"type": "NewExpression",
"start": 194,
"end": 224,
"loc": {
"start": {
"line": 7,
"column": 40
},
"end": {
"line": 7,
"column": 70
}
},
"callee": {
"type": "MemberExpression",
"start": 198,
"end": 215,
"loc": {
"start": {
"line": 7,
"column": 44
},
"end": {
"line": 7,
"column": 61
}
},
"object": {
"type": "Identifier",
"start": 198,
"end": 203,
"loc": {
"start": {
"line": 7,
"column": 44
},
"end": {
"line": 7,
"column": 49
},
"identifierName": "THREE"
},
"name": "THREE"
},
"property": {
"type": "Identifier",
"start": 204,
"end": 215,
"loc": {
"start": {
"line": 7,
"column": 50
},
"end": {
"line": 7,
"column": 61
},
"identifierName": "BoxGeometry"
},
"name": "BoxGeometry"
},
"computed": false
},
"arguments": [
{
"type": "NumericLiteral",
"start": 216,
"end": 217,
"loc": {
"start": {
"line": 7,
"column": 62
},
"end": {
"line": 7,
"column": 63
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
},
{
"type": "NumericLiteral",
"start": 219,
"end": 220,
"loc": {
"start": {
"line": 7,
"column": 65
},
"end": {
"line": 7,
"column": 66
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
},
{
"type": "NumericLiteral",
"start": 222,
"end": 223,
"loc": {
"start": {
"line": 7,
"column": 68
},
"end": {
"line": 7,
"column": 69
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
]
},
{
"type": "NewExpression",
"start": 226,
"end": 414,
"loc": {
"start": {
"line": 7,
"column": 72
},
"end": {
"line": 11,
"column": 10
}
},
"callee": {
"type": "MemberExpression",
"start": 230,
"end": 253,
"loc": {
"start": {
"line": 7,
"column": 76
},
"end": {
"line": 7,
"column": 99
}
},
"object": {
"type": "Identifier",
"start": 230,
"end": 235,
"loc": {
"start": {
"line": 7,
"column": 76
},
"end": {
"line": 7,
"column": 81
},
"identifierName": "THREE"
},
"name": "THREE"
},
"property": {
"type": "Identifier",
"start": 236,
"end": 253,
"loc": {
"start": {
"line": 7,
"column": 82
},
"end": {
"line": 7,
"column": 99
},
"identifierName": "MeshBasicMaterial"
},
"name": "MeshBasicMaterial"
},
"computed": false
},
"arguments": [
{
"type": "ObjectExpression",
"start": 254,
"end": 413,
"loc": {
"start": {
"line": 7,
"column": 100
},
"end": {
"line": 11,
"column": 9
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 268,
"end": 283,
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 27
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 268,
"end": 273,
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 17
},
"identifierName": "color"
},
"name": "color"
},
"value": {
"type": "NumericLiteral",
"start": 275,
"end": 283,
"loc": {
"start": {
"line": 8,
"column": 19
},
"end": {
"line": 8,
"column": 27
}
},
"extra": {
"rawValue": 3373218,
"raw": "0x3378a2"
},
"value": 3373218
}
},
{
"type": "ObjectProperty",
"start": 297,
"end": 319,
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 34
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 297,
"end": 301,
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 16
},
"identifierName": "side"
},
"name": "side"
},
"value": {
"type": "MemberExpression",
"start": 303,
"end": 319,
"loc": {
"start": {
"line": 9,
"column": 18
},
"end": {
"line": 9,
"column": 34
}
},
"object": {
"type": "Identifier",
"start": 303,
"end": 308,
"loc": {
"start": {
"line": 9,
"column": 18
},
"end": {
"line": 9,
"column": 23
},
"identifierName": "THREE"
},
"name": "THREE"
},
"property": {
"type": "Identifier",
"start": 309,
"end": 319,
"loc": {
"start": {
"line": 9,
"column": 24
},
"end": {
"line": 9,
"column": 34
},
"identifierName": "DoubleSide"
},
"name": "DoubleSide"
},
"computed": false
}
},
{
"type": "ObjectProperty",
"start": 333,
"end": 352,
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 31
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 333,
"end": 346,
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 25
},
"identifierName": "polygonOffset"
},
"name": "polygonOffset"
},
"value": {
"type": "BooleanLiteral",
"start": 348,
"end": 352,
"loc": {
"start": {
"line": 10,
"column": 27
},
"end": {
"line": 10,
"column": 31
}
},
"value": true
}
},
{
"type": "ObjectProperty",
"start": 354,
"end": 377,
"loc": {
"start": {
"line": 10,
"column": 33
},
"end": {
"line": 10,
"column": 56
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 354,
"end": 373,
"loc": {
"start": {
"line": 10,
"column": 33
},
"end": {
"line": 10,
"column": 52
},
"identifierName": "polygonOffsetFactor"
},
"name": "polygonOffsetFactor"
},
"value": {
"type": "UnaryExpression",
"start": 375,
"end": 377,
"loc": {
"start": {
"line": 10,
"column": 54
},
"end": {
"line": 10,
"column": 56
}
},
"operator": "-",
"prefix": true,
"argument": {
"type": "NumericLiteral",
"start": 376,
"end": 377,
"loc": {
"start": {
"line": 10,
"column": 55
},
"end": {
"line": 10,
"column": 56
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
},
"extra": {
"parenthesizedArgument": false
}
}
},
{
"type": "ObjectProperty",
"start": 379,
"end": 402,
"loc": {
"start": {
"line": 10,
"column": 58
},
"end": {
"line": 10,
"column": 81
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 379,
"end": 397,
"loc": {
"start": {
"line": 10,
"column": 58
},
"end": {
"line": 10,
"column": 76
},
"identifierName": "polygonOffsetUnits"
},
"name": "polygonOffsetUnits"
},
"value": {
"type": "UnaryExpression",
"start": 400,
"end": 402,
"loc": {
"start": {
"line": 10,
"column": 79
},
"end": {
"line": 10,
"column": 81
}
},
"operator": "-",
"prefix": true,
"argument": {
"type": "NumericLiteral",
"start": 401,
"end": 402,
"loc": {
"start": {
"line": 10,
"column": 80
},
"end": {
"line": 10,
"column": 81
}
},
"extra": {
"rawValue": 5,
"raw": "5"
},
"value": 5
},
"extra": {
"parenthesizedArgument": false
}
}
}
]
}
]
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 425,
"end": 462,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 45
}
},
"expression": {
"type": "AssignmentExpression",
"start": 425,
"end": 461,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 44
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 425,
"end": 444,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 27
}
},
"object": {
"type": "MemberExpression",
"start": 425,
"end": 439,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 425,
"end": 429,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 430,
"end": 439,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 22
},
"identifierName": "localMesh"
},
"name": "localMesh"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 440,
"end": 444,
"loc": {
"start": {
"line": 12,
"column": 23
},
"end": {
"line": 12,
"column": 27
},
"identifierName": "type"
},
"name": "type"
},
"computed": false
},
"right": {
"type": "StringLiteral",
"start": 447,
"end": 461,
"loc": {
"start": {
"line": 12,
"column": 30
},
"end": {
"line": 12,
"column": 44
}
},
"extra": {
"rawValue": "SketcherMesh",
"raw": "'SketcherMesh'"
},
"value": "SketcherMesh"
}
}
},
{
"type": "ExpressionStatement",
"start": 471,
"end": 505,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 42
}
},
"expression": {
"type": "AssignmentExpression",
"start": 471,
"end": 504,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 41
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 471,
"end": 499,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 36
}
},
"object": {
"type": "MemberExpression",
"start": 471,
"end": 494,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 31
}
},
"object": {
"type": "MemberExpression",
"start": 471,
"end": 485,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 471,
"end": 475,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,