export let widget_flow_process = (b) => {
let label = attr_or(b, "label", "Process")
let box = wdoc::flow_label_box(b, label, 13, 120, 180, 50, 20, 14)
let w = box.width
let h = box.height
let color = attr_or(b, "color", "var(--color-link)")
let surface_fill = attr_or(b, "surface_fill", "var(--color-bg)")
let border_stroke = attr_or(b, "border_stroke", color)
let label_fill = attr_or(b, "label_fill", "currentColor")
let radius = attr_or(b, "radius", 4)
let border_width = attr_or(b, "border_width", 2)
[
{ kind = "rect", x = 0, y = 0, width = w, height = h, rx = radius,
fill = surface_fill, stroke = border_stroke, stroke_width = border_width },
{ kind = "text", x = 0, y = 0, width = w, height = h,
content = label, font_size = box.font_size, line_height = box.line_height,
max_width = box.label_width, fill = label_fill }
]
}