Skip to content

Commit 7cf9ece

Browse files
release: 0.1.2 (#131)
2 parents e0828e5 + 317eb19 commit 7cf9ece

Some content is hidden

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

41 files changed

+125
-116
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,16 @@ jobs:
2525
crate: tytanic
2626
git: https://github.com/tingerrr/tytanic.git
2727
- run: |
28+
rustup target add wasm32-unknown-unknown
29+
CETZ=$(mktemp -d)
2830
mkdir -p ~/.local/share/typst/packages/preview/cetz
29-
git clone --depth 1 --branch v0.3.2 https://github.com/cetz-package/cetz.git ~/.local/share/typst/packages/preview/cetz/0.3.2
31+
git clone --depth 1 --branch v0.4.0 https://github.com/cetz-package/cetz.git "$CETZ"
32+
cd "$CETZ"
33+
git submodule update --init --recursive
34+
just install @preview
3035
- uses: typst-community/setup-typst@v3
3136
with:
32-
typst-version: '0.13.0'
37+
typst-version: '0.13.1'
3338
cache-dependency-path: src/cetz.typ
3439
- run: |
3540
just install @local

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
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).
44

5-
CeTZ-Plot requires CeTZ version ≥ 0.3.1!
5+
CeTZ-Plot requires CeTZ version ≥ 0.4.0!
66

77
## Examples
88
<!-- img width is set so the table gets evenly spaced by GitHubs css -->
@@ -63,8 +63,8 @@ For information, see the [manual (stable)](https://github.com/cetz-package/cetz-
6363

6464
To use this package, simply add the following code to your document:
6565
```
66-
#import "@preview/cetz:0.3.4"
67-
#import "@preview/cetz-plot:0.1.1": plot, chart
66+
#import "@preview/cetz:0.4.0"
67+
#import "@preview/cetz-plot:0.1.2": plot, chart
6868
6969
#cetz.canvas({
7070
// Your plot/chart code goes here

common

doc/example.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
let canvas-background = yellow.lighten(95%)
2222

2323
let picture = cetz.canvas(
24-
eval(
24+
std.eval(
2525
example-preamble + source,
26-
scope: example-scope
26+
scope: example-scope,
2727
),
2828
..args
2929
)

doc/style.typ

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
#import "example.typ": example
21
#import "/src/lib.typ"
32

4-
#import "@preview/tidy:0.3.0"
3+
#import "@preview/tidy:0.4.3"
54
#import "@preview/t4t:0.3.2": is
65

76
#let show-function(fn, style-args) = {
@@ -84,11 +83,11 @@
8483
tidy.parse-module(
8584
read(path),
8685
scope: (
87-
example: example,
8886
show-parameter-block: show-parameter-block,
8987
cetz: lib
9088
)
9189
),
90+
first-heading-level: 1,
9291
show-outline: false,
9392
sort-functions: none,
9493
)

gallery/barchart.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#import "@preview/cetz:0.3.4": canvas, draw
2-
#import "@preview/cetz-plot:0.1.1": chart
1+
#import "@preview/cetz:0.4.0": canvas, draw
2+
#import "@preview/cetz-plot:0.1.2": chart
33

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

gallery/bending.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "@preview/cetz:0.3.4" as cetz: draw
1+
#import "@preview/cetz:0.4.0" as cetz: draw
22
#import "/src/lib.typ": smartart
33

44
#set page(width: auto, height: auto, margin: .5cm)
@@ -56,4 +56,4 @@
5656
})
5757
pagebreak(weak: true)
5858
}
59-
*/
59+
*/

gallery/chevron.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "@preview/cetz:0.3.4" as cetz: draw
1+
#import "@preview/cetz:0.4.0" as cetz: draw
22
#import "/src/lib.typ": smartart
33

44
#set page(width: auto, height: auto, margin: .5cm)
@@ -86,4 +86,4 @@
8686
)
8787
})
8888
)
89-
)
89+
)

gallery/circular.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "@preview/cetz:0.3.4" as cetz: draw
1+
#import "@preview/cetz:0.4.0" as cetz: draw
22
#import "/src/lib.typ": smartart
33

44
#set page(width: auto, height: auto, margin: .5cm)
@@ -20,4 +20,4 @@
2020
equal-width: true,
2121
name: "chart",
2222
)
23-
})
23+
})

gallery/cycles.png

48 Bytes
Loading

0 commit comments

Comments
 (0)