The layers these two tools return can now be cut to the keys an agent
needs, with the same `fields` and `outline` options get_node and
inspect_document take. The options are checked before the edit runs, so
a bad one changes nothing, and without them the result is unchanged.
Closes#2535.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KudydNWQDXESHDpVmpiqZh
The zoom-in rule compared each request with the last full render, but
the canvas replaces its image with every preview it is handed. A zoom out
that showed its preview and was reversed before refining was measured from
the obsolete full image: after a 1x render, a 0.25x preview (0.0625 pixels
per unit) and a 2x request, the 2x preview was suppressed although the
screen held an image eight times less dense, and the late preview too.
Renders now records the image it hands over: a preview, a full render and,
in the browser, a full render shown while it is drawn again (Refined::Shown).
The watchdog's late preview is followed by its request's refined image,
which the render thread records, so it needs no record of its own.
previews_cover_the_view_for_any_zoom_and_density asked for previews in a
row with nothing refined between, so a preview inside the one before at its
zoom is now rightly suppressed; it restores its full render before each.
Reported by FredApps in review.
When renders from scratch take longer than about a frame, every new zoom
got a coarse preview first (#312), with a quarter of the pixels each way.
After a zoom out that is right: the old image, re-projected, covers a small
part of the view. After a zoom in it covers all of it, and enlarged up to
4x it is at least as sharp as the preview. During a pinch or a held zoom
each step also dropped its refined image as soon as the next step's request
came, so the canvas stayed coarse until the zoom stopped.
Now a zoom in to at most PREVIEW_FACTOR times the image last shown, inside
the area that image covers, gets no preview, up front or from the watchdog:
the image on screen stands in until the refined one comes. Zoom outs, other
pages and files, larger zoom ins and zooms to an area the image doesn't
cover still get previews. The browser's banded renders take the same rule,
measured from the last image finished rather than one still being drawn.
The previews' doc comments in render_worker.rs and zoom_preview_tests.rs
still say "a new zoom"; they now hold for zoom outs and large zoom ins.
Measured in the app on a page of 11 000 layers and 237 images (M4 Max),
39 zoom steps from 10% to 200%, read through `ui.inspect`: before, 5 of
them showed a preview; with this change none did, each showed the refined
image, and full renders at those zooms took 5-14 ms.
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.
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.
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
* 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>
The canvas takes the smallest copy that holds the size an image shows in
device pixels, whatever the canvas zoom, as #1483 did for images over
4096 px. The canvas row said the copy was no larger than the image shows,
and both changelog rows said views at 100% and closer draw from the image
itself; a 3000 px image fitted into a 600 px layer draws from a 1024 px
copy at 100%.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Step 1 moved its 2026-11-10 rows from ROADMAP.md's Headline numbers and docs/roadmap.md's
Alpha gate tables to the revision history; step 2's row follows them there, above step 1's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove and wrote
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
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
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
The canvas drew an image shown smaller than its pixels from a 4096 or 8192 px
copy, and an image of 4096 px or less from itself, whatever its size on screen.
A page of a few hundred photos zoomed out then asks the decoded-image cache
(512 MB) for several GB: every render decoded them again, and a zoom out took
seconds with the canvas empty around the old frame.
The copies now also come at 256, 512, 1024 and 2048 px, the smallest that holds
the size shown. Measured on a file with 237 images (median 5.8 MP), canvas
options, 2352 x 2090 view, M4 Max:
| zoom | before | after, first | after, again |
|---|---|---|---|
| 10% | 0.25 s | 0.12 s | 6 ms |
| 4% | 0.88 s | 0.46 s | 7 ms |
| 1% | 3.4 s | 0.9 s | 4 ms |
Peak memory over the run went from 3.9 GB to 2.3 GB. Exports and views at
100% and closer still draw from the image itself.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Figma holds a US registration for DEV MODE (US 7574348). Display text only: the view.devMode label, Inspect tab, shortcut row, refusal messages, CLI help, docs and all locale catalogs now say Developer Mode. Command ids, preference keys and saved fields are unchanged; "Dev Mode" stays a search alias in the Actions palette. Adds a naming guard test.
Add a 2,647-row zh-Hant catalog (1,975 UI strings, 641 command labels, 31 menu wordings), locale mapping for zh-TW/zh-HK/zh-MO/zh-Hant, and a Noto Sans CJK TC-first fallback. The catalog is marked draft pending native review; the web picker stays hidden because craft-fonts currently ships only the Simplified CJK face.
* M3: library analytics list how each style and variable is used
A file reports how many of its layers use each of a team library's styles and
variables, and Show usage lists them by a Type choice with their layers and
files. Layers in instances count for their component. Also ignores plugins/target.
* M3: the style analytics test waits for the instance report too
A widget description can have a line, 100 long and black and 1 thick unless told
otherwise, and an SVG that comes in as locked layers, scaled to fit a size and
within the widget's 256 layers. The Counter example uses both.
Both reports were checked by running them and are already fixed on main. Pins a rounded rectangle or frame stroking only the side asked for in every alignment, and SVG font families and ids leaving out characters XML forbids.
Bound variables with an iOS or Android code syntax are named in generated SwiftUI and Compose in place of their value: paints, stroke weight, sizes, corner radius, gaps, padding, opacity and text. A variable with none for the platform keeps the value.
Choosing Image shows a checkered placeholder and Upload from computer instead of a dialog at once; an image paint shows its asset preview. A file dropped on the open picker replaces the image, keeping the fill mode, crop, position and adjustments (image.replace, one undo step; paths capped as image.place's). The browser's file picker reaches the tab too. Also fixes a race in library_detach_tests.
Gap 10: a file counts the library instances it places, creates, pastes or duplicates and reports them like its detaches. The server counts what a file's totals grow past their highest in the current week and keeps a year of weeks (actions.json). library.usage {days} and Show usage give insertions and detachments over the past 30 days, 90 days or year. New variants are appended; an older server refuses them and Show usage says so.
A request line can carry timeoutMs beside id and method, capped at 600,000 ms; without it the wait stays 60 s and older apps ignore the field. figcraft-cli mcp --attach PORT --timeout SECONDS sends it with every request and reads the answers that much longer. A timeout's message says how long the request waited.
* M11: a widget opens its plugin's panel (plugin API 5)
Gap 6: a widget callback's ui_show opens the plugin's panel and keeps the module loaded; the panel's callbacks get the widget's id and state and redraw it in the same undo step. Older plugins' ui_show from a widget still opens nothing. The Counter example sets its count from a panel.
* M11: open_panel takes its opener as one value
Gap 14: variable.extendCollection and Extend collection on a collection's row in the Variables editor. Extensions follow edits of the collection they extend at once (normalising keeps them in step whenever variables change), extensions extend again, and a loop of extensions from a hostile file comes apart into plain collections.
* M4: the eyedropper with Cmd/Ctrl+Shift makes a colour style or variable of what it picks
* M4: the Create from color window's collection picker is its own function