A double-click on a selected image layer edited the rectangle's points, so
cropping its image took Object > Crop image or the crop button on its fill
row, and the image fill's menu then closed. A double-click on the one
selected shape with an image fill now switches its top visible image fill
to Crop, keeping the picture where it was (image.crop), and opens that fill
in the colour picker. The Crop paint's handles show on the canvas beside it
(the image drags, its corners scale it, the layer's edges crop it), and the
picker's Fill / Fit / Crop / Tile menu, rotation and adjustments are at
hand. image.crop takes picker: true for the same; without it, it still
enters crop mode and closes the picker. A shape without an image still
edits its points.
Tests: image_crop_tests (a double-click on an image, and on a plain shape),
image_double_click_tests.
Shift kept the Pen's next segment to 45° steps, two directions in a
quarter turn, where Figma's Pen offers six: 15° steps (measured in Figma
on 2026-12-03). The Pen now snaps to 15° steps with Shift, from its last
point while drawing a path and from the open end in vector edit mode; the
band shows where the point lands. In vector edit mode the band followed
the pointer with Shift held while the click went to the step, so Shift
looked as if it did nothing there; it now ends where the click lands,
worked out in the layer as the click is. at_45_degrees becomes
at_angle_step with the step given, and PEN_STEP holds the Pen's.
The Line tool and the Pencil keep 45° until their steps are measured.
Tests: pen_overlay_tests (the band and the next point at 15° steps, the
pen in vector edit mode, and its band there).
A dropdown beside the search field picks Custom order, Name or a mode's
values, A to Z or Z to A; a click on the Name or a mode's header sorts by
it and a second click turns it round, with an arrow. It is a view: the
stored order the pickers and exports follow stays, and Move up / Move
down are off while the table is sorted.
The Collections header and a collection's Sort A to Z / Z to A sort this
file's collections, not their variables: new command
`variable.sortCollections {descending?}`, one undo step.
A dropped or placed .avif was refused as an unsupported image. craft-image-codecs' avif-decode
feature (craft-video's pure-Rust AV1 decoder) is turned on in format and render, the file pickers
and open lists take .avif, and an AVIF's container rotation, mirror and crop apply as for HEIF.
The browser build refuses AVIF with the desktop-app message.
* M6: an opened .fig keeps the size it saved for auto-size text until that text changes (#2934)
An opened .fig showed auto-size text at the size the file saved, but the
first edit anywhere measured it again in the fonts at hand, so with another
version of a font the text and the auto layout around it moved.
Auto-width and auto-height text now keep the file's size (TextData::saved_size)
while the text and its layout settings are as saved and, for auto height, the
box keeps its width, as saved line breaks (#1519) do.
* Docs: the saved text size also drops on a size setting edit; the width check is auto height's (#2934)
create_node and set_properties keep a fontFamily that isn't installed but now warn that it draws in a fallback font, naming the next step: font.download when the font store has it and downloads are on, asking the user to allow downloads when they're off, or that no source has it. Fixes#2935.
* M1, #614: Text ▸ Replace math with result turns typed math into its value
Each selected text layer, or text inside a selected frame, whose text is
an expression becomes its value in one undo step (`text.calculate`):
arithmetic with brackets, comparisons, joined text, and number or string
variables read in the layer's modes. It reuses the prototype expression
reader, so nothing runs as a script. Text that isn't math stays as it was
and is listed in `skipped`, and the app says how many layers it left; with
none that is math the command is refused.
* M1, #614: Replace math with result keeps editing when refused, reaches each layer once
A refusal no longer ends text editing, a frame selected with a layer
inside it reaches that layer once, and the message for skipped layers
takes the singular for one.
Adding a variant took the set selected and Add variant in the Design panel,
and the new variant went under the set as "VariantN", away from the one it
copied. A selected variant now has a "+" under it on the canvas, below its
size label. It adds a copy beside the variant, named after its first value
with " copy" (" copy 2" and on while that is taken), selects it and opens
that value for typing in the Current variant section, selected so typing
replaces it. Enter or a click elsewhere renames the variant; Escape keeps
the copy's name.
Beside means next in the set's order, which an auto layout set lays out
there; in a set without one, 20 px to the variant's right when no variant
is in the way, else under the set as before. component.addVariant takes
beside: true for the same copy.
Tests: assets::components::tests (a variant duplicated beside, and in an
auto layout set), variant_add_tests (the + and the field, Escape).
A frame painted its strokes over its children whether it clipped them or
not, so a child laid across its edge (an outlined text field's floating
label) had the border cut through it. A frame that doesn't clip its
content now strokes before its children, on the canvas and in the SVG,
PDF and Vector Drawable exports; a clipping frame still strokes over
them.
A round trip dropped a pane's light, refraction and bevel, and baked a Light/Dark Mode binding as the current variant. Export writes those fields, and a stretched nested instance keeps its size.
Opening the file as a library rebuilds each nested instance from its variant, so a tab bar's glass snapped from the bar's width back to the variant's own size. A size the component authored stays; a plain instance still follows its main.
A Light/Dark Mode variant bound with RESOLVE_VARIANT stayed on the light variant, and a glass pane the bar had stretched collapsed to the variant's own size on the switch. Glass light and refraction come across too.
A page that runs the app in its own document cannot always add ?control to its URL. data-control means the same, like data-save=managed
means ?save=managed. query::control takes it as a second argument; nothing changes without the attribute or the query entry.
Refs #2977
* M4: gradient handles on a straight line show where their stops paint (#2967)
* M4: a snapped pen click that wobbles pulls out no handle (#2967)
* M4: paste into another frame keeps the place the layers had in theirs (#2967)
* M4: Paste to replace takes SVG another app put on the clipboard (#2967)
* docs: parity log for #2967
fill.add and stroke.add take `replace`: the new paint takes the place of
every paint on each layer, their bindings going with them, and every layer
gets the same default (the first layer's). The Design panel's + passes it
when the selection's paints are mixed and opens the picker on that paint,
so it edits the whole selection at once. One undo step restores the old
paints.
`fill` and `fills/0/color` name the same paint colour, but variable.bind
added the new key beside the old one, so after the style picker changed a
variable bound through the indexed key, a detach brought the old one back.
Test: paint_reorder_tests::binding_a_paint_through_another_key_replaces_its_binding.
A library enabled in a file that couldn't be read (its file no longer
publishing a library, gone, or holding another library now) was left out
of the style and variable pickers without a word. Its styles and variables
weren't listed and the one a layer used wasn't marked, so it looked as if
the file had lost them; only the Assets panel's library list said why.
Both pickers now open with a line per such library above the list:
"<library> isn't connected, so its styles and variables aren't listed:
<reason>", the reason being the one the Assets panel gives. It is drawn in
the error colour and is a label for screen readers, so the colour isn't
the only sign. A library not read yet says nothing, since it is on its way.
Tests: unconnected_library_tests (2).
A fill or stroke whose colour is bound to a variable showed the variable's
name in a chip that only had a tooltip, so changing it to another meant
detaching it first or opening the section's Styles menu. The chip is now a
button (a combo box for screen readers). For the only paint of its list it
opens the style picker the section's Styles button opens, which lists
styles and colour variables; for one of several paints it opens the
variable picker for that paint, since the style picker acts on the whole
list; for the page background it opens the variable picker.
Neither picker marked the variable in use, so the one to change from was
not shown. Both now put a check on it (and mark it selected for screen
readers): the variable picker for the field it binds, the style picker for
the first paint of its slot or a Selection colors row's paints. A library
variable is matched by the copy this document made of it. Both also open
scrolled to it, and the style picker to the style in use: with styles
listed first, a variable in use sat far below the top the list opened at.
The scroll is instant (an animated one would still be moving when the
picker shows) and waits for the popup's shown pass, since its first pass
only measures it.
Tests: bound_paint_chip_tests (3), and the library variable in
selection_colors_picker_tests::the_rows_styles_button_opens_the_style_picker_with_search_and_library_names.
A file with a published library put on a server (Publish to server) lost
the library in its tab. The server's copy leaves a published library out
(Replica::new clears it), and the tab took that copy when the file arrived
back from the server, and again with every confirmed batch, undo and redo.
Saving the tab to its file then wrote the file without its library, so
every file using it lost its link ("has no published library") and its
styles and variables were no longer listed or marked in their pickers.
The copy a tab takes now keeps the published library the tab had
(with_own_library, at the welcome, at confirmed batches and at undo and
redo). The shared file still leaves it out: a library goes to a server
on its own (Publish library to server).
Test: live_library_tests::a_file_put_on_a_server_keeps_its_published_library_when_saved.
A double-click on a cell of the auto layout alignment grid did what a click
does, so going from Space between to items packed at one point, or back,
meant opening the Auto gap menu. A double-click now switches: with an auto
gap (between, around or evenly) the items pack at the cell, main and cross;
packed items spread out with space between, at the cell's cross alignment.
A click still aligns at the cell, an auto gap keeping its mode, and grid
layouts are left as they were.
The double-click's second click is also a click, so the double-click is
handled first and the click only when it isn't one: two commands in one
frame would read the same layout and the second would undo the first.
Tests: align_grid_double_click_tests (3).