Commit Graph
11 Commits
Author SHA1 Message Date
Andrej Skvorc b141a42983 M6: Uno vectors: a path longer than one literal is an image
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.
2026-11-16 13:10:26 +01:00
Andrej Skvorc 395392f3ab M6: Uno text: tight line heights with BlockLineHeight
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.
2026-11-16 13:10:26 +01:00
Andrej Skvorc 7e28fb9efc M6: Uno code: layer names as anchor comments
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.
2026-11-16 13:10:26 +01:00
Andrej Skvorc fe7b9d0495 M6: Uno vectors as Path and docs for the layer code card
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.
2026-11-16 13:10:26 +01:00
Andrej Skvorc 7429df2c13 M6: Uno text: half-leading for explicit line heights
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.
2026-11-16 13:10:26 +01:00
Andrej Skvorc 9217f27cd8 M6: Uno auto layout: grid mode and wrap note
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.
2026-11-16 13:10:26 +01:00
Andrej Skvorc 457a7bec60 M6: Uno auto layout: sizing, absolute children, z-order
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.
2026-11-16 13:10:26 +01:00
Andrej Skvorc 1c3924a978 M6: Uno code: add children with Children.Add and Child =
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(.
2026-11-16 13:10:26 +01:00
Andrej Skvorc d63aa8a9b7 M6: Uno auto layout: AutoLayout panels
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.
2026-11-16 13:10:26 +01:00
Andrej Skvorc dcefb38707 M6: Uno C# Markup code target: frames, text and images 2026-11-16 13:10:25 +01:00
Andrej Skvorc 32967e849d M6: Uno C# Markup code target: wiring 2026-11-16 13:10:09 +01:00