Macaw.Frame (macaw_frame v0.1.0)

Copy Markdown View Source

The Frame (spec/01 §1): one visual, which every chart, map and diagram is. It draws one frame document (spec/02), whose frames, each a coordinate model with its layers, axes and legend, share one text summary and one keyboard reach.

ComponentNameKindIsolation
Frame"macaw.frame":content:contained

Macaw.Frame is use Macaw.Frame.Component with macaw_frame's own package alone, Macaw.Frame.Package (spec/01 §2.3): the first cut's layer kinds, the five coordinate models and the spatial steps. A host enabling another package of layer kinds builds a Frame of its own with use Macaw.Frame.Component, name: …, packages: [...].

Its callbacks: parameters/0 (§2.1), declarations/1 (§2.2, Macaw.Frame.Declarations), variables/1 (§5.4), budget/3 (spec/05 §2, Macaw.Frame.Budget), the contained value's transitions (§3, Macaw.Frame.Value) and render/2 (§4, Macaw.Frame.Render). Its value is held by its host: macaw_live's contained cell on a Macaw page, a test or an adopter's own host elsewhere.

The drawing library under it is Macaw.Draw, which knows nothing of components.

Summary

Functions

The registry this Frame resolves its layer kinds and coordinate models through.

Functions

__registry__()

@spec __registry__() :: map()

The registry this Frame resolves its layer kinds and coordinate models through.