ctz-euclide:0.2.0#5280
Open
nathan-ed wants to merge 2 commits into
Open
Conversation
This was referenced Jul 6, 2026
12b2211 to
2aed477
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I am submitting
0.2.0 - 2026-07-06
Added
are placed as close as possible to the requested anchor without overlapping
drawn segments, circles, point markers or other labels. Labels without an
explicit position are fully automatic (
labels: true). Guarantees: a labelis always closer to its own point than to any other point by a clear margin
(never reads as the neighbor's label); the font is shrunk (85%, then 70%)
only when no full-size position exists — and then all labels of the
figure share the same scale. Global switch
ctz-label-avoid(false),per-label
(pos: "above", avoid: false), tunable viactz-label-avoid((rings: ..., shrink: ..., assoc-factor: ...)). Anglelabels slide along the bisector to stay clear.
ctz-draw-angle(..., angle-type: "reflex")(explementary) and
angle-type: "supplementary"(exterior).ctz-def-golden(..., inside: false)for the external golden section.ctz-def-translateaccepts a pair of point names as the vector.ctz-draw(points: ..., shape: ..., size: ..., color: ...)style overrides.ctz-style(angle: (...))is now honored byctz-draw-angle.Fixed
drawn offset by one radius (cetz anchors arcs at their start point, not
their center) and with mirrored start/end angles.
calc.atan2argument-order bug affecting slope calculations,tangent points from an external point, sector/semicircle angles, the
german-style right-angle mark, sloped segment labels, ellipse
projections/tangents and automatic label placement.
when combining ctz-euclide with cetz-plot or your own cetz import, in any
import order.
ctz-def-goldencrashed on every call.ctz-draw(name, sketchy: true)crashed on named lines and polygons.ctz-def-excenter/ctz-def-excirclevertex is now case-insensitive (thedefault silently computed the excenter opposite C).
util,draw,circle, ...) are no longer leakedinto your document by the wildcard import (the
cetzbinding is stillexported on purpose, for
import cetz.draw: *).ctz-versionis now read from typst.toml (was stuck at 0.1.0).0.1.5
sketchy: trueonctz-drawctz-canvas(clip-canvas: ...)with line/segment clipping