Macaw.Frame.Document.Schema.Design (macaw_frame v0.1.0)

Copy Markdown View Source

The design-level node kinds of the frame document (spec/02 §2, §3, §6): the design, its meta, slots, variables, theme, styles and their parts, paints, defaults, layout grid, interaction and labels.

Macaw.Frame.Document.Schema builds every kind's table from this module, Schema.Frame and Schema.Layer once, at compile time; read the tables through it.

Summary

Functions

The curve types of macaw_draw spec/07 a curve part names.

The key specs of a design-level node kind, in the order of its table in spec/02; {:error, [{[], {:enum, kinds}}]} for a kind this module does not describe.

The easing curves of macaw_draw spec/07's ease a motion part names (§3.10).

The six data-model types a slot's types may name (§2.3).

The node kinds this module describes, in spec/02 §1.2's order.

A style's parts: the keys merged by §3.5's rule rather than replaced (§1.5).

The type of a label's and a layer label's rotate (§5.5, §6.1).

The symbol types of macaw_draw spec/07 a marker part names.

Functions

curve_types()

@spec curve_types() :: [atom(), ...]

The curve types of macaw_draw spec/07 a curve part names.

describe(arg1)

@spec describe(term()) :: [Macaw.Frame.Document.Schema.Spec.t()] | {:error, list()}

The key specs of a design-level node kind, in the order of its table in spec/02; {:error, [{[], {:enum, kinds}}]} for a kind this module does not describe.

iex> [first | _] = Macaw.Frame.Document.Schema.Design.describe(:design)
iex> first.key
:meta

eases()

@spec eases() :: [atom(), ...]

The easing curves of macaw_draw spec/07's ease a motion part names (§3.10).

field_types()

@spec field_types() :: [atom(), ...]

The six data-model types a slot's types may name (§2.3).

kinds()

@spec kinds() :: [atom(), ...]

The node kinds this module describes, in spec/02 §1.2's order.

parts()

@spec parts() :: [atom(), ...]

A style's parts: the keys merged by §3.5's rule rather than replaced (§1.5).

rotate_type()

@spec rotate_type() :: tuple()

The type of a label's and a layer label's rotate (§5.5, §6.1).

symbol_types()

@spec symbol_types() :: [atom(), ...]

The symbol types of macaw_draw spec/07 a marker part names.