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.
314 lines
5.1 KiB
Plaintext
314 lines
5.1 KiB
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Operations executed router-template-cross-bar.kcl
|
|
---
|
|
[
|
|
{
|
|
"labeledArgs": {
|
|
"data": {
|
|
"value": {
|
|
"type": "String",
|
|
"value": "XZ"
|
|
},
|
|
"sourceRange": [
|
|
451,
|
|
455,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"name": "startSketchOn",
|
|
"sourceRange": [
|
|
437,
|
|
456,
|
|
0
|
|
],
|
|
"type": "StdLibCall",
|
|
"unlabeledArg": null
|
|
},
|
|
{
|
|
"labeledArgs": {
|
|
"length": {
|
|
"value": {
|
|
"type": "Number",
|
|
"value": 5.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"sourceRange": [
|
|
1705,
|
|
1706,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"name": "extrude",
|
|
"sourceRange": [
|
|
1677,
|
|
1707,
|
|
0
|
|
],
|
|
"type": "StdLibCall",
|
|
"unlabeledArg": {
|
|
"value": {
|
|
"type": "Sketch",
|
|
"value": {
|
|
"artifactId": "[uuid]"
|
|
}
|
|
},
|
|
"sourceRange": [
|
|
1685,
|
|
1694,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"labeledArgs": {
|
|
"data": {
|
|
"value": {
|
|
"type": "Solid",
|
|
"value": {
|
|
"artifactId": "[uuid]"
|
|
}
|
|
},
|
|
"sourceRange": [
|
|
1735,
|
|
1745,
|
|
0
|
|
]
|
|
},
|
|
"tag": {
|
|
"value": {
|
|
"type": "String",
|
|
"value": "START"
|
|
},
|
|
"sourceRange": [
|
|
1747,
|
|
1754,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"name": "startSketchOn",
|
|
"sourceRange": [
|
|
1721,
|
|
1755,
|
|
0
|
|
],
|
|
"type": "StdLibCall",
|
|
"unlabeledArg": null
|
|
},
|
|
{
|
|
"labeledArgs": {
|
|
"length": {
|
|
"value": {
|
|
"type": "Number",
|
|
"value": 13.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"sourceRange": [
|
|
2235,
|
|
2237,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"name": "extrude",
|
|
"sourceRange": [
|
|
2207,
|
|
2238,
|
|
0
|
|
],
|
|
"type": "StdLibCall",
|
|
"unlabeledArg": {
|
|
"value": {
|
|
"type": "Sketch",
|
|
"value": {
|
|
"artifactId": "[uuid]"
|
|
}
|
|
},
|
|
"sourceRange": [
|
|
2215,
|
|
2224,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"labeledArgs": {
|
|
"data": {
|
|
"value": {
|
|
"type": "Solid",
|
|
"value": {
|
|
"artifactId": "[uuid]"
|
|
}
|
|
},
|
|
"sourceRange": [
|
|
2266,
|
|
2276,
|
|
0
|
|
]
|
|
},
|
|
"tag": {
|
|
"value": {
|
|
"type": "String",
|
|
"value": "START"
|
|
},
|
|
"sourceRange": [
|
|
2278,
|
|
2285,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"name": "startSketchOn",
|
|
"sourceRange": [
|
|
2252,
|
|
2286,
|
|
0
|
|
],
|
|
"type": "StdLibCall",
|
|
"unlabeledArg": null
|
|
},
|
|
{
|
|
"labeledArgs": {
|
|
"length": {
|
|
"value": {
|
|
"type": "Number",
|
|
"value": 13.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"sourceRange": [
|
|
2766,
|
|
2768,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"name": "extrude",
|
|
"sourceRange": [
|
|
2738,
|
|
2769,
|
|
0
|
|
],
|
|
"type": "StdLibCall",
|
|
"unlabeledArg": {
|
|
"value": {
|
|
"type": "Sketch",
|
|
"value": {
|
|
"artifactId": "[uuid]"
|
|
}
|
|
},
|
|
"sourceRange": [
|
|
2746,
|
|
2755,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"labeledArgs": {
|
|
"data": {
|
|
"value": {
|
|
"type": "Solid",
|
|
"value": {
|
|
"artifactId": "[uuid]"
|
|
}
|
|
},
|
|
"sourceRange": [
|
|
2797,
|
|
2807,
|
|
0
|
|
]
|
|
},
|
|
"tag": {
|
|
"value": {
|
|
"type": "String",
|
|
"value": "END"
|
|
},
|
|
"sourceRange": [
|
|
2809,
|
|
2814,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"name": "startSketchOn",
|
|
"sourceRange": [
|
|
2783,
|
|
2815,
|
|
0
|
|
],
|
|
"type": "StdLibCall",
|
|
"unlabeledArg": null
|
|
},
|
|
{
|
|
"labeledArgs": {
|
|
"length": {
|
|
"value": {
|
|
"type": "Number",
|
|
"value": 4.0,
|
|
"ty": {
|
|
"type": "Default",
|
|
"len": {
|
|
"type": "Mm"
|
|
},
|
|
"angle": {
|
|
"type": "Degrees"
|
|
}
|
|
}
|
|
},
|
|
"sourceRange": [
|
|
3301,
|
|
3302,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
"name": "extrude",
|
|
"sourceRange": [
|
|
3273,
|
|
3303,
|
|
0
|
|
],
|
|
"type": "StdLibCall",
|
|
"unlabeledArg": {
|
|
"value": {
|
|
"type": "Sketch",
|
|
"value": {
|
|
"artifactId": "[uuid]"
|
|
}
|
|
},
|
|
"sourceRange": [
|
|
3281,
|
|
3290,
|
|
0
|
|
]
|
|
}
|
|
}
|
|
]
|