Commit Graph
210 Commits
Author SHA1 Message Date
bflatastic d654660c25 M8: a stroke's edges meet what is behind it and the fill, with no light fringe
An opaque inside stroke showed the fill through its anti-aliased outer edge, a thin light line on a dark background, and an outside stroke let the background show between it and the fill. Where the stroke hides what is under it, the fill now reaches the middle of the stroke (#2635).
2026-11-27 14:51:33 +07:00
bflatastic eddba16aae Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/components-parity.md
2026-11-27 14:06:02 +07:00
FredApps 0622efe1e1 Merge main into mind maps UI (code blocks and mind map nodes both handled in board.addNext, colour and docs) 2026-11-26 21:01:37 +07:00
Denis Gomes fd45d4f05b M3: a main pasted from its library file into another file is an instance of it
Copying a main component in a library file and pasting it into another
file made a copy of the main there: a new component of that file, not
linked to the library. Copy then Paste of a main in its own file already
makes an instance, and pasting an instance from the library file already
uses the main from the library. Now a main the source file publishes is
an instance of it from that library too, which gets enabled the same way,
as Figma does with a published component. A variant is an instance of that
variant.

A main the library doesn't offer (hidden from publishing, added since the
last publish) and a main from a file that publishes no library still paste
as a copy. Making those an instance as well was rejected: their main would
stay in the other file, so the instance would show a missing main.

