Skip to content

Commit

Permalink
treewide: Version + Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Jan 9, 2025
1 parent c76142a commit 5730f61
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 11 deletions.
15 changes: 15 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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`


# 0.3.1

CeTZ 0.3.1 requires Typst 0.12.0.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: *
Expand All @@ -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: *
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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: *
...
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/karl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion gallery/karls-picture.typ
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion gallery/paciolis.typ
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion gallery/periodic-table.typ
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion gallery/plate-capacitor.typ
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion gallery/tree.typ
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion gallery/waves.typ
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion typst.toml
Original file line number Diff line number Diff line change
@@ -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/"
Expand Down

0 comments on commit 5730f61

Please sign in to comment.