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.
244 lines
4.2 KiB
Plaintext
244 lines
4.2 KiB
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Operations executed ssi_pattern.kcl
|
|
---
|
|
[
|
|
{
|
|
"labeledArgs": {
|
|
"data": {
|
|
"value": {
|
|
"type": "String",
|
|
"value": "XZ"
|
|
},
|
|
"sourceRange": [
|
|
26,
|
|
30,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"name": "startSketchOn",
|
|
"sourceRange": [
|
|
12,
|
|
31,
|
|
0
|
|
],
|
|
"type": "StdLibCall",
|
|
"unlabeledArg": null
|
|
},
|
|
{
|
|
"labeledArgs": {
|
|
"length": {
|
|
"value": {
|
|
"type": "Number",
|
|
"value": 50.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"sourceRange": [
|
|
327,
|
|
329,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"name": "extrude",
|
|
"sourceRange": [
|
|
299,
|
|
330,
|
|
0
|
|
],
|
|
"type": "StdLibCall",
|
|
"unlabeledArg": {
|
|
"value": {
|
|
"type": "Sketch",
|
|
"value": {
|
|
"artifactId": "[uuid]"
|
|
}
|
|
},
|
|
"sourceRange": [
|
|
307,
|
|
316,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"labeledArgs": {
|
|
"data": {
|
|
"value": {
|
|
"type": "Solid",
|
|
"value": {
|
|
"artifactId": "[uuid]"
|
|
}
|
|
},
|
|
"sourceRange": [
|
|
358,
|
|
368,
|
|
0
|
|
]
|
|
},
|
|
"tag": {
|
|
"value": {
|
|
"type": "TagIdentifier",
|
|
"value": "seg01",
|
|
"artifact_id": "[uuid]"
|
|
},
|
|
"sourceRange": [
|
|
370,
|
|
375,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"name": "startSketchOn",
|
|
"sourceRange": [
|
|
344,
|
|
376,
|
|
0
|
|
],
|
|
"type": "StdLibCall",
|
|
"unlabeledArg": null
|
|
},
|
|
{
|
|
"labeledArgs": {
|
|
"length": {
|
|
"value": {
|
|
"type": "Number",
|
|
"value": -40.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"sourceRange": [
|
|
633,
|
|
636,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"name": "extrude",
|
|
"sourceRange": [
|
|
616,
|
|
637,
|
|
0
|
|
],
|
|
"type": "StdLibCall",
|
|
"unlabeledArg": {
|
|
"value": {
|
|
"type": "Sketches",
|
|
"value": [
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
},
|
|
{
|
|
"artifactId": "[uuid]"
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": [
|
|
0,
|
|
0,
|
|
0
|
|
]
|
|
}
|
|
}
|
|
]
|