The part of adopt_pasted that brings published components in is now
from_published, shared with the new published_main.
2026-11-24 03:00:27 -05:00
bflatastic 64b0b45108 M4: Outline stroke on a text without a stroke outlines its glyphs (#2405)
A fill-only text was left as it was: Outline stroke skipped every layer
without a visible stroke. A text now flattens in place into a vector of
its glyphs, filled as the text was and keeping its colour style,
constraints, visibility and lock; a text with no glyphs stays.
2026-11-19 00:56:10 +07:00
FredApps f44a6b5da2 Merge branch 'main' into feat/mind-map-tool-shortcut
Keep this PR's #2226 mind-map notes and main's #2109 align-and-distribute note in the parity docs.

Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-18 19:08:28 +07:00
FredApps 92d49456c1 Merge branch 'main' into fix/present-hidpi-detail-2127
Keep this PR's #2127 HiDPI presenter note and main's #2109
align-and-distribute note in the target-app-parity revision history.

Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-18 19:07:24 +07:00
Trevor Brown 4c71211e2f M8: points align and distribute in vector edit mode, as in Figma
In vector edit mode, align.* and distribute.* act on the selected
points instead of moving the whole vector. The Design panel shows the
alignment row, and the existing shortcuts apply to those points.

Closes #2109.
2026-11-18 19:06:24 +07:00
FredApps bba5754d86 Merge remote-tracking branch 'origin/main' into feat/mind-maps-ui-2226
Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>

# Conflicts:
#	ROADMAP.md
#	docs/gaps.md
#	docs/roadmap.md
#	docs/target-app-parity.md
2026-11-18 16:46:07 +07:00
FredApps e2aa302165 Merge remote-tracking branch 'origin/main' into fix/present-hidpi-detail-2127
Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>

# Conflicts:
#	docs/prototyping-parity.md
#	docs/target-app-parity.md
2026-11-18 16:41:47 +07:00
bflatastic 33c697e712 M9: the browser build uses team libraries and plugin directories on a server
The browser's requests to a server now open library and plugin directory
connections, so the panels work there as on the desktop. A plugin installed in
the browser lasts as long as the page.
2026-11-18 13:57:08 +07:00
Trevor BrownandClaude Opus 5.5 18ef78cb20 Merge upstream/main into feat/mind-maps-ui-2226
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 driver, no subagent
2026-11-17 05:34:54 -05:00
Dylan M. Taylor 0a94b092eb refactor(svg): share XML escaping and character validation 2026-11-16 10:08:47 -05:00
Trevor BrownandClaude Opus 5.5 6d2b386b60 docs: status lines are main's summary with this PR's entry in front
The main merge kept the old summary in front of main's rewritten one; this takes main's line and puts back only the PR's own entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Model-Effort: Opus 5.5 driver, no subagent
2026-11-16 04:37:46 -05:00
Trevor BrownandClaude Opus 5.5 ac34b83223 docs: status lines are main's summary with this PR's entry in front
The main merge kept the old summary in front of main's rewritten one; this takes main's line and puts back only the PR's own entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Model-Effort: Opus 5.5 driver, no subagent
2026-11-16 04:37:40 -05:00
Trevor BrownandClaude Opus 5.5 44e507c354 Merge upstream/main into fix/present-hidpi-detail-2127
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 04:35:52 -05:00
Trevor BrownandClaude Opus 5.5 1bc0211712 Merge upstream/main into feat/mind-maps-ui-2226
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 04:35:50 -05:00
Trevor BrownandClaude Opus 5.5 d5018e736e M5: while the view moves, the presenter's detail is drawn only while it covers the view (#2133 review)
Past the detail's edge the capped whole-frame texture is drawn alone until the view settles, and
then a detail for the new view is rendered, so no sharp/soft boundary crosses the view while it
pans. The presenter row and the #2127 revision note describe the fallback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 driver, no subagent
2026-11-15 11:41:29 -05:00
Madhav Agarwal 4f89bbd37e docs: bring ROADMAP.md current through 2026-11-15 2026-11-15 11:08:26 +05:30
Trevor BrownandClaude Sonnet 5.5 c4dc256e18 Merge remote-tracking branch 'upstream/main' into fix/present-hidpi-detail-2127
Conflict in present/tests.rs: kept both tests (this PR's hidpi detail tests and main's 16 pt bar button test).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-13 11:38:40 -05:00
Trevor BrownandClaude Sonnet 5.5 7a4f83cae7 Merge remote-tracking branch 'upstream/main' into feat/mind-maps-ui-2226
Conflicts resolved by keeping both sides: the new tests from main (#2327 and
the sticky size menu) and this PR's mind map UI tests, and the board_bar
imports (ToolId plus STICKY_SIZES).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-13 11:37:48 -05:00
Trevor BrownandClaude Sonnet 5.5 d851ac07f0 Merge upstream main into fix/present-hidpi-detail-2127
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-12 19:39:16 -05:00
Trevor BrownandClaude Opus 5.5 f27de18ffc Merge upstream/main into feat/mind-maps-ui-2226
Code conflicts kept both sides: the tool list in tool.set's params gains main's annotation beside the mind map, ToolId::ALL holds 28 tools, and the shortcut counts are (137, 136, 1, 0, 2, 58).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove and merged
2026-11-12 03:46:59 -05:00
Trevor BrownandClaude Sonnet 5.5 293c922609 Docs: drag modifiers measured in Figma
Move and resize modifiers were compared in Figma web on 2026-11-08: Shift locks a move to the dominant axis, Alt copies, Shift keeps the ratio and an edge scales about the opposite edge middle, Alt keeps the centre, Shift+Alt does both, and a modifier changed mid-drag is read fresh. FigCraft matches; Ctrl/Cmd was not measurable. The three ui-parity rows, a revision row and the status line record it, and target-app-parity no longer says modifiers are uncompared.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-12 01:41:23 -05:00
bflatastic b6b9b2995f Merge main into #2224 2026-11-12 12:56:12 +07:00
bflatastic dad8d2363c Merge main into #2224 2026-11-12 11:47:53 +07:00
bflatastic 05c8d6b2e4 Merge main into #2121 2026-11-12 11:47:19 +07:00
bflatastic ae6e6231c6 Merge main into #2121 2026-11-12 11:33:43 +07:00
bflatastic dff6e8feb3 Merge main into #2245 2026-11-12 11:19:38 +07:00
bflatastic ebca682595 Merge main into #2224 2026-11-12 11:12:04 +07:00
BFlat 6c7532e8b0 Merge pull request #2240 from TrevorBrown-dev/fix/outline-after-pen-bridge-1951
M4: a rounded vector's fill and outline follow every corner when a segment closes its open loop (#1951)
2026-11-12 11:09:33 +07:00
bflatastic 13635a24ea Merge main into #2121 2026-11-12 11:08:15 +07:00
bflatastic 0c5bbc07a7 Merge main into #2224 2026-11-12 11:03:16 +07:00
Trevor BrownandClaude Opus 5.5 041894e638 Merge upstream/main into feat/mind-maps-ui-2226
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 22:50:42 -05:00
bflatastic cf28715c18 Merge main into #2221 2026-11-12 10:47:13 +07:00
bflatastic a360818231 Merge main into #2245 2026-11-12 10:27:59 +07:00
bflatastic a905f50211 Merge main into #2224 2026-11-12 10:11:23 +07:00
bflatastic ed4f4defc8 Merge main into #2240 2026-11-12 10:03:15 +07:00
bflatastic 058492a693 Merge main into #2133 2026-11-12 09:43:12 +07:00
bflatastic 34b2bba9d3 Merge main into #2121 2026-11-12 09:30:04 +07:00
Trevor BrownandClaude Sonnet 5.5 b8f05d1948 M4: a typed number and full stop start a numbered list at that number, as measured in Figma
Typing `5. ` at the start of a plain paragraph starts a numbered list whose first item reads 5 (Figma has no start-number field); the next item goes on with 6. Digits only, 1 to 9999; `0. `, `12a. ` and `2)` stay text (not measured), `1)` works as before. The measured restart rows (plain paragraph, bullet item) are no longer marked silent.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-11 09:58:57 -05:00
Trevor BrownandClaude Sonnet 5.5 a28c03d9f1 M2.1: grid Fill tracks share the space and let a fixed child overflow, as measured in Figma
On a fixed-size axis a Fill (1fr) track now splits the free space by its fraction, after gaps and padding, and a fixed-size or hug-size child alone in it asks nothing of the track, so a child bigger than its share overflows into the next track. Measured in Figma web: frame 300 x 200, rows 1fr / 1fr, children 100 x 150 and 100 x 20 give rows 100 / 100 (second child at y 100); with a row gap of 10, rows 95 / 95 (y 105); with the frame height on Hug the rows fit their content, 150 / 20 (frame 170). This replaces the 2026-10-11 rule from the documentation (a track never gets less than its content). Unchanged: a Fill child's own minimum, spanning children, Hug and Fixed tracks, the Hug-axis path.

Three behaviour cases flipped to the measured rule and three added with the measured numbers; the two parity docs are updated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-11 08:26:17 -05:00
Trevor BrownandClaude Sonnet 5.5 a75d8bf04f M4: Delete closes a region's loop through the segment that joins its ends (#1951)
A Pen bridge between two degree-2 points leaves the region alone, and Delete on the point between them then rotated the loop open with the bridge in no loop, so even an unrounded fill ran straight across a curved bridge. reopen_loops now pushes the one segment in no loop that joins an open chain's ends onto the loop's end (winding kept, loop by loop), as connect does. This also covers removing segments and the eraser.

closing_segment is public, derives its own start point, walks strictly (a loop out of walking order is left alone) and gives up when two segments qualify. The render fix stays as the fallback for files already saved in that state.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Fable 5.1 reviewed; Sonnet 5.5 wrote at medium
2026-11-11 02:16:29 -05:00
Trevor BrownandClaude Sonnet 5.5 8e6c342f13 M4: a rounded vector's fill and outline follow every corner after a Pen bridge (#1951)
The reporter's file has a corner cut off by a segment drawn first, with the corner point then deleted with Delete. The region's loop is left as the open chain of the other four segments, and the cutting segment, which joins the chain's two ends, is in no loop. The stroke follows the network, so it rounds both ends of that segment; the fill and the selection outline follow the loop.

Cause: VectorNetwork::rounded_smoothed rebuilds each loop by inserting a corner's arcs where the loop arrives at the point, so the point the loop starts at is never cut (in a closed loop it is arrived at last), and the open loop's closing edge ran straight to it. closing_segment now finds the segment joining an open loop's two ends when no loop holds it, and rounding walks it as the loop's last segment, so every corner of the fill and outline matches the stroke. Closed loops and the cases #1991 fixed are untouched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-11 02:01:32 -05:00
Trevor BrownandClaude Sonnet 5.5 3e31ba4ed9 M12: Boards: mind maps in the toolbar, with keys for children and siblings (#2226)
Part of #2226, step 2 of 4. The Shapes flyout ends in a mind map tool (tool.mindMap): a click places a map whose first node's text starts at the click, and typing starts in it. Cmd/Ctrl+Enter on a mind map node (selected or being typed in) adds a child (board.mindMapAdd), Shift+Cmd/Ctrl+Enter its next sibling (board.nextSticky forwards a node to board.mindMapAdd), both typing on in the new node. Tab and Shift+Tab walk a node's siblings in the map's order. The bar over a node sets its text colour and size; over a branch it shows the connector's controls without the line types.

Cmd/Ctrl+Enter ends every text edit, so its new binding is filtered to mind map nodes at the four places keys resolve (the canvas and the text editor, in the app and on the control channel); a guard test pins that.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Fable 5.1 designed; Sonnet 5.5 wrote at medium
2026-11-10 17:34:45 -05:00
Trevor BrownandClaude Sonnet 5.5 529134b850 M4: a boolean group's corner radius rounds its result (#2222)
A boolean group takes a corner radius (and corner smoothing): the Design panel shows the field for it, `node.set cornerRadius` writes it, and the renderer rounds every sharp corner of the group's result after the fold, convex and concave alike. Layers inside keep their own radius and do not stack with it, a radius larger than the edges allow shrinks to fit while the field keeps the typed value, Flatten bakes the arcs, and a mixed selection reads Mixed. Measured in Figma's web app on 2026-11-10.

The rounded result is cached apart from the fold (keyed by the folded path, radius and smoothing), so scrubbing the radius never redoes the boolean steps. The .fig and REST importers and the .fig exporter now carry the radius and smoothing of a boolean group, and paste properties and radius variables reach it. Docs: ui-parity, target-app-parity, gaps, file-format-parity, ROADMAP, mcp.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Fable 5.1 designed; Sonnet 5.5 wrote at medium
2026-11-10 13:36:10 -05:00
Trevor BrownandClaude Sonnet 5.5 020388cf1f M10: Export: a background blur or glass exported on its own keeps the content behind it (#2213)
An export of a layer draws only that layer, so a background blur or glass in it read an empty
backdrop. The export now renders the page's layers below the first exported layer, with the margin
the effects reach, as the backdrop (render_area_over), clipped to the export area; only the exported
layers are drawn on top. Layers without those effects, and every other export path, are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-10 10:31:10 -05:00
Trevor BrownandClaude Opus 5.5 005cc73264 M5: the presenter's detail texture takes the frame's bounds from its whole texture (#2127)
detail_texture worked out the frame's export bounds again on every frame, even for a frame that
fits one texture; the caller already has them in the whole-frame texture. The docs rows carry
today's date.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove and wrote
2026-11-08 20:00:05 -05:00
Trevor BrownandClaude Sonnet 5.5 bceb0bb233 M5: present a tall frame sharp on HiDPI displays with a device-scale detail texture over the capped frame (#2127)
Cause:
- The presenter rasterises a whole frame once, capped at 16.8 MP (texture_scale), so a 1440 x 9701 frame is drawn at 1.0959 px per unit (1579 x 10632 px).
- On a 2x display at Fit width or 100% the GPU stretches that 1.8x with linear filtering; scrolling only pans, so the same texture is reused.

Fix:
- render: render_area_at(doc, ids, b, scale, time), the GIF-clock form of render_area.
- present/actions.rs: texture_scale split into pure texture_scale_for plus the ctx wrapper; pure detail_plan (the view plus a quarter margin each way, inside the frame, shrunk to the side and pixel caps; None when the whole texture is already at device scale); Presenter::detail_texture caches one detail for the current frame and renders it with render_area_at.
- present/draw.rs: paints the detail right after the base texture, so overlays still paint over it; it is re-rendered when it stops covering the view, and not while a fling, drag or the wheel moves the view (the capped texture shows then).

Verified:
- tall_frame_detail_plan_renders_the_view_at_device_scale: compile error on main (neither function existed).
- presenting_a_tall_frame_on_a_hidpi_display_draws_the_view_at_device_scale: failed on main at the size[0] >= 2878 assert (only present texture 1579 x 10632).
- present tests 99 passed; figcraft-ui-egui --lib 1107 passed; figcraft-render --lib 245 passed; clippy -D warnings, fmt and cargo xtask wasm clean.

Not changed:
- Transitions, smart animate, overlays, the bar thumbnail and the pane keep the capped whole-frame texture; MAX_TEXTURE_PIXELS is unchanged; no tiling.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Fable 5.1 briefed; Sonnet 5.5 wrote at medium
2026-11-08 19:56:53 -05:00
Trevor BrownandClaude Opus 5.5 62e7e3a41a M8: the parity docs scope the points' X and Y to the layer being edited
CodeRabbit on #2121: with points selected in several edited layers, the X and Y fields read and set only the active layer's points (`selected_parent_points` and `vector.edit.position` use the edited layer), so the status lines, the vector edit row and the revision entries now say so, and the row lists X and Y over several edited layers under Not yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove and wrote
2026-11-08 09:32:09 -05:00