awv3
Version:
⚡ AWV3 embedded CAD
1,443 lines (1,442 loc) • 1.13 MB
JSON
{
"type": "File",
"start": 0,
"end": 4485,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 116,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 4485,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 116,
"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": 77,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 45
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 39,
"end": 46,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 14
}
},
"local": {
"type": "Identifier",
"start": 39,
"end": 46,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 14
},
"identifierName": "Object3"
},
"name": "Object3"
}
}
],
"source": {
"type": "StringLiteral",
"start": 52,
"end": 76,
"loc": {
"start": {
"line": 2,
"column": 20
},
"end": {
"line": 2,
"column": 44
}
},
"extra": {
"rawValue": "../../../three/object3",
"raw": "'../../../three/object3'"
},
"value": "../../../three/object3"
}
},
{
"type": "ImportDeclaration",
"start": 78,
"end": 136,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 58
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 85,
"end": 102,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 24
}
},
"local": {
"type": "Identifier",
"start": 85,
"end": 102,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 24
},
"identifierName": "DimensionGraphics"
},
"name": "DimensionGraphics"
}
}
],
"source": {
"type": "StringLiteral",
"start": 108,
"end": 135,
"loc": {
"start": {
"line": 3,
"column": 30
},
"end": {
"line": 3,
"column": 57
}
},
"extra": {
"rawValue": "../../dimension/graphics/",
"raw": "'../../dimension/graphics/'"
},
"value": "../../dimension/graphics/"
}
},
{
"type": "ImportDeclaration",
"start": 137,
"end": 170,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 33
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 144,
"end": 155,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 18
}
},
"local": {
"type": "Identifier",
"start": 144,
"end": 155,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 18
},
"identifierName": "BaseHandler"
},
"name": "BaseHandler"
}
}
],
"source": {
"type": "StringLiteral",
"start": 161,
"end": 169,
"loc": {
"start": {
"line": 4,
"column": 24
},
"end": {
"line": 4,
"column": 32
}
},
"extra": {
"rawValue": "./base",
"raw": "'./base'"
},
"value": "./base"
}
},
{
"type": "ExportDefaultDeclaration",
"start": 172,
"end": 4320,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 107,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 187,
"end": 4320,
"loc": {
"start": {
"line": 6,
"column": 15
},
"end": {
"line": 107,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 193,
"end": 205,
"loc": {
"start": {
"line": 6,
"column": 21
},
"end": {
"line": 6,
"column": 33
},
"identifierName": "AngleHandler"
},
"name": "AngleHandler"
},
"superClass": {
"type": "Identifier",
"start": 214,
"end": 225,
"loc": {
"start": {
"line": 6,
"column": 42
},
"end": {
"line": 6,
"column": 53
},
"identifierName": "BaseHandler"
},
"name": "BaseHandler"
},
"body": {
"type": "ClassBody",
"start": 226,
"end": 4320,
"loc": {
"start": {
"line": 6,
"column": 54
},
"end": {
"line": 107,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 232,
"end": 553,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 15,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 232,
"end": 243,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "RestElement",
"start": 244,
"end": 251,
"loc": {
"start": {
"line": 7,
"column": 16
},
"end": {
"line": 7,
"column": 23
}
},
"argument": {
"type": "Identifier",
"start": 247,
"end": 251,
"loc": {
"start": {
"line": 7,
"column": 19
},
"end": {
"line": 7,
"column": 23
},
"identifierName": "args"
},
"name": "args"
}
}
],
"body": {
"type": "BlockStatement",
"start": 253,
"end": 553,
"loc": {
"start": {
"line": 7,
"column": 25
},
"end": {
"line": 15,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 263,
"end": 278,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 23
}
},
"expression": {
"type": "CallExpression",
"start": 263,
"end": 277,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 22
}
},
"callee": {
"type": "Super",
"start": 263,
"end": 268,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 13
}
}
},
"arguments": [
{
"type": "SpreadElement",
"start": 269,
"end": 276,
"loc": {
"start": {
"line": 8,
"column": 14
},
"end": {
"line": 8,
"column": 21
}
},
"argument": {
"type": "Identifier",
"start": 272,
"end": 276,
"loc": {
"start": {
"line": 8,
"column": 17
},
"end": {
"line": 8,
"column": 21
},
"identifierName": "args"
},
"name": "args"
}
}
]
}
},
{
"type": "ExpressionStatement",
"start": 287,
"end": 324,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 45
}
},
"expression": {
"type": "CallExpression",
"start": 287,
"end": 323,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 44
}
},
"callee": {
"type": "MemberExpression",
"start": 287,
"end": 309,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 30
}
},
"object": {
"type": "MemberExpression",
"start": 287,
"end": 305,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 26
}
},
"object": {
"type": "MemberExpression",
"start": 287,
"end": 300,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 21
}
},
"object": {
"type": "ThisExpression",
"start": 287,
"end": 291,
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 292,
"end": 300,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 21
},
"identifierName": "sketcher"
},
"name": "sketcher"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 301,
"end": 305,
"loc": {
"start": {
"line": 9,
"column": 22
},
"end": {
"line": 9,
"column": 26
},
"identifierName": "pool"
},
"name": "pool"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 306,
"end": 309,
"loc": {
"start": {
"line": 9,
"column": 27
},
"end": {
"line": 9,
"column": 30
},
"identifierName": "add"
},
"name": "add"
},
"computed": false
},
"arguments": [
{
"type": "MemberExpression",
"start": 310,
"end": 322,
"loc": {
"start": {
"line": 9,
"column": 31
},
"end": {
"line": 9,
"column": 43
}
},
"object": {
"type": "ThisExpression",
"start": 310,
"end": 314,
"loc": {
"start": {
"line": 9,
"column": 31
},
"end": {
"line": 9,
"column": 35
}
}
},
"property": {
"type": "Identifier",
"start": 315,
"end": 322,
"loc": {
"start": {
"line": 9,
"column": 36
},
"end": {
"line": 9,
"column": 43
},
"identifierName": "preview"
},
"name": "preview"
},
"computed": false
}
]
}
},
{
"type": "ExpressionStatement",
"start": 333,
"end": 378,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 53
}
},
"expression": {
"type": "AssignmentExpression",
"start": 333,
"end": 377,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 52
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 333,
"end": 355,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 30
}
},
"object": {
"type": "ThisExpression",
"start": 333,
"end": 337,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 338,
"end": 355,
"loc": {
"start": {
"line": 10,
"column": 13
},
"end": {
"line": 10,
"column": 30
},
"identifierName": "intersectionPoint"
},
"name": "intersectionPoint"
},
"computed": false
},
"right": {
"type": "NewExpression",
"start": 358,
"end": 377,
"loc": {
"start": {
"line": 10,
"column": 33
},
"end": {
"line": 10,
"column": 52
}
},
"callee": {
"type": "MemberExpression",
"start": 362,
"end": 375,
"loc": {
"start": {
"line": 10,
"column": 37
},
"end": {
"line": 10,
"column": 50
}
},
"object": {
"type": "Identifier",
"start": 362,
"end": 367,
"loc": {
"start": {
"line": 10,
"column": 37
},
"end": {
"line": 10,
"column": 42
},
"identifierName": "THREE"
},
"name": "THREE"
},
"property": {
"type": "Identifier",
"start": 368,
"end": 375,
"loc": {
"start": {
"line": 10,
"column": 43
},
"end": {
"line": 10,
"column": 50
},
"identifierName": "Vector3"
},
"name": "Vector3"
},
"computed": false
},
"arguments": []
}
}
},
{
"type": "ExpressionStatement",
"start": 387,
"end": 419,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 40
}
},
"expression": {
"type": "AssignmentExpression",
"start": 387,
"end": 418,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 39
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 387,
"end": 396,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 387,
"end": 391,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 392,
"end": 396,
"loc": {
"start": {
"line": 11,
"column": 13
},
"end": {
"line": 11,
"column": 17
},
"identifierName": "dir0"
},
"name": "dir0"
},
"computed": false
},
"right": {
"type": "NewExpression",
"start": 399,
"end": 418,
"loc": {
"start": {
"line": 11,
"column": 20
},
"end": {
"line": 11,
"column": 39
}
},
"callee": {
"type": "MemberExpression",
"start": 403,
"end": 416,
"loc": {
"start": {
"line": 11,
"column": 24
},
"end": {
"line": 11,
"column": 37
}
},
"object": {
"type": "Identifier",
"start": 403,
"end": 408,
"loc": {
"start": {
"line": 11,
"column": 24
},
"end": {
"line": 11,
"column": 29
},
"identifierName": "THREE"
},
"name": "THREE"
},
"property": {
"type": "Identifier",
"start": 409,
"end": 416,
"loc": {
"start": {
"line": 11,
"column": 30
},
"end": {
"line": 11,
"column": 37
},
"identifierName": "Vector3"
},
"name": "Vector3"
},
"computed": false
},
"arguments": []
}
}
},
{
"type": "ExpressionStatement",
"start": 428,
"end": 460,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 40
}
},
"expression": {
"type": "AssignmentExpression",
"start": 428,
"end": 459,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 39
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 428,
"end": 437,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 428,
"end": 432,
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 433,
"end": 437,
"loc": {
"start": {
"line": 12,
"column": 13
},
"end": {
"line": 12,
"column": 17
},
"identifierName": "dir1"
},
"name": "dir1"
},
"computed": false
},
"right": {
"type": "NewExpression",
"start": 440,
"end": 459,
"loc": {
"start": {
"line": 12,
"column": 20
},
"end": {
"line": 12,
"column": 39
}
},
"callee": {
"type": "MemberExpression",
"start": 444,
"end": 457,
"loc": {
"start": {
"line": 12,
"column": 24
},
"end": {
"line": 12,
"column": 37
}
},
"object": {
"type": "Identifier",
"start": 444,
"end": 449,
"loc": {
"start": {
"line": 12,
"column": 24
},
"end": {
"line": 12,
"column": 29
},
"identifierName": "THREE"
},
"name": "THREE"
},
"property": {
"type": "Identifier",
"start": 450,
"end": 457,
"loc": {
"start": {
"line": 12,
"column": 30
},
"end": {
"line": 12,
"column": 37
},
"identifierName": "Vector3"
},
"name": "Vector3"
},
"computed": false
},
"arguments": []
}
}
},
{
"type": "ExpressionStatement",
"start": 469,
"end": 514,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 53
}
},
"expression": {
"type": "AssignmentExpression",
"start": 469,
"end": 513,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 52
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 469,
"end": 477,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 16
}
},
"object": {
"type": "ThisExpression",
"start": 469,
"end": 473,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 474,
"end": 477,
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 16
},
"identifierName": "tuv"
},
"name": "tuv"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 480,
"end": 513,
"loc": {
"start": {
"line": 13,
"column": 19
},
"end": {
"line": 13,
"column": 52
}
},
"properties": [
{
"type": "ObjectProperty",
"start": 481,
"end": 488,
"loc": {
"start": {
"line": 13,
"column": 20
},
"end": {
"line": 13,
"column": 27
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 481,
"end": 485,
"loc": {
"start": {
"line": 13,
"column": 20
},
"end": {
"line": 13,
"column": 24
},
"identifierName": "type"
},
"name": "type"
},
"value": {
"type": "NumericLiteral",
"start": 487,
"end": 488,
"loc": {
"start": {
"line": 13,
"column": 26
},
"end": {
"line": 13,
"column": 27
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
},
{
"type": "ObjectProperty",
"start": 490,
"end": 502,
"loc": {
"start": {
"line": 13,
"column": 29
},
"end": {
"line": 13,
"column": 41
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 490,
"end": 499,
"loc": {
"start": {
"line": 13,
"column": 29
},
"end": {
"line": 13,
"column": 38
},
"identifierName": "userValue"
},
"name": "userValue"
},
"value": {
"type": "NumericLiteral",
"start": 501,
"end": 502,
"loc": {
"start": {
"line": 13,
"column": 40
},
"end": {
"line": 13,
"column": 41
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
},
{
"type": "ObjectProperty",
"start": 504,
"end": 512,
"loc": {
"start": {
"line": 13,
"column": 43
},
"end": {
"line": 13,
"column": 51
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 504,
"end": 509,
"loc": {
"start": {
"line": 13,
"column": 43
},
"end": {
"line": 13,
"column": 48
},
"identifierName": "value"
},
"name": "value"
},
"value": {
"type": "NumericLiteral",
"start": 511,
"end": 512,
"loc": {
"start": {
"line": 13,
"column": 50
},
"end": {
"line": 13,
"column": 51
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 523,