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).
A text layer shows its characters' fills, so reading by layer now uses the
shared character list. The plugin host checks an image's encoded size
against the reply limit before the command base64-encodes it.
A session you joined or published now says where your changes stand on
their way to the server, and calls them saved only once the server has
confirmed them: Preparing, Uploading (bytes sent of the total), Waiting
for the server to confirm, All changes saved to the server (with when),
changes not yet saved while reconnecting, and when the server last had
everything after a failure.
The Share popover shows the line with a progress bar; a tab whose changes
have been on their way for a second shows a thin bar and the line on
hover. collab.peers reports upload and confirmedAt. The desktop
connection counts what it writes, a large change in 256 KiB pieces, and
reports it to the session's inbox; the browser can't measure its socket
and shows waiting.
Every message shown at the bottom of the window is kept for the session
(the newest 200; the same message again moves to the top). A bell left of
the theme toggle carries a dot while some are unread and opens a list: each
message with how long ago it showed, selectable text and Copy. Closing the
list marks them read; Clear all empties it. The control channel reports
them in ui.inspect (notices) and ui.set {notices} opens, closes or clears
the list.
New command image.data {image} or {ids?, target?, index?} returns {image, format, width, height, bytes, data}: an image the file holds, by its key (a paint's `image`) or a layer's image paint, with data as base64 of the original file, never re-encoded. It changes nothing, so plugins with read access may call it; a result is bounded by the 16 MB message limit like any other. MCP reaches it through run_command.
The left sidebar gets an Icons tab (desktop). It offers Phosphor Icons
(six weights) and Bootstrap Icons (outline and fill), both MIT. Download
fetches the library's pinned npm archive, checks its size and sha256 and
unpacks the SVGs and licence into FigCraft's icons folder. Icons are then
searched by name, shown in one variant, and a click places one in the
middle of the view at the size and colour set above the tiles, as
editable vector layers.
icons.libraries, icons.download, icons.search and icons.insert work from
the CLI, control channel and MCP. The first Download in the tab is what
allows downloading; no command can. A session confined to automation
roots doesn't download, as with other network commands, and the in-app
agent asks before icons.download.
`figcraft --control PORT --automation-read-root DIR --automation-write-root DIR
--automation-allow-server wss://host/` lets the window, its control channel and
`figcraft-cli mcp --attach` join, publish to and share on that server, with the same
matching as headless MCP (scheme, host, port, path prefix). Everything else stays off
the network. A malformed allowed server, or one given without a root, stops the app.
The check of an allowlist entry moves to `Endpoint::allowlisted` in collab-net, so the
app and the CLI share it.
* M6: Open and import Adobe XD (.xd) files, best effort (#2077)
The archive's artboards, pasteboard layers, groups, rectangles, circles,
lines and paths, solid, linear-gradient and image fills, strokes, opacity,
drop shadows and blurs, clip paths and text with styled ranges are mapped
onto the REST importer, as the .sketch import is. Point text is measured
so its first baseline and aligned edge stay where the file put them.
File > Open, Import, drop, CLI and MCP take .xd files, in the browser too.
* M6: XD import: clip paths take only shapes, one style range keeps its decoration, groups refit after point text (#2077)
From review: a clip path holding a group clipped by itself recursed without end;
a single style range covering a whole text dropped its underline or strikethrough;
groups kept the bounds of the guessed text size after the point text was measured.
* M11: a plugin can read the web hosts its manifest names (#1883)
A plugin can read fresh data (catalogues, tokens, translations) from exact hosts it names in permissions.network (plugin API 9: allowedDomains, methods GET/HEAD). The new http_request host import asks FigCraft for an https:// address on one of those hosts; FigCraft makes the request through the session's network link with no credentials, follows no redirects (the plugin gets status and location), allows 8 requests per run or callback and fails a response over 4 MB. Any other scheme, host, port, user info or method is refused before anything is sent, and a session confined to automation roots makes no requests.
Importing such a plugin needs the user's approval: plugin.import takes confirm: true for it and check: true to report what a manifest asks for without installing it; the app's import shows the hosts with Import and Cancel. Manage plugins lists the hosts. A plugin directory entry can't show the hosts yet, so directories neither publish nor install such plugins. The SDK gains http_request.
* Plugin web requests reach only public addresses, and an approved import must match what was shown
Review fixes for #1883. A plugin's request uses no proxy and a resolver that keeps only public addresses, so a host that resolves to this computer or the local network (an approved name rebinding to one included) is refused when it connects; IP literals are refused in permissions.network. The app's Import passes the network permission it showed as confirm, and plugin.import refuses a manifest that now asks for other hosts or methods (confirm: true still works for scripts).
Preferences > Redraw layers while dragging (`pref.liveDrag {on?}`, on by
default, Shift+Cmd/Ctrl+D). Turned off, a move renders the document the drag
started from, so the layers stay where they were and only their selection
outline follows the pointer; nothing is rendered until the release draws them
at their new place. The shortcut says at the bottom whether it is on or off,
and the main menu's Preferences shows a check mark.