Skip to content

Commit

Permalink
PR review additions/fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Feb 1, 2024
1 parent a850be9 commit db42490
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
- Re-added "a", "b", and "c" anchors for `circle-through`
- Open arcs are no longer modified for anchors, invalid border anchors will panic.
- Grids now actually support border anchors.
-

## Libs
### Plot
- The default style of plots changed
- New style keys for enabling/disabling the shared zero tick for "school-book" style plots
- New style keys for specifying the layer of different plot elements (`grid-layer`, `axis-layer`, `background-layer`)

# 0.2.0
CeTZ 0.2.0 requires Typst 0.10.0
Expand Down
2 changes: 1 addition & 1 deletion src/draw/grouping.typ
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@
assert(type(layer) in (int, float), message: "Layer must be a float or integer, 0 being the default layer. Got: " + repr(layer))
assert(type(body) in (function, array) or body == none)
return (ctx => {
let (ctx, drawables, ..) = process.many(ctx, if body == none { none } else if type(body) == function { body(ctx) } else { body })
let (ctx, drawables, ..) = process.many(ctx, if type(body) == function { body(ctx) } else { body })

drawables = drawables.map(d => {
if d.at("z-index", default: none) == none {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/axes.typ
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@
// - right (axis): Right axis
// - top (axis): Top axis
// - name (string): Object name
// - draw-unset (bool): Draw unset axes
// - draw-unset (bool): Draw axes that are set to `none`
// - ..style (any): Style
#let scientific(size: (1, 1),
left: none,
Expand Down
Binary file added tests/group/none/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions tests/group/none/test.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#set page(width: auto, height: auto)
#import "/src/lib.typ": *
#import "/tests/helper.typ": *

#test-case({
import draw: *

group({})
})

0 comments on commit db42490

Please sign in to comment.