Commit Graph
1728 Commits
Author SHA1 Message Date
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
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
bflatastic 50d94f98c8 M4: an empty text stays as it is under Outline stroke (#2405) 2026-11-19 02:39:15 +07:00
Trevor Brown 0d70c332b1 M12: boards: code blocks (doc and engine): a board code block that hugs its lines, with a language (#2237) (#2282)
The change from #2282 by @TrevorBrown-dev, as one commit.
2026-11-19 02:00:46 +07:00
Trevor Brown 98c4714458 M8: dragging near the canvas edge pans the view, as in Figma (#2015) (#2104)
The change from #2104 by @TrevorBrown-dev, as one commit.
2026-11-19 01:19:39 +07:00
bflatastic 64b0b45108 M4: Outline stroke on a text without a stroke outlines its glyphs (#2405)
A fill-only text was left as it was: Outline stroke skipped every layer
without a visible stroke. A text now flattens in place into a vector of
its glyphs, filled as the text was and keeping its colour style,
constraints, visibility and lock; a text with no glyphs stays.
2026-11-19 00:56:10 +07:00
Trevor BrownandClaude Opus 5.5 944fe8616c M5: the frame_with_child doc comment gives the layers' real positions (#2377 review)
The nested frame is 100 x 100 at (180, 180) and its rectangle is 40 x 40 at (200, 200), as the code creates them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 driver, no subagent
2026-11-19 00:21:12 +07:00
Trevor BrownandClaude Sonnet 5.5 4806b95e8e M5: a drag from a child of a selected frame moves the frame (#2360)
A press on a layer inside a selected one now drags the selection, and a click
without a drag selects that layer (also in Dev Mode and for a single selection),
as in Figma. Cmd/Ctrl, Shift and layers outside the selection are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-19 00:21:12 +07:00
Trevor BrownandClaude Sonnet 5.5 e94ecfca7a M5: the arrow keys move a layer along the canvas axes inside a rotated parent (#2372)
transform.nudge applied the step in the parent's local space, so Down inside a frame
rotated 90 degrees moved the layer sideways. The step is now turned into the parent's
space first (falling back to the plain step if the parent's transform is not invertible).
Auto layout children are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-18 23:46:16 +07:00
BFlat 39da85ca8a Merge pull request #2439 from storytold/carry/2359
M1: Paste with a layer in a frame selected puts the copy next to it (#2355)
2026-11-18 23:44:36 +07:00
BFlat acf0b14da4 Merge pull request #1735 from storytold/feat/asset-analytics-actions
M3: library analytics count insertions and detachments of styles and variables
2026-11-18 20:03:41 +07:00
BFlat 18b4acfda9 Merge pull request #2440 from B-uchi/pr/inspect-stored-keys
M8: get_node reports text and stroke settings it stores
2026-11-18 19:46:38 +07:00
FredApps 9e45db6885 Keep asset-action peaks when usage rows evict, and report every count
CodeRabbit's majors on #1735: evicting a file from the capped usage list
dropped asset_peaks, so a later identical report was counted twice.
Retention now includes asset_updated, and the file just heard from is
kept even when timestamps tie. The document keeps up to 1000 asset
counts, but each wire message is still capped at 250, so reports are
sent in batches an older server will accept.

Tests: evicting_capped_usage_rows_keeps_asset_peaks_so_a_repeat_report_is_not_counted_twice
and asset_action_reports_cover_every_count_past_the_message_cap.

Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-18 19:38:54 +07:00
bflatastic b63368e39c M3: a style or variable applied or detached inside an instance counts nothing
counting_links compared library_links, which walked every node, so applying or
detaching a library style or variable on an instance or a layer in it counted,
while duplicating that instance counts only its component. library_links now
walks the pages and skips instances with what they hold, as count_inserted does.
Test: library_asset_counts_tests::applying_and_detaching_inside_an_instance_counts_nothing
(an instance, its layer, a nested instance and its layer). The server test waits
for the detachments too, not only the insertions.
2026-11-18 19:38:54 +07:00
bflatastic e4bc567855 M3: library analytics count insertions and detachments of styles and variables
Applying a style or variable, or copying or duplicating content that uses it,
inserts it; the Detach button detaches it; an instance counts as its component
alone. Show usage and library.usage give them over the chosen period.
2026-11-18 19:38:54 +07:00
bflatastic d21aebab4b M3: combining components gives every variant the properties any of them had
A property added to a set goes to all its variants (component.addProperty), but
Combine as variants kept each component's own definitions, so a property made
on one component before combining was missing from the others: their layers
couldn't be bound to it ("the component has no property") and an instance
switched to one of them dropped its value. make_variant_set now gives every
variant the properties any of them has (share_props, through the give_prop step
addProperty uses too); a variant with a property of that name keeps its own.
Tests: variant_shared_props_tests.
2026-11-18 19:12:17 +07:00
Trevor BrownandClaude Sonnet 5.5 d6bfe68936 M1: Paste with a layer in a frame selected puts the copy next to it (#2355)
Cmd/Ctrl+V with one layer inside a frame selected pasted onto the page on top of the frame. It now pastes into the layer's parent just above it, in an auto layout frame the item after it.
Page-level layers, several layers, instance children, board atoms, component sets and copied components keep today's behaviour.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
2026-11-18 19:10:42 +07:00
Trevor Brown 4c71211e2f M8: points align and distribute in vector edit mode, as in Figma
In vector edit mode, align.* and distribute.* act on the selected
points instead of moving the whole vector. The Design panel shows the
alignment row, and the existing shortcuts apply to those points.

Closes #2109.
2026-11-18 19:06:24 +07:00
Trevor Brown d494fad166 M2: Fill across a hugging axis takes the line, as Figma does
In a hugging parent, Fill on the other axis follows the line the way
Figma does, instead of forcing the parent Fixed. This also covers item 2
of #2090 on both axes: a hugging main that becomes Fixed is followed by
its instances' roots.

Fixes #2091 item 3. Fixes #2034. Fixes item 2 of #2090.
2026-11-18 18:31:20 +07:00
FredApps bb3785536c Merge pull request #2151 from Carbocode/fix/nested-frame-selection
M8: select the containing frame when clicking its background
2026-11-18 16:15:15 +07:00
B-uchi 6dace8c570 M8: get_node reports text and stroke settings it stores
A layer stored its vertical text alignment, text case, paragraph spacing and
indent, OpenType features, start and end caps, a frame's variable modes, which
component property controls a field, and whether a nested instance is exposed,
but node.get and document.inspect left them out. They are reported now, under
the names node.set takes so a value read can be written back, and only when
they aren't the default.
2026-11-18 08:00:03 +01:00
BFlat e1ee53530f Merge pull request #2431 from Silvertree2010/fix/2429-inspect-code-gradient-fill-on-a
Clip text gradient fills to the glyphs in inspect.code
2026-11-18 13:58:35 +07:00
BFlat 9b9953c470 Merge pull request #2211 from TrevorBrown-dev/feat/present-add-comment-2209
M7: Present mode: a click in comment mode adds a comment on the frame (#2209)
2026-11-18 13:53:25 +07:00
Carbocode da563c8321 M8: update selection fix with upstream main 2026-11-17 19:12:24 +01:00
NetterSilverandClaude Haiku 5.5 5897a41a7f Clip text gradient fills to the glyphs in inspect.code
Fixes #2429

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 17:21:26 +00:00
BFlat da2792cb4a Merge pull request #2427 from storytold/fix/page-keeps-its-view
M8: going back to a page shows it where it was left, not fitted again
2026-11-17 18:26:23 +07:00
BFlat bf29f7731e Merge pull request #2391 from MMexicann/patch-3
fix: escape Windows device names in generated exports
2026-11-17 18:25:15 +07:00
BFlat 2eb14ab0af Merge pull request #2423 from Silvertree2010/fix/2416-bug-report-figcraft-library-acce
Keep library variables that styles bind when accepting updates
2026-11-17 18:20:55 +07:00
BFlat f16f620f95 Merge pull request #2386 from gmrmad1/fix/2181-batch-step-refusals
Batch: a refused step names its step and keeps its kind (#2181)
2026-11-17 18:16:16 +07:00
BFlat 9b27f7bae6 Merge pull request #2374 from adikshan11/fix/automation-roots-network-prefix
Automation roots: same_file doesn't open a path on another computer, native NT link targets and names Windows trims are refused, and the docs say network paths are refused
2026-11-17 18:11:29 +07:00
bflatastic bbb12d7b74 M8: going back to a page shows it where it was left, not fitted again 2026-11-17 18:08:35 +07:00
NetterSilverandClaude Opus 5.5 e9a4777736 Keep library variables that styles bind when accepting updates
Fixes #2416

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 06:15:50 +01:00
Carbocode bbb2f398b4 M8: reconcile selection fix with main and leave documentation unchanged 2026-11-16 23:08:51 +01:00
Mex 71cd63a21b engine: escape device components after export suffixes
Apply the shared device-name rule to completed folder/name/suffix components before collision numbering, with regression coverage.
2026-11-15 16:02:12 +01:00
Mex 19a4a309e4 test: cover generated device-name path components
Exercise device names, extensions, nested components and safe near-matches using the existing device-name classification.
2026-11-15 16:01:13 +01:00
Mex af87503d04 Implement escape_device_names function
Prefix generated path components using the existing device classifier, after filtering and suffix construction.
2026-11-15 15:59:34 +01:00
Adithya Shankaran d4e2641fa0 Automation roots: same_file doesn't open a path outside the roots, native NT link targets and names Windows trims are refused, and the docs say network paths are refused 2026-11-15 18:24:05 +05:30
Madhav Agarwal 2462a86253 Batch: a refused step names its step and keeps its kind (#2181) 2026-11-15 17:41:14 +05:30
Trevor BrownandClaude Sonnet 5.5 3bbd1d3ce5 Pages: Set as opening page, so a shared file opens on the page the team chooses (#1817) (#1972)
* M9: page.setOpening sets the page a shared file opens on, for everyone who joins (#1817)

A file on a figcraft-server opened on the page current at publish time, with no way to change it:
`DocProp::CurrentPage` was synced but nothing wrote it (`page.select` is each viewer's own page,
only a local save stamps the document). `page.setOpening {id?}` writes `doc.current_page` as a
document edit: one undo step, a synced change in a live session, so every later join opens on it;
the current page when none is named; a divider or a layer refused; nobody's own page moves. The
pages list's context menu gets "Set as opening page". Docs: mcp.md, collaboration-parity.md.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* M9: the pages menu's new string is in the English catalog (#1817)

The gate's i18n test wants every tr() key in locales/en.toml.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* Opening page: the parity doc states the default when no opening page is set (#1972 issue)

With none set, a file opens on its saved current page, not the first page, and a link cannot name a page, so the row is partial.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* Opening page: one sharing row, and the spotlight exception on the opening-page row (#1972 issue)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* Opening page: the parity row states where the joiner's page comes from (#1972 issue)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* Opening page: a no-op set adds no step, deleting the opening page falls back, and the tests cover junk ids, refusals, undo and the menu item (#1817)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* M5: the chosen opening page is saved with the file and opens it for everyone (#1817)

The opening-page flag now lives on the page node (NodeKind::Page opening), so it syncs
through the existing node kind. Saving writes the flagged page as current_page instead of
the page the saver was viewing. A duplicated page does not copy the flag, and deleting the
page removes it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-15 00:05:48 -06:00
Trevor BrownandClaude Sonnet 5.5 adad8a08ad M8: Duplicate repeats the copy's rotation as well as its move, and forgets the step on a deselect (#2293) (#2313)
* M8: Duplicate repeats the copy's rotation as well as its move, and forgets the step on a deselect (#2293)

Duplicate remembered only the shift of the copies' bounds corner, so a turned copy repeated an arbitrary offset and no rotation. The step is now the move of the copies' centre in the page frame plus the turn each copy has over its source, applied to the new copies about their own centre (one layer) or their shared centre (several). Size is not stepped; a resized copy repeats its move, not its growth. Measured in Figma's web app on 2026-11-12. The step was already dropped when the selection changes to anything but the copies (clean_selection), and a test now pins that.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Fable 5.2 queued; Opus 5.5 briefed; Sonnet 5.5 measured and wrote at medium

* M8: the duplicate step ignores turns in place, size changes and flips (#2293)

The move of the step is now measured per pair, as each copy's own centre minus its source's, less the shift a size change gives that centre (taken in the source's frame), averaged over the pairs. A turn about a layer's own centre, uneven layers and a widened-then-turned copy no longer record a move. A copy whose flip state differs from its source's repeats no turn, since flips were not measured.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Fable 5.2 queued; Opus 5.5 briefed; Sonnet 5.5 measured and wrote at medium

* M8: a turn of several copies together is not counted as a move in the duplicate step (#2293)

Duplicated::step took the mean of the per-pair centre moves, so a Rotate on several uneven layers (turned together about the selection centre) read as an extra move and the next Duplicate applied it. The step now also tries the reading where the copies were turned together about the sources' bounds centre, and uses it when every copy fits it and the in-place reading does not fit. Two tests cover a turn together and a move plus turn together.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium

* M8: the duplicate step reads a turn about the rotation handle's centre, and a resize after a turn, as no move (#2293)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium

* M8: the duplicate step turns several layers about their handle box's centre, with no pivot inferred (#2293)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Fable 5.2 briefed; Sonnet 5.5 wrote at medium

* Docs: repair a row the earlier merges garbled (Alt-drag duplicate)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 00:05:43 -06:00
bflatastic cf0ebbe27e Merge main into #2319 2026-11-14 01:14:26 +07:00
bflatastic 62c5f8c17a Merge main into #2335 2026-11-14 00:59:04 +07:00
bflatastic 8e3c46b27d Merge main into #2319 2026-11-14 00:57:58 +07:00
bflatastic 4f38875087 Merge main into #2335 2026-11-14 00:42:26 +07:00
bflatastic c768dd7e4e Merge main into #2319 2026-11-14 00:41:20 +07:00
bflatastic e581dcba99 Merge main into #2298 2026-11-14 00:40:14 +07:00
Trevor BrownandClaude Opus 5.5 02b6280a75 Merge upstream/main into fix/align-auto-layout-child
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 12:36:32 -05:00
Trevor BrownandClaude Opus 5.5 32f5fd01c4 Merge upstream/main into feat/tidy-up-figma-rule
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 12:36:27 -05:00
Trevor BrownandClaude Opus 5.5 33e611d82a Merge upstream/main into fix/crop-from-picker-2307
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 12:36:23 -05:00
bflatastic 7fe1e67cf2 Merge main into #2291 2026-11-14 00:19:03 +07:00