mermaid.glyph.paint

mermaid.glyph

paint(frame) -> rows

Paint a frame in box characters

Returns one entry per row of the frame, each { runs = { ... } }. A run is { c, text, style, w }: its first column, its characters, the style name of the element that drew it, and its width in columns. The cells between two runs are blank. rows.cols is the frame's width.

The frame must pass mermaid.frame.check. A text that starts under an earlier text's cells is dropped.