Skip to content

Commit

Permalink
Merge pull request #4 from cetz-package/release-0.1.1
Browse files Browse the repository at this point in the history
Release 0.1.1
  • Loading branch information
johannes-wolf authored Jul 18, 2024
2 parents ab8384d + a0f0215 commit 9ddd8ed
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ A [CeTZ](https://github.com/cetz-package/cetz) library for drawing simple two- o

## Usage

This package requires CeTZ version >= 0.2.0!
This package requires CeTZ version >= 0.2.2!

For information, see the [manual (stable)](https://github.com/cetz-package/cetz-venn/blob/stable/manual.pdf?raw=true).

Expand Down
2 changes: 1 addition & 1 deletion doc/example.typ
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "/src/lib.typ"
#import "@preview/cetz:0.2.1"
#import "@preview/cetz:0.2.2"

// String that gets prefixed to every example code
// for compilation only!
Expand Down
4 changes: 2 additions & 2 deletions gallery/venn2.typ
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#set page(width: auto, height: auto, margin: .5cm)
#import "@preview/cetz:0.2.1"
#import "@preview/cetz-venn:0.1.0": venn2
#import "@preview/cetz:0.2.2"
#import "@preview/cetz-venn:0.1.1": venn2

#cetz.canvas({
import cetz.draw: *
Expand Down
Binary file modified gallery/venn3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions gallery/venn3.typ
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#set page(width: auto, height: auto, margin: .5cm)
#import "@preview/cetz:0.2.1"
#import "@preview/cetz-venn:0.1.0": venn3
#import "@preview/cetz:0.2.2"
#import "@preview/cetz-venn:0.1.1": venn3

#cetz.canvas({
import cetz.draw: *
Expand Down
Binary file modified manual.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions manual.typ
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
CeTZ Venn is a tiny package for drawing two- and three-set Venn diagrams
using Typst and CeTZ.

*CeTZ version $>=$ 0.2.2 is required!*

= Examples

A simple two set Venn diagram:
Expand Down
2 changes: 1 addition & 1 deletion src/lib.typ
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#let version = version(0,1,0)
#let version = version(0,1,1)
#import "/src/venn.typ": venn2, venn3
2 changes: 1 addition & 1 deletion src/venn.typ
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "@preview/cetz:0.2.1"
#import "@preview/cetz:0.2.2"

#let default-style = (
stroke: auto,
Expand Down
21 changes: 11 additions & 10 deletions tests/cetz-version/test.typ
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
#import "/src/lib.typ": venn2, venn3
#import "/tests/helper.typ": *

// Import the minimum supported cetz version
#import "@preview/cetz:0.2.0"
// Import all supported cetz versions
#for ver in ("0.2.2",) {
import ("@preview/cetz:" + ver)
import cetz.draw: content, set-style

#import cetz.draw: content, set-style
test-case({
venn2()
})

#test-case({
venn2()
})

#test-case({
venn3()
})
test-case({
venn3()
})
}
2 changes: 1 addition & 1 deletion tests/helper.typ
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "@preview/cetz:0.2.1"
#import "@preview/cetz:0.2.2"
#import "/src/lib.typ" as venn

/// Test case canvas surrounded by a red border
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-venn"
version = "0.1.0"
version = "0.1.1"
repository = "https://github.com/johannes-wolf/cetz-venn"
entrypoint = "src/lib.typ"
authors = [
Expand Down

0 comments on commit 9ddd8ed

Please sign in to comment.