awv3
Version:
⚡ AWV3 embedded CAD
1,414 lines • 3.85 MB
JSON
{
"type": "File",
"start": 0,
"end": 19475,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 511,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 19475,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 511,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 47,
"end": 78,
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 31
}
},
"specifiers": [
{
"type": "ImportNamespaceSpecifier",
"start": 54,
"end": 64,
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 17
}
},
"local": {
"type": "Identifier",
"start": 59,
"end": 64,
"loc": {
"start": {
"line": 5,
"column": 12
},
"end": {
"line": 5,
"column": 17
},
"identifierName": "THREE"
},
"name": "THREE",
"leadingComments": null
},
"leadingComments": null
}
],
"source": {
"type": "StringLiteral",
"start": 70,
"end": 77,
"loc": {
"start": {
"line": 5,
"column": 23
},
"end": {
"line": 5,
"column": 30
}
},
"extra": {
"rawValue": "three",
"raw": "'three'"
},
"value": "three"
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * @module Properties plugin for awv3\n ",
"start": 0,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 3
}
}
}
]
},
{
"type": "ImportDeclaration",
"start": 79,
"end": 121,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 42
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 86,
"end": 92,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 13
}
},
"local": {
"type": "Identifier",
"start": 86,
"end": 92,
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 13
},
"identifierName": "Plugin"
},
"name": "Plugin"
}
}
],
"source": {
"type": "StringLiteral",
"start": 98,
"end": 120,
"loc": {
"start": {
"line": 6,
"column": 19
},
"end": {
"line": 6,
"column": 41
}
},
"extra": {
"rawValue": "../../session/plugin",
"raw": "'../../session/plugin'"
},
"value": "../../session/plugin"
}
},
{
"type": "ImportDeclaration",
"start": 122,
"end": 205,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 83
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 131,
"end": 136,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 14
}
},
"imported": {
"type": "Identifier",
"start": 131,
"end": 136,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 14
},
"identifierName": "Group"
},
"name": "Group"
},
"local": {
"type": "Identifier",
"start": 131,
"end": 136,
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 14
},
"identifierName": "Group"
},
"name": "Group"
}
},
{
"type": "ImportSpecifier",
"start": 138,
"end": 144,
"loc": {
"start": {
"line": 7,
"column": 16
},
"end": {
"line": 7,
"column": 22
}
},
"imported": {
"type": "Identifier",
"start": 138,
"end": 144,
"loc": {
"start": {
"line": 7,
"column": 16
},
"end": {
"line": 7,
"column": 22
},
"identifierName": "Button"
},
"name": "Button"
},
"local": {
"type": "Identifier",
"start": 138,
"end": 144,
"loc": {
"start": {
"line": 7,
"column": 16
},
"end": {
"line": 7,
"column": 22
},
"identifierName": "Button"
},
"name": "Button"
}
},
{
"type": "ImportSpecifier",
"start": 146,
"end": 151,
"loc": {
"start": {
"line": 7,
"column": 24
},
"end": {
"line": 7,
"column": 29
}
},
"imported": {
"type": "Identifier",
"start": 146,
"end": 151,
"loc": {
"start": {
"line": 7,
"column": 24
},
"end": {
"line": 7,
"column": 29
},
"identifierName": "Input"
},
"name": "Input"
},
"local": {
"type": "Identifier",
"start": 146,
"end": 151,
"loc": {
"start": {
"line": 7,
"column": 24
},
"end": {
"line": 7,
"column": 29
},
"identifierName": "Input"
},
"name": "Input"
}
},
{
"type": "ImportSpecifier",
"start": 153,
"end": 162,
"loc": {
"start": {
"line": 7,
"column": 31
},
"end": {
"line": 7,
"column": 40
}
},
"imported": {
"type": "Identifier",
"start": 153,
"end": 162,
"loc": {
"start": {
"line": 7,
"column": 31
},
"end": {
"line": 7,
"column": 40
},
"identifierName": "Selection"
},
"name": "Selection"
},
"local": {
"type": "Identifier",
"start": 153,
"end": 162,
"loc": {
"start": {
"line": 7,
"column": 31
},
"end": {
"line": 7,
"column": 40
},
"identifierName": "Selection"
},
"name": "Selection"
}
},
{
"type": "ImportSpecifier",
"start": 164,
"end": 172,
"loc": {
"start": {
"line": 7,
"column": 42
},
"end": {
"line": 7,
"column": 50
}
},
"imported": {
"type": "Identifier",
"start": 164,
"end": 172,
"loc": {
"start": {
"line": 7,
"column": 42
},
"end": {
"line": 7,
"column": 50
},
"identifierName": "Checkbox"
},
"name": "Checkbox"
},
"local": {
"type": "Identifier",
"start": 164,
"end": 172,
"loc": {
"start": {
"line": 7,
"column": 42
},
"end": {
"line": 7,
"column": 50
},
"identifierName": "Checkbox"
},
"name": "Checkbox"
}
}
],
"source": {
"type": "StringLiteral",
"start": 180,
"end": 204,
"loc": {
"start": {
"line": 7,
"column": 58
},
"end": {
"line": 7,
"column": 82
}
},
"extra": {
"rawValue": "../../session/elements",
"raw": "'../../session/elements'"
},
"value": "../../session/elements"
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Class representing the CC_Bending class with equal member-names.\n * bendAngle = params[0];\n * preAngle = params[1];\n * bendRadiusDB = params[2];\n * bendRadius = params[3];\n * color = params[4];\n * lineType = params[5];\n * bendDeduction = params[6];\n * upperTool = params[7];\n * lowerTool = params[8];\n * bendType = params[9];\n * bendMethod = params[10];\n * bendTechnique = params[11];\n ",
"start": 207,
"end": 602,
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 23,
"column": 3
}
}
}
]
},
{
"type": "ClassDeclaration",
"start": 603,
"end": 2451,
"loc": {
"start": {
"line": 24,
"column": 0
},
"end": {
"line": 71,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 609,
"end": 626,
"loc": {
"start": {
"line": 24,
"column": 6
},
"end": {
"line": 24,
"column": 23
},
"identifierName": "BendingParameters"
},
"name": "BendingParameters",
"leadingComments": null
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 627,
"end": 2451,
"loc": {
"start": {
"line": 24,
"column": 24
},
"end": {
"line": 71,
"column": 1
}
},
"body": [
{
"type": "ClassMethod",
"start": 633,
"end": 1955,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 53,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 633,
"end": 644,
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 25,
"column": 15
},
"identifierName": "constructor"
},
"name": "constructor"
},
"static": false,
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "AssignmentPattern",
"start": 645,
"end": 670,
"loc": {
"start": {
"line": 25,
"column": 16
},
"end": {
"line": 25,
"column": 41
}
},
"left": {
"type": "Identifier",
"start": 645,
"end": 658,
"loc": {
"start": {
"line": 25,
"column": 16
},
"end": {
"line": 25,
"column": 29
},
"identifierName": "bendingObject"
},
"name": "bendingObject"
},
"right": {
"type": "Identifier",
"start": 661,
"end": 670,
"loc": {
"start": {
"line": 25,
"column": 32
},
"end": {
"line": 25,
"column": 41
},
"identifierName": "undefined"
},
"name": "undefined"
}
}
],
"body": {
"type": "BlockStatement",
"start": 672,
"end": 1955,
"loc": {
"start": {
"line": 25,
"column": 43
},
"end": {
"line": 53,
"column": 5
}
},
"body": [
{
"type": "IfStatement",
"start": 682,
"end": 1949,
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 52,
"column": 9
}
},
"test": {
"type": "Identifier",
"start": 686,
"end": 699,
"loc": {
"start": {
"line": 26,
"column": 12
},
"end": {
"line": 26,
"column": 25
},
"identifierName": "bendingObject"
},
"name": "bendingObject"
},
"consequent": {
"type": "BlockStatement",
"start": 701,
"end": 1540,
"loc": {
"start": {
"line": 26,
"column": 27
},
"end": {
"line": 39,
"column": 9
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 715,
"end": 770,
"loc": {
"start": {
"line": 27,
"column": 12
},
"end": {
"line": 27,
"column": 67
}
},
"expression": {
"type": "AssignmentExpression",
"start": 715,
"end": 769,
"loc": {
"start": {
"line": 27,
"column": 12
},
"end": {
"line": 27,
"column": 66
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 715,
"end": 729,
"loc": {
"start": {
"line": 27,
"column": 12
},
"end": {
"line": 27,
"column": 26
}
},
"object": {
"type": "ThisExpression",
"start": 715,
"end": 719,
"loc": {
"start": {
"line": 27,
"column": 12
},
"end": {
"line": 27,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 720,
"end": 729,
"loc": {
"start": {
"line": 27,
"column": 17
},
"end": {
"line": 27,
"column": 26
},
"identifierName": "bendAngle"
},
"name": "bendAngle"
},
"computed": false
},
"right": {
"type": "MemberExpression",
"start": 732,
"end": 769,
"loc": {
"start": {
"line": 27,
"column": 29
},
"end": {
"line": 27,
"column": 66
}
},
"object": {
"type": "MemberExpression",
"start": 732,
"end": 763,
"loc": {
"start": {
"line": 27,
"column": 29
},
"end": {
"line": 27,
"column": 60
}
},
"object": {
"type": "MemberExpression",
"start": 732,
"end": 753,
"loc": {
"start": {
"line": 27,
"column": 29
},
"end": {
"line": 27,
"column": 50
}
},
"object": {
"type": "Identifier",
"start": 732,
"end": 745,
"loc": {
"start": {
"line": 27,
"column": 29
},
"end": {
"line": 27,
"column": 42
},
"identifierName": "bendingObject"
},
"name": "bendingObject"
},
"property": {
"type": "Identifier",
"start": 746,
"end": 753,
"loc": {
"start": {
"line": 27,
"column": 43
},
"end": {
"line": 27,
"column": 50
},
"identifierName": "members"
},
"name": "members"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 754,
"end": 763,
"loc": {
"start": {
"line": 27,
"column": 51
},
"end": {
"line": 27,
"column": 60
},
"identifierName": "bendAngle"
},
"name": "bendAngle"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 764,
"end": 769,
"loc": {
"start": {
"line": 27,
"column": 61
},
"end": {
"line": 27,
"column": 66
},
"identifierName": "value"
},
"name": "value"
},
"computed": false
}
}
},
{
"type": "ExpressionStatement",
"start": 783,
"end": 836,
"loc": {
"start": {
"line": 28,
"column": 12
},
"end": {
"line": 28,
"column": 65
}
},
"expression": {
"type": "AssignmentExpression",
"start": 783,
"end": 835,
"loc": {
"start": {
"line": 28,
"column": 12
},
"end": {
"line": 28,
"column": 64
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 783,
"end": 796,
"loc": {
"start": {
"line": 28,
"column": 12
},
"end": {
"line": 28,
"column": 25
}
},
"object": {
"type": "ThisExpression",
"start": 783,
"end": 787,
"loc": {
"start": {
"line": 28,
"column": 12
},
"end": {
"line": 28,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 788,
"end": 796,
"loc": {
"start": {
"line": 28,
"column": 17
},
"end": {
"line": 28,
"column": 25
},
"identifierName": "preAngle"
},
"name": "preAngle"
},
"computed": false
},
"right": {
"type": "MemberExpression",
"start": 799,
"end": 835,
"loc": {
"start": {
"line": 28,
"column": 28
},
"end": {
"line": 28,
"column": 64
}
},
"object": {
"type": "MemberExpression",
"start": 799,
"end": 829,
"loc": {
"start": {
"line": 28,
"column": 28
},
"end": {
"line": 28,
"column": 58
}
},
"object": {
"type": "MemberExpression",
"start": 799,
"end": 820,
"loc": {
"start": {
"line": 28,
"column": 28
},
"end": {
"line": 28,
"column": 49
}
},
"object": {
"type": "Identifier",
"start": 799,
"end": 812,
"loc": {
"start": {
"line": 28,
"column": 28
},
"end": {
"line": 28,
"column": 41
},
"identifierName": "bendingObject"
},
"name": "bendingObject"
},
"property": {
"type": "Identifier",
"start": 813,
"end": 820,
"loc": {
"start": {
"line": 28,
"column": 42
},
"end": {
"line": 28,
"column": 49
},
"identifierName": "members"
},
"name": "members"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 821,
"end": 829,
"loc": {
"start": {
"line": 28,
"column": 50
},
"end": {
"line": 28,
"column": 58
},
"identifierName": "preAngle"
},
"name": "preAngle"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 830,
"end": 835,
"loc": {
"start": {
"line": 28,
"column": 59
},
"end": {
"line": 28,
"column": 64
},
"identifierName": "value"
},
"name": "value"
},
"computed": false
}
}
},
{
"type": "ExpressionStatement",
"start": 849,
"end": 910,
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 73
}
},
"expression": {
"type": "AssignmentExpression",
"start": 849,
"end": 909,
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 72
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 849,
"end": 866,
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 29
}
},
"object": {
"type": "ThisExpression",
"start": 849,
"end": 853,
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 854,
"end": 866,
"loc": {
"start": {
"line": 29,
"column": 17
},
"end": {
"line": 29,
"column": 29
},
"identifierName": "bendRadiusDB"
},
"name": "bendRadiusDB"
},
"computed": false
},
"right": {
"type": "MemberExpression",
"start": 869,
"end": 909,
"loc": {
"start": {
"line": 29,
"column": 32
},
"end": {
"line": 29,
"column": 72
}
},
"object": {
"type": "MemberExpression",
"start": 869,
"end": 903,
"loc": {
"start": {
"line": 29,
"column": 32
},
"end": {
"line": 29,
"column": 66
}
},
"object": {
"type": "MemberExpression",
"start": 869,
"end": 890,
"loc": {
"start": {
"line": 29,
"column": 32
},
"end": {
"line": 29,
"column": 53
}
},
"object": {
"type": "Identifier",
"start": 869,
"end": 882,
"loc": {
"start": {
"line": 29,
"column": 32
},
"end": {
"line": 29,
"column": 45
},
"identifierName": "bendingObject"
},
"name": "bendingObject"
},
"property": {
"type": "Identifier",
"start": 883,
"end": 890,
"loc": {
"start": {
"line": 29,
"column": 46
},
"end": {
"line": 29,
"column": 53
},
"identifierName": "members"
},
"name": "members"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 891,
"end": 903,
"loc": {
"start": {
"line": 29,
"column": 54
},
"end": {
"line": 29,
"column": 66
},
"identifierName": "bendRadiusDB"
},
"name": "bendRadiusDB"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 904,
"end": 909,
"loc": {
"start": {
"line": 29,
"column": 67
},
"end": {
"line": 29,
"column": 72
},
"identifierName": "value"
},
"name": "value"
},
"computed": false
}
}
},
{
"type": "ExpressionStatement",
"start": 923,
"end": 980,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 69
}
},
"expression": {
"type": "AssignmentExpression",
"start": 923,
"end": 979,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 68
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 923,
"end": 938,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 27
}
},
"object": {
"type": "ThisExpression",
"start": 923,
"end": 927,
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"start": 928,
"end": 938,
"loc": {
"start": {
"line": 30,
"column": 17
},
"end": {
"line": 30,
"column": 27
},
"identifierName": "bendRadius"
},
"name": "bendRadius"
},
"computed": false
},
"right": {
"type": "MemberExpression",
"start": 941,
"end": 979,
"loc": {
"start": {
"line": 30,
"column": 30
},
"end": {
"line": 30,
"column": 68
}
},
"object": {
"type": "MemberExpression",
"start": 941,
"end": 973,
"loc": {
"start": {
"line": 30,
"column": 30
},
"end": {
"line": 30,
"column": 62
}
},
"object": {
"type": "MemberExpression",
"start": 941,
"end": 962,
"loc": {
"start": {
"line": 30,
"column": 30
},
"end": {
"line": 30,
"column": 51
}
},
"object": {
"type": "Identifier",
"start": 941,
"end": 954,
"loc": {
"start": {
"line": 30,
"column": 30
},
"end": {
"line": 30,
"column": 43
},
"identifierName": "bendingObject"
},
"name": "bendingObject"
},
"property": {
"type": "Identifier",
"start": 955,
"end": 962,
"loc": {
"start": {
"line