struct DiagramHost
Swift
struct DiagramHost
An empty box filled with the theme's canvas colour, for a region the app
draws into by other means.
It grows by flexGrow and is never narrower than 80 points. A windowed
app's layout log on standard error reports its size alongside the window's
whenever the window resizes. For a region the app paints through LavaUI
itself, use Canvas.
Sources/LavaUI/DiagramHost.swift:8
Constructors
init(flexGrow: Float = 1)
Creates a host that takes a flexGrow share of the leftover space.
Sources/LavaUI/DiagramHost.swift:13
Properties
var dumpDetail: String { get }
Not documented.
Sources/LavaUI/DiagramHost.swift:17
var flexGrow: Float
Share of the parent's leftover main-axis space the box takes.
Sources/LavaUI/DiagramHost.swift:10
Methods
func mountPrimitive() -> any AnyViewNode
Not documented.
Sources/LavaUI/DiagramHost.swift:19
func reconcilePrimitive(_ node: any AnyViewNode) -> any AnyViewNode
Not documented.
Sources/LavaUI/DiagramHost.swift:30