cetz
cetz copied to clipboard
CeTZ: ein Typst Zeichenpaket - A library for drawing stuff with Typst.
The new scope element is esp. useful for libraries/functions wanting to scope transformations without scoping sub-elements. Fixes #611.
Inspired by `()` for the previous coordinate, I propose anything equivalent to refer to a previous element. For instance: ```typ line((y: 10), (rel: (x: 10)), mark: (end: ">")) line("{}.5%", (rel:...
**Changes:** - Marks draw functions now return elements - The mark tip/base offset is now calculated by using new "tip" and "base" anchors - The marks length is auto determined...
Since Typst 0.11.1 is a bugfix release it is ok to use that on the CI, even that cetz required min version is 0.11.0.
Tag debug paths as such and skip them in `merge-path`. Debug shapes bring other problems, maybe we should remove the feature or remove documentation about it. Fixes #575
With #578 I did not check centering for all marks. Some of them are not centered with `anchor: "center"`.
TiKZ alllows for diagram elements to be integrated with other elements of the page layout through the `overlay` flag and `\tikzmark` function. `\tikzmark`s are essentially like CeTZ anchors, but they...
[bug] Previously defined coordinates shouldn't be affected by `group()`-scoped axis transformations
Consider the following MWE: ```typ #import "@preview/cetz:0.2.2": canvas, plot, draw, coordinate, vector #set page(width: auto, height: auto, margin: .5cm) #canvas({ draw.rect((0,0), (1,1), name: "rect") let test = (rel: (0deg, 2),...