Skip to content

Commit 7330b7e

Browse files
Update for cetz 0.3.0 (#49)
2 parents 06e9308 + 72de3f6 commit 7330b7e

73 files changed

Lines changed: 106 additions & 106 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ jobs:
1919
with:
2020
packages: imagemagick cargo parallel
2121
version: 1.0
22-
- name: Install typos-cli from crates.io
23-
uses: baptiste0928/cargo-install@v2.2.0
24-
with:
25-
crate: typos-cli
2622
- name: Install just from crates.io
2723
uses: baptiste0928/cargo-install@v2.2.0
2824
with:
@@ -33,9 +29,12 @@ jobs:
3329
crate: typst-test
3430
git: https://github.com/tingerrr/typst-test.git
3531
tag: ci-semi-stable
32+
- run: |
33+
mkdir -p ~/.local/share/typst/packages/preview/cetz
34+
git clone --depth 1 --branch v0.3.0 https://github.com/cetz-package/cetz.git ~/.local/share/typst/packages/preview/cetz/0.3.0
3635
- uses: typst-community/setup-typst@v3
3736
with:
38-
typst-version: '0.11.1'
37+
typst-version: '0.12.0-rc1'
3938
cache-dependency-path: src/cetz.typ
4039
- run: |
4140
just install @local

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
**Note: cetz-plot has not been released yet! Use cetz 0.2.2 's internal plotting module.**
2-
31
# CeTZ-Plot
42

53
CeTZ-Plot is a library that adds plots and charts to [CeTZ](https://github.com/cetz-package/cetz), a library for drawing with [Typst](https://typst.app).
64

5+
CeTZ-Plot requires CeTZ version ≥ 0.3.0.
6+
77
## Examples
88
<!-- img width is set so the table gets evenly spaced by GitHubs css -->
99
<table>
@@ -39,7 +39,7 @@ For information, see the [manual (stable)](https://github.com/cetz-package/cetz-
3939

4040
To use this package, simply add the following code to your document:
4141
```
42-
#import "@preview/cetz:0.2.2"
42+
#import "@preview/cetz:0.3.0"
4343
#import "@preview/cetz-plot:0.1.0": plot, chart
4444
4545
#cetz.canvas({

gallery/barchart.png

1.56 KB
Loading

gallery/barchart.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "@preview/cetz:0.2.2": canvas, draw
1+
#import "@preview/cetz:0.3.0": canvas, draw
22
#import "@preview/cetz-plot:0.1.0": chart
33

44
#set page(width: auto, height: auto, margin: .5cm)
@@ -22,5 +22,5 @@
2222
x-tick-step: 2.5,
2323
data2,
2424
labels: ([Low], [Medium], [High], [Very high]),
25-
legend: "legend.inner-north-east",)
25+
legend: "inner-north-east",)
2626
})

gallery/line.pdf

-122 KB
Binary file not shown.

gallery/line.png

586 Bytes
Loading

gallery/line.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "@preview/cetz:0.2.2": canvas, draw
1+
#import "@preview/cetz:0.3.0": canvas, draw
22
#import "@preview/cetz-plot:0.1.0": plot
33

44
#set page(width: auto, height: auto, margin: .5cm)

gallery/piechart.pdf

-13.8 KB
Binary file not shown.

gallery/piechart.png

-843 Bytes
Loading

gallery/piechart.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "@preview/cetz:0.2.2"
1+
#import "@preview/cetz:0.3.0"
22
#import "@preview/cetz-plot:0.1.0": chart
33

44
#set page(width: auto, height: auto, margin: .5cm)
@@ -22,7 +22,7 @@
2222
chart.piechart(
2323
data,
2424
value-key: 1,
25-
label-key: 0,
25+
label-key: none,
2626
radius: 4,
2727
slice-style: colors,
2828
inner-radius: 1,

0 commit comments

Comments
 (0)