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.
580 B
580 B
flowchart LR
subgraph path2 [Path]
2["Path<br>[37, 65, 0]"]
3["Segment<br>[71, 119, 0]"]
end
subgraph path5 [Path]
5["Path<br>[157, 195, 0]"]
6["Segment<br>[157, 195, 0]"]
7[Solid2d]
end
1["Plane<br>[12, 31, 0]"]
4["Plane<br>[132, 151, 0]"]
8["Sweep RevolveAboutEdge<br>[201, 275, 0]"]
9[Wall]
10["Cap Start"]
11["Cap End"]
12["SweepEdge Opposite"]
13["SweepEdge Adjacent"]
1 --- 2
2 --- 3
4 --- 5
5 --- 6
5 ---- 8
5 --- 7
6 --- 9
6 --- 12
6 --- 13
8 --- 9
8 --- 10
8 --- 11
8 --- 12
8 --- 13