Closed tapyu closed 1 month ago
Fixed with #582.
Workaround for current 0.2.2:
draw.set-ctx(ctx => {
ctx.transform = ctx.transform.map(r => r.map(calc.round.with(digits: 6)))
return ctx
})
Place this after rotate/translate and before drawing.
Consider the following MWE:
This produces
There is a crazy bug when
draw-satelite(5, 26deg)
is changed bydraw-satelite(5, 25deg)
I am almost sure that is an internal problem with the Cetz package as any variation around
25deg
produces very different positions, as if there is a numeric issue when therotation()
function is applied to the group.