A page that runs the app in its own document cannot always add ?control to its URL. data-control means the same, like data-save=managed
means ?save=managed. query::control takes it as a second argument; nothing changes without the attribute or the query entry.
Refs #2977
* M4: gradient handles on a straight line show where their stops paint (#2967)
* M4: a snapped pen click that wobbles pulls out no handle (#2967)
* M4: paste into another frame keeps the place the layers had in theirs (#2967)
* M4: Paste to replace takes SVG another app put on the clipboard (#2967)
* docs: parity log for #2967
fill.add and stroke.add take `replace`: the new paint takes the place of
every paint on each layer, their bindings going with them, and every layer
gets the same default (the first layer's). The Design panel's + passes it
when the selection's paints are mixed and opens the picker on that paint,
so it edits the whole selection at once. One undo step restores the old
paints.
`fill` and `fills/0/color` name the same paint colour, but variable.bind
added the new key beside the old one, so after the style picker changed a
variable bound through the indexed key, a detach brought the old one back.
Test: paint_reorder_tests::binding_a_paint_through_another_key_replaces_its_binding.
A library enabled in a file that couldn't be read (its file no longer
publishing a library, gone, or holding another library now) was left out
of the style and variable pickers without a word. Its styles and variables
weren't listed and the one a layer used wasn't marked, so it looked as if
the file had lost them; only the Assets panel's library list said why.
Both pickers now open with a line per such library above the list:
"<library> isn't connected, so its styles and variables aren't listed:
<reason>", the reason being the one the Assets panel gives. It is drawn in
the error colour and is a label for screen readers, so the colour isn't
the only sign. A library not read yet says nothing, since it is on its way.
Tests: unconnected_library_tests (2).
A fill or stroke whose colour is bound to a variable showed the variable's
name in a chip that only had a tooltip, so changing it to another meant
detaching it first or opening the section's Styles menu. The chip is now a
button (a combo box for screen readers). For the only paint of its list it
opens the style picker the section's Styles button opens, which lists
styles and colour variables; for one of several paints it opens the
variable picker for that paint, since the style picker acts on the whole
list; for the page background it opens the variable picker.
Neither picker marked the variable in use, so the one to change from was
not shown. Both now put a check on it (and mark it selected for screen
readers): the variable picker for the field it binds, the style picker for
the first paint of its slot or a Selection colors row's paints. A library
variable is matched by the copy this document made of it. Both also open
scrolled to it, and the style picker to the style in use: with styles
listed first, a variable in use sat far below the top the list opened at.
The scroll is instant (an animated one would still be moving when the
picker shows) and waits for the popup's shown pass, since its first pass
only measures it.
Tests: bound_paint_chip_tests (3), and the library variable in
selection_colors_picker_tests::the_rows_styles_button_opens_the_style_picker_with_search_and_library_names.
A file with a published library put on a server (Publish to server) lost
the library in its tab. The server's copy leaves a published library out
(Replica::new clears it), and the tab took that copy when the file arrived
back from the server, and again with every confirmed batch, undo and redo.
Saving the tab to its file then wrote the file without its library, so
every file using it lost its link ("has no published library") and its
styles and variables were no longer listed or marked in their pickers.
The copy a tab takes now keeps the published library the tab had
(with_own_library, at the welcome, at confirmed batches and at undo and
redo). The shared file still leaves it out: a library goes to a server
on its own (Publish library to server).
Test: live_library_tests::a_file_put_on_a_server_keeps_its_published_library_when_saved.
A double-click on a cell of the auto layout alignment grid did what a click
does, so going from Space between to items packed at one point, or back,
meant opening the Auto gap menu. A double-click now switches: with an auto
gap (between, around or evenly) the items pack at the cell, main and cross;
packed items spread out with space between, at the cell's cross alignment.
A click still aligns at the cell, an auto gap keeping its mode, and grid
layouts are left as they were.
The double-click's second click is also a click, so the double-click is
handled first and the click only when it isn't one: two commands in one
frame would read the same layout and the second would undo the first.
Tests: align_grid_double_click_tests (3).
The compact decoder routed kind fields through a hand-written key list that
missed TextData::word_break, so a text layer's word break was dropped when a
file used mirrors or had a \u escape. Hand every unclaimed key to NodeKind's
own deserializer instead, and note the compact layout in the parity doc.
A round handle on the middle of a selected text's bottom edge scales the text about its top-left corner as the bottom edge follows the pointer: down makes it bigger, up smaller. It reuses the Scale tool's scaling, so the pixel line height and letter spacing keep their proportion, the font size lands on whole pixels from 1 to 5000, a press without a drag changes nothing, and a drag is one undo step with a Font size readout.
The window now runs craft_automation's AgentLink and AgentSwitch for the
agents channel (token, challenge handshake, connection file, retry,
stop on switch-off) and forwards its requests into FigCraft's control
queue, each confined to the agent folders as before; FigCraft's own copy
of that code is gone. Preferences offer the shared Agents page (AI
agents..., with the suite's AI-MCP flag) over Prefs::agents, changed by
the new pref.agents command, which an agent's confined request can't
use. figcraft-cli mcp reads the saved settings (folders, When FigCraft
is closed), takes --when-closed, signs in to the window with the
challenge handshake, deprecates --attach and gets the agent_folders tool
(control method agent.folders). The --control server is stopped on exit.
Closes#2963.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A missing CJK family (Noto Sans SC) draws in an installed family of the
language its name ends with (SC, TC, HK, JP, KR), and a text's ideographs
take the one fallback face with the most of a span's, so a Japanese face
no longer draws some of a Chinese label's ideographs and a Chinese face
the rest.
* fix(render): touching rectangles leave no hairline where they meet (#544)
* fix(render): snap a box side only where neighbours meet its whole length (#544)
A side moved when any part of it touched a sibling, so a long box beside
a short one lost the exact coverage of the part touching nothing. Edges
that differed by under 1/4096 unit also counted as shared, closing
sub-pixel gaps at high zoom.
Now a side snaps only when sibling sides within a sixteenth of a device
pixel cover its whole length. Sides that match round to the nearest
pixel alike; a short side against a longer one rounds outward over it
and the longer one stays exact.
* fix(render): round a short side outward only over opaque boxes (#544)
A short side meeting part of a longer one rounds outward over it, so
the shared pixel strip is drawn by both boxes. With a translucent fill
or node opacity that strip showed darker. It now rounds outward only
when the box and every neighbour on that line are opaque and normally
blended; otherwise that side keeps its exact edge.
* fix(render): sides that meet round from one shared line (#544)
Sides within the tolerance of each other counted as shared but each
rounded its own position, so a pair straddling a half pixel landed on
different whole pixels and left a one-pixel gap. Matching sides now all
round the same line, the lowest of their positions.
* fix(render): tiny layers in the zoomed-out preview snap shared sides too (#544)
Rectangles under two device pixels skip splat_fills and go straight to
splat_subtree, so a block of them still showed a lighter seam far
zoomed out. splat_subtree now fills the snapped box as well, except
under a translucent parent, whose opacity it applies to each layer on
its own.
* fix(render): leave layers the editor draws itself out of shared edges (#544)
A sibling in the render's skip list isn't drawn, so a box beside it
kept its exact edge rather than snapping to meet it.
A browser page that names its figcraft-server and says <meta name="figcraft-workspace" content="on"> opens on Home > Online and publishes every file made or opened there to that server once, through collab.publish, so with the server's team_publish each new design is on the team list at once and every edit is kept there. A file already on a server is never republished as a copy; a refused publish leaves the file local with the server's reason. Docs: packaging/web/README.md, docs/server.md, docs/collaboration-parity.md.
Every start asked for the power-saving GPU, so when its driver failed
before the first frame, every retry took the same GPU. The second attempt
is now the first backends again on the high-performance GPU, as the
first start was before.
eframe asks wgpu for the high-performance GPU, which took the NVIDIA GPU
of a laptop with Intel and NVIDIA graphics; under nouveau it covered the
window in repeated patterns. The canvas is drawn on the processor and the
GPU only shows the window, so every start now asks for the power-saving
GPU, as only the fallback start did. WGPU_POWER_PREF still chooses.
* M9: a live change that takes longer than the idle timeout to upload no longer drops the connection (#1382)
* M9: the slow-upload test holds the uplink up instead of trickling it, so Linux's send buffers don't end the upload early; the grace after an upload ends once the host is heard from (#1382)
* M9: the host's silence is excused for an idle period after an upload ends, even when the reader's timeout fires just after it (#1382)
* M9: every upload, however short, excuses the host's silence for an idle period after it, once per silence (#1382)
The decoded-image cache held 256 copies whatever their size, fewer than one
page of such a file shows, so a render dropped copies it needed again. Image
adjustments ran per pixel at full size after every decode, and a copy at a new
size, or a shadow's opacity check, decoded the image again.
- The cache holds up to 4096 copies within its unchanged 512 MB budget.
- Adjustments are looked up in a table of the colours an image has met (the
same results).
- A canvas copy at a smaller size is averaged down from a larger cached copy;
exports reuse only the full decode, so their pixels are unchanged.
- An image's opacity is remembered with its full size after one look.
Tests: image_reuse_tests; timings: real_file_bench_tests (FIGCRAFT_BENCH_FILE).