2025-03-06 18:01:24 -05:00
---
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing bracket.kcl
---
{
"Ok": {
"body": [
{
"declaration": {
2025-03-13 23:38:51 -07:00
"end": 442,
2025-03-06 18:01:24 -05:00
"id": {
2025-03-13 23:38:51 -07:00
"end": 434,
2025-03-06 18:01:24 -05:00
"name": "sigmaAllow",
2025-03-13 23:38:51 -07:00
"start": 424,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
2025-03-13 23:38:51 -07:00
"end": 442,
2025-03-06 18:01:24 -05:00
"raw": "35000",
2025-03-13 23:38:51 -07:00
"start": 437,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 35000.0,
"suffix": "None"
}
},
2025-03-13 23:38:51 -07:00
"start": 424,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-13 23:38:51 -07:00
"end": 442,
2025-03-06 18:01:24 -05:00
"kind": "const",
2025-03-13 23:38:51 -07:00
"start": 424,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
2025-03-13 23:38:51 -07:00
"end": 478,
2025-03-06 18:01:24 -05:00
"id": {
2025-03-13 23:38:51 -07:00
"end": 474,
2025-03-06 18:01:24 -05:00
"name": "width",
2025-03-13 23:38:51 -07:00
"start": 469,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
2025-03-13 23:38:51 -07:00
"end": 478,
2025-03-06 18:01:24 -05:00
"raw": "6",
2025-03-13 23:38:51 -07:00
"start": 477,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 6.0,
"suffix": "None"
}
},
2025-03-13 23:38:51 -07:00
"start": 469,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-13 23:38:51 -07:00
"end": 478,
2025-03-06 18:01:24 -05:00
"kind": "const",
2025-03-13 23:38:51 -07:00
"start": 469,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
2025-03-13 23:38:51 -07:00
"end": 494,
2025-03-06 18:01:24 -05:00
"id": {
2025-03-13 23:38:51 -07:00
"end": 488,
2025-03-06 18:01:24 -05:00
"name": "p",
2025-03-13 23:38:51 -07:00
"start": 487,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
2025-03-13 23:38:51 -07:00
"end": 494,
2025-03-06 18:01:24 -05:00
"raw": "300",
2025-03-13 23:38:51 -07:00
"start": 491,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 300.0,
"suffix": "None"
}
},
2025-03-13 23:38:51 -07:00
"start": 487,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-13 23:38:51 -07:00
"end": 494,
2025-03-06 18:01:24 -05:00
"kind": "const",
2025-03-13 23:38:51 -07:00
"start": 487,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
2025-03-13 23:38:51 -07:00
"end": 539,
2025-03-06 18:01:24 -05:00
"id": {
2025-03-13 23:38:51 -07:00
"end": 533,
2025-03-06 18:01:24 -05:00
"name": "factorOfSafety",
2025-03-13 23:38:51 -07:00
"start": 519,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
2025-03-13 23:38:51 -07:00
"end": 539,
2025-03-06 18:01:24 -05:00
"raw": "1.2",
2025-03-13 23:38:51 -07:00
"start": 536,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.2,
"suffix": "None"
}
},
2025-03-13 23:38:51 -07:00
"start": 519,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-13 23:38:51 -07:00
"end": 539,
2025-03-06 18:01:24 -05:00
"kind": "const",
2025-03-13 23:38:51 -07:00
"start": 519,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
2025-03-13 23:38:51 -07:00
"end": 569,
2025-03-06 18:01:24 -05:00
"id": {
2025-03-13 23:38:51 -07:00
"end": 565,
2025-03-06 18:01:24 -05:00
"name": "shelfMountL",
2025-03-13 23:38:51 -07:00
"start": 554,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
2025-03-13 23:38:51 -07:00
"end": 569,
2025-03-06 18:01:24 -05:00
"raw": "5",
2025-03-13 23:38:51 -07:00
"start": 568,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 5.0,
"suffix": "None"
}
},
2025-03-13 23:38:51 -07:00
"start": 554,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-13 23:38:51 -07:00
"end": 569,
2025-03-06 18:01:24 -05:00
"kind": "const",
2025-03-13 23:38:51 -07:00
"start": 554,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
2025-03-13 23:38:51 -07:00
"end": 594,
2025-03-06 18:01:24 -05:00
"id": {
2025-03-13 23:38:51 -07:00
"end": 590,
2025-03-06 18:01:24 -05:00
"name": "wallMountL",
2025-03-13 23:38:51 -07:00
"start": 580,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
2025-03-13 23:38:51 -07:00
"end": 594,
2025-03-06 18:01:24 -05:00
"raw": "2",
2025-03-13 23:38:51 -07:00
"start": 593,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
2025-03-13 23:38:51 -07:00
"start": 580,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-13 23:38:51 -07:00
"end": 594,
2025-03-06 18:01:24 -05:00
"kind": "const",
2025-03-13 23:38:51 -07:00
"start": 580,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
2025-03-13 23:38:51 -07:00
"end": 620,
2025-03-06 18:01:24 -05:00
"id": {
2025-03-13 23:38:51 -07:00
"end": 615,
2025-03-06 18:01:24 -05:00
"name": "shelfDepth",
2025-03-13 23:38:51 -07:00
"start": 605,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
2025-03-13 23:38:51 -07:00
"end": 620,
2025-03-06 18:01:24 -05:00
"raw": "12",
2025-03-13 23:38:51 -07:00
"start": 618,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 12.0,
"suffix": "None"
}
},
2025-03-13 23:38:51 -07:00
"start": 605,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-13 23:38:51 -07:00
"end": 620,
2025-03-06 18:01:24 -05:00
"kind": "const",
2025-03-13 23:38:51 -07:00
"start": 605,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
2025-03-13 23:38:51 -07:00
"end": 689,
2025-03-06 18:01:24 -05:00
"id": {
2025-03-13 23:38:51 -07:00
"end": 672,
2025-03-06 18:01:24 -05:00
"name": "moment",
2025-03-13 23:38:51 -07:00
"start": 666,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
2025-03-13 23:38:51 -07:00
"end": 689,
2025-03-06 18:01:24 -05:00
"left": {
2025-03-13 23:38:51 -07:00
"end": 685,
2025-03-06 18:01:24 -05:00
"name": "shelfDepth",
2025-03-13 23:38:51 -07:00
"start": 675,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
2025-03-13 23:38:51 -07:00
"end": 689,
2025-03-06 18:01:24 -05:00
"name": "p",
2025-03-13 23:38:51 -07:00
"start": 688,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"start": 675,
2025-03-06 18:01:24 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
},
2025-03-13 23:38:51 -07:00
"start": 666,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-13 23:38:51 -07:00
"end": 689,
2025-03-06 18:01:24 -05:00
"kind": "const",
2025-03-13 23:38:51 -07:00
"start": 666,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
2025-03-13 23:38:51 -07:00
"end": 884,
2025-03-06 18:01:24 -05:00
"id": {
2025-03-13 23:38:51 -07:00
"end": 825,
2025-03-06 18:01:24 -05:00
"name": "thickness",
2025-03-13 23:38:51 -07:00
"start": 816,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
"arguments": [
{
2025-03-13 23:38:51 -07:00
"end": 882,
2025-03-06 18:01:24 -05:00
"left": {
2025-03-13 23:38:51 -07:00
"end": 860,
2025-03-06 18:01:24 -05:00
"left": {
2025-03-13 23:38:51 -07:00
"end": 856,
2025-03-06 18:01:24 -05:00
"left": {
2025-03-13 23:38:51 -07:00
"end": 839,
2025-03-06 18:01:24 -05:00
"name": "moment",
2025-03-13 23:38:51 -07:00
"start": 833,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
2025-03-13 23:38:51 -07:00
"end": 856,
2025-03-06 18:01:24 -05:00
"name": "factorOfSafety",
2025-03-13 23:38:51 -07:00
"start": 842,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"start": 833,
2025-03-06 18:01:24 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "*",
"right": {
2025-03-13 23:38:51 -07:00
"end": 860,
2025-03-06 18:01:24 -05:00
"raw": "6",
2025-03-13 23:38:51 -07:00
"start": 859,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 6.0,
"suffix": "None"
}
},
2025-03-13 23:38:51 -07:00
"start": 833,
2025-03-06 18:01:24 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"operator": "/",
"right": {
2025-03-13 23:38:51 -07:00
"end": 882,
2025-03-06 18:01:24 -05:00
"left": {
2025-03-13 23:38:51 -07:00
"end": 874,
2025-03-06 18:01:24 -05:00
"name": "sigmaAllow",
2025-03-13 23:38:51 -07:00
"start": 864,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
"operator": "*",
"right": {
2025-03-13 23:38:51 -07:00
"end": 882,
2025-03-06 18:01:24 -05:00
"name": "width",
2025-03-13 23:38:51 -07:00
"start": 877,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"start": 864,
2025-03-06 18:01:24 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
},
2025-03-13 23:38:51 -07:00
"start": 833,
2025-03-06 18:01:24 -05:00
"type": "BinaryExpression",
"type": "BinaryExpression"
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 832,
2025-03-06 18:01:24 -05:00
"name": "sqrt",
2025-03-13 23:38:51 -07:00
"start": 828,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 884,
"start": 828,
2025-03-06 18:01:24 -05:00
"type": "CallExpression",
"type": "CallExpression"
},
2025-03-13 23:38:51 -07:00
"start": 816,
"type": "VariableDeclarator"
},
"end": 884,
"kind": "const",
"start": 816,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 977,
"id": {
"end": 971,
"name": "filletRadius",
"start": 959,
"type": "Identifier"
},
"init": {
"end": 977,
"raw": ".25",
"start": 974,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.25,
"suffix": "None"
}
},
"start": 959,
"type": "VariableDeclarator"
},
"end": 977,
"kind": "const",
"start": 959,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 1020,
"id": {
"end": 993,
"name": "extFilletRadius",
"start": 978,
"type": "Identifier"
},
"init": {
"end": 1020,
"left": {
"end": 1008,
"name": "filletRadius",
"start": 996,
"type": "Identifier",
"type": "Identifier"
},
"operator": "+",
"right": {
"end": 1020,
"name": "thickness",
"start": 1011,
"type": "Identifier",
"type": "Identifier"
},
"start": 996,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
"start": 978,
"type": "VariableDeclarator"
},
"end": 1020,
"kind": "const",
"start": 978,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 1047,
"id": {
"end": 1041,
"name": "mountingHoleDiameter",
"start": 1021,
"type": "Identifier"
},
"init": {
"end": 1047,
"raw": "0.5",
"start": 1044,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.5,
"suffix": "None"
}
},
"start": 1021,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-13 23:38:51 -07:00
"end": 1047,
2025-03-06 18:01:24 -05:00
"kind": "const",
2025-03-13 23:38:51 -07:00
"start": 1021,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
2025-03-13 23:38:51 -07:00
"end": 1855,
2025-03-06 18:01:24 -05:00
"id": {
2025-03-13 23:38:51 -07:00
"end": 1058,
"name": "sketch001",
"start": 1049,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
2025-03-13 23:38:51 -07:00
"end": 1079,
"raw": "'XZ'",
"start": 1075,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
2025-03-13 23:38:51 -07:00
"value": "XZ"
2025-03-06 18:01:24 -05:00
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 1074,
2025-03-06 18:01:24 -05:00
"name": "startSketchOn",
2025-03-13 23:38:51 -07:00
"start": 1061,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 1080,
"start": 1061,
2025-03-06 18:01:24 -05:00
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"elements": [
{
2025-03-13 23:38:51 -07:00
"end": 1103,
2025-03-06 18:01:24 -05:00
"raw": "0",
2025-03-13 23:38:51 -07:00
"start": 1102,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
2025-03-13 23:38:51 -07:00
"end": 1106,
2025-03-06 18:01:24 -05:00
"raw": "0",
2025-03-13 23:38:51 -07:00
"start": 1105,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
2025-03-13 23:38:51 -07:00
"end": 1107,
"start": 1101,
2025-03-06 18:01:24 -05:00
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
2025-03-13 23:38:51 -07:00
"end": 1110,
"start": 1109,
2025-03-06 18:01:24 -05:00
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 1100,
2025-03-06 18:01:24 -05:00
"name": "startProfileAt",
2025-03-13 23:38:51 -07:00
"start": 1086,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 1111,
"start": 1086,
2025-03-06 18:01:24 -05:00
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
2025-03-13 23:38:51 -07:00
"end": 1129,
"name": "length",
"start": 1123,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
2025-03-13 23:38:51 -07:00
"end": 1155,
"left": {
"end": 1143,
"name": "shelfMountL",
"start": 1132,
"type": "Identifier",
"type": "Identifier"
},
"operator": "-",
"right": {
"end": 1155,
"name": "thickness",
"start": 1146,
"type": "Identifier",
"type": "Identifier"
},
"start": 1132,
"type": "BinaryExpression",
"type": "BinaryExpression"
2025-03-06 18:01:24 -05:00
}
},
{
"type": "LabeledArg",
"label": {
2025-03-13 23:38:51 -07:00
"end": 1160,
2025-03-06 18:01:24 -05:00
"name": "tag",
2025-03-13 23:38:51 -07:00
"start": 1157,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
2025-03-13 23:38:51 -07:00
"end": 1169,
"start": 1163,
2025-03-06 18:01:24 -05:00
"type": "TagDeclarator",
"type": "TagDeclarator",
2025-03-13 23:38:51 -07:00
"value": "seg01"
2025-03-06 18:01:24 -05:00
}
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 1122,
"name": "xLine",
"start": 1117,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 1170,
"start": 1117,
2025-03-06 18:01:24 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
2025-03-13 23:38:51 -07:00
"end": 1188,
"name": "length",
"start": 1182,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
2025-03-13 23:38:51 -07:00
"end": 1200,
"name": "thickness",
"start": 1191,
"type": "Identifier",
"type": "Identifier"
2025-03-06 18:01:24 -05:00
}
},
{
"type": "LabeledArg",
"label": {
2025-03-13 23:38:51 -07:00
"end": 1205,
2025-03-06 18:01:24 -05:00
"name": "tag",
2025-03-13 23:38:51 -07:00
"start": 1202,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
2025-03-13 23:38:51 -07:00
"end": 1214,
"start": 1208,
2025-03-06 18:01:24 -05:00
"type": "TagDeclarator",
"type": "TagDeclarator",
2025-03-13 23:38:51 -07:00
"value": "seg02"
2025-03-06 18:01:24 -05:00
}
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 1181,
"name": "yLine",
"start": 1176,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 1215,
"start": 1176,
2025-03-06 18:01:24 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
2025-03-13 23:38:51 -07:00
"end": 1233,
"name": "length",
"start": 1227,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
2025-03-13 23:38:51 -07:00
"argument": {
"end": 1248,
"name": "shelfMountL",
"start": 1237,
"type": "Identifier",
"type": "Identifier"
},
"end": 1248,
"operator": "-",
"start": 1236,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 1253,
"name": "tag",
"start": 1250,
"type": "Identifier"
},
"arg": {
"end": 1262,
"start": 1256,
"type": "TagDeclarator",
"type": "TagDeclarator",
"value": "seg03"
2025-03-06 18:01:24 -05:00
}
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 1226,
"name": "xLine",
"start": 1221,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 1263,
"start": 1221,
2025-03-06 18:01:24 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
2025-03-13 23:38:51 -07:00
"type": "LabeledArg",
"label": {
"end": 1281,
"name": "length",
"start": 1275,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"arg": {
"argument": {
"end": 1295,
"name": "wallMountL",
"start": 1285,
"type": "Identifier",
"type": "Identifier"
},
"end": 1295,
"operator": "-",
"start": 1284,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
2025-03-06 18:01:24 -05:00
},
{
2025-03-13 23:38:51 -07:00
"type": "LabeledArg",
"label": {
"end": 1300,
"name": "tag",
"start": 1297,
"type": "Identifier"
},
"arg": {
"end": 1309,
"start": 1303,
"type": "TagDeclarator",
"type": "TagDeclarator",
"value": "seg04"
}
2025-03-06 18:01:24 -05:00
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 1274,
"name": "yLine",
"start": 1269,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 1310,
"start": 1269,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
2025-03-06 18:01:24 -05:00
},
{
"arguments": [
{
2025-03-13 23:38:51 -07:00
"type": "LabeledArg",
"label": {
"end": 1328,
"name": "length",
"start": 1322,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"arg": {
"end": 1340,
"name": "thickness",
"start": 1331,
"type": "Identifier",
"type": "Identifier"
}
2025-03-06 18:01:24 -05:00
},
{
2025-03-13 23:38:51 -07:00
"type": "LabeledArg",
"label": {
"end": 1345,
"name": "tag",
"start": 1342,
"type": "Identifier"
},
"arg": {
"end": 1354,
"start": 1348,
"type": "TagDeclarator",
"type": "TagDeclarator",
"value": "seg05"
}
2025-03-06 18:01:24 -05:00
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 1321,
"name": "xLine",
"start": 1316,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 1355,
"start": 1316,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
2025-03-06 18:01:24 -05:00
},
{
"arguments": [
{
2025-03-13 23:38:51 -07:00
"type": "LabeledArg",
"label": {
"end": 1377,
"name": "endAbsolute",
"start": 1366,
"type": "Identifier"
},
"arg": {
"elements": [
{
"arguments": [
2025-03-06 18:01:24 -05:00
{
2025-03-13 23:38:51 -07:00
"end": 1396,
"start": 1395,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
2025-03-06 18:01:24 -05:00
}
],
2025-03-13 23:38:51 -07:00
"callee": {
"end": 1394,
"name": "profileStartX",
"start": 1381,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 1397,
"start": 1381,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 1414,
"start": 1413,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
2025-03-06 18:01:24 -05:00
}
2025-03-13 23:38:51 -07:00
],
"callee": {
"end": 1412,
"name": "profileStartY",
"start": 1399,
"type": "Identifier"
2025-03-06 18:01:24 -05:00
},
2025-03-13 23:38:51 -07:00
"end": 1415,
"start": 1399,
"type": "CallExpression",
"type": "CallExpression"
2025-03-06 18:01:24 -05:00
}
2025-03-13 23:38:51 -07:00
],
"end": 1416,
"start": 1380,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
2025-03-06 18:01:24 -05:00
},
{
2025-03-13 23:38:51 -07:00
"type": "LabeledArg",
"label": {
"end": 1421,
"name": "tag",
"start": 1418,
"type": "Identifier"
},
"arg": {
"end": 1430,
"start": 1424,
"type": "TagDeclarator",
"type": "TagDeclarator",
"value": "seg06"
}
2025-03-06 18:01:24 -05:00
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 1365,
"name": "line",
"start": 1361,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 1431,
"start": 1361,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
2025-03-06 18:01:24 -05:00
},
{
2025-03-13 23:38:51 -07:00
"arguments": [],
2025-03-06 18:01:24 -05:00
"callee": {
2025-03-13 23:38:51 -07:00
"end": 1442,
"name": "close",
"start": 1437,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 1444,
"start": 1437,
2025-03-06 18:01:24 -05:00
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
2025-03-13 23:38:51 -07:00
"end": 1467,
2025-03-06 18:01:24 -05:00
"name": "length",
2025-03-13 23:38:51 -07:00
"start": 1461,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
2025-03-13 23:38:51 -07:00
"end": 1475,
"name": "width",
"start": 1470,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
}
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 1457,
2025-03-06 18:01:24 -05:00
"name": "extrude",
2025-03-13 23:38:51 -07:00
"start": 1450,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 1476,
"start": 1450,
2025-03-06 18:01:24 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
2025-03-13 23:38:51 -07:00
"end": 1459,
"start": 1458,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
2025-03-06 18:01:24 -05:00
}
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
2025-03-13 23:38:51 -07:00
"end": 1503,
2025-03-06 18:01:24 -05:00
"name": "radius",
2025-03-13 23:38:51 -07:00
"start": 1497,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
2025-03-13 23:38:51 -07:00
"end": 1521,
2025-03-06 18:01:24 -05:00
"name": "extFilletRadius",
2025-03-13 23:38:51 -07:00
"start": 1506,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
}
},
{
"type": "LabeledArg",
"label": {
2025-03-13 23:38:51 -07:00
"end": 1534,
2025-03-06 18:01:24 -05:00
"name": "tags",
2025-03-13 23:38:51 -07:00
"start": 1530,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
"elements": [
{
"arguments": [
{
2025-03-13 23:38:51 -07:00
"end": 1563,
"name": "seg03",
"start": 1558,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 1557,
2025-03-06 18:01:24 -05:00
"name": "getNextAdjacentEdge",
2025-03-13 23:38:51 -07:00
"start": 1538,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 1564,
"start": 1538,
2025-03-06 18:01:24 -05:00
"type": "CallExpression",
"type": "CallExpression"
2025-03-13 23:38:51 -07:00
}
],
"end": 1565,
"start": 1537,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
"end": 1488,
"name": "fillet",
"start": 1482,
"type": "Identifier"
},
"end": 1573,
"start": 1482,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 1600,
"name": "radius",
"start": 1594,
"type": "Identifier"
},
"arg": {
"end": 1615,
"name": "filletRadius",
"start": 1603,
"type": "Identifier",
"type": "Identifier"
}
},
{
"type": "LabeledArg",
"label": {
"end": 1628,
"name": "tags",
"start": 1624,
"type": "Identifier"
},
"arg": {
"elements": [
2025-03-06 18:01:24 -05:00
{
"arguments": [
{
2025-03-13 23:38:51 -07:00
"end": 1657,
"name": "seg06",
"start": 1652,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 1651,
2025-03-06 18:01:24 -05:00
"name": "getNextAdjacentEdge",
2025-03-13 23:38:51 -07:00
"start": 1632,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 1658,
"start": 1632,
2025-03-06 18:01:24 -05:00
"type": "CallExpression",
"type": "CallExpression"
}
],
2025-03-13 23:38:51 -07:00
"end": 1659,
"start": 1631,
2025-03-06 18:01:24 -05:00
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 1585,
2025-03-06 18:01:24 -05:00
"name": "fillet",
2025-03-13 23:38:51 -07:00
"start": 1579,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 1667,
"start": 1579,
2025-03-06 18:01:24 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
2025-03-13 23:38:51 -07:00
"type": "LabeledArg",
"label": {
"end": 1693,
"name": "radius",
"start": 1687,
"type": "Identifier"
},
"arg": {
"end": 1708,
"name": "filletRadius",
"start": 1696,
"type": "Identifier",
"type": "Identifier"
}
2025-03-06 18:01:24 -05:00
},
{
"type": "LabeledArg",
"label": {
2025-03-13 23:38:51 -07:00
"end": 1720,
"name": "tags",
"start": 1716,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
"elements": [
{
2025-03-13 23:38:51 -07:00
"end": 1729,
"name": "seg02",
"start": 1724,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
2025-03-13 23:38:51 -07:00
},
{
"arguments": [
{
"end": 1752,
"name": "seg02",
"start": 1747,
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
"end": 1746,
"name": "getOppositeEdge",
"start": 1731,
"type": "Identifier"
},
"end": 1753,
"start": 1731,
"type": "CallExpression",
"type": "CallExpression"
2025-03-06 18:01:24 -05:00
}
],
2025-03-13 23:38:51 -07:00
"end": 1754,
"start": 1723,
2025-03-06 18:01:24 -05:00
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 1679,
"name": "fillet",
"start": 1673,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 1761,
"start": 1673,
2025-03-06 18:01:24 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
2025-03-13 23:38:51 -07:00
"type": "LabeledArg",
"label": {
"end": 1787,
"name": "radius",
"start": 1781,
"type": "Identifier"
},
"arg": {
"end": 1802,
"name": "filletRadius",
"start": 1790,
"type": "Identifier",
"type": "Identifier"
}
2025-03-06 18:01:24 -05:00
},
{
"type": "LabeledArg",
"label": {
2025-03-13 23:38:51 -07:00
"end": 1814,
"name": "tags",
"start": 1810,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
"elements": [
{
2025-03-13 23:38:51 -07:00
"end": 1823,
"name": "seg05",
"start": 1818,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
{
2025-03-13 23:38:51 -07:00
"arguments": [
{
"end": 1846,
"name": "seg05",
"start": 1841,
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
"end": 1840,
"name": "getOppositeEdge",
"start": 1825,
"type": "Identifier"
},
"end": 1847,
"start": 1825,
"type": "CallExpression",
"type": "CallExpression"
2025-03-06 18:01:24 -05:00
}
],
2025-03-13 23:38:51 -07:00
"end": 1848,
"start": 1817,
2025-03-06 18:01:24 -05:00
"type": "ArrayExpression",
"type": "ArrayExpression"
}
2025-03-13 23:38:51 -07:00
}
],
"callee": {
"end": 1773,
"name": "fillet",
"start": 1767,
"type": "Identifier"
},
"end": 1855,
"start": 1767,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
2025-03-06 18:01:24 -05:00
}
],
2025-03-13 23:38:51 -07:00
"end": 1855,
"start": 1061,
"type": "PipeExpression",
"type": "PipeExpression"
2025-03-06 18:01:24 -05:00
},
2025-03-13 23:38:51 -07:00
"start": 1049,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-13 23:38:51 -07:00
"end": 1855,
2025-03-06 18:01:24 -05:00
"kind": "const",
2025-03-13 23:38:51 -07:00
"start": 1049,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
2025-03-13 23:38:51 -07:00
"end": 2189,
2025-03-06 18:01:24 -05:00
"id": {
2025-03-13 23:38:51 -07:00
"end": 1866,
"name": "sketch002",
"start": 1857,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
2025-03-13 23:38:51 -07:00
"end": 1892,
"name": "sketch001",
"start": 1883,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
{
2025-03-13 23:38:51 -07:00
"end": 1899,
"name": "seg03",
"start": 1894,
"type": "Identifier",
"type": "Identifier"
2025-03-06 18:01:24 -05:00
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 1882,
"name": "startSketchOn",
"start": 1869,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 1900,
"start": 1869,
2025-03-06 18:01:24 -05:00
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
2025-03-13 23:38:51 -07:00
"end": 1924,
"name": "center",
"start": 1918,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
"elements": [
{
2025-03-13 23:38:51 -07:00
"argument": {
"end": 1933,
"raw": "1.25",
"start": 1929,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.25,
"suffix": "None"
}
},
"end": 1933,
"operator": "-",
"start": 1928,
"type": "UnaryExpression",
"type": "UnaryExpression"
2025-03-06 18:01:24 -05:00
},
{
2025-03-13 23:38:51 -07:00
"end": 1936,
"raw": "1",
"start": 1935,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
2025-03-13 23:38:51 -07:00
"value": 1.0,
2025-03-06 18:01:24 -05:00
"suffix": "None"
}
}
],
2025-03-13 23:38:51 -07:00
"end": 1937,
"start": 1927,
2025-03-06 18:01:24 -05:00
"type": "ArrayExpression",
"type": "ArrayExpression"
}
2025-03-13 23:38:51 -07:00
},
{
"type": "LabeledArg",
"label": {
"end": 1949,
"name": "radius",
"start": 1943,
"type": "Identifier"
},
"arg": {
"end": 1976,
"left": {
"end": 1972,
"name": "mountingHoleDiameter",
"start": 1952,
"type": "Identifier",
"type": "Identifier"
},
"operator": "/",
"right": {
"end": 1976,
"raw": "2",
"start": 1975,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 1952,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
2025-03-06 18:01:24 -05:00
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 1912,
"name": "circle",
"start": 1906,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 1981,
"start": 1906,
2025-03-06 18:01:24 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
2025-03-13 23:38:51 -07:00
"end": 2017,
"name": "instances",
"start": 2008,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
2025-03-13 23:38:51 -07:00
"end": 2021,
"raw": "2",
"start": 2020,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
2025-03-06 18:01:24 -05:00
}
},
{
"type": "LabeledArg",
"label": {
2025-03-13 23:38:51 -07:00
"end": 2035,
"name": "distance",
"start": 2027,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
2025-03-13 23:38:51 -07:00
"end": 2041,
"raw": "2.5",
"start": 2038,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.5,
"suffix": "None"
}
2025-03-06 18:01:24 -05:00
}
2025-03-13 23:38:51 -07:00
},
2025-03-06 18:01:24 -05:00
{
"type": "LabeledArg",
"label": {
2025-03-13 23:38:51 -07:00
"end": 2051,
"name": "axis",
"start": 2047,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
"elements": [
{
"argument": {
2025-03-13 23:38:51 -07:00
"end": 2057,
"raw": "1",
"start": 2056,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
2025-03-06 18:01:24 -05:00
},
2025-03-13 23:38:51 -07:00
"end": 2057,
2025-03-06 18:01:24 -05:00
"operator": "-",
2025-03-13 23:38:51 -07:00
"start": 2055,
2025-03-06 18:01:24 -05:00
"type": "UnaryExpression",
"type": "UnaryExpression"
},
{
2025-03-13 23:38:51 -07:00
"end": 2060,
2025-03-06 18:01:24 -05:00
"raw": "0",
2025-03-13 23:38:51 -07:00
"start": 2059,
2025-03-06 18:01:24 -05:00
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
}
],
2025-03-13 23:38:51 -07:00
"end": 2061,
"start": 2054,
2025-03-06 18:01:24 -05:00
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 2002,
"name": "patternLinear2d",
"start": 1987,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 2066,
"start": 1987,
2025-03-06 18:01:24 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
},
{
"arguments": [
{
2025-03-13 23:38:51 -07:00
"type": "LabeledArg",
"label": {
"end": 2102,
"name": "instances",
"start": 2093,
"type": "Identifier"
},
"arg": {
"end": 2106,
"raw": "2",
"start": 2105,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
2025-03-06 18:01:24 -05:00
}
2025-03-13 23:38:51 -07:00
}
},
{
"type": "LabeledArg",
"label": {
"end": 2120,
"name": "distance",
"start": 2112,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"arg": {
"end": 2124,
"raw": "4",
"start": 2123,
"type": "Literal",
"type": "Literal",
"value": {
"value": 4.0,
"suffix": "None"
}
}
2025-03-06 18:01:24 -05:00
},
{
2025-03-13 23:38:51 -07:00
"type": "LabeledArg",
"label": {
"end": 2134,
"name": "axis",
"start": 2130,
"type": "Identifier"
},
"arg": {
"elements": [
{
"end": 2139,
"raw": "0",
"start": 2138,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
},
{
"end": 2142,
"raw": "1",
"start": 2141,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
}
],
"end": 2143,
"start": 2137,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
2025-03-06 18:01:24 -05:00
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 2087,
"name": "patternLinear2d",
"start": 2072,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 2148,
"start": 2072,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
2025-03-06 18:01:24 -05:00
},
{
"arguments": [
{
2025-03-13 23:38:51 -07:00
"type": "LabeledArg",
"label": {
"end": 2171,
"name": "length",
"start": 2165,
"type": "Identifier"
},
"arg": {
"end": 2188,
"left": {
"argument": {
"end": 2184,
"name": "thickness",
"start": 2175,
"type": "Identifier",
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 2184,
"operator": "-",
"start": 2174,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "-",
"right": {
"end": 2188,
"raw": ".01",
"start": 2185,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.01,
"suffix": "None"
2025-03-06 18:01:24 -05:00
}
2025-03-13 23:38:51 -07:00
},
"start": 2174,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
2025-03-06 18:01:24 -05:00
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 2161,
"name": "extrude",
"start": 2154,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 2189,
"start": 2154,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"end": 2163,
"start": 2162,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
2025-03-06 18:01:24 -05:00
}
],
2025-03-13 23:38:51 -07:00
"end": 2189,
"start": 1869,
2025-03-06 18:01:24 -05:00
"type": "PipeExpression",
"type": "PipeExpression"
},
2025-03-13 23:38:51 -07:00
"start": 1857,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-13 23:38:51 -07:00
"end": 2189,
2025-03-06 18:01:24 -05:00
"kind": "const",
2025-03-13 23:38:51 -07:00
"start": 1857,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
2025-03-13 23:38:51 -07:00
"end": 2435,
2025-03-06 18:01:24 -05:00
"id": {
2025-03-13 23:38:51 -07:00
"end": 2200,
"name": "sketch003",
"start": 2191,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"init": {
"body": [
2025-03-13 23:38:51 -07:00
{
"arguments": [
{
"end": 2226,
"name": "sketch001",
"start": 2217,
"type": "Identifier",
"type": "Identifier"
},
{
"end": 2233,
"name": "seg04",
"start": 2228,
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
"end": 2216,
"name": "startSketchOn",
"start": 2203,
"type": "Identifier"
},
"end": 2234,
"start": 2203,
"type": "CallExpression",
"type": "CallExpression"
},
2025-03-06 18:01:24 -05:00
{
"arguments": [
{
"type": "LabeledArg",
"label": {
2025-03-13 23:38:51 -07:00
"end": 2258,
"name": "center",
"start": 2252,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
2025-03-13 23:38:51 -07:00
"elements": [
{
"end": 2263,
"raw": "1",
"start": 2262,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
{
"argument": {
"end": 2267,
"raw": "1",
"start": 2266,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
},
"end": 2267,
"operator": "-",
"start": 2265,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 2268,
"start": 2261,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
},
{
"type": "LabeledArg",
"label": {
"end": 2280,
"name": "radius",
"start": 2274,
"type": "Identifier"
},
"arg": {
"end": 2307,
"left": {
"end": 2303,
"name": "mountingHoleDiameter",
"start": 2283,
2025-03-06 18:01:24 -05:00
"type": "Identifier",
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"operator": "/",
"right": {
"end": 2307,
"raw": "2",
"start": 2306,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
},
"start": 2283,
"type": "BinaryExpression",
"type": "BinaryExpression"
2025-03-06 18:01:24 -05:00
}
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 2246,
"name": "circle",
"start": 2240,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 2312,
"start": 2240,
2025-03-06 18:01:24 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
2025-03-13 23:38:51 -07:00
"unlabeled": null
2025-03-06 18:01:24 -05:00
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
2025-03-13 23:38:51 -07:00
"end": 2348,
"name": "instances",
"start": 2339,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
2025-03-13 23:38:51 -07:00
"end": 2352,
"raw": "2",
"start": 2351,
"type": "Literal",
"type": "Literal",
"value": {
"value": 2.0,
"suffix": "None"
}
}
},
{
"type": "LabeledArg",
"label": {
"end": 2366,
"name": "distance",
"start": 2358,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
2025-03-13 23:38:51 -07:00
},
"arg": {
"end": 2370,
"raw": "4",
"start": 2369,
"type": "Literal",
"type": "Literal",
"value": {
"value": 4.0,
"suffix": "None"
}
2025-03-06 18:01:24 -05:00
}
},
{
"type": "LabeledArg",
"label": {
2025-03-13 23:38:51 -07:00
"end": 2380,
"name": "axis",
"start": 2376,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
"arg": {
"elements": [
{
2025-03-13 23:38:51 -07:00
"end": 2385,
"raw": "1",
"start": 2384,
"type": "Literal",
"type": "Literal",
"value": {
"value": 1.0,
"suffix": "None"
}
2025-03-06 18:01:24 -05:00
},
{
2025-03-13 23:38:51 -07:00
"end": 2388,
"raw": "0",
"start": 2387,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.0,
"suffix": "None"
}
2025-03-06 18:01:24 -05:00
}
],
2025-03-13 23:38:51 -07:00
"end": 2389,
"start": 2383,
2025-03-06 18:01:24 -05:00
"type": "ArrayExpression",
"type": "ArrayExpression"
}
}
],
"callee": {
2025-03-13 23:38:51 -07:00
"end": 2333,
"name": "patternLinear2d",
"start": 2318,
2025-03-06 18:01:24 -05:00
"type": "Identifier"
},
2025-03-13 23:38:51 -07:00
"end": 2394,
"start": 2318,
2025-03-06 18:01:24 -05:00
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": null
2025-03-13 23:38:51 -07:00
},
{
"arguments": [
{
"type": "LabeledArg",
"label": {
"end": 2417,
"name": "length",
"start": 2411,
"type": "Identifier"
},
"arg": {
"end": 2434,
"left": {
"argument": {
"end": 2430,
"name": "thickness",
"start": 2421,
"type": "Identifier",
"type": "Identifier"
},
"end": 2430,
"operator": "-",
"start": 2420,
"type": "UnaryExpression",
"type": "UnaryExpression"
},
"operator": "-",
"right": {
"end": 2434,
"raw": "0.1",
"start": 2431,
"type": "Literal",
"type": "Literal",
"value": {
"value": 0.1,
"suffix": "None"
}
},
"start": 2420,
"type": "BinaryExpression",
"type": "BinaryExpression"
}
}
],
"callee": {
"end": 2407,
"name": "extrude",
"start": 2400,
"type": "Identifier"
},
"end": 2435,
"start": 2400,
"type": "CallExpressionKw",
"type": "CallExpressionKw",
"unlabeled": {
"end": 2409,
"start": 2408,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
2025-03-06 18:01:24 -05:00
}
],
2025-03-13 23:38:51 -07:00
"end": 2435,
"start": 2203,
2025-03-06 18:01:24 -05:00
"type": "PipeExpression",
"type": "PipeExpression"
},
2025-03-13 23:38:51 -07:00
"start": 2191,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclarator"
},
2025-03-13 23:38:51 -07:00
"end": 2435,
2025-03-06 18:01:24 -05:00
"kind": "const",
2025-03-13 23:38:51 -07:00
"start": 2191,
2025-03-06 18:01:24 -05:00
"type": "VariableDeclaration",
"type": "VariableDeclaration"
}
],
2025-03-13 23:38:51 -07:00
"end": 2436,
"nonCodeMeta": {
"nonCodeNodes": {
"0": [
2025-03-06 18:01:24 -05:00
{
2025-03-13 23:38:51 -07:00
"end": 468,
"start": 442,
"type": "NonCodeNode",
2025-03-06 18:01:24 -05:00
"value": {
2025-03-13 23:38:51 -07:00
"type": "inlineComment",
"value": "psi (6061-T6 aluminum)",
"style": "line"
2025-03-06 18:01:24 -05:00
}
}
],
2025-03-13 23:38:51 -07:00
"1": [
2025-03-06 18:01:24 -05:00
{
2025-03-13 23:38:51 -07:00
"end": 486,
"start": 478,
2025-03-06 18:01:24 -05:00
"type": "NonCodeNode",
"value": {
"type": "inlineComment",
2025-03-13 23:38:51 -07:00
"value": "inch",
2025-03-06 18:01:24 -05:00
"style": "line"
}
}
],
"2": [
{
2025-03-13 23:38:51 -07:00
"end": 518,
"start": 494,
2025-03-06 18:01:24 -05:00
"type": "NonCodeNode",
"value": {
"type": "inlineComment",
"value": "Force on shelf - lbs",
"style": "line"
}
}
],
"3": [
{
2025-03-13 23:38:51 -07:00
"end": 553,
"start": 539,
2025-03-06 18:01:24 -05:00
"type": "NonCodeNode",
"value": {
"type": "inlineComment",
"value": "FOS of 1.2",
"style": "line"
}
}
],
2025-03-13 23:38:51 -07:00
"4": [
{
"end": 579,
"start": 569,
"type": "NonCodeNode",
"value": {
"type": "inlineComment",
"value": "inches",
"style": "line"
}
}
],
"5": [
{
"end": 604,
"start": 594,
"type": "NonCodeNode",
"value": {
"type": "inlineComment",
"value": "inches",
"style": "line"
}
}
],
2025-03-06 18:01:24 -05:00
"6": [
{
2025-03-13 23:38:51 -07:00
"end": 665,
"start": 620,
2025-03-06 18:01:24 -05:00
"type": "NonCodeNode",
"value": {
"type": "inlineComment",
"value": "Shelf is 12 inches in depth from the wall",
"style": "line"
}
}
],
"7": [
{
2025-03-13 23:38:51 -07:00
"end": 771,
"start": 689,
2025-03-06 18:01:24 -05:00
"type": "NonCodeNode",
"value": {
"type": "inlineComment",
"value": "assume the force is applied at the end of the shelf to be conservative (lb-in)",
"style": "line"
}
},
{
2025-03-13 23:38:51 -07:00
"end": 773,
"start": 771,
2025-03-06 18:01:24 -05:00
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
2025-03-13 23:38:51 -07:00
},
2025-03-06 18:01:24 -05:00
{
2025-03-13 23:38:51 -07:00
"end": 815,
"start": 773,
2025-03-06 18:01:24 -05:00
"type": "NonCodeNode",
"value": {
2025-03-13 23:38:51 -07:00
"type": "blockComment",
2025-03-06 18:01:24 -05:00
"value": "Calculate required thickness of bracket",
"style": "line"
}
}
],
2025-03-13 23:38:51 -07:00
"8": [
2025-03-06 18:01:24 -05:00
{
2025-03-13 23:38:51 -07:00
"end": 957,
"start": 884,
2025-03-06 18:01:24 -05:00
"type": "NonCodeNode",
"value": {
"type": "inlineComment",
"value": "this is the calculation of two brackets holding up the shelf (inches)",
"style": "line"
}
},
{
2025-03-13 23:38:51 -07:00
"end": 959,
"start": 957,
2025-03-06 18:01:24 -05:00
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
2025-03-13 23:38:51 -07:00
}
],
"11": [
2025-03-06 18:01:24 -05:00
{
2025-03-13 23:38:51 -07:00
"end": 1049,
"start": 1047,
2025-03-06 18:01:24 -05:00
"type": "NonCodeNode",
"value": {
2025-03-13 23:38:51 -07:00
"type": "newLine"
2025-03-06 18:01:24 -05:00
}
}
],
2025-03-13 23:38:51 -07:00
"12": [
2025-03-06 18:01:24 -05:00
{
2025-03-13 23:38:51 -07:00
"end": 1857,
"start": 1855,
2025-03-06 18:01:24 -05:00
"type": "NonCodeNode",
"value": {
2025-03-13 23:38:51 -07:00
"type": "newLine"
2025-03-06 18:01:24 -05:00
}
}
],
2025-03-13 23:38:51 -07:00
"13": [
2025-03-06 18:01:24 -05:00
{
2025-03-13 23:38:51 -07:00
"end": 2191,
"start": 2189,
2025-03-06 18:01:24 -05:00
"type": "NonCodeNode",
"value": {
2025-03-13 23:38:51 -07:00
"type": "newLine"
2025-03-06 18:01:24 -05:00
}
}
]
},
"startNodes": [
{
"end": 16,
"start": 0,
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "Shelf Bracket",
"style": "line"
}
},
{
"end": 401,
"start": 17,
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "This is a bracket that holds a shelf. It is made of aluminum and is designed to hold a force of 300 lbs. The bracket is 6 inches wide and the force is applied at the end of the shelf, 12 inches from the wall. The bracket has a factor of safety of 1.2. The legs of the bracket are 5 inches and 2 inches long. The thickness of the bracket is calculated from the constraints provided.",
"style": "line"
}
},
{
2025-03-13 23:38:51 -07:00
"end": 404,
2025-03-06 18:01:24 -05:00
"start": 401,
"type": "NonCodeNode",
"value": {
"type": "newLine"
}
},
{
2025-03-13 23:38:51 -07:00
"end": 423,
"start": 404,
2025-03-06 18:01:24 -05:00
"type": "NonCodeNode",
"value": {
"type": "blockComment",
"value": "Define constants",
"style": "line"
}
}
]
},
"start": 0
}
}