We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a93fc65 commit 0548ce7Copy full SHA for 0548ce7
src/draw.typ
@@ -256,7 +256,9 @@
256
// Choose label anchor based on edge direction,
257
// preferring to place labels above the edge
258
if edge.label-side == auto {
259
- edge.label-side = if calc.abs(θ) < 90deg { left } else { right }
+ // edges are often exactly vertical, but tiny floating point errors make θ unstable
260
+ // so choose 90.5deg to avoid flickering
261
+ edge.label-side = if calc.abs(θ) < 90.5deg { left } else { right }
262
}
263
264
place-edge-label-on-curve(edge, curve, debug: debug)
0 commit comments