Commit Graph

2658 Commits

Author SHA1 Message Date
bflatastic 48ba8b81ac M4: Chinese text draws in one design when its CJK family is missing (#1223)
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.
2026-12-03 09:57:26 +07:00
BFlat b3a29e98fa Merge pull request #2924 from storytold/bug/281-1180-bug-report-figcraft-stylus
M1: a pen on a Wayland session opens the window through XWayland, so it draws (#1180)
2026-12-03 09:51:02 +07:00
BFlat fb7d241103 fix(render): touching rectangles leave no hairline where they meet (#544) (#2927)
* 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.
2026-12-03 09:49:53 +07:00
BFlat c4a627fb2e M9: web: a workspace page publishes every new file to its server (#2119, part) (#2958)
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.
2026-12-03 07:19:53 +07:00
BFlat 89eea4d09d Merge pull request #2922 from storytold/feat/255-2502-feat-cli-let-a-confined-ins
M9: the confined desktop app reaches the servers --automation-allow-server names (#2502)
2026-12-03 07:15:53 +07:00
bflatastic e794660324 M1: a pen on a Wayland session opens the window through XWayland, so it draws (#1180) 2026-12-03 06:41:45 +07:00
BFlat a86154580f Merge pull request #2918 from storytold/bug/254-316-bug-report-intermittent-grap
M1, #316: the window draws on the power-saving GPU on every start
2026-12-03 06:33:57 +07:00
BFlat 11d12696d8 Merge pull request #2956 from elliotttate/perf/2955-image-cache
perf(render): pages of a large image-heavy file stop decoding their images again on every zoom (#2955)
2026-12-03 06:32:56 +07:00
bflatastic cb3377431a M9: a confined session reconnects to an allowed server (#2502) 2026-12-03 06:31:50 +07:00
BFlat 0c772d2bfa Merge pull request #2919 from storytold/bug/264-1402-online-publishing-fails-pub
fix(server): a public server fills by bytes, and a full file count says the server is full (#1402)
2026-12-03 06:02:17 +07:00
bflatastic d7900bf0f0 Merge remote-tracking branch 'origin/main' into pr/2956-367
# Conflicts:
#	crates/render/src/images.rs
2026-12-03 05:49:41 +07:00
bflatastic d279522ea5 M1, #316: a failed start tries the high-performance GPU next
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.
2026-12-03 05:46:30 +07:00
bflatastic d467e64fc8 M1, #316: the window draws on the power-saving GPU on every start
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.
2026-12-03 05:37:49 +07:00
BFlat e7f3e11469 Merge pull request #2948 from storytold/feat/337-2946-add-a-notification-center-w
M1: a bell in the tab bar keeps the session's messages, with unread and copy (#2946)
2026-12-03 05:36:50 +07:00
bflatastic 2bd8d6f2b3 fix(server): install.sh adds max_files to settings written before it (#1402) 2026-12-03 05:14:43 +07:00
BFlat 69ca66bfdd Merge pull request #2925 from storytold/feat/291-1013-feature-request-figcraft-ad
M6: a layer with a video fill shows a video mark in the layers panel (#1013)
2026-12-03 05:09:27 +07:00
bflatastic 0fa36e7c6a Merge remote-tracking branch 'origin/main' into pr/2948-341
# Conflicts:
#	ROADMAP.md
#	crates/ui-egui/locales/en.toml
2026-12-03 05:06:41 +07:00
BFlat ccf064fe29 Merge pull request #2954 from storytold/bug/360-2952-child-vector-paths-do-not-s
M6: an imported SVG's drawing scales with its frame (#2952)
2026-12-03 05:02:07 +07:00
BFlat f24d8de022 M9: a live change that takes longer than the idle timeout to upload no longer drops the connection (#1382) (#2926)
* 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)
2026-12-03 05:00:55 +07:00
bflatastic 23c3430f42 docs: #2955 timings match the PR's final measurements 2026-12-03 04:57:34 +07:00
elliotttate be04080442 perf(render): pages of a large image-heavy file stop decoding their images again on every zoom (#2955)
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).
2026-12-02 16:26:57 -05:00
bflatastic 865faafd53 M6: cover strokes and text in the imported SVG resize tests (#2952) 2026-12-03 04:17:24 +07:00
bflatastic d81d2bbae4 M6: an imported SVG's drawing scales with its frame (#2952) 2026-12-03 04:17:13 +07:00
bflatastic 444befcfa5 Merge remote-tracking branch 'origin/main' into pr/2929-357
# Conflicts:
#	docs/parity-checklist.md
2026-12-03 04:09:29 +07:00
BFlat 131f22965f Merge pull request #2909 from storytold/cp/223-1689-export-assets-in-the-folder
M6: app project layouts in figcraft-cli export --layout and the Export dialog (part of #1689)
2026-12-03 04:01:39 +07:00
BFlat dfa4b34335 Merge pull request #2947 from storytold/feat/333-2944-plugins-read-only-access-to
M11: a plugin can read the images a document holds (#2944)
2026-12-03 03:53:03 +07:00
BFlat fdf4a2d29c Merge pull request #2930 from storytold/task/293-turn-iff-auto-github-runs
ci: workflows run only when started, not on every push or pull request
2026-12-03 03:43:15 +07:00
bflatastic 79b8fd15d8 Notifications: Copy goes through the clipboard fence, a repeat moves to the top, false always marks read, view-only refuses opening 2026-12-03 03:04:49 +07:00
bflatastic e7a8e16161 Nightly: a candidate's CI run may be started by hand on main 2026-12-03 03:03:42 +07:00
bflatastic e887bc6426 docs: CI and SonarCloud start by hand, including on main before a nightly 2026-12-03 02:54:31 +07:00
bflatastic 858c4435ff export --layout refuses .fig and .penpot destinations; layers past the file limit fail the CLI and show in the toast 2026-12-03 02:53:32 +07:00
bflatastic dc71f20498 M6: app project layouts in figcraft-cli export --layout and the Export dialog (part of #1689) 2026-12-03 02:53:31 +07:00
BFlat c2d599bc76 Merge pull request #2949 from storytold/feat/338-2945-show-upload-progress-and-se
M9: show upload progress and server-confirmed sync status (#2945)
2026-12-03 02:51:40 +07:00
BFlat 83100f906c Merge pull request #2907 from storytold/cp/226-1680-feature-request-figcraft-co
M4, #1680: notched (inside square) corners, and .sketch corner styles stay live
2026-12-03 01:51:05 +07:00
bflatastic 96123c469e image.data: read a text's character fills; refuse a plugin's oversized image before encoding
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.
2026-12-03 01:46:36 +07:00
bflatastic a9db939688 M9: show upload progress and server-confirmed sync status (#2945)
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.
2026-12-03 01:02:17 +07:00
bflatastic 40e30e6cd6 M1: a bell in the tab bar keeps the session's messages, with unread and copy (#2946)
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.
2026-12-03 00:44:43 +07:00
bflatastic 2fd90b1d49 M11: a plugin can read the images a document holds (#2944)
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.
2026-12-03 00:29:57 +07:00
BFlat 6975590011 docs: install with brew install --cask figcraft (#304) (#2916) 2026-12-03 00:19:49 +07:00
bflatastic ec5415904d M7: an Icons tab downloads open icon libraries and places their icons (#1300)
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.
2026-12-02 17:16:57 +07:00
bflatastic 0e0f59064d M6: a layer with a video fill shows a video mark in the layers panel (#1013) 2026-12-02 16:41:26 +07:00
bflatastic 8495573887 M9: the confined desktop app reaches the servers --automation-allow-server names (#2502)
`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.
2026-12-02 16:12:33 +07:00
bflatastic ee5dbf06bd fix(server): a public server fills by bytes, and a full file count says the server is full (#1402) 2026-12-02 15:59:28 +07:00
bflatastic 449fa747b3 M4, #1680: notched (inside square) corners, and .sketch corner styles stay live 2026-12-02 15:32:57 +07:00
BFlat 5975fa0ded M5: the presenter's detail margin grows it to at most half the whole-frame texture's pixels (#2879) (#2902) 2026-12-02 15:32:20 +07:00
BFlat c7546e9e0e M6: Open and import Adobe XD (.xd) files, best effort (#2077) (#2912)
* 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.
2026-12-02 10:16:44 +07:00
BFlat 61947923d4 M11: a plugin can read the web hosts its manifest names (#1883) (#2911)
* 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).
2026-12-02 09:59:01 +07:00
BFlat b6f3b70c78 Merge pull request #2900 from storytold/cp/pr-2884-149
M7: Uno variables export follow-up: P3 colours as sRGB, stable keys, export warnings shown (#2170)
2026-12-02 09:52:31 +07:00
BFlat 61b7590a79 M8: Redraw layers while dragging can be turned off, so only the outline moves (#1569) (#2913)
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.
2026-12-02 09:21:10 +07:00
bflatastic 95ee02cc3e docs: components parity row for the Uno variables export follow-up 2026-12-02 09:17:34 +07:00