Skip to content

rect-around() does not fit group after rotating #1022

@bendix4620

Description

@bendix4620

rect-around() features unexpected behavior when used on a group after a rotation

#import "@preview/cetz:0.4.2"
#set page(height: auto, width: auto, margin: 5pt)
#cetz.canvas({
  import cetz.draw: *
  rotate(30deg)
  group(name: "foo", {
    circle((0, 0))
    circle((2, 0))
  })
  rect-around("foo")
})
what I got what I expected
Image Image

tested with cetz 0.4.2, typst 0.14.2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions