5209 lines
191 KiB
Plaintext
5209 lines
191 KiB
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Result of parsing enclosure.kcl
|
|
---
|
|
{
|
|
"Ok": {
|
|
"body": [
|
|
{
|
|
"declaration": {
|
|
"end": 129,
|
|
"id": {
|
|
"end": 123,
|
|
"name": "length",
|
|
"start": 117,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 129,
|
|
"raw": "175",
|
|
"start": 126,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 175.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 117,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 129,
|
|
"kind": "const",
|
|
"start": 117,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 141,
|
|
"id": {
|
|
"end": 135,
|
|
"name": "width",
|
|
"start": 130,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 141,
|
|
"raw": "125",
|
|
"start": 138,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 125.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 130,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 141,
|
|
"kind": "const",
|
|
"start": 130,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 153,
|
|
"id": {
|
|
"end": 148,
|
|
"name": "height",
|
|
"start": 142,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 153,
|
|
"raw": "70",
|
|
"start": 151,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 70.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 142,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 153,
|
|
"kind": "const",
|
|
"start": 142,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 171,
|
|
"id": {
|
|
"end": 167,
|
|
"name": "wallThickness",
|
|
"start": 154,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 171,
|
|
"raw": "3",
|
|
"start": 170,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 154,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 171,
|
|
"kind": "const",
|
|
"start": 154,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 183,
|
|
"id": {
|
|
"end": 179,
|
|
"name": "holeDia",
|
|
"start": 172,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 183,
|
|
"raw": "4",
|
|
"start": 182,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 172,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 183,
|
|
"kind": "const",
|
|
"start": 172,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 755,
|
|
"id": {
|
|
"end": 240,
|
|
"name": "sketch001",
|
|
"start": 231,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 261,
|
|
"raw": "'XY'",
|
|
"start": 257,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "XY"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 256,
|
|
"name": "startSketchOn",
|
|
"start": 243,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 262,
|
|
"start": 243,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 285,
|
|
"raw": "0",
|
|
"start": 284,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 288,
|
|
"raw": "0",
|
|
"start": 287,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 289,
|
|
"start": 283,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 292,
|
|
"start": 291,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 282,
|
|
"name": "startProfileAt",
|
|
"start": 268,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 293,
|
|
"start": 268,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 315,
|
|
"name": "angle",
|
|
"start": 310,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 319,
|
|
"raw": "0",
|
|
"start": 318,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 327,
|
|
"name": "length",
|
|
"start": 321,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 335,
|
|
"name": "width",
|
|
"start": 330,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 340,
|
|
"name": "tag",
|
|
"start": 337,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 364,
|
|
"start": 343,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "rectangleSegmentA001"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 309,
|
|
"name": "angledLine",
|
|
"start": 299,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 365,
|
|
"start": 299,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 395,
|
|
"name": "angle",
|
|
"start": 390,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 431,
|
|
"left": {
|
|
"arguments": [
|
|
{
|
|
"end": 425,
|
|
"name": "rectangleSegmentA001",
|
|
"start": 405,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 404,
|
|
"name": "segAng",
|
|
"start": 398,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 426,
|
|
"start": 398,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 431,
|
|
"raw": "90",
|
|
"start": 429,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 90.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 398,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 446,
|
|
"name": "length",
|
|
"start": 440,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 455,
|
|
"name": "length",
|
|
"start": 449,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 467,
|
|
"name": "tag",
|
|
"start": 464,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 491,
|
|
"start": 470,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "rectangleSegmentB001"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 381,
|
|
"name": "angledLine",
|
|
"start": 371,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 499,
|
|
"start": 371,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 529,
|
|
"name": "angle",
|
|
"start": 524,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"arguments": [
|
|
{
|
|
"end": 559,
|
|
"name": "rectangleSegmentA001",
|
|
"start": 539,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 538,
|
|
"name": "segAng",
|
|
"start": 532,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 560,
|
|
"start": 532,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 575,
|
|
"name": "length",
|
|
"start": 569,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"arguments": [
|
|
{
|
|
"end": 606,
|
|
"name": "rectangleSegmentA001",
|
|
"start": 586,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 585,
|
|
"name": "segLen",
|
|
"start": 579,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 607,
|
|
"start": 579,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
"end": 607,
|
|
"operator": "-",
|
|
"start": 578,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 619,
|
|
"name": "tag",
|
|
"start": 616,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 643,
|
|
"start": 622,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "rectangleSegmentC001"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 515,
|
|
"name": "angledLine",
|
|
"start": 505,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 651,
|
|
"start": 505,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 673,
|
|
"name": "endAbsolute",
|
|
"start": 662,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 692,
|
|
"start": 691,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 690,
|
|
"name": "profileStartX",
|
|
"start": 677,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 693,
|
|
"start": 677,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 710,
|
|
"start": 709,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 708,
|
|
"name": "profileStartY",
|
|
"start": 695,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 711,
|
|
"start": 695,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 712,
|
|
"start": 676,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 717,
|
|
"name": "tag",
|
|
"start": 714,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 741,
|
|
"start": 720,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "rectangleSegmentD001"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 661,
|
|
"name": "line",
|
|
"start": 657,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 742,
|
|
"start": 657,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"callee": {
|
|
"end": 753,
|
|
"name": "close",
|
|
"start": 748,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 755,
|
|
"start": 748,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 755,
|
|
"start": 243,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 231,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 755,
|
|
"kind": "const",
|
|
"start": 231,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1331,
|
|
"id": {
|
|
"end": 766,
|
|
"name": "extrude001",
|
|
"start": 756,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 794,
|
|
"name": "length",
|
|
"start": 788,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 803,
|
|
"name": "height",
|
|
"start": 797,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 776,
|
|
"name": "extrude",
|
|
"start": 769,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 804,
|
|
"start": 769,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 786,
|
|
"name": "sketch001",
|
|
"start": 777,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 831,
|
|
"name": "radius",
|
|
"start": 825,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 851,
|
|
"left": {
|
|
"end": 847,
|
|
"name": "wallThickness",
|
|
"start": 834,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 851,
|
|
"raw": "4",
|
|
"start": 850,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 834,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 864,
|
|
"name": "tags",
|
|
"start": 860,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 918,
|
|
"name": "rectangleSegmentA001",
|
|
"start": 898,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 897,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 878,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 919,
|
|
"start": 878,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 970,
|
|
"name": "rectangleSegmentB001",
|
|
"start": 950,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 949,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 930,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 971,
|
|
"start": 930,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1022,
|
|
"name": "rectangleSegmentC001",
|
|
"start": 1002,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1001,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 982,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1023,
|
|
"start": 982,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1074,
|
|
"name": "rectangleSegmentD001",
|
|
"start": 1054,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1053,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 1034,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1075,
|
|
"start": 1034,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 1084,
|
|
"start": 867,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 816,
|
|
"name": "fillet",
|
|
"start": 810,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1091,
|
|
"start": 810,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1189,
|
|
"name": "faces",
|
|
"start": 1184,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 1198,
|
|
"raw": "\"end\"",
|
|
"start": 1193,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "end"
|
|
}
|
|
],
|
|
"end": 1199,
|
|
"start": 1192,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1217,
|
|
"name": "thickness",
|
|
"start": 1208,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1233,
|
|
"name": "wallThickness",
|
|
"start": 1220,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1175,
|
|
"name": "shell",
|
|
"start": 1170,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1240,
|
|
"start": 1170,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 1331,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"1": [
|
|
{
|
|
"end": 1164,
|
|
"start": 1093,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Apply a shell to the enclosure base to create the internal storage",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"2": [
|
|
{
|
|
"end": 1331,
|
|
"start": 1240,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Define a function to create the internal structure to secure a fastener at each corner",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 769,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 756,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1331,
|
|
"kind": "const",
|
|
"start": 756,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1997,
|
|
"id": {
|
|
"end": 1346,
|
|
"name": "function001",
|
|
"start": 1335,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": {
|
|
"body": [
|
|
{
|
|
"declaration": {
|
|
"end": 1582,
|
|
"id": {
|
|
"end": 1420,
|
|
"name": "plane001",
|
|
"start": 1412,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 1582,
|
|
"properties": [
|
|
{
|
|
"end": 1578,
|
|
"key": {
|
|
"end": 1434,
|
|
"name": "plane",
|
|
"start": 1429,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1429,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1578,
|
|
"properties": [
|
|
{
|
|
"end": 1479,
|
|
"key": {
|
|
"end": 1451,
|
|
"name": "origin",
|
|
"start": 1445,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1445,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"elements": [
|
|
{
|
|
"end": 1458,
|
|
"raw": "0.0",
|
|
"start": 1455,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1463,
|
|
"raw": "0.0",
|
|
"start": 1460,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1478,
|
|
"name": "wallThickness",
|
|
"start": 1465,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"end": 1479,
|
|
"start": 1454,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 1510,
|
|
"key": {
|
|
"end": 1492,
|
|
"name": "xAxis",
|
|
"start": 1487,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1487,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"elements": [
|
|
{
|
|
"end": 1499,
|
|
"raw": "1.0",
|
|
"start": 1496,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1504,
|
|
"raw": "0.0",
|
|
"start": 1501,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1509,
|
|
"raw": "0.0",
|
|
"start": 1506,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 1510,
|
|
"start": 1495,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 1541,
|
|
"key": {
|
|
"end": 1523,
|
|
"name": "yAxis",
|
|
"start": 1518,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1518,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"elements": [
|
|
{
|
|
"end": 1530,
|
|
"raw": "0.0",
|
|
"start": 1527,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1535,
|
|
"raw": "1.0",
|
|
"start": 1532,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1540,
|
|
"raw": "0.0",
|
|
"start": 1537,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 1541,
|
|
"start": 1526,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 1572,
|
|
"key": {
|
|
"end": 1554,
|
|
"name": "zAxis",
|
|
"start": 1549,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1549,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"elements": [
|
|
{
|
|
"end": 1561,
|
|
"raw": "0.0",
|
|
"start": 1558,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1566,
|
|
"raw": "0.0",
|
|
"start": 1563,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1571,
|
|
"raw": "1.0",
|
|
"start": 1568,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 1572,
|
|
"start": 1557,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 1437,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 1423,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
"start": 1412,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1582,
|
|
"kind": "const",
|
|
"start": 1412,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1907,
|
|
"id": {
|
|
"end": 1652,
|
|
"name": "sketch002",
|
|
"start": 1643,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1677,
|
|
"name": "plane001",
|
|
"start": 1669,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1668,
|
|
"name": "startSketchOn",
|
|
"start": 1655,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1678,
|
|
"start": 1655,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1709,
|
|
"name": "center",
|
|
"start": 1703,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"computed": false,
|
|
"end": 1727,
|
|
"object": {
|
|
"end": 1724,
|
|
"name": "originStart",
|
|
"start": 1713,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 1726,
|
|
"raw": "0",
|
|
"start": 1725,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1713,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
{
|
|
"computed": false,
|
|
"end": 1743,
|
|
"object": {
|
|
"end": 1740,
|
|
"name": "originStart",
|
|
"start": 1729,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 1742,
|
|
"raw": "1",
|
|
"start": 1741,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1729,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"end": 1744,
|
|
"start": 1712,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1761,
|
|
"name": "radius",
|
|
"start": 1755,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1787,
|
|
"left": {
|
|
"end": 1771,
|
|
"name": "holeDia",
|
|
"start": 1764,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 1787,
|
|
"name": "wallThickness",
|
|
"start": 1774,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1764,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1692,
|
|
"name": "circle",
|
|
"start": 1686,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1796,
|
|
"start": 1686,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1832,
|
|
"name": "center",
|
|
"start": 1826,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"computed": false,
|
|
"end": 1850,
|
|
"object": {
|
|
"end": 1847,
|
|
"name": "originStart",
|
|
"start": 1836,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 1849,
|
|
"raw": "0",
|
|
"start": 1848,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1836,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
},
|
|
{
|
|
"computed": false,
|
|
"end": 1866,
|
|
"object": {
|
|
"end": 1863,
|
|
"name": "originStart",
|
|
"start": 1852,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"property": {
|
|
"end": 1865,
|
|
"raw": "1",
|
|
"start": 1864,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1852,
|
|
"type": "MemberExpression",
|
|
"type": "MemberExpression"
|
|
}
|
|
],
|
|
"end": 1867,
|
|
"start": 1835,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1884,
|
|
"name": "radius",
|
|
"start": 1878,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1894,
|
|
"name": "holeDia",
|
|
"start": 1887,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1815,
|
|
"name": "circle",
|
|
"start": 1809,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1903,
|
|
"start": 1809,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"end": 1906,
|
|
"start": 1905,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1808,
|
|
"name": "hole",
|
|
"start": 1804,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1907,
|
|
"start": 1804,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 1907,
|
|
"start": 1655,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 1643,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1907,
|
|
"kind": "const",
|
|
"start": 1643,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1974,
|
|
"id": {
|
|
"end": 1920,
|
|
"name": "extrude002",
|
|
"start": 1910,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1948,
|
|
"name": "length",
|
|
"start": 1942,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1973,
|
|
"left": {
|
|
"end": 1957,
|
|
"name": "height",
|
|
"start": 1951,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 1973,
|
|
"name": "wallThickness",
|
|
"start": 1960,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1951,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1930,
|
|
"name": "extrude",
|
|
"start": 1923,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1974,
|
|
"start": 1923,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 1940,
|
|
"name": "sketch002",
|
|
"start": 1931,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
"start": 1910,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1974,
|
|
"kind": "const",
|
|
"start": 1910,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"argument": {
|
|
"end": 1995,
|
|
"name": "extrude002",
|
|
"start": 1985,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1995,
|
|
"start": 1978,
|
|
"type": "ReturnStatement",
|
|
"type": "ReturnStatement"
|
|
}
|
|
],
|
|
"end": 1997,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"0": [
|
|
{
|
|
"end": 1640,
|
|
"start": 1584,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Create a pillar with a fasterner hole at the center",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"2": [
|
|
{
|
|
"end": 1978,
|
|
"start": 1974,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": [
|
|
{
|
|
"end": 1410,
|
|
"start": 1361,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "Create a plane to sketch on shell interior",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"start": 1361
|
|
},
|
|
"end": 1997,
|
|
"params": [
|
|
{
|
|
"type": "Parameter",
|
|
"identifier": {
|
|
"end": 1358,
|
|
"name": "originStart",
|
|
"start": 1347,
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 1346,
|
|
"type": "FunctionExpression",
|
|
"type": "FunctionExpression"
|
|
},
|
|
"start": 1335,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1997,
|
|
"kind": "fn",
|
|
"start": 1332,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"end": 2120,
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 2086,
|
|
"left": {
|
|
"end": 2076,
|
|
"left": {
|
|
"end": 2072,
|
|
"name": "wallThickness",
|
|
"start": 2059,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2076,
|
|
"raw": "3",
|
|
"start": 2075,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2059,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 2086,
|
|
"name": "holeDia",
|
|
"start": 2079,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2059,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 2117,
|
|
"left": {
|
|
"end": 2107,
|
|
"left": {
|
|
"end": 2103,
|
|
"name": "wallThickness",
|
|
"start": 2090,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2107,
|
|
"raw": "3",
|
|
"start": 2106,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2090,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 2117,
|
|
"name": "holeDia",
|
|
"start": 2110,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2090,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 2119,
|
|
"start": 2055,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2054,
|
|
"name": "function001",
|
|
"start": 2043,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2120,
|
|
"start": 2043,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
"start": 2043,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
},
|
|
{
|
|
"end": 2209,
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 2164,
|
|
"left": {
|
|
"end": 2154,
|
|
"left": {
|
|
"end": 2150,
|
|
"name": "wallThickness",
|
|
"start": 2137,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2154,
|
|
"raw": "3",
|
|
"start": 2153,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2137,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 2164,
|
|
"name": "holeDia",
|
|
"start": 2157,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2137,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 2205,
|
|
"left": {
|
|
"end": 2174,
|
|
"name": "length",
|
|
"start": 2168,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 2205,
|
|
"left": {
|
|
"end": 2195,
|
|
"left": {
|
|
"end": 2191,
|
|
"name": "wallThickness",
|
|
"start": 2178,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2195,
|
|
"raw": "3",
|
|
"start": 2194,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2178,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 2205,
|
|
"name": "holeDia",
|
|
"start": 2198,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2178,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 2168,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 2208,
|
|
"start": 2133,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2132,
|
|
"name": "function001",
|
|
"start": 2121,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2209,
|
|
"start": 2121,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
"start": 2121,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
},
|
|
{
|
|
"end": 2297,
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 2262,
|
|
"left": {
|
|
"end": 2231,
|
|
"name": "width",
|
|
"start": 2226,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 2262,
|
|
"left": {
|
|
"end": 2252,
|
|
"left": {
|
|
"end": 2248,
|
|
"name": "wallThickness",
|
|
"start": 2235,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2252,
|
|
"raw": "3",
|
|
"start": 2251,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2235,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 2262,
|
|
"name": "holeDia",
|
|
"start": 2255,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2235,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 2226,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 2294,
|
|
"left": {
|
|
"end": 2284,
|
|
"left": {
|
|
"end": 2280,
|
|
"name": "wallThickness",
|
|
"start": 2267,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2284,
|
|
"raw": "3",
|
|
"start": 2283,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2267,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 2294,
|
|
"name": "holeDia",
|
|
"start": 2287,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2267,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 2296,
|
|
"start": 2222,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2221,
|
|
"name": "function001",
|
|
"start": 2210,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2297,
|
|
"start": 2210,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
"start": 2210,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
},
|
|
{
|
|
"end": 2396,
|
|
"expression": {
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 2350,
|
|
"left": {
|
|
"end": 2319,
|
|
"name": "width",
|
|
"start": 2314,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 2350,
|
|
"left": {
|
|
"end": 2340,
|
|
"left": {
|
|
"end": 2336,
|
|
"name": "wallThickness",
|
|
"start": 2323,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2340,
|
|
"raw": "3",
|
|
"start": 2339,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2323,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 2350,
|
|
"name": "holeDia",
|
|
"start": 2343,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2323,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 2314,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 2392,
|
|
"left": {
|
|
"end": 2361,
|
|
"name": "length",
|
|
"start": 2355,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 2392,
|
|
"left": {
|
|
"end": 2382,
|
|
"left": {
|
|
"end": 2378,
|
|
"name": "wallThickness",
|
|
"start": 2365,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2382,
|
|
"raw": "3",
|
|
"start": 2381,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2365,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 2392,
|
|
"name": "holeDia",
|
|
"start": 2385,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 2365,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 2355,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 2395,
|
|
"start": 2310,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2309,
|
|
"name": "function001",
|
|
"start": 2298,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2396,
|
|
"start": 2298,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
"start": 2298,
|
|
"type": "ExpressionStatement",
|
|
"type": "ExpressionStatement"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 3679,
|
|
"id": {
|
|
"end": 2448,
|
|
"name": "sketch003",
|
|
"start": 2439,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 2469,
|
|
"raw": "'XY'",
|
|
"start": 2465,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "XY"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2464,
|
|
"name": "startSketchOn",
|
|
"start": 2451,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2470,
|
|
"start": 2451,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 2503,
|
|
"left": {
|
|
"end": 2497,
|
|
"name": "width",
|
|
"start": 2492,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 2503,
|
|
"raw": "1.2",
|
|
"start": 2500,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.2,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2492,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 2506,
|
|
"raw": "0",
|
|
"start": 2505,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 2507,
|
|
"start": 2491,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 2510,
|
|
"start": 2509,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2490,
|
|
"name": "startProfileAt",
|
|
"start": 2476,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2511,
|
|
"start": 2476,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2533,
|
|
"name": "angle",
|
|
"start": 2528,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2537,
|
|
"raw": "0",
|
|
"start": 2536,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2545,
|
|
"name": "length",
|
|
"start": 2539,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2553,
|
|
"name": "width",
|
|
"start": 2548,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2558,
|
|
"name": "tag",
|
|
"start": 2555,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2582,
|
|
"start": 2561,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "rectangleSegmentA002"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2527,
|
|
"name": "angledLine",
|
|
"start": 2517,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2583,
|
|
"start": 2517,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2613,
|
|
"name": "angle",
|
|
"start": 2608,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2649,
|
|
"left": {
|
|
"arguments": [
|
|
{
|
|
"end": 2643,
|
|
"name": "rectangleSegmentA001",
|
|
"start": 2623,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2622,
|
|
"name": "segAng",
|
|
"start": 2616,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2644,
|
|
"start": 2616,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 2649,
|
|
"raw": "90",
|
|
"start": 2647,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 90.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 2616,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2664,
|
|
"name": "length",
|
|
"start": 2658,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2673,
|
|
"name": "length",
|
|
"start": 2667,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2685,
|
|
"name": "tag",
|
|
"start": 2682,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2709,
|
|
"start": 2688,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "rectangleSegmentB002"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2599,
|
|
"name": "angledLine",
|
|
"start": 2589,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2717,
|
|
"start": 2589,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2747,
|
|
"name": "angle",
|
|
"start": 2742,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"arguments": [
|
|
{
|
|
"end": 2777,
|
|
"name": "rectangleSegmentA001",
|
|
"start": 2757,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2756,
|
|
"name": "segAng",
|
|
"start": 2750,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2778,
|
|
"start": 2750,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2793,
|
|
"name": "length",
|
|
"start": 2787,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"arguments": [
|
|
{
|
|
"end": 2824,
|
|
"name": "rectangleSegmentA001",
|
|
"start": 2804,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2803,
|
|
"name": "segLen",
|
|
"start": 2797,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2825,
|
|
"start": 2797,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
"end": 2825,
|
|
"operator": "-",
|
|
"start": 2796,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2837,
|
|
"name": "tag",
|
|
"start": 2834,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2861,
|
|
"start": 2840,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "rectangleSegmentC002"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2733,
|
|
"name": "angledLine",
|
|
"start": 2723,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2869,
|
|
"start": 2723,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2891,
|
|
"name": "endAbsolute",
|
|
"start": 2880,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 2910,
|
|
"start": 2909,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2908,
|
|
"name": "profileStartX",
|
|
"start": 2895,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2911,
|
|
"start": 2895,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 2928,
|
|
"start": 2927,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2926,
|
|
"name": "profileStartY",
|
|
"start": 2913,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2929,
|
|
"start": 2913,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 2930,
|
|
"start": 2894,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 2935,
|
|
"name": "tag",
|
|
"start": 2932,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 2959,
|
|
"start": 2938,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "rectangleSegmentD002"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2879,
|
|
"name": "line",
|
|
"start": 2875,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2960,
|
|
"start": 2875,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"callee": {
|
|
"end": 2971,
|
|
"name": "close",
|
|
"start": 2966,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 2973,
|
|
"start": 2966,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3005,
|
|
"name": "center",
|
|
"start": 2999,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 3060,
|
|
"left": {
|
|
"end": 3050,
|
|
"left": {
|
|
"end": 3030,
|
|
"left": {
|
|
"end": 3024,
|
|
"name": "width",
|
|
"start": 3019,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3030,
|
|
"raw": "1.2",
|
|
"start": 3027,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.2,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3019,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3050,
|
|
"left": {
|
|
"end": 3046,
|
|
"name": "wallThickness",
|
|
"start": 3033,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3050,
|
|
"raw": "3",
|
|
"start": 3049,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3033,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3019,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3060,
|
|
"name": "holeDia",
|
|
"start": 3053,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3019,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 3098,
|
|
"left": {
|
|
"end": 3088,
|
|
"left": {
|
|
"end": 3084,
|
|
"name": "wallThickness",
|
|
"start": 3071,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3088,
|
|
"raw": "3",
|
|
"start": 3087,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3071,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3098,
|
|
"name": "holeDia",
|
|
"start": 3091,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3071,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 3107,
|
|
"start": 3008,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3122,
|
|
"name": "radius",
|
|
"start": 3116,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3132,
|
|
"name": "holeDia",
|
|
"start": 3125,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2990,
|
|
"name": "circle",
|
|
"start": 2984,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3139,
|
|
"start": 2984,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"end": 3142,
|
|
"start": 3141,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 2983,
|
|
"name": "hole",
|
|
"start": 2979,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3143,
|
|
"start": 2979,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3175,
|
|
"name": "center",
|
|
"start": 3169,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 3230,
|
|
"left": {
|
|
"end": 3220,
|
|
"left": {
|
|
"end": 3200,
|
|
"left": {
|
|
"end": 3194,
|
|
"name": "width",
|
|
"start": 3189,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3200,
|
|
"raw": "1.2",
|
|
"start": 3197,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.2,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3189,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3220,
|
|
"left": {
|
|
"end": 3216,
|
|
"name": "wallThickness",
|
|
"start": 3203,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3220,
|
|
"raw": "3",
|
|
"start": 3219,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3203,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3189,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3230,
|
|
"name": "holeDia",
|
|
"start": 3223,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3189,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 3278,
|
|
"left": {
|
|
"end": 3247,
|
|
"name": "length",
|
|
"start": 3241,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3278,
|
|
"left": {
|
|
"end": 3268,
|
|
"left": {
|
|
"end": 3264,
|
|
"name": "wallThickness",
|
|
"start": 3251,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3268,
|
|
"raw": "3",
|
|
"start": 3267,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3251,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3278,
|
|
"name": "holeDia",
|
|
"start": 3271,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3251,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3241,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 3288,
|
|
"start": 3178,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3303,
|
|
"name": "radius",
|
|
"start": 3297,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3313,
|
|
"name": "holeDia",
|
|
"start": 3306,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3160,
|
|
"name": "circle",
|
|
"start": 3154,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3320,
|
|
"start": 3154,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"end": 3323,
|
|
"start": 3322,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3153,
|
|
"name": "hole",
|
|
"start": 3149,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3324,
|
|
"start": 3149,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3356,
|
|
"name": "center",
|
|
"start": 3350,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 3412,
|
|
"left": {
|
|
"end": 3381,
|
|
"left": {
|
|
"end": 3375,
|
|
"name": "width",
|
|
"start": 3370,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3381,
|
|
"raw": "2.2",
|
|
"start": 3378,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.2,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3370,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3412,
|
|
"left": {
|
|
"end": 3402,
|
|
"left": {
|
|
"end": 3398,
|
|
"name": "wallThickness",
|
|
"start": 3385,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3402,
|
|
"raw": "3",
|
|
"start": 3401,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3385,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3412,
|
|
"name": "holeDia",
|
|
"start": 3405,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3385,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3370,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 3451,
|
|
"left": {
|
|
"end": 3441,
|
|
"left": {
|
|
"end": 3437,
|
|
"name": "wallThickness",
|
|
"start": 3424,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3441,
|
|
"raw": "3",
|
|
"start": 3440,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3424,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3451,
|
|
"name": "holeDia",
|
|
"start": 3444,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3424,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 3460,
|
|
"start": 3359,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3475,
|
|
"name": "radius",
|
|
"start": 3469,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3485,
|
|
"name": "holeDia",
|
|
"start": 3478,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3341,
|
|
"name": "circle",
|
|
"start": 3335,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3492,
|
|
"start": 3335,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"end": 3495,
|
|
"start": 3494,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3334,
|
|
"name": "hole",
|
|
"start": 3330,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3496,
|
|
"start": 3330,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3528,
|
|
"name": "center",
|
|
"start": 3522,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 3584,
|
|
"left": {
|
|
"end": 3553,
|
|
"left": {
|
|
"end": 3547,
|
|
"name": "width",
|
|
"start": 3542,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3553,
|
|
"raw": "2.2",
|
|
"start": 3550,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.2,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3542,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3584,
|
|
"left": {
|
|
"end": 3574,
|
|
"left": {
|
|
"end": 3570,
|
|
"name": "wallThickness",
|
|
"start": 3557,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3574,
|
|
"raw": "3",
|
|
"start": 3573,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3557,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3584,
|
|
"name": "holeDia",
|
|
"start": 3577,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3557,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3542,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 3633,
|
|
"left": {
|
|
"end": 3602,
|
|
"name": "length",
|
|
"start": 3596,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 3633,
|
|
"left": {
|
|
"end": 3623,
|
|
"left": {
|
|
"end": 3619,
|
|
"name": "wallThickness",
|
|
"start": 3606,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3623,
|
|
"raw": "3",
|
|
"start": 3622,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3606,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 3633,
|
|
"name": "holeDia",
|
|
"start": 3626,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 3606,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 3596,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 3643,
|
|
"start": 3531,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3658,
|
|
"name": "radius",
|
|
"start": 3652,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3668,
|
|
"name": "holeDia",
|
|
"start": 3661,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3513,
|
|
"name": "circle",
|
|
"start": 3507,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3675,
|
|
"start": 3507,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"end": 3678,
|
|
"start": 3677,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3506,
|
|
"name": "hole",
|
|
"start": 3502,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3679,
|
|
"start": 3502,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 3679,
|
|
"start": 2451,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 2439,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 3679,
|
|
"kind": "const",
|
|
"start": 2439,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 4064,
|
|
"id": {
|
|
"end": 3690,
|
|
"name": "extrude003",
|
|
"start": 3680,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3718,
|
|
"name": "length",
|
|
"start": 3712,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3734,
|
|
"name": "wallThickness",
|
|
"start": 3721,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3700,
|
|
"name": "extrude",
|
|
"start": 3693,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3735,
|
|
"start": 3693,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 3710,
|
|
"name": "sketch003",
|
|
"start": 3701,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3762,
|
|
"name": "radius",
|
|
"start": 3756,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 3782,
|
|
"left": {
|
|
"end": 3778,
|
|
"name": "wallThickness",
|
|
"start": 3765,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 3782,
|
|
"raw": "4",
|
|
"start": 3781,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 4.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 3765,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 3795,
|
|
"name": "tags",
|
|
"start": 3791,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 3849,
|
|
"name": "rectangleSegmentA002",
|
|
"start": 3829,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3828,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 3809,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3850,
|
|
"start": 3809,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 3901,
|
|
"name": "rectangleSegmentB002",
|
|
"start": 3881,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3880,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 3861,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3902,
|
|
"start": 3861,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 3953,
|
|
"name": "rectangleSegmentC002",
|
|
"start": 3933,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3932,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 3913,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 3954,
|
|
"start": 3913,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4005,
|
|
"name": "rectangleSegmentD002",
|
|
"start": 3985,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3984,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 3965,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4006,
|
|
"start": 3965,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 4015,
|
|
"start": 3798,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 3747,
|
|
"name": "fillet",
|
|
"start": 3741,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4022,
|
|
"start": 3741,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 4064,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"1": [
|
|
{
|
|
"end": 4064,
|
|
"start": 4022,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Define lid inner and sealing surfaces",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 3693,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 3680,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 4064,
|
|
"kind": "const",
|
|
"start": 3680,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 5475,
|
|
"id": {
|
|
"end": 4074,
|
|
"name": "sketch004",
|
|
"start": 4065,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4101,
|
|
"name": "extrude003",
|
|
"start": 4091,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"end": 4108,
|
|
"raw": "'END'",
|
|
"start": 4103,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "END"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4090,
|
|
"name": "startSketchOn",
|
|
"start": 4077,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4109,
|
|
"start": 4077,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 4166,
|
|
"left": {
|
|
"end": 4150,
|
|
"left": {
|
|
"end": 4144,
|
|
"name": "width",
|
|
"start": 4139,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4150,
|
|
"raw": "1.2",
|
|
"start": 4147,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.2,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4139,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 4166,
|
|
"name": "wallThickness",
|
|
"start": 4153,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4139,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 4188,
|
|
"name": "wallThickness",
|
|
"start": 4175,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"end": 4195,
|
|
"start": 4130,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 4198,
|
|
"start": 4197,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4129,
|
|
"name": "startProfileAt",
|
|
"start": 4115,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4199,
|
|
"start": 4115,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4221,
|
|
"name": "angle",
|
|
"start": 4216,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4225,
|
|
"raw": "0",
|
|
"start": 4224,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4233,
|
|
"name": "length",
|
|
"start": 4227,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4262,
|
|
"left": {
|
|
"end": 4241,
|
|
"name": "width",
|
|
"start": 4236,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 4262,
|
|
"left": {
|
|
"end": 4246,
|
|
"raw": "2",
|
|
"start": 4245,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4262,
|
|
"name": "wallThickness",
|
|
"start": 4249,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4245,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 4236,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4268,
|
|
"name": "tag",
|
|
"start": 4265,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4292,
|
|
"start": 4271,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "rectangleSegmentA003"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4215,
|
|
"name": "angledLine",
|
|
"start": 4205,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4293,
|
|
"start": 4205,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4323,
|
|
"name": "angle",
|
|
"start": 4318,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4359,
|
|
"left": {
|
|
"arguments": [
|
|
{
|
|
"end": 4353,
|
|
"name": "rectangleSegmentA003",
|
|
"start": 4333,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4332,
|
|
"name": "segAng",
|
|
"start": 4326,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4354,
|
|
"start": 4326,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 4359,
|
|
"raw": "90",
|
|
"start": 4357,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 90.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4326,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4374,
|
|
"name": "length",
|
|
"start": 4368,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4404,
|
|
"left": {
|
|
"end": 4383,
|
|
"name": "length",
|
|
"start": 4377,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 4404,
|
|
"left": {
|
|
"end": 4388,
|
|
"raw": "2",
|
|
"start": 4387,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4404,
|
|
"name": "wallThickness",
|
|
"start": 4391,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4387,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 4377,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4417,
|
|
"name": "tag",
|
|
"start": 4414,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4441,
|
|
"start": 4420,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "rectangleSegmentB003"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4309,
|
|
"name": "angledLine",
|
|
"start": 4299,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4449,
|
|
"start": 4299,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4479,
|
|
"name": "angle",
|
|
"start": 4474,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"arguments": [
|
|
{
|
|
"end": 4509,
|
|
"name": "rectangleSegmentA003",
|
|
"start": 4489,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4488,
|
|
"name": "segAng",
|
|
"start": 4482,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4510,
|
|
"start": 4482,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4525,
|
|
"name": "length",
|
|
"start": 4519,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"argument": {
|
|
"arguments": [
|
|
{
|
|
"end": 4556,
|
|
"name": "rectangleSegmentA003",
|
|
"start": 4536,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4535,
|
|
"name": "segLen",
|
|
"start": 4529,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4557,
|
|
"start": 4529,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
"end": 4557,
|
|
"operator": "-",
|
|
"start": 4528,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4569,
|
|
"name": "tag",
|
|
"start": 4566,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4593,
|
|
"start": 4572,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "rectangleSegmentC003"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4465,
|
|
"name": "angledLine",
|
|
"start": 4455,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4601,
|
|
"start": 4455,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4623,
|
|
"name": "endAbsolute",
|
|
"start": 4612,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4642,
|
|
"start": 4641,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4640,
|
|
"name": "profileStartX",
|
|
"start": 4627,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4643,
|
|
"start": 4627,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 4660,
|
|
"start": 4659,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4658,
|
|
"name": "profileStartY",
|
|
"start": 4645,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4661,
|
|
"start": 4645,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 4662,
|
|
"start": 4626,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4667,
|
|
"name": "tag",
|
|
"start": 4664,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4691,
|
|
"start": 4670,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "rectangleSegmentD003"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4611,
|
|
"name": "line",
|
|
"start": 4607,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4692,
|
|
"start": 4607,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"callee": {
|
|
"end": 4703,
|
|
"name": "close",
|
|
"start": 4698,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4705,
|
|
"start": 4698,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4737,
|
|
"name": "center",
|
|
"start": 4731,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 4792,
|
|
"left": {
|
|
"end": 4782,
|
|
"left": {
|
|
"end": 4762,
|
|
"left": {
|
|
"end": 4756,
|
|
"name": "width",
|
|
"start": 4751,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4762,
|
|
"raw": "1.2",
|
|
"start": 4759,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.2,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4751,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 4782,
|
|
"left": {
|
|
"end": 4778,
|
|
"name": "wallThickness",
|
|
"start": 4765,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4782,
|
|
"raw": "3",
|
|
"start": 4781,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4765,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 4751,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 4792,
|
|
"name": "holeDia",
|
|
"start": 4785,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4751,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 4830,
|
|
"left": {
|
|
"end": 4820,
|
|
"left": {
|
|
"end": 4816,
|
|
"name": "wallThickness",
|
|
"start": 4803,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4820,
|
|
"raw": "3",
|
|
"start": 4819,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4803,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 4830,
|
|
"name": "holeDia",
|
|
"start": 4823,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4803,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 4839,
|
|
"start": 4740,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4854,
|
|
"name": "radius",
|
|
"start": 4848,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 4880,
|
|
"left": {
|
|
"end": 4864,
|
|
"name": "holeDia",
|
|
"start": 4857,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 4880,
|
|
"name": "wallThickness",
|
|
"start": 4867,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4857,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4722,
|
|
"name": "circle",
|
|
"start": 4716,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4887,
|
|
"start": 4716,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"end": 4890,
|
|
"start": 4889,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4715,
|
|
"name": "hole",
|
|
"start": 4711,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 4891,
|
|
"start": 4711,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 4923,
|
|
"name": "center",
|
|
"start": 4917,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 4978,
|
|
"left": {
|
|
"end": 4968,
|
|
"left": {
|
|
"end": 4948,
|
|
"left": {
|
|
"end": 4942,
|
|
"name": "width",
|
|
"start": 4937,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4948,
|
|
"raw": "1.2",
|
|
"start": 4945,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.2,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4937,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 4968,
|
|
"left": {
|
|
"end": 4964,
|
|
"name": "wallThickness",
|
|
"start": 4951,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 4968,
|
|
"raw": "3",
|
|
"start": 4967,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4951,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 4937,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 4978,
|
|
"name": "holeDia",
|
|
"start": 4971,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4937,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 5026,
|
|
"left": {
|
|
"end": 4995,
|
|
"name": "length",
|
|
"start": 4989,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 5026,
|
|
"left": {
|
|
"end": 5016,
|
|
"left": {
|
|
"end": 5012,
|
|
"name": "wallThickness",
|
|
"start": 4999,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 5016,
|
|
"raw": "3",
|
|
"start": 5015,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 4999,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 5026,
|
|
"name": "holeDia",
|
|
"start": 5019,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 4999,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 4989,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 5036,
|
|
"start": 4926,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5051,
|
|
"name": "radius",
|
|
"start": 5045,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5077,
|
|
"left": {
|
|
"end": 5061,
|
|
"name": "holeDia",
|
|
"start": 5054,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 5077,
|
|
"name": "wallThickness",
|
|
"start": 5064,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5054,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4908,
|
|
"name": "circle",
|
|
"start": 4902,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5084,
|
|
"start": 4902,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"end": 5087,
|
|
"start": 5086,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 4901,
|
|
"name": "hole",
|
|
"start": 4897,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5088,
|
|
"start": 4897,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5120,
|
|
"name": "center",
|
|
"start": 5114,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 5176,
|
|
"left": {
|
|
"end": 5145,
|
|
"left": {
|
|
"end": 5139,
|
|
"name": "width",
|
|
"start": 5134,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 5145,
|
|
"raw": "2.2",
|
|
"start": 5142,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.2,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 5134,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 5176,
|
|
"left": {
|
|
"end": 5166,
|
|
"left": {
|
|
"end": 5162,
|
|
"name": "wallThickness",
|
|
"start": 5149,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 5166,
|
|
"raw": "3",
|
|
"start": 5165,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 5149,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 5176,
|
|
"name": "holeDia",
|
|
"start": 5169,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5149,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 5134,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 5215,
|
|
"left": {
|
|
"end": 5205,
|
|
"left": {
|
|
"end": 5201,
|
|
"name": "wallThickness",
|
|
"start": 5188,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 5205,
|
|
"raw": "3",
|
|
"start": 5204,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 5188,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 5215,
|
|
"name": "holeDia",
|
|
"start": 5208,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5188,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 5224,
|
|
"start": 5123,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5239,
|
|
"name": "radius",
|
|
"start": 5233,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5265,
|
|
"left": {
|
|
"end": 5249,
|
|
"name": "holeDia",
|
|
"start": 5242,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 5265,
|
|
"name": "wallThickness",
|
|
"start": 5252,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5242,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5105,
|
|
"name": "circle",
|
|
"start": 5099,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5272,
|
|
"start": 5099,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"end": 5275,
|
|
"start": 5274,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5098,
|
|
"name": "hole",
|
|
"start": 5094,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5276,
|
|
"start": 5094,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5308,
|
|
"name": "center",
|
|
"start": 5302,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"end": 5364,
|
|
"left": {
|
|
"end": 5333,
|
|
"left": {
|
|
"end": 5327,
|
|
"name": "width",
|
|
"start": 5322,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 5333,
|
|
"raw": "2.2",
|
|
"start": 5330,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.2,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 5322,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 5364,
|
|
"left": {
|
|
"end": 5354,
|
|
"left": {
|
|
"end": 5350,
|
|
"name": "wallThickness",
|
|
"start": 5337,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 5354,
|
|
"raw": "3",
|
|
"start": 5353,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 5337,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 5364,
|
|
"name": "holeDia",
|
|
"start": 5357,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5337,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 5322,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 5413,
|
|
"left": {
|
|
"end": 5382,
|
|
"name": "length",
|
|
"start": 5376,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 5413,
|
|
"left": {
|
|
"end": 5403,
|
|
"left": {
|
|
"end": 5399,
|
|
"name": "wallThickness",
|
|
"start": 5386,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 5403,
|
|
"raw": "3",
|
|
"start": 5402,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 5386,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 5413,
|
|
"name": "holeDia",
|
|
"start": 5406,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5386,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 5376,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 5423,
|
|
"start": 5311,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5438,
|
|
"name": "radius",
|
|
"start": 5432,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5464,
|
|
"left": {
|
|
"end": 5448,
|
|
"name": "holeDia",
|
|
"start": 5441,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 5464,
|
|
"name": "wallThickness",
|
|
"start": 5451,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 5441,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5293,
|
|
"name": "circle",
|
|
"start": 5287,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5471,
|
|
"start": 5287,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
},
|
|
{
|
|
"end": 5474,
|
|
"start": 5473,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5286,
|
|
"name": "hole",
|
|
"start": 5282,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5475,
|
|
"start": 5282,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 5475,
|
|
"start": 4077,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 4065,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 5475,
|
|
"kind": "const",
|
|
"start": 4065,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 5818,
|
|
"id": {
|
|
"end": 5486,
|
|
"name": "extrude004",
|
|
"start": 5476,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5514,
|
|
"name": "length",
|
|
"start": 5508,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5530,
|
|
"name": "wallThickness",
|
|
"start": 5517,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5496,
|
|
"name": "extrude",
|
|
"start": 5489,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5531,
|
|
"start": 5489,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": {
|
|
"end": 5506,
|
|
"name": "sketch004",
|
|
"start": 5497,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5558,
|
|
"name": "radius",
|
|
"start": 5552,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 5578,
|
|
"left": {
|
|
"end": 5574,
|
|
"name": "wallThickness",
|
|
"start": 5561,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "*",
|
|
"right": {
|
|
"end": 5578,
|
|
"raw": "3",
|
|
"start": 5577,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 3.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 5561,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 5591,
|
|
"name": "tags",
|
|
"start": 5587,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"elements": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 5645,
|
|
"name": "rectangleSegmentA003",
|
|
"start": 5625,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5624,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 5605,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5646,
|
|
"start": 5605,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 5697,
|
|
"name": "rectangleSegmentB003",
|
|
"start": 5677,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5676,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 5657,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5698,
|
|
"start": 5657,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 5749,
|
|
"name": "rectangleSegmentC003",
|
|
"start": 5729,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5728,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 5709,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5750,
|
|
"start": 5709,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 5801,
|
|
"name": "rectangleSegmentD003",
|
|
"start": 5781,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5780,
|
|
"name": "getNextAdjacentEdge",
|
|
"start": 5761,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5802,
|
|
"start": 5761,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 5811,
|
|
"start": 5594,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 5543,
|
|
"name": "fillet",
|
|
"start": 5537,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 5818,
|
|
"start": 5537,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 5818,
|
|
"start": 5489,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 5476,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 5818,
|
|
"kind": "const",
|
|
"start": 5476,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
}
|
|
],
|
|
"end": 5819,
|
|
"innerAttrs": [
|
|
{
|
|
"end": 115,
|
|
"name": {
|
|
"end": 91,
|
|
"name": "settings",
|
|
"start": 83,
|
|
"type": "Identifier"
|
|
},
|
|
"properties": [
|
|
{
|
|
"end": 114,
|
|
"key": {
|
|
"end": 109,
|
|
"name": "defaultLengthUnit",
|
|
"start": 92,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 92,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 114,
|
|
"name": "mm",
|
|
"start": 112,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 82,
|
|
"type": "Annotation"
|
|
}
|
|
],
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"4": [
|
|
{
|
|
"end": 230,
|
|
"start": 183,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Model a box with base enclosure dimensions",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"7": [
|
|
{
|
|
"end": 2042,
|
|
"start": 1997,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Place the internal pillar at each corner",
|
|
"style": "line"
|
|
}
|
|
}
|
|
],
|
|
"11": [
|
|
{
|
|
"end": 2438,
|
|
"start": 2396,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLineBlockComment",
|
|
"value": "Define lid position and outer surface",
|
|
"style": "line"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": [
|
|
{
|
|
"end": 12,
|
|
"start": 0,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "Enclosure",
|
|
"style": "line"
|
|
}
|
|
},
|
|
{
|
|
"end": 67,
|
|
"start": 13,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "An enclosure body and sealing lid for storing items",
|
|
"style": "line"
|
|
}
|
|
},
|
|
{
|
|
"end": 69,
|
|
"start": 67,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
},
|
|
{
|
|
"end": 81,
|
|
"start": 69,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "blockComment",
|
|
"value": "Set units",
|
|
"style": "line"
|
|
}
|
|
},
|
|
{
|
|
"end": 117,
|
|
"start": 115,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"start": 0
|
|
}
|
|
}
|