Previously, `xLine`, `xLineTo`, `yLine` and `yLineTo` used positional arguments. Now: - `xLineTo` and `yLineTo` have been removed - `xLine` and `yLine` both use keyword arguments: - `length`, optional (i.e. a relative distance along the X or Y axis) - `endAbsolute` optional (i.e. an absolute point along the X or Y axis) - `tag` optional - Exactly one of `length` or `endAbsolute` must be given. Not both, not neither. For example: ``` // Old way |> xLine(6.04, %) |> yLineTo(20, %, $base) // New way |> xLine(length = 6.04) |> yLine(endAbsolute = 20, tag = $base) ``` This also improves some of the general-purpose keyword arguments code in modeling app's TS codebase.
139 lines
2.3 KiB
Plaintext
139 lines
2.3 KiB
Plaintext
---
|
|
source: kcl/src/simulation_tests.rs
|
|
description: Operations executed basic_fillet_cube_end.kcl
|
|
---
|
|
[
|
|
{
|
|
"labeledArgs": {
|
|
"data": {
|
|
"value": {
|
|
"type": "String",
|
|
"value": "XY"
|
|
},
|
|
"sourceRange": [
|
|
24,
|
|
28,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"name": "startSketchOn",
|
|
"sourceRange": [
|
|
10,
|
|
29,
|
|
0
|
|
],
|
|
"type": "StdLibCall",
|
|
"unlabeledArg": null
|
|
},
|
|
{
|
|
"labeledArgs": {
|
|
"length": {
|
|
"value": {
|
|
"type": "Number",
|
|
"value": 10.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"sourceRange": [
|
|
202,
|
|
204,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"name": "extrude",
|
|
"sourceRange": [
|
|
185,
|
|
205,
|
|
0
|
|
],
|
|
"type": "StdLibCall",
|
|
"unlabeledArg": {
|
|
"value": {
|
|
"type": "Sketch",
|
|
"value": {
|
|
"artifactId": "[uuid]"
|
|
}
|
|
},
|
|
"sourceRange": [
|
|
0,
|
|
0,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"labeledArgs": {
|
|
"radius": {
|
|
"value": {
|
|
"type": "Number",
|
|
"value": 2.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"sourceRange": [
|
|
227,
|
|
228,
|
|
0
|
|
]
|
|
},
|
|
"tags": {
|
|
"value": {
|
|
"type": "Array",
|
|
"value": [
|
|
{
|
|
"type": "TagIdentifier",
|
|
"value": "thing",
|
|
"artifact_id": "[uuid]"
|
|
},
|
|
{
|
|
"type": "Uuid",
|
|
"value": "[uuid]"
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": [
|
|
237,
|
|
268,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"name": "fillet",
|
|
"sourceRange": [
|
|
211,
|
|
269,
|
|
0
|
|
],
|
|
"type": "StdLibCall",
|
|
"unlabeledArg": {
|
|
"value": {
|
|
"type": "Solid",
|
|
"value": {
|
|
"artifactId": "[uuid]"
|
|
}
|
|
},
|
|
"sourceRange": [
|
|
0,
|
|
0,
|
|
0
|
|
]
|
|
}
|
|
}
|
|
]
|