Macaw.Frame.Layers.Edge (macaw_frame v0.1.0)

Copy Markdown View Source

The edge kind (spec/04 §5.2): a diagram's edge, the route a layout assigned with its markers and its label, new in the second cut.

ChannelRole, familyTypes
pathgeometry: the layout's routed Macaw.Draw.IR.Path, pixelstermreq
labeltexttext, category, number
head, tailtext: a marker's spellingcategory, text
linetext: a line's spellingcategory, text
seriesseriescategory, text, number

The markers are none, arrow (filled), open (hollow), diamond, circle and cross; open_diamond, a class diagram's aggregation; and the crow's-foot ends of an ER diagram, one, zero_or_one, one_or_many and zero_or_many; the lines solid, dashed, dotted and thick. Without a reading, head is arrow, tail none and line solid; a spelling the vocabulary lacks is the default, never an atom. Parts: stroke, font. Paint: stroke (fill: none). One edge per row: the route stroked in the layer's paint with the line's dash or width, the head at its end and the tail at its start, each pointing along the route's bearing there (a filled marker in the paint, a hollow one over the theme's background), and its label at the route's midpoint by length, on a box of the theme's background sized by the text estimate, inked in text. Not bent. Anchor: the midpoint. Budget: w. Auxiliary: its rows are a diagram's relations, which its nodes name.