UNPKG

awv3

Version:
1,415 lines (1,414 loc) 3.76 MB
{ "type": "File", "start": 0, "end": 20629, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 555, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 20629, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 555, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 47, "end": 77, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 30 } }, "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": 78, "end": 119, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 41 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 85, "end": 91, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 13 } }, "local": { "type": "Identifier", "start": 85, "end": 91, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 13 }, "identifierName": "Plugin" }, "name": "Plugin" } } ], "source": { "type": "StringLiteral", "start": 97, "end": 119, "loc": { "start": { "line": 6, "column": 19 }, "end": { "line": 6, "column": 41 } }, "extra": { "rawValue": "../../session/plugin", "raw": "'../../session/plugin'" }, "value": "../../session/plugin" } }, { "type": "ImportDeclaration", "start": 120, "end": 202, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 82 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 129, "end": 134, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 14 } }, "imported": { "type": "Identifier", "start": 129, "end": 134, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 14 }, "identifierName": "Group" }, "name": "Group" }, "local": { "type": "Identifier", "start": 129, "end": 134, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 14 }, "identifierName": "Group" }, "name": "Group" } }, { "type": "ImportSpecifier", "start": 136, "end": 142, "loc": { "start": { "line": 7, "column": 16 }, "end": { "line": 7, "column": 22 } }, "imported": { "type": "Identifier", "start": 136, "end": 142, "loc": { "start": { "line": 7, "column": 16 }, "end": { "line": 7, "column": 22 }, "identifierName": "Button" }, "name": "Button" }, "local": { "type": "Identifier", "start": 136, "end": 142, "loc": { "start": { "line": 7, "column": 16 }, "end": { "line": 7, "column": 22 }, "identifierName": "Button" }, "name": "Button" } }, { "type": "ImportSpecifier", "start": 144, "end": 149, "loc": { "start": { "line": 7, "column": 24 }, "end": { "line": 7, "column": 29 } }, "imported": { "type": "Identifier", "start": 144, "end": 149, "loc": { "start": { "line": 7, "column": 24 }, "end": { "line": 7, "column": 29 }, "identifierName": "Input" }, "name": "Input" }, "local": { "type": "Identifier", "start": 144, "end": 149, "loc": { "start": { "line": 7, "column": 24 }, "end": { "line": 7, "column": 29 }, "identifierName": "Input" }, "name": "Input" } }, { "type": "ImportSpecifier", "start": 151, "end": 160, "loc": { "start": { "line": 7, "column": 31 }, "end": { "line": 7, "column": 40 } }, "imported": { "type": "Identifier", "start": 151, "end": 160, "loc": { "start": { "line": 7, "column": 31 }, "end": { "line": 7, "column": 40 }, "identifierName": "Selection" }, "name": "Selection" }, "local": { "type": "Identifier", "start": 151, "end": 160, "loc": { "start": { "line": 7, "column": 31 }, "end": { "line": 7, "column": 40 }, "identifierName": "Selection" }, "name": "Selection" } }, { "type": "ImportSpecifier", "start": 162, "end": 170, "loc": { "start": { "line": 7, "column": 42 }, "end": { "line": 7, "column": 50 } }, "imported": { "type": "Identifier", "start": 162, "end": 170, "loc": { "start": { "line": 7, "column": 42 }, "end": { "line": 7, "column": 50 }, "identifierName": "Checkbox" }, "name": "Checkbox" }, "local": { "type": "Identifier", "start": 162, "end": 170, "loc": { "start": { "line": 7, "column": 42 }, "end": { "line": 7, "column": 50 }, "identifierName": "Checkbox" }, "name": "Checkbox" } } ], "source": { "type": "StringLiteral", "start": 178, "end": 202, "loc": { "start": { "line": 7, "column": 58 }, "end": { "line": 7, "column": 82 } }, "extra": { "rawValue": "../../session/elements", "raw": "'../../session/elements'" }, "value": "../../session/elements", "leadingComments": null, "trailingComments": null }, "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": 204, "end": 599, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 23, "column": 3 } } } ] }, { "type": "ClassDeclaration", "start": 600, "end": 2434, "loc": { "start": { "line": 24, "column": 0 }, "end": { "line": 72, "column": 1 } }, "id": { "type": "Identifier", "start": 606, "end": 623, "loc": { "start": { "line": 24, "column": 6 }, "end": { "line": 24, "column": 23 }, "identifierName": "BendingParameters" }, "name": "BendingParameters", "leadingComments": null }, "superClass": null, "body": { "type": "ClassBody", "start": 624, "end": 2434, "loc": { "start": { "line": 24, "column": 24 }, "end": { "line": 72, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 630, "end": 1928, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 53, "column": 5 } }, "computed": false, "key": { "type": "Identifier", "start": 630, "end": 641, "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": 642, "end": 667, "loc": { "start": { "line": 25, "column": 16 }, "end": { "line": 25, "column": 41 } }, "left": { "type": "Identifier", "start": 642, "end": 655, "loc": { "start": { "line": 25, "column": 16 }, "end": { "line": 25, "column": 29 }, "identifierName": "bendingObject" }, "name": "bendingObject" }, "right": { "type": "Identifier", "start": 658, "end": 667, "loc": { "start": { "line": 25, "column": 32 }, "end": { "line": 25, "column": 41 }, "identifierName": "undefined" }, "name": "undefined" } } ], "body": { "type": "BlockStatement", "start": 669, "end": 1928, "loc": { "start": { "line": 25, "column": 43 }, "end": { "line": 53, "column": 5 } }, "body": [ { "type": "IfStatement", "start": 679, "end": 1922, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 52, "column": 9 } }, "test": { "type": "Identifier", "start": 683, "end": 696, "loc": { "start": { "line": 26, "column": 12 }, "end": { "line": 26, "column": 25 }, "identifierName": "bendingObject" }, "name": "bendingObject" }, "consequent": { "type": "BlockStatement", "start": 698, "end": 1525, "loc": { "start": { "line": 26, "column": 27 }, "end": { "line": 39, "column": 9 } }, "body": [ { "type": "ExpressionStatement", "start": 712, "end": 766, "loc": { "start": { "line": 27, "column": 12 }, "end": { "line": 27, "column": 66 } }, "expression": { "type": "AssignmentExpression", "start": 712, "end": 766, "loc": { "start": { "line": 27, "column": 12 }, "end": { "line": 27, "column": 66 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 712, "end": 726, "loc": { "start": { "line": 27, "column": 12 }, "end": { "line": 27, "column": 26 } }, "object": { "type": "ThisExpression", "start": 712, "end": 716, "loc": { "start": { "line": 27, "column": 12 }, "end": { "line": 27, "column": 16 } } }, "property": { "type": "Identifier", "start": 717, "end": 726, "loc": { "start": { "line": 27, "column": 17 }, "end": { "line": 27, "column": 26 }, "identifierName": "bendAngle" }, "name": "bendAngle" }, "computed": false }, "right": { "type": "MemberExpression", "start": 729, "end": 766, "loc": { "start": { "line": 27, "column": 29 }, "end": { "line": 27, "column": 66 } }, "object": { "type": "MemberExpression", "start": 729, "end": 760, "loc": { "start": { "line": 27, "column": 29 }, "end": { "line": 27, "column": 60 } }, "object": { "type": "MemberExpression", "start": 729, "end": 750, "loc": { "start": { "line": 27, "column": 29 }, "end": { "line": 27, "column": 50 } }, "object": { "type": "Identifier", "start": 729, "end": 742, "loc": { "start": { "line": 27, "column": 29 }, "end": { "line": 27, "column": 42 }, "identifierName": "bendingObject" }, "name": "bendingObject" }, "property": { "type": "Identifier", "start": 743, "end": 750, "loc": { "start": { "line": 27, "column": 43 }, "end": { "line": 27, "column": 50 }, "identifierName": "members" }, "name": "members" }, "computed": false }, "property": { "type": "Identifier", "start": 751, "end": 760, "loc": { "start": { "line": 27, "column": 51 }, "end": { "line": 27, "column": 60 }, "identifierName": "bendAngle" }, "name": "bendAngle" }, "computed": false }, "property": { "type": "Identifier", "start": 761, "end": 766, "loc": { "start": { "line": 27, "column": 61 }, "end": { "line": 27, "column": 66 }, "identifierName": "value" }, "name": "value" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 779, "end": 831, "loc": { "start": { "line": 28, "column": 12 }, "end": { "line": 28, "column": 64 } }, "expression": { "type": "AssignmentExpression", "start": 779, "end": 831, "loc": { "start": { "line": 28, "column": 12 }, "end": { "line": 28, "column": 64 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 779, "end": 792, "loc": { "start": { "line": 28, "column": 12 }, "end": { "line": 28, "column": 25 } }, "object": { "type": "ThisExpression", "start": 779, "end": 783, "loc": { "start": { "line": 28, "column": 12 }, "end": { "line": 28, "column": 16 } } }, "property": { "type": "Identifier", "start": 784, "end": 792, "loc": { "start": { "line": 28, "column": 17 }, "end": { "line": 28, "column": 25 }, "identifierName": "preAngle" }, "name": "preAngle" }, "computed": false }, "right": { "type": "MemberExpression", "start": 795, "end": 831, "loc": { "start": { "line": 28, "column": 28 }, "end": { "line": 28, "column": 64 } }, "object": { "type": "MemberExpression", "start": 795, "end": 825, "loc": { "start": { "line": 28, "column": 28 }, "end": { "line": 28, "column": 58 } }, "object": { "type": "MemberExpression", "start": 795, "end": 816, "loc": { "start": { "line": 28, "column": 28 }, "end": { "line": 28, "column": 49 } }, "object": { "type": "Identifier", "start": 795, "end": 808, "loc": { "start": { "line": 28, "column": 28 }, "end": { "line": 28, "column": 41 }, "identifierName": "bendingObject" }, "name": "bendingObject" }, "property": { "type": "Identifier", "start": 809, "end": 816, "loc": { "start": { "line": 28, "column": 42 }, "end": { "line": 28, "column": 49 }, "identifierName": "members" }, "name": "members" }, "computed": false }, "property": { "type": "Identifier", "start": 817, "end": 825, "loc": { "start": { "line": 28, "column": 50 }, "end": { "line": 28, "column": 58 }, "identifierName": "preAngle" }, "name": "preAngle" }, "computed": false }, "property": { "type": "Identifier", "start": 826, "end": 831, "loc": { "start": { "line": 28, "column": 59 }, "end": { "line": 28, "column": 64 }, "identifierName": "value" }, "name": "value" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 844, "end": 904, "loc": { "start": { "line": 29, "column": 12 }, "end": { "line": 29, "column": 72 } }, "expression": { "type": "AssignmentExpression", "start": 844, "end": 904, "loc": { "start": { "line": 29, "column": 12 }, "end": { "line": 29, "column": 72 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 844, "end": 861, "loc": { "start": { "line": 29, "column": 12 }, "end": { "line": 29, "column": 29 } }, "object": { "type": "ThisExpression", "start": 844, "end": 848, "loc": { "start": { "line": 29, "column": 12 }, "end": { "line": 29, "column": 16 } } }, "property": { "type": "Identifier", "start": 849, "end": 861, "loc": { "start": { "line": 29, "column": 17 }, "end": { "line": 29, "column": 29 }, "identifierName": "bendRadiusDB" }, "name": "bendRadiusDB" }, "computed": false }, "right": { "type": "MemberExpression", "start": 864, "end": 904, "loc": { "start": { "line": 29, "column": 32 }, "end": { "line": 29, "column": 72 } }, "object": { "type": "MemberExpression", "start": 864, "end": 898, "loc": { "start": { "line": 29, "column": 32 }, "end": { "line": 29, "column": 66 } }, "object": { "type": "MemberExpression", "start": 864, "end": 885, "loc": { "start": { "line": 29, "column": 32 }, "end": { "line": 29, "column": 53 } }, "object": { "type": "Identifier", "start": 864, "end": 877, "loc": { "start": { "line": 29, "column": 32 }, "end": { "line": 29, "column": 45 }, "identifierName": "bendingObject" }, "name": "bendingObject" }, "property": { "type": "Identifier", "start": 878, "end": 885, "loc": { "start": { "line": 29, "column": 46 }, "end": { "line": 29, "column": 53 }, "identifierName": "members" }, "name": "members" }, "computed": false }, "property": { "type": "Identifier", "start": 886, "end": 898, "loc": { "start": { "line": 29, "column": 54 }, "end": { "line": 29, "column": 66 }, "identifierName": "bendRadiusDB" }, "name": "bendRadiusDB" }, "computed": false }, "property": { "type": "Identifier", "start": 899, "end": 904, "loc": { "start": { "line": 29, "column": 67 }, "end": { "line": 29, "column": 72 }, "identifierName": "value" }, "name": "value" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 917, "end": 973, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 68 } }, "expression": { "type": "AssignmentExpression", "start": 917, "end": 973, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 68 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 917, "end": 932, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 27 } }, "object": { "type": "ThisExpression", "start": 917, "end": 921, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 16 } } }, "property": { "type": "Identifier", "start": 922, "end": 932, "loc": { "start": { "line": 30, "column": 17 }, "end": { "line": 30, "column": 27 }, "identifierName": "bendRadius" }, "name": "bendRadius" }, "computed": false }, "right": { "type": "MemberExpression", "start": 935, "end": 973, "loc": { "start": { "line": 30, "column": 30 }, "end": { "line": 30, "column": 68 } }, "object": { "type": "MemberExpression", "start": 935, "end": 967, "loc": { "start": { "line": 30, "column": 30 }, "end": { "line": 30, "column": 62 } }, "object": { "type": "MemberExpression", "start": 935, "end": 956, "loc": { "start": { "line": 30, "column": 30 }, "end": { "line": 30, "column": 51 } }, "object": { "type": "Identifier", "start": 935, "end": 948, "loc": { "start": { "line": 30, "column": 30 }, "end": { "line": 30, "column": 43 }, "identifierName": "bendingObject" }, "name": "bendingObject" }, "property": { "type": "Identifier", "start": 949, "end": 956, "loc": {