4674 Commits
Author SHA1 Message Date
Dylan M. Taylor 5c2a378494 format: share PNG pHYs reader via craft-image-codecs (craft-libs#785) (#2547) 2026-11-21 13:28:27 -05:00
Dylan M. Taylor 390e5f4e4b format: cut over thumbnail decode and image dimension probing to craft-image-codecs (#2528) 2026-11-20 14:22:20 -05:00
Dylan M. Taylor 8320b6699e render,format: finish craft-image-codecs cutover and ICC/GIF/bounds parity tests (#2526) 2026-11-20 13:02:48 -05:00
f7acb637f0 M6: restore full JPEG export chroma (#2521)
* M6: restore full JPEG export chroma

* M6: check the JPEG matte away from the painted edge

* docs: keep the parity header's change level and describe the JPG chroma fix

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: FredApps <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-20 21:28:36 +07:00
Dylan M. Taylor 48ebd1b58b fix(render): clamp non-finite samples in thumbnail_f32 (#2525) 2026-11-20 08:06:16 -05:00
d1f08cee13 Adopt the shared AGENTS.md (RFC-0072) (#2517)
* Adopt the shared AGENTS.md (RFC-0072) and test rules (RFC-0071)

* Show the supported MCP root flags

* AGENTS.md: correct the repository facts

Add vectordrawable (L4) and collab-net (L6) to the layer list, and name the plug-in SDK that uses unsafe outside the workspace.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: FredApps <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-20 18:09:36 +07:00
Dylan M. Taylor d4d4b5760a render: preserve float thumbnail precision and verify output/ICC parity (#2518)
* render: preserve float thumbnail precision and add output/ICC parity tests

* test: match integer un-premultiplication in export_output_and_icc_parity
2026-11-19 23:55:48 -05:00
FredApps e97b644a39 Merge pull request #2515 from Terra854/fix/u16-thumbnail-precision
Preserve 16-bit precision when scaling thumbnails
2026-11-20 08:49:24 +07:00
Dylan M. Taylor c745cc615d Merge pull request #2513 from Terra854/fix/stored-raster-orientation
Preserve stored raster orientation in FigCraft
2026-11-19 19:44:17 -05:00
FredApps dcd2783fa5 SVG export: share path commands without changing coordinate bytes (#2516) 2026-11-20 07:04:42 +07:00
FredApps 5c50561fcd Dependencies: align craft-libs at merged SVG writer ea9407b3 (#2514) 2026-11-20 06:39:35 +07:00
Terra854 11bfa4db58 M8: preserve 16-bit thumbnail precision 2026-11-20 07:27:16 +08:00
Terra854 3120523acc M8: preserve stored raster orientation 2026-11-20 06:53:33 +08:00
Dylan M. Taylor 6b9fed9d0b chore(svg): route SVG XML export through craft_svg::write::SvgWriter (#2510) 2026-11-19 16:41:39 -05:00
Dylan M. Taylor 4e35fb9cea render: use shared raster decoding and export (#2501)
* render: use shared raster decoding and export

* render: fix Cow<Image> ownership and run cargo fmt
2026-11-19 14:00:49 -05:00
Dylan M. Taylor b45255bb6f chore(pdf): cut over figcraft-pdf to craft-pdf (#2469) 2026-11-18 20:59:55 -05:00
BFlat a80ca002a4 Merge pull request #2480 from storytold/feat/text-position-2338
M4: Type settings ▸ Details ▸ Position sets superscript or subscript (#2338)
2026-11-19 07:22:50 +07:00
BFlat 6cc578cede Merge pull request #1810 from SoldierPePe/i18n/rtl-panel-rows
M10: panel rows and the layers list mirror in a right-to-left UI
2026-11-19 07:12:03 +07:00
Dylan M. Taylor 9b04f4c99e cutover: use craft_jpeg::finer_than_first (#2478) 2026-11-18 19:10:44 -05:00
bflatastic 891b632996 M4: Type settings ▸ Details ▸ Position sets superscript or subscript (#2338)
The engine draws superscript and subscript (#1868), but nothing in the
interface set them. Details now starts with Position: None, Superscript
or Subscript for the selected text layers, through text.setFeatures
(choosing one clears the other), showing the layers' current position
and none when they differ. Raising a range of characters on its own
needs per-run features and is left for later.
2026-11-19 06:57:54 +07:00
BFlat 433639d5f7 Merge pull request #2479 from storytold/fix/pencil-shift-2447
M1: Shift with the Pencil draws a straight line at 45° steps (#2447)
2026-11-19 06:57:20 +07:00
bflatastic fbeea11c4c M1: Shift with the Pencil draws a straight line at 45° steps (#2447)
Shift did nothing with the Pencil: the stroke stayed freehand, while the
Line tool and the Pen keep theirs to 45° steps. pencil_add, shared by the
drag and the release, now keeps one straight segment from where the
stroke started to the pointer at the nearest 45° step while Shift is
held (the Marker and Highlighter too); a Shift-click without a move still
draws nothing.
2026-11-19 06:30:36 +07:00
BFlat 41be247d9f Merge pull request #2477 from storytold/fix/main-svg-fmt
M6: svg import drops the scanners craft-svg replaced, so main passes fmt, clippy and its tests again
2026-11-19 06:30:13 +07: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
bflatastic fb21b3c389 M6: svg import drops the scanners craft-svg replaced, so main builds and passes fmt again (#2468)
#2468 moved SVG import onto craft_svg::tree::parse, which runs the size,
entity, attribute and nesting checks itself, but left FigCraft's own
scanners (too_wide, too_deep, nesting) and import/budget.rs unused and
import.rs unformatted: main failed cargo fmt, clippy -D warnings and the
svg tests, which still passed budget::Limits to import_within.

The dead code goes; budget_tests use craft-svg's tree::Limits (bytes,
embedded_bytes, embedded_depth) and its error texts, and hostile_tests
check attribute width with craft_svg::guard::too_wide at the default
limits and the nesting refusal at craft-svg's 256 levels.
2026-11-19 06:00:08 +07:00
BFlat f8b1dc7373 Merge pull request #2444 from B-uchi/pr/design-context
M8: design context for AI agents
2026-11-19 05:51:53 +07:00
BFlat cc64a74a72 Merge pull request #2438 from B-uchi/pr/inspect-dashcap
M8: inspect fields accepts dashCap, which node.get already writes
2026-11-19 05:49:45 +07:00
Dylan M. Taylor 5c69112684 svg: cut over SVG import parsing to craft-svg (#2468) 2026-11-18 17:21:52 -05:00
BFlat 202b748083 Merge pull request #2465 from storytold/fix/component-name-header-2347
M3: the Design panel's header names the selected component or set (#2347)
2026-11-19 04:21:09 +07:00
BFlat 322bf16c8e Merge pull request #2463 from storytold/fix/library-style-hops-2414
M3: a library's style that reaches a file through another library stays bound (#2414)
2026-11-19 04:19:30 +07:00
BFlat f2696e0dbf Merge pull request #2464 from storytold/fix/rest-binding-warnings-2441
M6: REST import reports node-level paint and effect bindings only when something is lost (#2441)
2026-11-19 04:05:50 +07:00
bflatastic e1b96dc5c8 M3: the Design panel's header names the selected component or set (#2347) 2026-11-19 03:59:15 +07:00
bflatastic 0e5070d6cf M3: a library's style that reaches a file through another library stays bound (#2414)
Publishing keeps the variables its styles bind and where its copies of other libraries' assets came
from; importing files such a copy under that library when the file links it.
2026-11-19 03:54:44 +07:00
BFlat f51606ca4e Merge pull request #2462 from storytold/fix/variant-own-value-2349
M3: a selected variant's property dropdown shows and sets its own value (#2349)
2026-11-19 03:50:51 +07:00
bflatastic a88580470b M6: REST import reports node-level paint and effect bindings only when something is lost (#2441) 2026-11-19 03:42:03 +07:00
BFlat 964e7da7ec Merge pull request #2460 from storytold/fix/fixed-in-window-2430
M5: a fixed header stays in the window to the end of the page without a device (#2430)
2026-11-19 03:39:27 +07:00
.CooCoo 260fd4d8ef Dependencies: take craft-libs main at 453b0da782 (#2412)
* Dependencies: take craft-libs main at 3af2280ee3

Every craft-libs crate in the workspace now comes from one commit,
3af2280ee3434a2c860012df2f440652621c2c81. They were on five revisions:
e11f9d9a, d13ac58a, 976eb51c, e9829954 (craft-update) and fd5e2fef
(craft-web-api and craft-web-host). Cargo.lock now holds one craft-zip
instead of two.

No FigCraft code changes. The new craft-font-store adds cap-primitives
and its dependencies to Cargo.lock.

* Dependencies: drop pin comments the craft-libs move made untrue

craft-update now uses the same craft-libs rev as the other crates, and
craft-window comes from craft-libs main. Remove the comment that says
craft-update is pinned separately and the comment that says craft-window
is pinned to an unmerged branch.

* Tests: look up craft-fig with cargo metadata filtered to the host

The i18n key test finds the craft-fig sources with `cargo metadata
--offline`. Since craft-font-store depends on cap-primitives, the graph
holds winx, which only Windows uses. Without a platform filter, cargo
metadata needs every platform's sources and failed on Linux CI with
"failed to download `winx v0.36.4`". The query now passes
`--filter-platform` with the host triple from `rustc -vV`.

* Dependencies: take craft-libs main at 453b0da782

Every craft-libs crate in the workspace moves from 3af2280ee3 to
craft-libs main at 453b0da782, and craft-sketch moves from ff142b3ad5
to the same commit. Cargo.lock now holds one craft-figma-rest and one
craft-zip instead of two of each; no other package changes.

* Dependencies: drop the design-file pin comment that no longer holds

craft-penpot, listed above the design-file crates, uses the same
craft-zip as craft-fig and craft-figcraft-format, and every craft-libs
crate is now on one rev, so the comment's reason for a separate rev is
removed.
2026-11-18 15:22:39 -05:00
bflatastic 116094a6db M3: a selected variant's property dropdown shows and sets its own value (#2349)
It showed the set's default, and choosing a value set the default, so the variants swapped places.
2026-11-19 03:16:35 +07:00
BFlat 86139e88fb Merge pull request #2459 from storytold/fix/code-language-names
M12: one table for a code language's id and name
2026-11-19 03:16:32 +07:00
BFlat 024fba5bd2 Merge pull request #2454 from storytold/fix/outline-text-2405
M4: Outline stroke on a text without a stroke outlines its glyphs (#2405)
2026-11-19 03:15:26 +07:00
bflatastic 48c9d3fb14 M5: a fixed header stays in the window to the end of the page without a device (#2430)
Without a device, a frame taller than the window scrolled its content and then panned whole, taking
fixed and sticky layers off the top. A frame with them now takes the window as its screen.
2026-11-19 03:14:39 +07:00
BFlat 2a936671b2 Merge pull request #2455 from storytold/carry/2104
M8: dragging near the canvas edge pans the view, as in Figma (#2015)
2026-11-19 03:13:15 +07:00
B-uchi 8dffbf87a1 M8: design context keeps its assets to the layers returned and says when a join stops
From review: the asset list follows the layers placed in the tree, so a
smaller tree (maxNodes, or the MCP tool's retry for maxBytes) means a smaller
list, and `truncated.assetsLeftOut` counts the rest; following aliases reports
`truncated.variables` when it stops at its budget with variables still to
read; and a font is checked with figcraft_text::has_family by its trimmed name,
as the missing-fonts list does, so a family stored with outer spaces isn't
taken for installed. A regression test for each fails without its fix.
2026-11-18 20:59:19 +01:00
bflatastic 05c719d0b1 M12: one table for a code language's id and name
The id and label matches listed every language twice (Sonar's duplication gate on #2457).
2026-11-19 02:41:28 +07:00
bflatastic 50d94f98c8 M4: an empty text stays as it is under Outline stroke (#2405) 2026-11-19 02:39:15 +07:00
B-uchi ae592a0d71 M8: design context joins aliased and style-bound variables, and reads only valid targets
From review: the variables a style binds and those an alias or colour
calculation reads are joined too, followed to any depth; fonts come from the
text layers placed in the tree, so a second target's font isn't lost to a
separate walk's budget; and a malformed `id` or `ids` entry is an error
instead of reading the selection or dropping the entry. A regression test for
each fails without its fix.
2026-11-18 20:37:44 +01:00
B-uchi de6c66838d Credit: add B-uchi's name for the About window 2026-11-18 20:37:44 +01:00
B-uchi 2d4309c9aa M8: design context for AI agents
inspect.designContext and the MCP tool design_context read the selection (or
ids, or a scope) in one call. Each layer keeps apart the values the designer
set (explicit), those layout or the file worked out (derived) and those with no
direct CSS equivalent (unsupported, with the reason). The variables (every
mode's stored and resolved value), styles, components, fonts and assets the
tree uses are joined once, and `missing` says what the design doesn't specify.
A connected instance gives its code snippet instead of its layers. Large trees
are capped and say so, and the MCP tool asks for fewer layers until the result
fits the client.
2026-11-18 20:37:44 +01:00
bflatastic 79a1ea4a42 M8: keep the canvas input under the complexity limit with edge panning (#2104)
The pan past the canvas edge moves into a helper of its own.
2026-11-19 02:36:08 +07:00
BFlat 0d7135c679 Merge pull request #2457 from storytold/carry/2282
M12: boards: code blocks (doc and engine): a board code block that hugs its lines, with a language (#2237)
2026-11-19 02:33:25 +07:00