awv3
Version:
⚡ AWV3 embedded CAD
1,466 lines (1,465 loc) • 2.41 MB
JSON
{
"type": "Program",
"body": [
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportNamespaceSpecifier",
"local": {
"type": "Identifier",
"name": "THREE",
"range": [
59,
64
],
"loc": {
"start": {
"line": 5,
"column": 12
},
"end": {
"line": 5,
"column": 17
}
}
},
"range": [
54,
64
],
"loc": {
"start": {
"line": 5,
"column": 7
},
"end": {
"line": 5,
"column": 17
}
}
}
],
"source": {
"type": "Literal",
"value": "three",
"raw": "'three'",
"range": [
70,
77
],
"loc": {
"start": {
"line": 5,
"column": 23
},
"end": {
"line": 5,
"column": 30
}
}
},
"range": [
47,
78
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 6,
"column": 0
}
},
"leadingComments": [
{
"type": "Block",
"value": "*\n * @module Properties plugin for awv3\n ",
"range": [
0,
45
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 3
}
}
}
]
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"local": {
"type": "Identifier",
"name": "Plugin",
"range": [
85,
91
],
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 13
}
}
},
"range": [
85,
91
],
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"column": 13
}
}
}
],
"source": {
"type": "Literal",
"value": "../session/plugin",
"raw": "'../session/plugin'",
"range": [
97,
116
],
"loc": {
"start": {
"line": 6,
"column": 19
},
"end": {
"line": 6,
"column": 38
}
}
},
"range": [
78,
117
],
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 7,
"column": 0
}
}
},
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "Group",
"range": [
126,
131
],
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 14
}
}
},
"imported": {
"type": "Identifier",
"name": "Group",
"range": [
126,
131
],
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 14
}
}
},
"range": [
126,
131
],
"loc": {
"start": {
"line": 7,
"column": 9
},
"end": {
"line": 7,
"column": 14
}
}
},
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "Button",
"range": [
133,
139
],
"loc": {
"start": {
"line": 7,
"column": 16
},
"end": {
"line": 7,
"column": 22
}
}
},
"imported": {
"type": "Identifier",
"name": "Button",
"range": [
133,
139
],
"loc": {
"start": {
"line": 7,
"column": 16
},
"end": {
"line": 7,
"column": 22
}
}
},
"range": [
133,
139
],
"loc": {
"start": {
"line": 7,
"column": 16
},
"end": {
"line": 7,
"column": 22
}
}
},
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "Input",
"range": [
141,
146
],
"loc": {
"start": {
"line": 7,
"column": 24
},
"end": {
"line": 7,
"column": 29
}
}
},
"imported": {
"type": "Identifier",
"name": "Input",
"range": [
141,
146
],
"loc": {
"start": {
"line": 7,
"column": 24
},
"end": {
"line": 7,
"column": 29
}
}
},
"range": [
141,
146
],
"loc": {
"start": {
"line": 7,
"column": 24
},
"end": {
"line": 7,
"column": 29
}
}
},
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "Selection",
"range": [
148,
157
],
"loc": {
"start": {
"line": 7,
"column": 31
},
"end": {
"line": 7,
"column": 40
}
}
},
"imported": {
"type": "Identifier",
"name": "Selection",
"range": [
148,
157
],
"loc": {
"start": {
"line": 7,
"column": 31
},
"end": {
"line": 7,
"column": 40
}
}
},
"range": [
148,
157
],
"loc": {
"start": {
"line": 7,
"column": 31
},
"end": {
"line": 7,
"column": 40
}
}
},
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "Checkbox",
"range": [
159,
167
],
"loc": {
"start": {
"line": 7,
"column": 42
},
"end": {
"line": 7,
"column": 50
}
}
},
"imported": {
"type": "Identifier",
"name": "Checkbox",
"range": [
159,
167
],
"loc": {
"start": {
"line": 7,
"column": 42
},
"end": {
"line": 7,
"column": 50
}
}
},
"range": [
159,
167
],
"loc": {
"start": {
"line": 7,
"column": 42
},
"end": {
"line": 7,
"column": 50
}
}
}
],
"source": {
"type": "Literal",
"value": "../session/elements",
"raw": "'../session/elements'",
"range": [
175,
196
],
"loc": {
"start": {
"line": 7,
"column": 58
},
"end": {
"line": 7,
"column": 79
}
},
"trailingComments": [
{
"type": "Block",
"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 ",
"range": [
198,
593
],
"loc": {
"start": {
"line": 9,
"column": 0
},
"end": {
"line": 23,
"column": 3
}
}
}
]
},
"range": [
117,
594
],
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 24,
"column": 0
}
}
},
{
"type": "ClassDeclaration",
"id": {
"type": "Identifier",
"name": "BendingParameters",
"range": [
600,
617
],
"loc": {
"start": {
"line": 24,
"column": 6
},
"end": {
"line": 24,
"column": 23
}
}
},
"superClass": null,
"body": {
"type": "ClassBody",
"body": [
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "constructor",
"range": [
624,
635
],
"loc": {
"start": {
"line": 25,
"column": 4
},
"end": {
"line": 25,
"column": 15
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "AssignmentPattern",
"left": {
"type": "Identifier",
"name": "bendingObject",
"range": [
637,
650
],
"loc": {
"start": {
"line": 25,
"column": 17
},
"end": {
"line": 25,
"column": 30
}
}
},
"right": {
"type": "Identifier",
"name": "undefined",
"range": [
653,
662
],
"loc": {
"start": {
"line": 25,
"column": 33
},
"end": {
"line": 25,
"column": 42
}
}
},
"range": [
637,
662
],
"loc": {
"start": {
"line": 25,
"column": 17
},
"end": {
"line": 25,
"column": 42
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "IfStatement",
"test": {
"type": "Identifier",
"name": "bendingObject",
"range": [
678,
691
],
"loc": {
"start": {
"line": 26,
"column": 12
},
"end": {
"line": 26,
"column": 25
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
707,
711
],
"loc": {
"start": {
"line": 27,
"column": 12
},
"end": {
"line": 27,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "bendAngle",
"range": [
712,
721
],
"loc": {
"start": {
"line": 27,
"column": 17
},
"end": {
"line": 27,
"column": 26
}
}
},
"range": [
707,
721
],
"loc": {
"start": {
"line": 27,
"column": 12
},
"end": {
"line": 27,
"column": 26
}
}
},
"right": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "bendingObject",
"range": [
724,
737
],
"loc": {
"start": {
"line": 27,
"column": 29
},
"end": {
"line": 27,
"column": 42
}
}
},
"property": {
"type": "Identifier",
"name": "members",
"range": [
738,
745
],
"loc": {
"start": {
"line": 27,
"column": 43
},
"end": {
"line": 27,
"column": 50
}
}
},
"range": [
724,
745
],
"loc": {
"start": {
"line": 27,
"column": 29
},
"end": {
"line": 27,
"column": 50
}
}
},
"property": {
"type": "Identifier",
"name": "bendAngle",
"range": [
746,
755
],
"loc": {
"start": {
"line": 27,
"column": 51
},
"end": {
"line": 27,
"column": 60
}
}
},
"range": [
724,
755
],
"loc": {
"start": {
"line": 27,
"column": 29
},
"end": {
"line": 27,
"column": 60
}
}
},
"property": {
"type": "Identifier",
"name": "value",
"range": [
756,
761
],
"loc": {
"start": {
"line": 27,
"column": 61
},
"end": {
"line": 27,
"column": 66
}
}
},
"range": [
724,
761
],
"loc": {
"start": {
"line": 27,
"column": 29
},
"end": {
"line": 27,
"column": 66
}
}
},
"range": [
707,
761
],
"loc": {
"start": {
"line": 27,
"column": 12
},
"end": {
"line": 27,
"column": 66
}
}
},
"range": [
707,
774
],
"loc": {
"start": {
"line": 27,
"column": 12
},
"end": {
"line": 28,
"column": 12
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
774,
778
],
"loc": {
"start": {
"line": 28,
"column": 12
},
"end": {
"line": 28,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "preAngle",
"range": [
779,
787
],
"loc": {
"start": {
"line": 28,
"column": 17
},
"end": {
"line": 28,
"column": 25
}
}
},
"range": [
774,
787
],
"loc": {
"start": {
"line": 28,
"column": 12
},
"end": {
"line": 28,
"column": 25
}
}
},
"right": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "bendingObject",
"range": [
790,
803
],
"loc": {
"start": {
"line": 28,
"column": 28
},
"end": {
"line": 28,
"column": 41
}
}
},
"property": {
"type": "Identifier",
"name": "members",
"range": [
804,
811
],
"loc": {
"start": {
"line": 28,
"column": 42
},
"end": {
"line": 28,
"column": 49
}
}
},
"range": [
790,
811
],
"loc": {
"start": {
"line": 28,
"column": 28
},
"end": {
"line": 28,
"column": 49
}
}
},
"property": {
"type": "Identifier",
"name": "preAngle",
"range": [
812,
820
],
"loc": {
"start": {
"line": 28,
"column": 50
},
"end": {
"line": 28,
"column": 58
}
}
},
"range": [
790,
820
],
"loc": {
"start": {
"line": 28,
"column": 28
},
"end": {
"line": 28,
"column": 58
}
}
},
"property": {
"type": "Identifier",
"name": "value",
"range": [
821,
826
],
"loc": {
"start": {
"line": 28,
"column": 59
},
"end": {
"line": 28,
"column": 64
}
}
},
"range": [
790,
826
],
"loc": {
"start": {
"line": 28,
"column": 28
},
"end": {
"line": 28,
"column": 64
}
}
},
"range": [
774,
826
],
"loc": {
"start": {
"line": 28,
"column": 12
},
"end": {
"line": 28,
"column": 64
}
}
},
"range": [
774,
839
],
"loc": {
"start": {
"line": 28,
"column": 12
},
"end": {
"line": 29,
"column": 12
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
839,
843
],
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "bendRadiusDB",
"range": [
844,
856
],
"loc": {
"start": {
"line": 29,
"column": 17
},
"end": {
"line": 29,
"column": 29
}
}
},
"range": [
839,
856
],
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 29
}
}
},
"right": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "bendingObject",
"range": [
859,
872
],
"loc": {
"start": {
"line": 29,
"column": 32
},
"end": {
"line": 29,
"column": 45
}
}
},
"property": {
"type": "Identifier",
"name": "members",
"range": [
873,
880
],
"loc": {
"start": {
"line": 29,
"column": 46
},
"end": {
"line": 29,
"column": 53
}
}
},
"range": [
859,
880
],
"loc": {
"start": {
"line": 29,
"column": 32
},
"end": {
"line": 29,
"column": 53
}
}
},
"property": {
"type": "Identifier",
"name": "bendRadiusDB",
"range": [
881,
893
],
"loc": {
"start": {
"line": 29,
"column": 54
},
"end": {
"line": 29,
"column": 66
}
}
},
"range": [
859,
893
],
"loc": {
"start": {
"line": 29,
"column": 32
},
"end": {
"line": 29,
"column": 66
}
}
},
"property": {
"type": "Identifier",
"name": "value",
"range": [
894,
899
],
"loc": {
"start": {
"line": 29,
"column": 67
},
"end": {
"line": 29,
"column": 72
}
}
},
"range": [
859,
899
],
"loc": {
"start": {
"line": 29,
"column": 32
},
"end": {
"line": 29,
"column": 72
}
}
},
"range": [
839,
899
],
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 72
}
}
},
"range": [
839,
912
],
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 30,
"column": 12
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
912,
916
],
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "bendRadius",
"range": [
917,
927
],
"loc": {
"start": {
"line": 30,
"column": 17
},
"end": {
"line": 30,
"column": 27
}
}
},
"range": [
912,
927
],
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 27
}
}
},
"right": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "bendingObject",
"range": [
930,
943
],
"loc": {
"start": {
"line": 30,
"column": 30
},
"end": {
"line": 30,
"column": 43
}
}
},
"property": {
"type": "Identifier",
"name": "members",
"range": [
944,
951
],
"loc": {
"start": {
"line": 30,
"column": 44
},
"end": {
"line": 30,
"column": 51
}
}
},
"range": [
930,
951
],
"loc": {
"start": {
"line": 30,
"column": 30
},
"end": {
"line": 30,
"column": 51
}
}
},
"property": {
"type": "Identifier",
"name": "bendRadius",
"range": [
952,
962
],
"loc": {
"start": {
"line": 30,
"column": 52
},
"end": {
"line": 30,
"column": 62
}
}
},
"range": [
930,
962
],
"loc": {
"start": {
"line": 30,
"column": 30
},
"end": {
"line": 30,
"column": 62
}
}
},
"property": {
"type": "Identifier",
"name": "value",
"range": [
963,
968
],
"loc": {
"start": {
"line": 30,
"column": 63
},
"end": {
"line": 30,
"column": 68
}
}
},
"range": [
930,
968
],
"loc": {
"start": {
"line": 30,
"column": 30
},
"end": {
"line": 30,
"column": 68
}
}
},
"range": [
912,
968
],
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 30,
"column": 68
}
}
},
"range": [
912,
981
],