An auto layout frame that is the exported layer kept the size it has in the design, so content that grows (a longer text, a larger gap) was cut off or left space. It now hugs on the axes where it hugs, as FigCraft lays it out. A clip is a fixed rectangle, so it is written only on a frame fixed on both axes; one that hugs or fills gets a note instead.
Path data longer than the 10,000 characters a C# literal is cut at would lose its last commands, so such an outline now falls back to the PNG asset like one with too many elements. Found in review.
A line height below the font's natural height keeps LineHeight as written and
adds LineStackingStrategy.BlockLineHeight, which Uno draws as FigCraft does
(the lines overlap). No padding or margin shift; a looser line height keeps
the half-leading shift. Docs updated.
Every layer's name is the last comment line directly above the statement that
creates its outermost element, below any warning line, so a plugin that
post-processes the code can pair elements with layers. Not-mapped notes stay
in the chain below the constructor. Hidden layers and slices write nothing.
Vectors, booleans and shapes are a Microsoft.UI.Xaml.Shapes.Path with path
data from the node's outline (F1 non-zero, F0 even-odd, at most 5,000
elements), one solid fill and one solid stroke; stroke inside or outside is a
note. Gradients, several paints, effects and over-cap outlines fall back to a
PNG Image. Docs: parity, MCP, gaps, ROADMAP.
An explicit line height puts half the leading above the first line in
FigCraft and all of it below in Uno. Text moves down by
h = (L - (ascent + descent) / upem * size) / 2 from the face FigCraft draws
with: a top padding with a negative bottom margin in a panel (merged with an
independent child's margin), the offset in a Canvas. A line height below the
font's natural height and a family that is not installed are notes.
A frame with grid auto layout is a WinUI Grid: column and row definitions
(pixels, Auto, whole-number stars), column and row spacing, padding less the
stroke weight, and each child in the cell FigCraft's layout gives it, with
spans and the alignment in the cell. Fractional stars are scaled to whole
numbers or rounded with a note, at most 64 tracks per axis are written, and a
wrapping layout is one line with a note.
A child sizes per axis in its AutoLayout parent: fixed writes the length,
hug writes none, fill stretches with the attached AutoLayout call; min and
max lengths go on the child. Text hugs (one line), fills (wraps) or is
fixed. A child that ignores the layout is independent at its offset, and a
hugging parent with such a child is written at its size. reverse_z paints
with descending Canvas.ZIndex and keeps the order.
Fluent .Children(...) and .Child(...) double the load time with every level
of nesting. Each element is now a local with fluent property setters; its
children are added with Children.Add(x) or Child = x, and the view sets
Content = root. A test pins that no output has .Children( or .Child(.
A frame with horizontal or vertical auto layout is a Toolkit AutoLayout that
takes the box itself: orientation, spacing, padding less the stroke weight,
primary and counter axis alignment, space between. Space around and evenly
and baseline alignment are notes. Frames without auto layout keep the
Canvas, with one warning per view that counts them.