awv3
Version:
⚡ AWV3 embedded CAD
1,258 lines (1,257 loc) • 183 kB
JSON
{
"type": "File",
"start": 0,
"end": 916,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 26,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 916,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 26,
"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": 915,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 25,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 83,
"end": 915,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 25,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 89,
"end": 94,
"loc": {
"start": {
"line": 4,
"column": 21
},
"end": {
"line": 4,
"column": 26
},
"identifierName": "Point"
},
"name": "Point"
},
"superClass": {
"type": "Identifier",
"start": 103,
"end": 115,
"loc": {
"start": {
"line": 4,
"column": 35
},
"end": {
"line": 4,
"column": 47
},
"identifierName": "BaseGraphics"
},
"name": "BaseGraphics"
},
"body": {
"type": "ClassBody",
"start": 116,
"end": 915,
"loc": {
"start": {
"line": 4,
"column": 48
},
"end": {
"line": 25,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 122,
"end": 550,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 15,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 122,
"end": 133,
"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": 136,
"end": 550,
"loc": {
"start": {
"line": 5,
"column": 18
},
"end": {
"line": 15,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 146,
"end": 154,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 16
}
},
"expression": {
"type": "CallExpression",
"start": 146,
"end": 153,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 15
}
},
"callee": {
"type": "Super",
"start": 146,
"end": 151,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 13
}
}
},
"arguments": []
}
},
{
"type": "ExpressionStatement",
"start": 163,
"end": 421,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 11,
"column": 12
}
},
"expression": {
"type": "AssignmentExpression",
"start": 163,
"end": 420,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 11,
"column": 11
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 163,
"end": 177,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 163,
"end": 167,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 168,
"end": 177,
"loc": {
"start": {
"line": 7,
"column": 13
},
"end": {
"line": 7,
"column": 22
},
"identifierName": "localMesh"
},
"name": "localMesh"
},
"computed": false
},
"right": {
"type": "NewExpression",
"start": 180,
"end": 420,
"loc": {
"start": {
"line": 7,
"column": 25
},
"end": {
"line": 11,
"column": 11
}
},
"callee": {
"type": "MemberExpression",
"start": 184,
"end": 194,
"loc": {
"start": {
"line": 7,
"column": 29
},
"end": {
"line": 7,
"column": 39
}
},
"object": {
"type": "Identifier",
"start": 184,
"end": 189,
"loc": {
"start": {
"line": 7,
"column": 29
},
"end": {
"line": 7,
"column": 34
},
"identifierName": "THREE"
},
"name": "THREE"
},
"property": {
"type": "Identifier",
"start": 190,
"end": 194,
"loc": {
"start": {
"line": 7,
"column": 35
},
"end": {
"line": 7,
"column": 39
},
"identifierName": "Mesh"
},
"name": "Mesh"
},
"computed": false
},
"arguments": [
{
"type": "NewExpression",
"start": 195,
"end": 228,
"loc": {
"start": {
"line": 7,
"column": 40
},
"end": {
"line": 7,
"column": 73
}
},
"callee": {
"type": "MemberExpression",
"start": 199,
"end": 219,
"loc": {
"start": {
"line": 7,
"column": 44
},
"end": {
"line": 7,
"column": 64
}
},
"object": {
"type": "Identifier",
"start": 199,
"end": 204,
"loc": {
"start": {
"line": 7,
"column": 44
},
"end": {
"line": 7,
"column": 49
},
"identifierName": "THREE"
},
"name": "THREE"
},
"property": {
"type": "Identifier",
"start": 205,
"end": 219,
"loc": {
"start": {
"line": 7,
"column": 50
},
"end": {
"line": 7,
"column": 64
},
"identifierName": "CircleGeometry"
},
"name": "CircleGeometry"
},
"computed": false
},
"arguments": [
{
"type": "NumericLiteral",
"start": 220,
"end": 223,
"loc": {
"start": {
"line": 7,
"column": 65
},
"end": {
"line": 7,
"column": 68
}
},
"extra": {
"rawValue": 1,
"raw": "1.0"
},
"value": 1
},
{
"type": "NumericLiteral",
"start": 225,
"end": 227,
"loc": {
"start": {
"line": 7,
"column": 70
},
"end": {
"line": 7,
"column": 72
}
},
"extra": {
"rawValue": 32,
"raw": "32"
},
"value": 32
}
]
},
{
"type": "NewExpression",
"start": 230,
"end": 419,
"loc": {
"start": {
"line": 7,
"column": 75
},
"end": {
"line": 11,
"column": 10
}
},
"callee": {
"type": "MemberExpression",
"start": 234,
"end": 257,
"loc": {
"start": {
"line": 7,
"column": 79
},
"end": {
"line": 7,
"column": 102
}
},
"object": {
"type": "Identifier",
"start": 234,
"end": 239,
"loc": {
"start": {
"line": 7,
"column": 79
},
"end": {
"line": 7,
"column": 84
},
"identifierName": "THREE"
},
"name": "THREE"
},
"property": {
"type": "Identifier",
"start": 240,
"end": 257,
"loc": {
"start": {
"line": 7,
"column": 85
},
"end": {
"line": 7,
"column": 102
},
"identifierName": "MeshBasicMaterial"
},
"name": "MeshBasicMaterial"
},
"computed": false
},
"arguments": [
{
"type": "ObjectExpression",
"start": 258,
"end": 418,
"loc": {
"start": {
"line": 7,
"column": 103
},
"end": {
"line": 11,
"column": 9
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 272,
"end": 287,
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 27
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 272,
"end": 277,
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 17
},
"identifierName": "color"
},
"name": "color"
},
"value": {
"type": "NumericLiteral",
"start": 279,
"end": 287,
"loc": {
"start": {
"line": 8,
"column": 19
},
"end": {
"line": 8,
"column": 27
}
},
"extra": {
"rawValue": 10967001,
"raw": "0xa757d9"
},
"value": 10967001
}
},
{
"type": "ObjectProperty",
"start": 301,
"end": 323,
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 34
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 301,
"end": 305,
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 16
},
"identifierName": "side"
},
"name": "side"
},
"value": {
"type": "MemberExpression",
"start": 307,
"end": 323,
"loc": {
"start": {
"line": 9,
"column": 18
},
"end": {
"line": 9,
"column": 34
}
},
"object": {
"type": "Identifier",
"start": 307,
"end": 312,
"loc": {
"start": {
"line": 9,
"column": 18
},
"end": {
"line": 9,
"column": 23
},
"identifierName": "THREE"
},
"name": "THREE"
},
"property": {
"type": "Identifier",
"start": 313,
"end": 323,
"loc": {
"start": {
"line": 9,
"column": 24
},
"end": {
"line": 9,
"column": 34
},
"identifierName": "DoubleSide"
},
"name": "DoubleSide"
},
"computed": false
}
},
{
"type": "ObjectProperty",
"start": 337,
"end": 356,
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 31
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 337,
"end": 350,
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 25
},
"identifierName": "polygonOffset"
},
"name": "polygonOffset"
},
"value": {
"type": "BooleanLiteral",
"start": 352,
"end": 356,
"loc": {
"start": {
"line": 10,
"column": 27
},
"end": {
"line": 10,
"column": 31
}
},
"value": true
}
},
{
"type": "ObjectProperty",
"start": 358,
"end": 381,
"loc": {
"start": {
"line": 10,
"column": 33
},
"end": {
"line": 10,
"column": 56
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 358,
"end": 377,
"loc": {
"start": {
"line": 10,
"column": 33
},
"end": {
"line": 10,
"column": 52
},
"identifierName": "polygonOffsetFactor"
},
"name": "polygonOffsetFactor"
},
"value": {
"type": "UnaryExpression",
"start": 379,
"end": 381,
"loc": {
"start": {
"line": 10,
"column": 54
},
"end": {
"line": 10,
"column": 56
}
},
"operator": "-",
"prefix": true,
"argument": {
"type": "NumericLiteral",
"start": 380,
"end": 381,
"loc": {
"start": {
"line": 10,
"column": 55
},
"end": {
"line": 10,
"column": 56
}
},
"extra": {
"rawValue": 3,
"raw": "3"
},
"value": 3
},
"extra": {
"parenthesizedArgument": false
}
}
},
{
"type": "ObjectProperty",
"start": 383,
"end": 407,
"loc": {
"start": {
"line": 10,
"column": 58
},
"end": {
"line": 10,
"column": 82
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 383,
"end": 401,
"loc": {
"start": {
"line": 10,
"column": 58
},
"end": {
"line": 10,
"column": 76
},
"identifierName": "polygonOffsetUnits"
},
"name": "polygonOffsetUnits"
},
"value": {
"type": "UnaryExpression",
"start": 404,
"end": 407,
"loc": {
"start": {
"line": 10,
"column": 79
},
"end": {
"line": 10,
"column": 82
}
},
"operator": "-",
"prefix": true,
"argument": {
"type": "NumericLiteral",
"start": 405,
"end": 407,
"loc": {
"start": {
"line": 10,
"column": 80
},
"end": {
"line": 10,
"column": 82
}
},
"extra": {
"rawValue": 15,
"raw": "15"
},
"value": 15
},
"extra": {
"parenthesizedArgument": false
}
}
}
]
}
]
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 430,
"end": 467,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 45
}
},
"expression": {
"type": "AssignmentExpression",
"start": 430,
"end": 466,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 44
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 430,
"end": 449,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 27
}
},
"object": {
"type": "MemberExpression",
"start": 430,
"end": 444,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 430,
"end": 434,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 435,
"end": 444,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 22
},
"identifierName": "localMesh"
},
"name": "localMesh"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 445,
"end": 449,
"loc": {
"start": {
"line": 12,
"column": 23
},
"end": {
"line": 12,
"column": 27
},
"identifierName": "type"
},
"name": "type"
},
"computed": false
},
"right": {
"type": "StringLiteral",
"start": 452,
"end": 466,
"loc": {
"start": {
"line": 12,
"column": 30
},
"end": {
"line": 12,
"column": 44
}
},
"extra": {
"rawValue": "SketcherMesh",
"raw": "'SketcherMesh'"
},
"value": "SketcherMesh"
}
}
},
{
"type": "ExpressionStatement",
"start": 476,
"end": 510,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 42
}
},
"expression": {
"type": "AssignmentExpression",
"start": 476,
"end": 509,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 41
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 476,
"end": 504,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 36
}
},
"object": {
"type": "MemberExpression",
"start": 476,
"end": 499,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 31
}
},
"object": {
"type": "MemberExpression",
"start": 476,
"end": 490,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 476,
"end": 480,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 481,
"end": 490,
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 22
},
"identifierName": "localMesh"
},
"name": "localMesh"