UNPKG

awv3

Version:
1,415 lines (1,414 loc) 3.54 MB
{ "type": "File", "start": 0, "end": 18051, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 478, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 18051, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 478, "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": 2479, "loc": { "start": { "line": 24, "column": 0 }, "end": { "line": 71, "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": 2479, "loc": { "start": { "line": 24, "column": 24 }, "end": { "line": 71, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 630, "end": 1929, "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": 643, "end": 668, "loc": { "start": { "line": 25, "column": 17 }, "end": { "line": 25, "column": 42 } }, "left": { "type": "Identifier", "start": 643, "end": 656, "loc": { "start": { "line": 25, "column": 17 }, "end": { "line": 25, "column": 30 }, "identifierName": "bendingObject" }, "name": "bendingObject" }, "right": { "type": "Identifier", "start": 659, "end": 668, "loc": { "start": { "line": 25, "column": 33 }, "end": { "line": 25, "column": 42 }, "identifierName": "undefined" }, "name": "undefined" } } ], "body": { "type": "BlockStatement", "start": 670, "end": 1929, "loc": { "start": { "line": 25, "column": 44 }, "end": { "line": 53, "column": 5 } }, "body": [ { "type": "IfStatement", "start": 680, "end": 1923, "loc": { "start": { "line": 26, "column": 8 }, "end": { "line": 52, "column": 9 } }, "test": { "type": "Identifier", "start": 684, "end": 697, "loc": { "start": { "line": 26, "column": 12 }, "end": { "line": 26, "column": 25 }, "identifierName": "bendingObject" }, "name": "bendingObject" }, "consequent": { "type": "BlockStatement", "start": 699, "end": 1526, "loc": { "start": { "line": 26, "column": 27 }, "end": { "line": 39, "column": 9 } }, "body": [ { "type": "ExpressionStatement", "start": 713, "end": 767, "loc": { "start": { "line": 27, "column": 12 }, "end": { "line": 27, "column": 66 } }, "expression": { "type": "AssignmentExpression", "start": 713, "end": 767, "loc": { "start": { "line": 27, "column": 12 }, "end": { "line": 27, "column": 66 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 713, "end": 727, "loc": { "start": { "line": 27, "column": 12 }, "end": { "line": 27, "column": 26 } }, "object": { "type": "ThisExpression", "start": 713, "end": 717, "loc": { "start": { "line": 27, "column": 12 }, "end": { "line": 27, "column": 16 } } }, "property": { "type": "Identifier", "start": 718, "end": 727, "loc": { "start": { "line": 27, "column": 17 }, "end": { "line": 27, "column": 26 }, "identifierName": "bendAngle" }, "name": "bendAngle" }, "computed": false }, "right": { "type": "MemberExpression", "start": 730, "end": 767, "loc": { "start": { "line": 27, "column": 29 }, "end": { "line": 27, "column": 66 } }, "object": { "type": "MemberExpression", "start": 730, "end": 761, "loc": { "start": { "line": 27, "column": 29 }, "end": { "line": 27, "column": 60 } }, "object": { "type": "MemberExpression", "start": 730, "end": 751, "loc": { "start": { "line": 27, "column": 29 }, "end": { "line": 27, "column": 50 } }, "object": { "type": "Identifier", "start": 730, "end": 743, "loc": { "start": { "line": 27, "column": 29 }, "end": { "line": 27, "column": 42 }, "identifierName": "bendingObject" }, "name": "bendingObject" }, "property": { "type": "Identifier", "start": 744, "end": 751, "loc": { "start": { "line": 27, "column": 43 }, "end": { "line": 27, "column": 50 }, "identifierName": "members" }, "name": "members" }, "computed": false }, "property": { "type": "Identifier", "start": 752, "end": 761, "loc": { "start": { "line": 27, "column": 51 }, "end": { "line": 27, "column": 60 }, "identifierName": "bendAngle" }, "name": "bendAngle" }, "computed": false }, "property": { "type": "Identifier", "start": 762, "end": 767, "loc": { "start": { "line": 27, "column": 61 }, "end": { "line": 27, "column": 66 }, "identifierName": "value" }, "name": "value" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 780, "end": 832, "loc": { "start": { "line": 28, "column": 12 }, "end": { "line": 28, "column": 64 } }, "expression": { "type": "AssignmentExpression", "start": 780, "end": 832, "loc": { "start": { "line": 28, "column": 12 }, "end": { "line": 28, "column": 64 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 780, "end": 793, "loc": { "start": { "line": 28, "column": 12 }, "end": { "line": 28, "column": 25 } }, "object": { "type": "ThisExpression", "start": 780, "end": 784, "loc": { "start": { "line": 28, "column": 12 }, "end": { "line": 28, "column": 16 } } }, "property": { "type": "Identifier", "start": 785, "end": 793, "loc": { "start": { "line": 28, "column": 17 }, "end": { "line": 28, "column": 25 }, "identifierName": "preAngle" }, "name": "preAngle" }, "computed": false }, "right": { "type": "MemberExpression", "start": 796, "end": 832, "loc": { "start": { "line": 28, "column": 28 }, "end": { "line": 28, "column": 64 } }, "object": { "type": "MemberExpression", "start": 796, "end": 826, "loc": { "start": { "line": 28, "column": 28 }, "end": { "line": 28, "column": 58 } }, "object": { "type": "MemberExpression", "start": 796, "end": 817, "loc": { "start": { "line": 28, "column": 28 }, "end": { "line": 28, "column": 49 } }, "object": { "type": "Identifier", "start": 796, "end": 809, "loc": { "start": { "line": 28, "column": 28 }, "end": { "line": 28, "column": 41 }, "identifierName": "bendingObject" }, "name": "bendingObject" }, "property": { "type": "Identifier", "start": 810, "end": 817, "loc": { "start": { "line": 28, "column": 42 }, "end": { "line": 28, "column": 49 }, "identifierName": "members" }, "name": "members" }, "computed": false }, "property": { "type": "Identifier", "start": 818, "end": 826, "loc": { "start": { "line": 28, "column": 50 }, "end": { "line": 28, "column": 58 }, "identifierName": "preAngle" }, "name": "preAngle" }, "computed": false }, "property": { "type": "Identifier", "start": 827, "end": 832, "loc": { "start": { "line": 28, "column": 59 }, "end": { "line": 28, "column": 64 }, "identifierName": "value" }, "name": "value" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 845, "end": 905, "loc": { "start": { "line": 29, "column": 12 }, "end": { "line": 29, "column": 72 } }, "expression": { "type": "AssignmentExpression", "start": 845, "end": 905, "loc": { "start": { "line": 29, "column": 12 }, "end": { "line": 29, "column": 72 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 845, "end": 862, "loc": { "start": { "line": 29, "column": 12 }, "end": { "line": 29, "column": 29 } }, "object": { "type": "ThisExpression", "start": 845, "end": 849, "loc": { "start": { "line": 29, "column": 12 }, "end": { "line": 29, "column": 16 } } }, "property": { "type": "Identifier", "start": 850, "end": 862, "loc": { "start": { "line": 29, "column": 17 }, "end": { "line": 29, "column": 29 }, "identifierName": "bendRadiusDB" }, "name": "bendRadiusDB" }, "computed": false }, "right": { "type": "MemberExpression", "start": 865, "end": 905, "loc": { "start": { "line": 29, "column": 32 }, "end": { "line": 29, "column": 72 } }, "object": { "type": "MemberExpression", "start": 865, "end": 899, "loc": { "start": { "line": 29, "column": 32 }, "end": { "line": 29, "column": 66 } }, "object": { "type": "MemberExpression", "start": 865, "end": 886, "loc": { "start": { "line": 29, "column": 32 }, "end": { "line": 29, "column": 53 } }, "object": { "type": "Identifier", "start": 865, "end": 878, "loc": { "start": { "line": 29, "column": 32 }, "end": { "line": 29, "column": 45 }, "identifierName": "bendingObject" }, "name": "bendingObject" }, "property": { "type": "Identifier", "start": 879, "end": 886, "loc": { "start": { "line": 29, "column": 46 }, "end": { "line": 29, "column": 53 }, "identifierName": "members" }, "name": "members" }, "computed": false }, "property": { "type": "Identifier", "start": 887, "end": 899, "loc": { "start": { "line": 29, "column": 54 }, "end": { "line": 29, "column": 66 }, "identifierName": "bendRadiusDB" }, "name": "bendRadiusDB" }, "computed": false }, "property": { "type": "Identifier", "start": 900, "end": 905, "loc": { "start": { "line": 29, "column": 67 }, "end": { "line": 29, "column": 72 }, "identifierName": "value" }, "name": "value" }, "computed": false } } }, { "type": "ExpressionStatement", "start": 918, "end": 974, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 68 } }, "expression": { "type": "AssignmentExpression", "start": 918, "end": 974, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 68 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 918, "end": 933, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 27 } }, "object": { "type": "ThisExpression", "start": 918, "end": 922, "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 16 } } }, "property": { "type": "Identifier", "start": 923, "end": 933, "loc": { "start": { "line": 30, "column": 17 }, "end": { "line": 30, "column": 27 }, "identifierName": "bendRadius" }, "name": "bendRadius" }, "computed": false }, "right": { "type": "MemberExpression", "start": 936, "end": 974, "loc": { "start": { "line": 30, "column": 30 }, "end": { "line": 30, "column": 68 } }, "object": { "type": "MemberExpression", "start": 936, "end": 968, "loc": { "start": { "line": 30, "column": 30 }, "end": { "line": 30, "column": 62 } }, "object": { "type": "MemberExpression", "start": 936, "end": 957, "loc": { "start": { "line": 30, "column": 30 }, "end": { "line": 30, "column": 51 } }, "object": { "type": "Identifier", "start": 936, "end": 949, "loc": { "start": { "line": 30, "column": 30 }, "end": { "line": 30, "column": 43 }, "identifierName": "bendingObject" }, "name": "bendingObject" }, "property": { "type": "Identifier", "start": 950, "end": 957, "loc": {