Commit Graph
2051 Commits
Author SHA1 Message Date
bflatastic 50df6a4ecd Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/ui-parity.md
2026-11-27 14:03:54 +07:00
BFlat 848d7b40a4 Merge pull request #2212 from TKlerx/codex/2210-fig-prototype-actions
Preserve variable and conditional prototype actions in .fig exports
2026-11-27 13:47:21 +07:00
BFlat de547a0d0d Merge pull request #2446 from B-uchi/pr/asset-handoff
M8: asset handoff for code projects
2026-11-27 13:46:59 +07:00
BFlat 1673da23fc Merge pull request #2645 from storytold/rfc-0018-figcraft-cli
figcraft-cli: follow RFC-0018
2026-11-27 13:46:46 +07:00
BFlat 9ade4969e4 Merge pull request #2472 from denisg0mes/present-actual-size-edge-to-edge
M5: At 100% a presented frame reaches the window's edges
2026-11-27 13:45:43 +07:00
BFlat a785aead6f Merge pull request #2486 from denisg0mes/pasted-image-keeps-its-proportions
M2: A locked-ratio child filling one axis of auto layout keeps its proportions
2026-11-27 13:45:36 +07:00
BFlat b52c55e670 Merge pull request #2616 from denisg0mes/export-bounds-tight-strokes
M8: a layer exports at the size of what it draws, strokes as drawn
2026-11-27 13:45:12 +07:00
BFlat 09236df3d8 Merge pull request #2558 from MMexicann/patch-24
docs(cli): explain how export resolves layer names across pages
2026-11-27 13:43:51 +07:00
BFlat 39f3da9451 Merge pull request #2551 from MMexicann/patch-18
docs(cli): explain selected-layer exports to a directory
2026-11-27 13:43:30 +07:00
BFlat 0e4660b53c Merge pull request #2546 from MMexicann/patch-14
docs(cli): clarify what a failed script rolls back
2026-11-27 13:43:11 +07:00
BFlat 259812b11f Merge pull request #2542 from MMexicann/patch-10
docs(cli): list Penpot as a convert input
2026-11-27 13:42:53 +07:00
FredApps 8d50b20c64 figcraft-cli: follow RFC-0018 (run(args,out,err), typed errors, env flags, --in-place, man pages and completions) 2026-11-26 22:34:19 +01:00
FredApps 0622efe1e1 Merge main into mind maps UI (code blocks and mind map nodes both handled in board.addNext, colour and docs) 2026-11-26 21:01:37 +07:00
FredApps 589ea07094 Merge main into fix/drag-sprite-2033
Doc conflict only (docs/ui-parity.md): kept main's header and changelog rows and added this PR's #2033 clause and row next to them.
2026-11-26 19:43:55 +07:00
FredApps 4cfed8dc63 Merge main into fix/kscale-bound-values-2090
Doc conflicts only (docs/components-parity.md, docs/ui-parity.md): kept main's header and changelog rows and added this PR's #2090 Scale tool clause and row next to them.
2026-11-26 19:22:14 +07:00
skylar taylor-barrick 79ba8894b3 Switch on supervised nightlies on the nightly-signer branch (#2636)
Supervised nightly switch-on, merged under Skylar's explicit Nightly 758 override after green CI, CodeRabbit on this head with no open threads, Sonar passing, and an independent adversarial review with no blockers.
2026-11-25 20:44:36 -06:00
Dylan M. Taylor ef2a9eeefc packaging(linux): support co-installable nightly packages (#2603)
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-24 18:55:17 -06:00
Denis Gomes 35ca50280f Paste properties into another file pastes no links
Whether a copied style or variable was there to link to was decided by
its id, and ids are numbered per file: the first style of every file is
S:1. Pasted into another file that had styles or variables of its own,
the copy linked to whichever of them shared the copied id and took its
values instead of the copied ones. The test passed only because its
second file had none.

Copy properties now records the file it copied from, and a paste into
another file drops every style and variable link: the values paste
unlinked and the layer's own links on them go. The id check stays for
a style deleted since the copy.
2026-11-24 18:37:06 -05:00
Denis Gomes c8bcd4ae48 M4: Paste properties keeps a layer's styles and variables
Copy properties took the values and left behind where they come from:
a frame filled from a colour variable or a fill style pasted a plain,
unlinked colour, and the pasted layer's own bindings stayed, so a bound
radius kept its variable's value over the pasted one.

It now also carries the fill, stroke, effect, grid and text style
links, the variables bound to what it copies (not sizes, auto layout
spacing, visibility or text content) and a frame's layout grids. The
pasted layer's bindings on those give way. A style or variable the
target file lacks (a copy from another tab) is left out and its values
pasted, so the paste never fails on a missing link.

Layout grids coming along with a frame is not measured in Figma.
2026-11-24 14:31:53 -05:00
Denis Gomes 81eb01e821 M8: a layer exports at the size of what it draws, strokes as drawn
SVG, PNG, PDF and Vector Drawable exports took their size from the
renderer's bounds, and Node::outline_reach grows a line's, vector's or
polygon's box by the weight times the miter limit (up to 4) to leave room
for a mitre at any corner. An icon frame whose outlined strokes stay
inside it exported at 26 x 26 to 30.8 x 24 instead of 24 x 24, its content
moved off the frame's origin.

export_bounds now walks the tree as world_render_bounds does
(Document::world_render_bounds_with) and measures each layer's own paint
on the outlines it draws: its shape and its stroke area from stroke_fill,
in page space, grown by its effects. A dashed stroke counts as a solid one
as well as its dashes, so where the dashes fall doesn't change the size.
Text and drop shadows with a spread keep the renderer's bounds. The
renderer's own bounds, used for drawing and culling, are unchanged.

Shrinking outline_reach itself was rejected: the renderer culls and
caches by it, and an exact stroke there would cost a stroke outline per
layer per bounds query.
2026-11-24 02:32:28 -05:00
Mex 0264e32c47 docs(cli): explain how export resolves layer names across pages 2026-11-21 20:27:29 +01:00
Mex a6f9cd1efc docs(cli): explain selected-layer exports to a directory 2026-11-21 19:38:17 +01:00
Mex 0d03a241db docs(cli): clarify what a failed script rolls back 2026-11-21 18:33:54 +01:00
Mex 0ceac64731 docs(cli): list Penpot as a convert input 2026-11-21 17:19:23 +01: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 <noreply@anthropic.com>

---------

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 21:28:36 +07:00
Denis Gomes 0d7eeac29d M2: A locked-ratio child filling one axis of auto layout keeps its proportions
A photo filling the width of a row (Fill container across, a fixed
height, its image cropped to the layer) was squashed when it went into
a row with a different amount of room: pasted next to a 516 pt column
instead of an 804 pt one it became 1092 by 969.15 instead of 804 by
969.15, and the cropped image stretched with it. Locking the aspect
ratio didn't help, because auto layout never read constrain_proportions.

flow_items now records the cross-per-main ratio of a child whose aspect
ratio is locked, which fills exactly one axis and is fixed on the other
(text excluded, and rotated layers too: layout reads a turned layer's
bounding box, whose ratio isn't the layer's own). Wherever the layout
sizes such a child on its filled axis (resize_fill_main_item, the
single-line cross fill before the lines are measured, and the stretch
across a hugging line), the fixed side follows at that ratio, within
its min and max; a filled side of zero leaves the fixed side as it is
rather than shrink the layer to nothing. Without the lock the fixed
side stays fixed, as before. Wrapping lines and grids are unchanged.

Figma never squashes a pasted image, lock or not. So a pasted layer
whose image is cropped to it (the one image mode that stretches with the
layer; Fill and Fit refit the image), landing in an auto layout frame
where it fills one axis and is fixed on the other, gets its aspect
ratio locked, and the layout above keeps its proportions. That includes
the instance a main component copied in its own file pastes as. Other
pasted layers keep their lock as copied.
2026-11-19 16:09:48 -05:00
Denis Gomes d6cef43353 M5: At 100% a presented frame reaches the window's edges
The presenter kept its 32 pt padding at Actual size (100%) as well as at
Fit. A frame made at the window's size then had 64 pt less room than its
own width and height and panned both ways. In Figma a frame shown at
100% reaches the edges and only what is bigger than the window pans.

Actual size now takes the whole area; Fit keeps the padding and still
never goes above 100%. Frames smaller than the window stay centred, and
a frame bigger than the window starts centred across at its top as
before, now from the window's edge. The doc comment on layout() says
so.

Test: a_frame_the_size_of_the_window_shows_at_100_percent_without_panning
(a 1440x820 frame in the 1440x820 presenter; with the padding it panned
64 pt each way). presenter_scales_by_its_options_and_pans_what_overflows
now expects the 100% pan range without the padding.
2026-11-19 15:08:48 -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
B-uchi d09c82010d M8: asset handoff for code projects
file.exportAssets and the MCP tool export_assets write a design's images and
vectors into a folder: images as the bytes the file holds, never re-encoded,
vectors through the SVG export, and layers with export settings by those
settings. Each file says whether it is original, vector or rendered. Files are
named by the first 16 hex digits of their SHA-256, so one asset has one file
used by every layer listed and exporting again writes nothing. What a layer
does to an image that isn't in its bytes (filters, crop, rotation, opacity) is
listed, as is why an asset couldn't be handed over. Writes go through
file_access, so automation roots confine them.
2026-11-19 01:13:51 +01: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
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
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
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 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
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 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
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 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