diff --git a/CHANGES.md b/CHANGES.md index 57f191dd..4fa023c4 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,7 +3,13 @@ CeTZ requires Typst 0.8.0. ## Draw - New `on-layer(layer, body)` function for drawing with a given layer/z-index - New `catmull(..)` function for drawing catmull-rom curves +- Changed default anchors of circles and arcs to anchors on the elliptical path +- Added style option to specify triangle mark angle - Fixed rect anchors if coordinates were swapped +- Fixed bezier extrema/aabb calculation +- Fixed bug with `content` and `intersections` +- Fixed automatic mark offset for lines +- Fixed problems with style inheritance ## Libs ### Plot @@ -11,6 +17,10 @@ CeTZ requires Typst 0.8.0. - Added `line: ` support - The plot lib tries to linearize data to reduce draw calls - Fixed custom tick plot formatting +- Allow plots without data + +### Decorations +- New decoration library by @RubixDev for drawing braces # 0.1.1 ## Libs diff --git a/README.md b/README.md index c0b0c21f..7c9661be 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ For information, see the [manual](manual.pdf?raw=true). To use this package, simply add the following code to your document: ``` -#import "@preview/cetz:0.1.1" +#import "@preview/cetz:0.1.2" #cetz.canvas({ import cetz.draw: * @@ -75,7 +75,7 @@ just install The installed version can be imported by prefixing the package name with `@local`. ```typ -#import "@local/cetz:0.1.1" +#import "@local/cetz:0.1.2" #cetz.canvas({ import cetz.draw: * diff --git a/gallery/3d-chart.typ b/gallery/3d-chart.typ index e4d41ea3..82e72972 100644 --- a/gallery/3d-chart.typ +++ b/gallery/3d-chart.typ @@ -1,4 +1,4 @@ -#import "@preview/cetz:0.1.1": canvas, draw +#import "@preview/cetz:0.1.2": canvas, draw #set page(width: auto, height: auto, margin: .5cm) diff --git a/gallery/barchart.typ b/gallery/barchart.typ index 6a1d0f08..5754994d 100644 --- a/gallery/barchart.typ +++ b/gallery/barchart.typ @@ -1,4 +1,4 @@ -#import "@preview/cetz:0.1.1": canvas, chart +#import "@preview/cetz:0.1.2": canvas, chart #set page(width: auto, height: auto, margin: .5cm) diff --git a/gallery/karls-picture.typ b/gallery/karls-picture.typ index 4e9945dd..417d9e74 100644 --- a/gallery/karls-picture.typ +++ b/gallery/karls-picture.typ @@ -1,4 +1,4 @@ -#import "@preview/cetz:0.1.1" +#import "@preview/cetz:0.1.2" #set page(width: auto, height: auto, margin: .5cm) diff --git a/gallery/pie-chart.typ b/gallery/pie-chart.typ index e6df254f..57147a79 100644 --- a/gallery/pie-chart.typ +++ b/gallery/pie-chart.typ @@ -1,4 +1,4 @@ -#import "@preview/cetz:0.1.1" +#import "@preview/cetz:0.1.2" #set page(width: auto, height: auto, margin: .5cm) diff --git a/gallery/plot.typ b/gallery/plot.typ index 40999967..ed8d46d3 100644 --- a/gallery/plot.typ +++ b/gallery/plot.typ @@ -1,4 +1,4 @@ -#import "@preview/cetz:0.1.1": canvas, plot +#import "@preview/cetz:0.1.2": canvas, plot #set page(width: auto, height: auto, margin: .5cm) diff --git a/gallery/tree.typ b/gallery/tree.typ index 6adc3102..466adb1f 100644 --- a/gallery/tree.typ +++ b/gallery/tree.typ @@ -1,4 +1,4 @@ -#import "@preview/cetz:0.1.1": canvas, draw, tree +#import "@preview/cetz:0.1.2": canvas, draw, tree #set page(width: auto, height: auto, margin: .5cm) diff --git a/manual.pdf b/manual.pdf index 7ffc04bc..b46da0df 100644 Binary files a/manual.pdf and b/manual.pdf differ diff --git a/manual.typ b/manual.typ index a1650928..8d38ce64 100644 --- a/manual.typ +++ b/manual.typ @@ -121,7 +121,7 @@ The name CeTZ is a recursive acronym for "CeTZ, ein Typst Zeichenpacket" (german This is the minimal starting point: ```typ - #import "@local/cetz:0.1.1" + #import "@local/cetz:0.1.2" #cetz.canvas({ import cetz.draw: * ...