Closed Kreijstal closed 11 months ago
The prev. pos of arc is not set to its end but to its position, which is a bug, or at least not a good default. I've fixed this with #360.
The workaround for this PR is to use anchors:
#import "@preview/cetz:0.1.2"
#set page(width: auto, height: auto)
#cetz.canvas(length: 1cm, {
import cetz.draw: *
merge-path({
arc((0,0), start: 0deg, stop: 180deg, name: "arc")
line("arc.end", (rel: (0, 1)), ((), "-|", "arc.start"))
}, fill: red, close: true)
})
I want to draw a bridge, with lots of trial and error I discovered a code that worked
This however seems like a bug and the way you'd expect it to be able to be written doesn't work, this seems it abuses a bug to make it work. Can it just work normally, or alternatively is this the way it works and I'm dubm?