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
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
inserts_and_detaches_count_per_style_and_variable_in_the_period returned
as soon as detachments reached 2, then asserted layers == 0. Asset-action
reports can arrive before the usage snapshot, so CI saw layers still at 1.
The wait now requires both.
Sonar on the same-repo vehicle (#2451) evaluated the coverage gate at
79.74% of 232 new lines (one line under 80%). A unit test covers grow's
branch that drops a new key once peaks are already at MAX_REPORTED.
Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
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>
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.
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.
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.
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
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.
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.
boundVariables.individualStrokeWeights was skipped with a warning, so a 1 px bottom divider bound to a variable came across as a plain number. Each side now binds strokeTopWeight ... strokeLeftWeight, read from the live API's BORDER_TOP_WEIGHT ... keys or the published spec's top ... keys.
Resolve ROADMAP.md and docs/localization-parity.md by keeping main's
newer log entries and the #1902 Noto Sans Arabic default-web-font notes.
Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
A text field that isn't being edited painted its whole value clipped to the field, so the variant value "Down left" read "Down lef". It now paints the value shortened with an ellipsis to fit, and hovering shows the whole value (not for a secret field). Editing and screen readers keep the whole value.
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
exchange::libraries kept the fetches' answers until every job had run, and
Driver::follow handed them over only at Next::Done, so a library that had
answered waited behind later libraries and reports that connected or timed out.
A new Next::Tell gives the UI its events, then goes on; libraries ends each
fetch with it, before connecting for the next job, as the desktop's
library_background does.
Test: exchange_tests::a_library_check_hands_each_fetch_over_as_it_comes (the
first library is in the inbox while a later report's server never answers).
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.
The browser's requests to a server now open library and plugin directory
connections, so the panels work there as on the desktop. A plugin installed in
the browser lasts as long as the page.