def box
near-v-framework@0.4.0.0 · domain/architecture/view/ops.bend:57
import near-v-framework@0.4.0.0/domain/architecture/view/ops.bend as Ops
import Base
import near-v-framework@0.4.0.0/domain/architecture/type.bend as A
57def box(+path: String, e: A.Element, +focus: Bool) -> String:
58 match e:
59 case A.Element{n, d, t, +l}:
60 path ++ ": |md\n **" ++ n ++ "**\n\n " ++ kind_line(l, t) ++ "\n\n " ++ d ++ "\n| {shape: " ++ Bool.pick(String, is_person(l), "c4-person", "rectangle") ++ "; style.fill: \"" ++ fill(l, focus) ++ "\"; style.stroke: \"" ++ fill(l, focus) ++ "\"; style.font-color: \"#FFFFFF\"}\n"