Skip to content

Commit

Permalink
tests: Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Feb 7, 2024
1 parent 3452cc1 commit 9b9446c
Show file tree
Hide file tree
Showing 46 changed files with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/draw/shapes.typ
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,11 @@
if style.frame != none {
drawables.push(border)
}

let round-up(v, digits: 8) = {
calc.ceil(v * calc.pow(10, digits)) / calc.pow(10, digits)
}

drawables.push(
drawable.content(
anchors.center,
Expand All @@ -881,8 +886,8 @@
border.segments,
typst-rotate(angle,
block(
width: calc.round(width, digits: 4) * ctx.length,
height: calc.round(height, digits: 4) * ctx.length,
width: round-up(width) * ctx.length,
height: round-up(height) * ctx.length,
inset: (
top: padding.at("top", default: 0) * ctx.length,
left: padding.at("left", default: 0) * ctx.length,
Expand Down
Binary file modified tests/anchor/element-anchors/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/angle/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/angle/right-angle/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/axes/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/bezier/shorten/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/chart/boxwhisker/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/chart/piechart/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/chart/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/content/anchor/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/content/intersection/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/content/padding/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/content/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/content/rotate/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/content/rtl/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/content/transform/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/coordinate/lerp/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/decorations/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/group/transform/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/group/translate/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/hide/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/intersection/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/layer/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/line/element-element/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/plot/annotation/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/plot/boxwhisker/ref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/plot/contour/ref.png
Binary file modified tests/plot/equal-axis/ref.png
Binary file modified tests/plot/grid/ref.png
Binary file modified tests/plot/hvline/ref.png
Binary file modified tests/plot/legend/ref.png
Binary file modified tests/plot/line/between/ref.png
Binary file modified tests/plot/line/fill/ref.png
Binary file modified tests/plot/line/line-type/ref.png
Binary file modified tests/plot/line/linearization/ref.png
Binary file modified tests/plot/line/mark/ref.png
Binary file modified tests/plot/line/spline/ref.png
Binary file modified tests/plot/parametric/ref.png
Binary file modified tests/plot/ref.png
Binary file modified tests/plot/reverse-axis/ref.png
Binary file modified tests/plot/vertical/ref.png
Binary file modified tests/relative-length/ref.png
Binary file modified tests/set-get-ctx/ref.png
Binary file modified tests/translation/ref.png
Binary file modified tests/tree/ref.png
Binary file modified tests/viewport/ref.png

0 comments on commit 9b9446c

Please sign in to comment.