describe(
shape,g) ->desc
Describe a shape's outline for a box
g holds the box's measures in the caller's units:
| Field | Holds |
|---|---|
x0, x1, y0, y1 | the centres of the border cells: the first and last column, the first and last row |
ix0, ix1 | the centres of the second and the last-but-one column |
top, bottom | the box's outer edges: its first row's top, its last row's bottom |
cw, ch | a cell's size |
sw | a stroke's width |
unit | the measure a round corner is sized by |
The shape must be one mermaid.frame.check takes.