KCL: Migrate hole to kwargs (#6382)

Previously:

`|> hole(circle(radius = 2, center = p), %)`

Now:

`|> subtract2d(tool = circle(radius = 2, center = p))`
This commit is contained in:
Adam Chalmers
2025-04-26 15:31:51 -05:00
committed by GitHub
parent 5a18f551aa
commit 6e115c19d5
116 changed files with 12912 additions and 12847 deletions

View File

@ -1108,7 +1108,7 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"name": "magnetBase",
"functionSourceRange": [
4155,
4497,
4507,
0
],
"unlabeledArg": null,
@ -1166,16 +1166,7 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
},
{
"labeledArgs": {
"holeSketch": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"sketch": {
"tool": {
"value": {
"type": "Sketch",
"value": {
@ -1185,17 +1176,25 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": []
}
},
"name": "hole",
"name": "subtract2d",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": null
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
{
"type": "GroupEnd"
},
{
"labeledArgs": {
"holeSketch": {
"tool": {
"value": {
"type": "Array",
"value": [
@ -1226,21 +1225,20 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
]
},
"sourceRange": []
},
"sketch": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
"name": "hole",
"name": "subtract2d",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": null
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
{
"labeledArgs": {
@ -1367,7 +1365,7 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"name": "magnetBase",
"functionSourceRange": [
4155,
4497,
4507,
0
],
"unlabeledArg": null,
@ -1425,16 +1423,7 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
},
{
"labeledArgs": {
"holeSketch": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
},
"sketch": {
"tool": {
"value": {
"type": "Sketch",
"value": {
@ -1444,10 +1433,18 @@ description: Operations executed gridfinity-baseplate-magnets.kcl
"sourceRange": []
}
},
"name": "hole",
"name": "subtract2d",
"sourceRange": [],
"type": "StdLibCall",
"unlabeledArg": null
"unlabeledArg": {
"value": {
"type": "Sketch",
"value": {
"artifactId": "[uuid]"
}
},
"sourceRange": []
}
},
{
"type": "GroupEnd"