fixed bottom custom image order
This commit is contained in:
@ -6,13 +6,16 @@
|
|||||||
|
|
||||||
#let render(x, y, p, bottom) = {
|
#let render(x, y, p, bottom) = {
|
||||||
let style = p.resolved-style
|
let style = p.resolved-style
|
||||||
|
let elmts = (style.image, p.display-name)
|
||||||
|
if bottom {
|
||||||
|
elmts = elmts.rev()
|
||||||
|
}
|
||||||
let shape = align(
|
let shape = align(
|
||||||
center,
|
center,
|
||||||
stack(
|
stack(
|
||||||
dir: ttb,
|
dir: ttb,
|
||||||
spacing: normalize-units(style.spacing) * 1pt,
|
spacing: normalize-units(style.spacing) * 1pt,
|
||||||
style.image,
|
..elmts
|
||||||
p.display-name
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
let anchor = if bottom {"north"} else {"base"}
|
let anchor = if bottom {"north"} else {"base"}
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 101 KiB |
@ -15,7 +15,7 @@
|
|||||||
_par("Foo5", display-name: "Database", shape: "database")
|
_par("Foo5", display-name: "Database", shape: "database")
|
||||||
_par("Foo6", display-name: "Collections", shape: "collections")
|
_par("Foo6", display-name: "Collections", shape: "collections")
|
||||||
_par("Foo7", display-name: "Queue", shape: "queue")
|
_par("Foo7", display-name: "Queue", shape: "queue")
|
||||||
_par("Foo8", display-name: "Typst", shape: "custom", custom-image: TYPST)
|
_par("Foo8", display-name: "Typst", shape: "custom", image: TYPST)
|
||||||
_par("Foo9", display-name: "Ferris", shape: "custom", custom-image: FERRIS)
|
_par("Foo9", display-name: "Ferris", shape: "custom", image: FERRIS)
|
||||||
_par("Foo10", display-name: "Baryhobal", shape: "custom", custom-image: ME)
|
_par("Foo10", display-name: "Baryhobal", shape: "custom", image: ME)
|
||||||
})
|
})
|
Reference in New Issue
Block a user