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

Copy Markdown View Source

The flow kind (spec/04 §5.3): a map's flow per row, an arc from its origin to its destination, new in the second cut.

ChannelRole, familyTypes
x0, y0position: the origin, projectednumberreq
x1, y1position: the destination, projectednumberreq
valuesize (the stroke's width, pixels)number
seriesseriescategory, text, number

Options: great_circle (false), curvature (0.25, the arc's bow as a share of its length), width (2, the width without a value). Parts: stroke. Paint: stroke (fill: none). Not bent. In a geographic frame its ends are the projection step's pixels; in a cartesian one its scales'. One path per row, its stroke's width the value (through the frame's size scale when it declares one, a sqrt scale for maps.flows) or width: a quadratic arc bowed to the left of its direction, or with great_circle the geodesic between the two ends sampled before projecting, each end read back through the frame's projection, broken where the projection clips it. A flow with an end the projection cannot read back is drawn as an arc. Anchor: the destination. Budget: w. Summary: "flow map", extremes over value.