Commit Graph
185 Commits
Author SHA1 Message Date
bflatastic 2161144dad Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	ROADMAP.md
2026-11-28 15:06:05 +07:00
bflatastic 00439a3bb5 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/gaps.md
2026-11-28 14:56:22 +07:00
FredApps bb7e878e69 Merge branch 'main' into feat/variables-json-text-styles-2173 2026-11-28 07:40:43 +01:00
FredApps 9562640d75 Merge branch 'main' into uno/U1-01-layer-code 2026-11-28 07:40:32 +01:00
FredApps 3e44fd805a Merge branch 'main' into perf/partial-upload 2026-11-28 07:38:30 +01:00
bflatastic d20a121f23 M12: boards: code blocks from the toolbar and the ` key, a language menu, and handles on the left and right edges only (#2237, step 2) 2026-11-28 10:54:57 +07:00
Livio SidlerandClaude Fable 5.2 efed22afd9 Merge main: the gaps list after the other M8 changes landed
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 10:11:49 +01:00
Livio SidlerandClaude Fable 5.2 5c1f4c5462 Merge main: patches go on the image kept for the eyedropper, and a drag's base render says what it skips
main's canvas keeps the texture's pixels (the eyedropper reads them) and its
worker marks an image that leaves layers out. A render handed over as patches
puts them on that kept copy as on the texture, and carries the mark.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-27 10:08:34 +01:00
bflatastic 10789a2fb8 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/gaps.md
2026-11-27 16:05:40 +07:00
bflatastic a9dce94327 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/gaps.md
2026-11-27 16:05:17 +07:00
bflatastic ccd892cc8f Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/gaps.md
2026-11-27 16:04:47 +07:00
BFlat 4e83051359 Merge pull request #2643 from mikaelweiss/shared-branches
M10: sync shared branches across live sessions
2026-11-27 15:49:48 +07:00
bflatastic 189e78c948 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/gaps.md
2026-11-27 15:48:04 +07:00
bflatastic 163800516f Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	crates/collab/src/message.rs
#	crates/collab/src/server.rs
2026-11-27 15:21:59 +07:00
bflatastic 41513f0838 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/gaps.md
2026-11-27 14:24:16 +07:00
bflatastic 2430b8036d Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/gaps.md
2026-11-27 14:23:54 +07:00
bflatastic 4ef95da6a5 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/gaps.md
2026-11-27 14:23:31 +07:00
bflatastic 0210633552 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/gaps.md
2026-11-27 14:23:04 +07:00
bflatastic 0b23f0bda1 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/gaps.md
2026-11-27 14:22:26 +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
Mikael Weiss c9ae173585 fix: harden shared branch sync and add tests and docs 2026-11-26 05:22:47 -07:00
Livio Sidler c45ffc5496 M8: the browser build compiles the rasteriser for speed
tiny-skia, tiny-skia-path and figcraft-render at opt-level 3 in the web-release profile: their
loops run for every pixel of the canvas on the page's one thread. The rest stays at "z" for the
size gate.
2026-11-24 13:02:34 +01:00
Livio Sidler 3cbc4d0031 M8: the browser's canvas uploads only what an edit changed of its image
Every finished render was converted to a texture image and uploaded whole: after an edit that
redrew a part of the view, all of the view and its margin again, every frame of a drag. The
retained renderer now says where a patched image differs from the one before (nothing after a
full render or a pan, which moves every pixel), the browser's worker numbers its images and is
told which one the canvas's texture holds, and a render that only patches that image hands over
the patches, which go onto the texture in place. The image around the view and the desktop's
render thread hand over whole images, as before.
2026-11-24 13:02:00 +01:00
Livio Sidler 810b8dc594 M8: a patch goes into the kept image row by row
A re-rendered area was cut out of its render into a pixmap of its own, and that drawn onto the
kept image: two more passes over the area, which for simple content took far longer than
rendering it. Its rows are now copied straight into place.

A 4.7 megapixel patch of two flat fills (a 4112 x 2292 view, release, one thread): 16.9 -> 2.8
ms a frame.
2026-11-24 12:50:52 +01:00
Livio Sidler 11da741c49 M8: a clipping frame that takes in the whole pixmap costs no layer, mask or copy there
Close up, the view (or the band or patch of it being drawn) lies inside its clipping frames.
Each still copied the pixmap, filled a mask for it and put the copy back through the mask,
pixel by pixel: a frame with an edge off screen on a fraction of a pixel never took the
whole-pixel path. Now a clip that takes in the whole pixmap draws its children as they are;
edges at or past the pixmap's count as whole; and rows of a mask that are all in or all out are
copied or kept in one piece.

A view inside four nested clipping frames at 1,933% on a 2x display (4112 x 2292, release, one
thread): 119 -> 87 ms, a band of it 18 -> 12 ms.
2026-11-24 12:31:10 +01:00
Livio Sidler 0a4f57edce M8: a moved point redraws its vector around it only
A point dragged in the vector editor changed the vector, so its whole box was drawn again.
Zoomed to the vector (as the editor does) that is most of the view, past the share a patch may
cover: every frame of the drag was a full render, drawn in bands over several frames. A
vector that differs only in where its points and handles are now redraws the segments that
moved and their neighbours (joins and rounded corners follow them), as far out as its stroke
reaches. Dashes, width profiles, brushes, gradients and images, effects, masks and open filled
paths depend on the whole outline: those are drawn again whole, as before.
2026-11-24 12:21:25 +01:00
Livio Sidler e34724047d M8: a drop shadow of an opaque shape is drawn where it shows, at the resolution its blur needs
A layer with a drop shadow was drawn with the shadow's reach around the pixmap (1,392 pixels
each way for a 16 px blur at 1,933% on a 2x display) and the shadow blurred from a copy of
all of it, once for every band of a full render. A shape or frame with opaque paints now
casts its shadows from its outline: only over the pixels that show, and a blur of 8 device
pixels or more is drawn smaller, blurred and scaled back up, on a grid that follows the shape so
bands, patches and whole views agree. A frame that doesn't clip (a stack) counts while
everything its children paint stays inside its box; its shadows that spread still come from
its pixels, as they did.

zoomed_card_timings (release, one thread, 4112 x 2292): the view in 8 bands 4576 -> 152 ms,
the slowest band 598 -> 21 ms.
2026-11-24 12:05:40 +01:00
SoldierPePe aa9991f1cf M10: panel rows and the layers list mirror in a right-to-left UI
In a right-to-left UI language the rows inside the panels run from the
right as well: the shared Design panel row (right::block), section
headers, tight_end, sub-labels, checkboxes, radios, disclosures and the
selection header, and the layers and pages lists (indent, disclosure,
icon and name from the right, eye and padlock on the left). Names and
rename fields align to their start.

Hand-placed layouts stay written left to right and are mirrored inside
their row with widgets::flip_x / flip_rect, so an English window takes
the same code path unchanged. Inside a control nothing turns round.

A layers list made wider than the panel by a long name (#1904)
mirrors across its whole width, so it starts scrolled to its right
end, where its rows start (stick_to_right, with a scroll state per
direction so a language switch doesn't leave it at the left end).

The Assets panel, version history, Dev Mode's layouts, the colour
picker, the toolbar, the tab bar and the home screen stay left to right.

Gap 5 had two copies of its "Missing" paragraph, left by merges: one
now.
2026-11-19 02:22:01 +03:00
Trevor Brown 0d70c332b1 M12: boards: code blocks (doc and engine): a board code block that hugs its lines, with a language (#2237) (#2282)
The change from #2282 by @TrevorBrown-dev, as one commit.
2026-11-19 02:00:46 +07:00
bflatastic e4bc567855 M3: library analytics count insertions and detachments of styles and variables
Applying a style or variable, or copying or duplicating content that uses it,
inserts it; the Detach button detaches it; an instance counts as its component
alone. Show usage and library.usage give them over the chosen period.
2026-11-18 19:38:54 +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
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 02cb16715f Merge upstream/main into feat/variables-json-text-styles-2173
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 driver, no subagent
2026-11-17 06:34:04 -05:00
Trevor BrownandClaude Opus 5.5 4a42da449d 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 06:34:03 -05:00
bflatastic c391f13ccd M8: a pan past the canvas image shows a coarse image of the area around the view, not the bare page colour 2026-11-17 18:06:04 +07:00
Trevor BrownandClaude Opus 5.5 f77bc6b557 Merge upstream/main into feat/variables-json-text-styles-2173
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 driver, no subagent
2026-11-17 05:34:55 -05: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
bflatastic 3c92930224 M8: the strips a pan uncovers render in parallel bands, as full renders do 2026-11-17 17:14:57 +07:00
Faridul 2451cc34e4 M8: the desktop refines a zoom only once it pauses
After a zoom step's preview the render thread only checked once, right away,
for a newer request, then started the full render. That render can't be
stopped, so on a heavy page every later step of a held zoom waited for it
(110-520 ms per render on a 9,000-layer page with images and shadows).

It now waits like the browser worker does: SETTLE_MS, or the last full
render's time when that's shorter. Pans and edits have no preview and are
refined straight away as before.
2026-11-17 08:16:04 +06: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 dcefb38707 M6: Uno C# Markup code target: frames, text and images 2026-11-16 13:10:25 +01:00
Trevor BrownandClaude Opus 5.5 01b827fb72 Merge upstream/main into feat/variables-json-text-styles-2173
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 12:36:34 -05:00
Trevor BrownandClaude Opus 5.5 e9a72ab129 Merge upstream/main into feat/mind-maps-ui-2226
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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 12:10:20 -05:00
Trevor BrownandClaude Opus 5.5 347d8972be Merge upstream/main into feat/variables-json-text-styles-2173
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 19:39:04 -05:00
Trevor BrownandClaude Opus 5.5 98f946267d M6: gaps.md says the export writes region paints; the warning test can fail again (#2302)
Gap 1's 2026-10-26 bullet still said the export drops region fills.
tail_tests asserted on "region paints", which the narrowed warning can
never contain; it now checks for any region warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove and fixed; Fable 5.2 reviewed
2026-11-12 08:13:55 -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 Opus 5.5 132c6e9686 Merge upstream/main into fix/boolean-corner-radius-2222
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 20:38:29 -05:00
Trevor BrownandClaude Opus 5.5 933dd1be4a Merge upstream/main into feat/variables-json-text-styles-2173
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 20:38:26 -05:00
Trevor BrownandClaude Opus 5.5 20f02bb7c1 M12: Boards: mind maps in the document and engine (#2226, step 1) (#2228)
* M9: Boards: mind maps in the document and engine (#2226)

Part of #2226, step 1 of 4. A mind map node is a board object of its own (BoardItem::MindNode: a frame hugging its text, no box) and a branch is a connector marked `branch`; the tree is read from the branches alone. `board.mindMap` places a first node with three children and `board.mindMapAdd` adds a child or a sibling, each one undo step. The normalize pass (`board::settle_mind_maps`, `figcraft_doc::mind_layout`) lays a touched map out again from its first node: 88 between columns, 48 between siblings, each stack centred on its parent; a branch that no longer joins two layers of its page is removed. Branches are curved, stroke 4, #757575, round caps. Numbers are from a FigJam map saved and decoded. No toolbar entry, shortcuts or import yet.

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

* M12: Mind maps: a map around its own container stays put; a moved branch re-flows its old map (#2226)

A map holding a layer and something inside it is skipped by the settle pass (it never settled). Every touched branch now stirs its old ends, so re-attaching a branch's start re-flows the map it left. Boards without branches return early, a map over MIND_MAX_NODES is left whole, shift skips non-finite moves, and the doc tests share one six-node helper.

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

* M12: Mind maps: FigCraft's own starter texts (#2226)

A new map's starter children read "Idea 1", "Idea 2" and "Idea 3", as the design specified,
instead of the incumbent's wording, which the first commit had copied from the measurement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove and wrote

* M12: Docs: the mind-map revision rows go in the revision history (#2226)

The 2026-11-10 rows sat in ROADMAP.md's Headline numbers table and docs/roadmap.md's Alpha gate
table; each now opens its file's revision history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove and wrote

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 00:47:05 +01: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