auto format kcl samples (#6065)

* recast kcl samples;

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* auto format the kcl-samples

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2025-03-30 10:06:36 -07:00
committed by GitHub
parent 017fac7041
commit 1956c14b8a
19 changed files with 2508 additions and 2528 deletions

View File

@ -37,10 +37,10 @@ description: Result of parsing i-beam.kcl
"arguments": [],
"callee": {
"abs_path": false,
"commentStart": 203,
"commentStart": 205,
"end": 0,
"name": {
"commentStart": 203,
"commentStart": 205,
"end": 0,
"name": "ft",
"start": 0,
@ -50,7 +50,7 @@ description: Result of parsing i-beam.kcl
"start": 0,
"type": "Name"
},
"commentStart": 203,
"commentStart": 205,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -73,19 +73,19 @@ description: Result of parsing i-beam.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 208,
"commentStart": 210,
"declaration": {
"commentStart": 208,
"commentStart": 210,
"end": 0,
"id": {
"commentStart": 208,
"commentStart": 210,
"end": 0,
"name": "beamHeight",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 221,
"commentStart": 223,
"end": 0,
"raw": "4",
"start": 0,
@ -106,19 +106,19 @@ description: Result of parsing i-beam.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 223,
"commentStart": 225,
"declaration": {
"commentStart": 223,
"commentStart": 225,
"end": 0,
"id": {
"commentStart": 223,
"commentStart": 225,
"end": 0,
"name": "flangeWidth",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 237,
"commentStart": 239,
"end": 0,
"raw": "2.663",
"start": 0,
@ -139,19 +139,19 @@ description: Result of parsing i-beam.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 243,
"commentStart": 245,
"declaration": {
"commentStart": 243,
"commentStart": 245,
"end": 0,
"id": {
"commentStart": 243,
"commentStart": 245,
"end": 0,
"name": "flangeThickness",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 261,
"commentStart": 263,
"end": 0,
"raw": "0.293",
"start": 0,
@ -172,19 +172,19 @@ description: Result of parsing i-beam.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 267,
"commentStart": 269,
"declaration": {
"commentStart": 267,
"commentStart": 269,
"end": 0,
"id": {
"commentStart": 267,
"commentStart": 269,
"end": 0,
"name": "webThickness",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 282,
"commentStart": 284,
"end": 0,
"raw": "0.193",
"start": 0,
@ -205,19 +205,19 @@ description: Result of parsing i-beam.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 288,
"commentStart": 290,
"declaration": {
"commentStart": 288,
"commentStart": 290,
"end": 0,
"id": {
"commentStart": 288,
"commentStart": 290,
"end": 0,
"name": "rootRadius",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 301,
"commentStart": 303,
"end": 0,
"raw": "0.457",
"start": 0,
@ -238,12 +238,12 @@ description: Result of parsing i-beam.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 306,
"commentStart": 308,
"declaration": {
"commentStart": 433,
"commentStart": 435,
"end": 0,
"id": {
"commentStart": 433,
"commentStart": 435,
"end": 0,
"name": "sketch001",
"start": 0,
@ -256,10 +256,10 @@ description: Result of parsing i-beam.kcl
{
"argument": {
"abs_path": false,
"commentStart": 460,
"commentStart": 462,
"end": 0,
"name": {
"commentStart": 460,
"commentStart": 462,
"end": 0,
"name": "XZ",
"start": 0,
@ -270,7 +270,7 @@ description: Result of parsing i-beam.kcl
"type": "Name",
"type": "Name"
},
"commentStart": 459,
"commentStart": 461,
"end": 0,
"operator": "-",
"start": 0,
@ -280,10 +280,10 @@ description: Result of parsing i-beam.kcl
],
"callee": {
"abs_path": false,
"commentStart": 445,
"commentStart": 447,
"end": 0,
"name": {
"commentStart": 445,
"commentStart": 447,
"end": 0,
"name": "startSketchOn",
"start": 0,
@ -293,7 +293,7 @@ description: Result of parsing i-beam.kcl
"start": 0,
"type": "Name"
},
"commentStart": 445,
"commentStart": 447,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -302,10 +302,10 @@ description: Result of parsing i-beam.kcl
{
"arguments": [
{
"commentStart": 484,
"commentStart": 486,
"elements": [
{
"commentStart": 485,
"commentStart": 487,
"end": 0,
"raw": "0",
"start": 0,
@ -317,14 +317,14 @@ description: Result of parsing i-beam.kcl
}
},
{
"commentStart": 488,
"commentStart": 490,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 488,
"commentStart": 490,
"end": 0,
"name": {
"commentStart": 488,
"commentStart": 490,
"end": 0,
"name": "beamHeight",
"start": 0,
@ -337,7 +337,7 @@ description: Result of parsing i-beam.kcl
},
"operator": "/",
"right": {
"commentStart": 501,
"commentStart": 503,
"end": 0,
"raw": "2",
"start": 0,
@ -359,7 +359,7 @@ description: Result of parsing i-beam.kcl
"type": "ArrayExpression"
},
{
"commentStart": 505,
"commentStart": 507,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
@ -368,10 +368,10 @@ description: Result of parsing i-beam.kcl
],
"callee": {
"abs_path": false,
"commentStart": 469,
"commentStart": 471,
"end": 0,
"name": {
"commentStart": 469,
"commentStart": 471,
"end": 0,
"name": "startProfileAt",
"start": 0,
@ -381,7 +381,7 @@ description: Result of parsing i-beam.kcl
"start": 0,
"type": "Name"
},
"commentStart": 469,
"commentStart": 471,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -392,21 +392,21 @@ description: Result of parsing i-beam.kcl
{
"type": "LabeledArg",
"label": {
"commentStart": 519,
"commentStart": 521,
"end": 0,
"name": "length",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 528,
"commentStart": 530,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 528,
"commentStart": 530,
"end": 0,
"name": {
"commentStart": 528,
"commentStart": 530,
"end": 0,
"name": "flangeWidth",
"start": 0,
@ -419,7 +419,7 @@ description: Result of parsing i-beam.kcl
},
"operator": "/",
"right": {
"commentStart": 542,
"commentStart": 544,
"end": 0,
"raw": "2",
"start": 0,
@ -438,10 +438,10 @@ description: Result of parsing i-beam.kcl
],
"callee": {
"abs_path": false,
"commentStart": 513,
"commentStart": 515,
"end": 0,
"name": {
"commentStart": 513,
"commentStart": 515,
"end": 0,
"name": "xLine",
"start": 0,
@ -451,7 +451,7 @@ description: Result of parsing i-beam.kcl
"start": 0,
"type": "Name"
},
"commentStart": 513,
"commentStart": 515,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
@ -463,7 +463,7 @@ description: Result of parsing i-beam.kcl
{
"type": "LabeledArg",
"label": {
"commentStart": 556,
"commentStart": 558,
"end": 0,
"name": "length",
"start": 0,
@ -472,10 +472,10 @@ description: Result of parsing i-beam.kcl
"arg": {
"argument": {
"abs_path": false,
"commentStart": 566,
"commentStart": 568,
"end": 0,
"name": {
"commentStart": 566,
"commentStart": 568,
"end": 0,
"name": "flangeThickness",
"start": 0,
@ -486,7 +486,7 @@ description: Result of parsing i-beam.kcl
"type": "Name",
"type": "Name"
},
"commentStart": 565,
"commentStart": 567,
"end": 0,
"operator": "-",
"start": 0,
@ -497,10 +497,10 @@ description: Result of parsing i-beam.kcl
],
"callee": {
"abs_path": false,
"commentStart": 550,
"commentStart": 552,
"end": 0,
"name": {
"commentStart": 550,
"commentStart": 552,
"end": 0,
"name": "yLine",
"start": 0,
@ -510,7 +510,7 @@ description: Result of parsing i-beam.kcl
"start": 0,
"type": "Name"
},
"commentStart": 550,
"commentStart": 552,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
@ -522,24 +522,24 @@ description: Result of parsing i-beam.kcl
{
"type": "LabeledArg",
"label": {
"commentStart": 594,
"commentStart": 596,
"end": 0,
"name": "endAbsolute",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 608,
"commentStart": 610,
"end": 0,
"left": {
"commentStart": 608,
"commentStart": 610,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 608,
"commentStart": 610,
"end": 0,
"name": {
"commentStart": 608,
"commentStart": 610,
"end": 0,
"name": "webThickness",
"start": 0,
@ -552,7 +552,7 @@ description: Result of parsing i-beam.kcl
},
"operator": "/",
"right": {
"commentStart": 623,
"commentStart": 625,
"end": 0,
"raw": "2",
"start": 0,
@ -570,10 +570,10 @@ description: Result of parsing i-beam.kcl
"operator": "+",
"right": {
"abs_path": false,
"commentStart": 627,
"commentStart": 629,
"end": 0,
"name": {
"commentStart": 627,
"commentStart": 629,
"end": 0,
"name": "rootRadius",
"start": 0,
@ -592,10 +592,10 @@ description: Result of parsing i-beam.kcl
],
"callee": {
"abs_path": false,
"commentStart": 588,
"commentStart": 590,
"end": 0,
"name": {
"commentStart": 588,
"commentStart": 590,
"end": 0,
"name": "xLine",
"start": 0,
@ -605,7 +605,7 @@ description: Result of parsing i-beam.kcl
"start": 0,
"type": "Name"
},
"commentStart": 588,
"commentStart": 590,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
@ -615,14 +615,14 @@ description: Result of parsing i-beam.kcl
{
"arguments": [
{
"commentStart": 658,
"commentStart": 660,
"end": 0,
"properties": [
{
"commentStart": 660,
"commentStart": 662,
"end": 0,
"key": {
"commentStart": 660,
"commentStart": 662,
"end": 0,
"name": "radius",
"start": 0,
@ -632,10 +632,10 @@ description: Result of parsing i-beam.kcl
"type": "ObjectProperty",
"value": {
"abs_path": false,
"commentStart": 669,
"commentStart": 671,
"end": 0,
"name": {
"commentStart": 669,
"commentStart": 671,
"end": 0,
"name": "rootRadius",
"start": 0,
@ -648,10 +648,10 @@ description: Result of parsing i-beam.kcl
}
},
{
"commentStart": 681,
"commentStart": 683,
"end": 0,
"key": {
"commentStart": 681,
"commentStart": 683,
"end": 0,
"name": "offset",
"start": 0,
@ -660,7 +660,7 @@ description: Result of parsing i-beam.kcl
"start": 0,
"type": "ObjectProperty",
"value": {
"commentStart": 690,
"commentStart": 692,
"end": 0,
"raw": "90",
"start": 0,
@ -678,7 +678,7 @@ description: Result of parsing i-beam.kcl
"type": "ObjectExpression"
},
{
"commentStart": 696,
"commentStart": 698,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
@ -687,10 +687,10 @@ description: Result of parsing i-beam.kcl
],
"callee": {
"abs_path": false,
"commentStart": 644,
"commentStart": 646,
"end": 0,
"name": {
"commentStart": 644,
"commentStart": 646,
"end": 0,
"name": "tangentialArc",
"start": 0,
@ -700,7 +700,7 @@ description: Result of parsing i-beam.kcl
"start": 0,
"type": "Name"
},
"commentStart": 644,
"commentStart": 646,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -711,14 +711,14 @@ description: Result of parsing i-beam.kcl
{
"type": "LabeledArg",
"label": {
"commentStart": 710,
"commentStart": 712,
"end": 0,
"name": "endAbsolute",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 724,
"commentStart": 726,
"end": 0,
"raw": "0",
"start": 0,
@ -733,10 +733,10 @@ description: Result of parsing i-beam.kcl
],
"callee": {
"abs_path": false,
"commentStart": 704,
"commentStart": 706,
"end": 0,
"name": {
"commentStart": 704,
"commentStart": 706,
"end": 0,
"name": "yLine",
"start": 0,
@ -746,7 +746,7 @@ description: Result of parsing i-beam.kcl
"start": 0,
"type": "Name"
},
"commentStart": 704,
"commentStart": 706,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
@ -756,14 +756,14 @@ description: Result of parsing i-beam.kcl
{
"arguments": [
{
"commentStart": 741,
"commentStart": 743,
"end": 0,
"properties": [
{
"commentStart": 743,
"commentStart": 745,
"end": 0,
"key": {
"commentStart": 743,
"commentStart": 745,
"end": 0,
"name": "axis",
"start": 0,
@ -772,7 +772,7 @@ description: Result of parsing i-beam.kcl
"start": 0,
"type": "ObjectProperty",
"value": {
"commentStart": 750,
"commentStart": 752,
"end": 0,
"raw": "'X'",
"start": 0,
@ -787,7 +787,7 @@ description: Result of parsing i-beam.kcl
"type": "ObjectExpression"
},
{
"commentStart": 757,
"commentStart": 759,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
@ -796,10 +796,10 @@ description: Result of parsing i-beam.kcl
],
"callee": {
"abs_path": false,
"commentStart": 732,
"commentStart": 734,
"end": 0,
"name": {
"commentStart": 732,
"commentStart": 734,
"end": 0,
"name": "mirror2d",
"start": 0,
@ -809,7 +809,7 @@ description: Result of parsing i-beam.kcl
"start": 0,
"type": "Name"
},
"commentStart": 732,
"commentStart": 734,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -818,14 +818,14 @@ description: Result of parsing i-beam.kcl
{
"arguments": [
{
"commentStart": 774,
"commentStart": 776,
"end": 0,
"properties": [
{
"commentStart": 776,
"commentStart": 778,
"end": 0,
"key": {
"commentStart": 776,
"commentStart": 778,
"end": 0,
"name": "axis",
"start": 0,
@ -834,7 +834,7 @@ description: Result of parsing i-beam.kcl
"start": 0,
"type": "ObjectProperty",
"value": {
"commentStart": 783,
"commentStart": 785,
"end": 0,
"raw": "'Y'",
"start": 0,
@ -849,7 +849,7 @@ description: Result of parsing i-beam.kcl
"type": "ObjectExpression"
},
{
"commentStart": 790,
"commentStart": 792,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
@ -858,10 +858,10 @@ description: Result of parsing i-beam.kcl
],
"callee": {
"abs_path": false,
"commentStart": 765,
"commentStart": 767,
"end": 0,
"name": {
"commentStart": 765,
"commentStart": 767,
"end": 0,
"name": "mirror2d",
"start": 0,
@ -871,7 +871,7 @@ description: Result of parsing i-beam.kcl
"start": 0,
"type": "Name"
},
"commentStart": 765,
"commentStart": 767,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -882,7 +882,7 @@ description: Result of parsing i-beam.kcl
{
"type": "LabeledArg",
"label": {
"commentStart": 806,
"commentStart": 808,
"end": 0,
"name": "length",
"start": 0,
@ -890,10 +890,10 @@ description: Result of parsing i-beam.kcl
},
"arg": {
"abs_path": false,
"commentStart": 815,
"commentStart": 817,
"end": 0,
"name": {
"commentStart": 815,
"commentStart": 817,
"end": 0,
"name": "beamLength",
"start": 0,
@ -908,10 +908,10 @@ description: Result of parsing i-beam.kcl
],
"callee": {
"abs_path": false,
"commentStart": 798,
"commentStart": 800,
"end": 0,
"name": {
"commentStart": 798,
"commentStart": 800,
"end": 0,
"name": "extrude",
"start": 0,
@ -921,7 +921,7 @@ description: Result of parsing i-beam.kcl
"start": 0,
"type": "Name"
},
"commentStart": 798,
"commentStart": 800,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
@ -929,7 +929,7 @@ description: Result of parsing i-beam.kcl
"unlabeled": null
}
],
"commentStart": 445,
"commentStart": 447,
"end": 0,
"start": 0,
"type": "PipeExpression",
@ -1021,4 +1021,4 @@ description: Result of parsing i-beam.kcl
},
"start": 0
}
}
}