awv3
Version:
⚡ AWV3 embedded CAD
1,596 lines (1,595 loc) • 3.19 MB
JSON
{
"type": "File",
"start": 0,
"end": 14685,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 343,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 14685,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 343,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 76,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 76
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 8,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 25
}
},
"imported": {
"type": "Identifier",
"start": 8,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 25
},
"identifierName": "drawArcBy_Angle_M"
},
"name": "drawArcBy_Angle_M"
},
"local": {
"type": "Identifier",
"start": 8,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 25
},
"identifierName": "drawArcBy_Angle_M"
},
"name": "drawArcBy_Angle_M"
}
},
{
"type": "ImportSpecifier",
"start": 27,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 27
},
"end": {
"line": 1,
"column": 45
}
},
"imported": {
"type": "Identifier",
"start": 27,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 27
},
"end": {
"line": 1,
"column": 45
},
"identifierName": "drawLineBy_Angle_M"
},
"name": "drawLineBy_Angle_M"
},
"local": {
"type": "Identifier",
"start": 27,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 27
},
"end": {
"line": 1,
"column": 45
},
"identifierName": "drawLineBy_Angle_M"
},
"name": "drawLineBy_Angle_M"
}
}
],
"source": {
"type": "StringLiteral",
"start": 52,
"end": 75,
"loc": {
"start": {
"line": 1,
"column": 52
},
"end": {
"line": 1,
"column": 75
}
},
"extra": {
"rawValue": "../sketcher/geomutils",
"raw": "'../sketcher/geomutils'"
},
"value": "../sketcher/geomutils"
}
},
{
"type": "ImportDeclaration",
"start": 77,
"end": 114,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 37
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 84,
"end": 89,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 12
}
},
"local": {
"type": "Identifier",
"start": 84,
"end": 89,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 12
},
"identifierName": "Point"
},
"name": "Point"
}
}
],
"source": {
"type": "StringLiteral",
"start": 95,
"end": 113,
"loc": {
"start": {
"line": 2,
"column": 18
},
"end": {
"line": 2,
"column": 36
}
},
"extra": {
"rawValue": "./graphics/point",
"raw": "'./graphics/point'"
},
"value": "./graphics/point"
}
},
{
"type": "ImportDeclaration",
"start": 115,
"end": 150,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 35
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 122,
"end": 126,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 11
}
},
"local": {
"type": "Identifier",
"start": 122,
"end": 126,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 11
},
"identifierName": "Line"
},
"name": "Line"
}
}
],
"source": {
"type": "StringLiteral",
"start": 132,
"end": 149,
"loc": {
"start": {
"line": 3,
"column": 17
},
"end": {
"line": 3,
"column": 34
}
},
"extra": {
"rawValue": "./graphics/line",
"raw": "'./graphics/line'"
},
"value": "./graphics/line"
}
},
{
"type": "ImportDeclaration",
"start": 151,
"end": 184,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 33
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 158,
"end": 161,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 10
}
},
"local": {
"type": "Identifier",
"start": 158,
"end": 161,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 10
},
"identifierName": "Arc"
},
"name": "Arc"
}
}
],
"source": {
"type": "StringLiteral",
"start": 167,
"end": 183,
"loc": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 4,
"column": 32
}
},
"extra": {
"rawValue": "./graphics/arc",
"raw": "'./graphics/arc'"
},
"value": "./graphics/arc"
}
},
{
"type": "ImportDeclaration",
"start": 185,
"end": 234,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 49
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 192,
"end": 207,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 22
}
},
"local": {
"type": "Identifier",
"start": 192,
"end": 207,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 22
},
"identifierName": "FilletProcessor"
},
"name": "FilletProcessor"
}
}
],
"source": {
"type": "StringLiteral",
"start": 213,
"end": 233,
"loc": {
"start": {
"line": 5,
"column": 28
},
"end": {
"line": 5,
"column": 48
}
},
"extra": {
"rawValue": "../sketcher/fillet",
"raw": "'../sketcher/fillet'"
},
"value": "../sketcher/fillet"
}
},
{
"type": "ImportDeclaration",
"start": 235,
"end": 277,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 42
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 242,
"end": 249,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 14
}
},
"local": {
"type": "Identifier",
"start": 242,
"end": 249,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 14
},
"identifierName": "Object3"
},
"name": "Object3"
}
}
],
"source": {
"type": "StringLiteral",
"start": 255,
"end": 276,
"loc": {
"start": {
"line": 6,
"column": 20
},
"end": {
"line": 6,
"column": 41
}
},
"extra": {
"rawValue": "../../three/object3",
"raw": "'../../three/object3'"
},
"value": "../../three/object3"
}
},
{
"type": "ImportDeclaration",
"start": 278,
"end": 320,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 42
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 285,
"end": 296,
"loc": {
"start": {
"line": 7,
"column": 7
},
"end": {
"line": 7,
"column": 18
}
},
"local": {
"type": "Identifier",
"start": 285,
"end": 296,
"loc": {
"start": {
"line": 7,
"column": 7
},
"end": {
"line": 7,
"column": 18
},
"identifierName": "BaseHandler"
},
"name": "BaseHandler"
}
}
],
"source": {
"type": "StringLiteral",
"start": 302,
"end": 319,
"loc": {
"start": {
"line": 7,
"column": 24
},
"end": {
"line": 7,
"column": 41
}
},
"extra": {
"rawValue": "./handlers/base",
"raw": "'./handlers/base'"
},
"value": "./handlers/base"
}
},
{
"type": "ExportNamedDeclaration",
"start": 322,
"end": 14683,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 342,
"column": 1
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "ClassDeclaration",
"start": 329,
"end": 14683,
"loc": {
"start": {
"line": 9,
"column": 7
},
"end": {
"line": 342,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 335,
"end": 348,
"loc": {
"start": {
"line": 9,
"column": 13
},
"end": {
"line": 9,
"column": 26
},
"identifierName": "filletHandler"
},
"name": "filletHandler"
},
"superClass": {
"type": "Identifier",
"start": 357,
"end": 368,
"loc": {
"start": {
"line": 9,
"column": 35
},
"end": {
"line": 9,
"column": 46
},
"identifierName": "BaseHandler"
},
"name": "BaseHandler"
},
"body": {
"type": "ClassBody",
"start": 369,
"end": 14683,
"loc": {
"start": {
"line": 9,
"column": 47
},
"end": {
"line": 342,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 375,
"end": 706,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 22,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 375,
"end": 386,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 387,
"end": 395,
"loc": {
"start": {
"line": 10,
"column": 16
},
"end": {
"line": 10,
"column": 24
},
"identifierName": "sketcher"
},
"name": "sketcher"
}
],
"body": {
"type": "BlockStatement",
"start": 397,
"end": 706,
"loc": {
"start": {
"line": 10,
"column": 26
},
"end": {
"line": 22,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 407,
"end": 423,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 24
}
},
"expression": {
"type": "CallExpression",
"start": 407,
"end": 422,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 23
}
},
"callee": {
"type": "Super",
"start": 407,
"end": 412,
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 13
}
}
},
"arguments": [
{
"type": "Identifier",
"start": 413,
"end": 421,
"loc": {
"start": {
"line": 11,
"column": 14
},
"end": {
"line": 11,
"column": 22
},
"identifierName": "sketcher"
},
"name": "sketcher"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 433,
"end": 504,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 79
}
},
"expression": {
"type": "AssignmentExpression",
"start": 433,
"end": 503,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 78
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 433,
"end": 447,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 22
}
},
"object": {
"type": "ThisExpression",
"start": 433,
"end": 437,
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 438,
"end": 447,
"loc": {
"start": {
"line": 13,
"column": 13
},
"end": {
"line": 13,
"column": 22
},
"identifierName": "processor"
},
"name": "processor"
},
"computed": false
},
"right": {
"type": "NewExpression",
"start": 450,
"end": 503,
"loc": {
"start": {
"line": 13,
"column": 25
},
"end": {
"line": 13,
"column": 78
}
},
"callee": {
"type": "Identifier",
"start": 454,
"end": 469,
"loc": {
"start": {
"line": 13,
"column": 29
},
"end": {
"line": 13,
"column": 44
},
"identifierName": "FilletProcessor"
},
"name": "FilletProcessor"
},
"arguments": [
{
"type": "Identifier",
"start": 470,
"end": 478,
"loc": {
"start": {
"line": 13,
"column": 45
},
"end": {
"line": 13,
"column": 53
},
"identifierName": "sketcher"
},
"name": "sketcher"
},
{
"type": "MemberExpression",
"start": 480,
"end": 502,
"loc": {
"start": {
"line": 13,
"column": 55
},
"end": {
"line": 13,
"column": 77
}
},
"object": {
"type": "Identifier",
"start": 480,
"end": 488,
"loc": {
"start": {
"line": 13,
"column": 55
},
"end": {
"line": 13,
"column": 63
},
"identifierName": "sketcher"
},
"name": "sketcher"
},
"property": {
"type": "Identifier",
"start": 489,
"end": 502,
"loc": {
"start": {
"line": 13,
"column": 64
},
"end": {
"line": 13,
"column": 77
},
"identifierName": "currentSketch"
},
"name": "currentSketch"
},
"computed": false
}
]
}
}
},
{
"type": "ExpressionStatement",
"start": 513,
"end": 531,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 26
}
},
"expression": {
"type": "AssignmentExpression",
"start": 513,
"end": 530,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 25
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 513,
"end": 522,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 17
}
},
"object": {
"type": "ThisExpression",
"start": 513,
"end": 517,
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 518,
"end": 522,
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 17
},
"identifierName": "busy"
},
"name": "busy"
},
"computed": false
},
"right": {
"type": "BooleanLiteral",
"start": 525,
"end": 530,
"loc": {
"start": {
"line": 14,
"column": 20
},
"end": {
"line": 14,
"column": 25
}
},
"value": false
}
}
},
{
"type": "ExpressionStatement",
"start": 540,
"end": 567,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 35
}
},
"expression": {
"type": "AssignmentExpression",
"start": 540,
"end": 566,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 34
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 540,
"end": 561,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 29
}
},
"object": {
"type": "ThisExpression",
"start": 540,
"end": 544,
"loc": {
"start": {
"line": 15,
"column": 8
},
"end": {
"line": 15,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 545,
"end": 561,
"loc": {
"start": {
"line": 15,
"column": 13
},
"end": {
"line": 15,
"column": 29
},
"identifierName": "filletablePoints"
},
"name": "filletablePoints"
},
"computed": false
},
"right": {
"type": "ArrayExpression",
"start": 564,
"end": 566,
"loc": {
"start": {
"line": 15,
"column": 32
},
"end": {
"line": 15,
"column": 34
}
},
"elements": []
}
}
},
{
"type": "ExpressionStatement",
"start": 576,
"end": 597,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 29
}
},
"expression": {
"type": "AssignmentExpression",
"start": 576,
"end": 596,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 28
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 576,
"end": 591,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 23
}
},
"object": {
"type": "ThisExpression",
"start": 576,
"end": 580,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 581,
"end": 591,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 23
},
"identifierName": "filletArcs"
},
"name": "filletArcs"
},
"computed": false
},
"right": {
"type": "ArrayExpression",
"start": 594,
"end": 596,
"loc": {
"start": {
"line": 16,
"column": 26
},
"end": {
"line": 16,
"column": 28
}
},
"elements": []
}
}
},
{
"type": "ExpressionStatement",
"start": 606,
"end": 628,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 30
}
},
"expression": {
"type": "AssignmentExpression",
"start": 606,
"end": 627,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 29
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 606,
"end": 622,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 606,
"end": 610,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 611,
"end": 622,
"loc": {
"start": {
"line": 17,
"column": 13
},
"end": {
"line": 17,
"column": 24
},
"identifierName": "filletLines"
},
"name": "filletLines"
},
"computed": false
},
"right": {
"type": "ArrayExpression",
"start": 625,
"end": 627,
"loc": {
"start": {
"line": 17,
"column": 27
},
"end": {
"line": 17,
"column": 29
}
},
"elements": []
}
}
},
{
"type": "ExpressionStatement",
"start": 638,
"end": 658,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 28
}
},
"expression": {
"type": "AssignmentExpression",
"start": 638,
"end": 657,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 27
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 638,
"end": 650,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 20
}
},
"object": {
"type": "ThisExpression",
"start": 638,
"end": 642,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 643,
"end": 650,
"loc": {
"start": {
"line": 19,
"column": 13
},
"end": {
"line": 19,
"column": 20
},
"identifierName": "preview"
},
"name": "preview"
},
"computed": false
},
"right": {
"type": "NullLiteral",
"start": 653,
"end": 657,
"loc": {
"start": {
"line": 19,
"column": 23
},
"end": {
"line": 19,
"column": 27
}
}
}
}
},
{
"type": "ExpressionStatement",
"start": 668,
"end": 700,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 40
}
},
"expression": {
"type": "CallExpression",
"start": 668,
"end": 699,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 39
}
},
"callee": {
"type": "MemberExpression",
"start": 668,
"end": 697,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 37
}
},
"object": {
"type": "ThisExpression",
"start": 668,
"end": 672,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 673,
"end": 697,
"loc": {
"start": {
"line": 21,
"column": 13
},
"end": {
"line": 21,
"column": 37
},
"identifierName": "updateInteractiveObjects"
},
"name": "updateInteractiveObjects"
},
"computed": false
},
"arguments": []
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start": 712,
"end": 1053,
"loc": {
"start": {
"line": 24,
"column": 4
},
"end": {
"line": 31,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 712,
"end": 717,
"loc": {
"start": {
"line": 24,
"column": 4
},
"end": {
"line": 24,
"column": 9
},
"identifierName": "clear"
},
"name": "clear"
},
"static": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 720,
"end": 1053,
"loc": {
"start": {
"line": 24,
"column": 12
},
"end": {
"line": 31,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 730,
"end": 801,
"loc": {
"start": {
"line": 25,
"column": 8
},
"end": {