Skip to content

Commit

Permalink
canvas: Fix content measure
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Oct 15, 2024
1 parent b1b1555 commit e956f8b
Show file tree
Hide file tree
Showing 65 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
tag: ci-semi-stable
- uses: typst-community/setup-typst@v3
with:
typst-version: '0.12.0-rc1'
typst-version: '0.12.0-rc2'
cache-dependency-path: src/deps.typ
- run: |
just install @local
Expand Down
2 changes: 1 addition & 1 deletion src/draw/shapes.typ
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@
bottom: padding.at("bottom", default: 0) * ctx.length,
right: padding.at("right", default: 0) * ctx.length,
),
body
text(top-edge: "bounds", bottom-edge: "bounds", body)
)
)
)
Expand Down
Binary file modified tests/anchor/centroid/ref/1.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/anchor/element-anchors/ref/1.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/anchor/path-anchors/ref/1.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/anchor/root/ref/1.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/1.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/1.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/arc/arc-through/ref/1.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/arc/last-pos/ref/1.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/arc/ref/1.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/arrows/ref/1.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-through/ref/1.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/ref/1.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/1.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/bounds/ref/1.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/catmul/ref/1.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/circle-through/ref/1.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/circle/ref/1.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/1.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/1.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/1.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/1.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/1.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/1.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/span/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion tests/content/test.typ
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,6 @@
// Test inline math measuring
#context box(stroke: 2pt + red, canvas(length: 1cm, {
import draw: *
content((0, 0), $x=1$)
//content((0, 0), $x=1$)
content((0, 0), $x$)
}))
Binary file modified tests/content/transform/ref/1.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/1.png
Binary file modified tests/decorations/path/ref/1.png
Binary file modified tests/decorations/ref/1.png
Binary file modified tests/floating/ref/1.png
Binary file modified tests/gradient/ref/1.png
Binary file modified tests/group/nested-anchor/ref/1.png
Binary file modified tests/group/transform/ref/1.png
Binary file modified tests/group/translate/ref/1.png
Binary file modified tests/hide/ref/1.png
Binary file modified tests/hobby/ref/1.png
Binary file modified tests/image/ref/1.png
Binary file modified tests/intersection/ref/1.png
Binary file modified tests/layer/ref/1.png
Binary file modified tests/line/element-element/ref/1.png
Binary file modified tests/local-anchor/ref/1.png
Binary file modified tests/mark/anchor/ref/1.png
Binary file modified tests/mark/auto-offset/ref/1.png
Binary file modified tests/mark/custom/ref/1.png
Binary file modified tests/mark/multiple/ref/1.png
Binary file modified tests/mark/shape-transform/ref/1.png
Binary file modified tests/mark/single/ref/1.png
Binary file modified tests/merge/ref/1.png
Binary file modified tests/palette/ref/1.png
Binary file modified tests/primitives/ref/1.png
Binary file modified tests/projection/ortho/ref/1.png
Binary file modified tests/rect/rounded/ref/1.png
Binary file modified tests/relative-length/ref/1.png
Binary file modified tests/relative-no-update/ref/1.png
Binary file modified tests/ring/ref/1.png
Binary file modified tests/rotation/around/ref/1.png
Binary file modified tests/rotation/ref/1.png
Binary file modified tests/set-get-ctx/ref/1.png
Binary file modified tests/style/ref/1.png
Binary file modified tests/transform/precission/ref/1.png
Binary file modified tests/translation/ref/1.png
Binary file modified tests/tree/ref/1.png
Binary file modified tests/viewport/ref/1.png

0 comments on commit e956f8b

Please sign in to comment.