diff --git a/CHANGES.md b/CHANGES.md index ca1cf1fb..fd9e59b6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,18 @@ +# 0.3.2 + +- Added a new `polygon` element for drawing regular polygons +- Closed lines now have a default anchor +- You can now sort `intersections` +- Added back the invisible default frame for `content` +- Fixed some type checks using strings +- Fixed some angle library bugs +- Fixed `bezier-through` calculation +- Fixed `tree` node/edge order +- Support variable decoration amplitude +- Fixed `hobby` default omega value +- Fixed `flat-brace` missing `fill` +- Added canvas content scaling via style key `auto-scale` + # 0.3.1 CeTZ 0.3.1 requires Typst 0.12.0. diff --git a/README.md b/README.md index dcbaa38d..bd296ee0 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ For information, see the [online manual](https://cetz-package.github.io/docs). To use this package, simply add the following code to your document: ``` -#import "@preview/cetz:0.3.1" +#import "@preview/cetz:0.3.2" #cetz.canvas({ import cetz.draw: * @@ -83,7 +83,7 @@ just install The installed version can be imported by prefixing the package name with `@local`. ```typ -#import "@local/cetz:0.3.1" +#import "@local/cetz:0.3.2" #cetz.canvas({ import cetz.draw: * diff --git a/docs/getting-started.mdx b/docs/getting-started.mdx index 2637abf7..4b82cd26 100644 --- a/docs/getting-started.mdx +++ b/docs/getting-started.mdx @@ -8,7 +8,7 @@ sidebar_position: 1 This is the minimal starting point in a `.typ` file: ```typ -#import "@preview/cetz:0.3.1" +#import "@preview/cetz:0.3.2" #cetz.canvas({ import cetz.draw: * ... diff --git a/docs/tutorials/karl.mdx b/docs/tutorials/karl.mdx index bfb9ce2a..e2b9ca54 100644 --- a/docs/tutorials/karl.mdx +++ b/docs/tutorials/karl.mdx @@ -20,7 +20,7 @@ In CeTZ, to draw a picture, two imports and a function call is all you need. Kar ```typ #set page(width: auto, height: auto) -#import "@preview/cetz:0.3.1" +#import "@preview/cetz:0.3.2" We are working on #cetz.canvas({ diff --git a/gallery/karls-picture.typ b/gallery/karls-picture.typ index cb740073..72c334c4 100644 --- a/gallery/karls-picture.typ +++ b/gallery/karls-picture.typ @@ -1,4 +1,4 @@ -#import "@preview/cetz:0.3.1" +#import "@preview/cetz:0.3.2" #set page(width: auto, height: auto, margin: .5cm) #show math.equation: block.with(fill: white, inset: 1pt) diff --git a/gallery/paciolis.typ b/gallery/paciolis.typ index 73f6f4aa..3a8338e9 100644 --- a/gallery/paciolis.typ +++ b/gallery/paciolis.typ @@ -1,5 +1,5 @@ // Example by @samuelireson -#import "@preview/cetz:0.3.1": canvas, draw, tree +#import "@preview/cetz:0.3.2": canvas, draw, tree #set page(width: auto, height: auto, margin: .5cm) diff --git a/gallery/periodic-table.typ b/gallery/periodic-table.typ index 4927c81e..68e5b02f 100644 --- a/gallery/periodic-table.typ +++ b/gallery/periodic-table.typ @@ -1,6 +1,6 @@ // Copied from https://github.com/janosh/tikz/blob/da1b4582/assets/periodic-table/periodic-table.typ -#import "@preview/cetz:0.3.1": canvas, draw +#import "@preview/cetz:0.3.2": canvas, draw #set page(width: auto, height: auto, margin: 15pt) diff --git a/gallery/plate-capacitor.typ b/gallery/plate-capacitor.typ index 8f1da90f..bc8d3e5e 100644 --- a/gallery/plate-capacitor.typ +++ b/gallery/plate-capacitor.typ @@ -1,6 +1,6 @@ // Copied from https://github.com/janosh/tikz/blob/87754ea/assets/plate-capacitor/plate-capacitor.typ -#import "@preview/cetz:0.3.1": canvas, draw +#import "@preview/cetz:0.3.2": canvas, draw #import draw: line, rect, content, bezier, group, anchor #set page(width: auto, height: auto, margin: 5pt) diff --git a/gallery/tree.typ b/gallery/tree.typ index 2fe0636e..1313824e 100644 --- a/gallery/tree.typ +++ b/gallery/tree.typ @@ -1,4 +1,4 @@ -#import "@preview/cetz:0.3.1": canvas, draw, tree +#import "@preview/cetz:0.3.2": canvas, draw, tree #set page(width: auto, height: auto, margin: .5cm) diff --git a/gallery/waves.typ b/gallery/waves.typ index 39684e3b..00f09674 100644 --- a/gallery/waves.typ +++ b/gallery/waves.typ @@ -1,4 +1,4 @@ -#import "@preview/cetz:0.3.1": canvas, draw, vector, matrix +#import "@preview/cetz:0.3.2": canvas, draw, vector, matrix #set page(width: auto, height: auto, margin: .5cm) diff --git a/typst.toml b/typst.toml index c1520838..c99777b2 100644 --- a/typst.toml +++ b/typst.toml @@ -1,6 +1,6 @@ [package] name = "cetz" -version = "0.3.1" +version = "0.3.2" compiler = "0.12.0" repository = "https://github.com/cetz-package/cetz" homepage = "https://cetz-package.github.io/"