You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when fitting rectangular frames to content, would be great if you could apply a border radius. rect has that ability but content(frame: "rect") is not forwarding the radius
#import "@preview/cetz:0.3.1": canvas, draw
#set page(width: auto, height: auto, margin: 8pt)
#canvas({
draw.content(
(0, 0),
[$hat(H)_"KS"=-frac(planck.reduce^2, 2m)arrow(nabla)^2 + v_("ext,s") (arrow(r))$],
frame: "rect",
stroke: .5pt,
fill: rgb("#DCDCDC"),
padding: 8pt,
name: "hamiltonian",
radius: 4pt, // currently has no effect, needs forwarding to rect
)
})
The text was updated successfully, but these errors were encountered:
I would prefer changing frame: to string or function and use something like frame: fit.rect.with(radius: ...).
Since we plan to change/add some kind of generic decoration to elements, frames could also implemented as some kind of decoration you can apply to an element.
when fitting rectangular frames to
content
, would be great if you could apply a border radius.rect
has that ability butcontent(frame: "rect")
is not forwarding theradius
The text was updated successfully, but these errors were encountered: