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

Copy Markdown View Source

The text kind (spec/04 §4.14), copied from visualize's Visualize.Chart.Mark.Generic text.

ChannelRole, familyTypes
xposition, xtime, number, categoryreq
yposition, ynumber, categoryreq
valuetextany
seriesseriescategory, text, number

Targets: [:svg]. Parts: fill, stroke (halo), font, text. One text per row at its position: its content the layer's label text read from the row, else value as a string, anchored by the label's anchor, in the layer's own style (a text layer is its label). A constant position feeds its scale's domain and is reported as {:feeds_domain, scale, n}: a text that should stand at an edge reads {:scale, :min} or {:scale, :max} (warnings/2). Budget: w. Auxiliary.

Summary

Functions

The warnings of a text layer node at path (§4.14): a constant position feeds its scale's domain and is reported as {:feeds_domain, family, n} at its channel, a warning the Frame carries, never a refusal.

Functions

warnings(layer, path)

@spec warnings(map(), list()) :: [Macaw.Base.Fault.t()]

The warnings of a text layer node at path (§4.14): a constant position feeds its scale's domain and is reported as {:feeds_domain, family, n} at its channel, a warning the Frame carries, never a refusal.