mermaid.outline.describe

mermaid.outline

describe(shape, g) -> desc

Describe a shape's outline for a box

g holds the box's measures in the caller's units:

FieldHolds
x0, x1, y0, y1the centres of the border cells: the first and last column, the first and last row
ix0, ix1the centres of the second and the last-but-one column
top, bottomthe box's outer edges: its first row's top, its last row's bottom
cw, cha cell's size
swa stroke's width
unitthe measure a round corner is sized by

The shape must be one mermaid.frame.check takes.