The Crop tool bounds the overlay by the canvas while Delete Cropped Pixels is on so that an
image-mode turn keeps the frame inside the image (photocraft#10869). The drag rules also cut
every edge and corner resize to those bounds, so a crop could not grow the canvas. In the
reference application it does. A resize of a document crop now goes past the bounds; turns,
moves, drawn frames, nudges and a placed picture's crop (bounded by its source) are unchanged.
Fixesstorytold/photocraft#16043.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Crop tool claimed I, X, O and Shift+O as soon as it showed its
untouched default frame (on picking the tool, after a commit, or on a
selection's bounds), so O cycled the overlay instead of picking the
Dodge group, I switched to Front Image instead of the Eyedropper, and X
swapped the frame instead of the colours. As in the reference application, the crop
now takes its keys only while a crop is pending, the way H and P
already were.
The key trial gave the canvas no keyboard before its first press, so
its untouched-frame half passed whatever the tool did; the rig now
focuses the canvas first.
Part of storytold/photocraft#6536.
The new frame over a card's picture also drew on flat thumbnails, which
have no sunken well to restore: the New Document preset cards gained a
second outline around their page, and
form_dialogs::new_document::recent_preset_cards_paint_one_small_page_at_its_aspect
failed on every leg. Frame only where the sunken well was painted.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Removes the paired measure (Component::PAIRED_MEASURE, measure_pair and its
six adopters, MeasureCx::least_width) and the prepared-leaf path
(PreparedLeaf, PreparedStep, run_with, show_leaf_prepared,
measure_under_prepared, child_with_prepared): every leaf is measured by
measure alone, and the recursive run frames carry only what they read after
their children again.
Keeps the text layout memo and the lazy layout runs, with three fixes: a Line
run keys its width as infinity, entries unused for 60 passes go instead of
first in first out, and a 32 MiB budget bounds what the memo retains.
TextLayout's full and runs are private behind full() and runs().
The canvas settles the view it is given to whole device pixels, so a
thumb drag's first proposal came back with its centre a fraction of a
pixel off. The value step read that as the app changing the view under
the gesture and cancelled it (HostChanged); the cancelled gesture refused
every later proposal until the release, so the view moved once and then
stayed (photocraft#16006). The bars now take a host view with the same
zoom, turn, mirroring and aspect and a centre within a point as their own
value (same_value), as the number fields do with rounded values.
A collapsed dock window's sides resize its width, and only its width, within the bounds of a docked collapsed column
(DockSizes::iconic_bounds, the one rule both use), on macOS by AppKit and elsewhere by the window's own grips.
FloatingGroupOutput::collapsed_width reports the width, which the area keeps as the column's iconic width through the
docked column's own path (Action::ResizeIconic); names show from IconicSizes::labels as in a docked column. The height
stays the icons', the expanded rect keeps its size and the window keeps its edge. The column in a window has no
inner-edge divider: the window's sides size it, as for an expanded column.
3155a1d38 made the hex field own Enter for the tabbed Colors dialog. The
Full layout focuses the same field on its first show, so its Enter only
committed the digits and the dialog stayed open. In the reference image
editor's Color Picker, digits typed there and Enter set the colour and
close the dialog. The field owns Enter in the Compact layout only.
The document chrome's step arrows were focusable stops. Tab stopped on
them, and when the canvas's focused part went away (a crop that shrank
the document) focus fell through to an arrow, which then took the Escape
that cancels the next crop frame. The canvas scrolls with its own keys
(arrows, Page Up/Down, Home and End), and in the reference application
the scroll bar arrows take no keyboard focus, so the arrows are
pointer-only, like the corner.
A spanned target catches only a point or box overlapping its span on the
other axis since canvas-w4, which keeps a layer's edge on its page from
catching a box on another page. Photoshop-style layer edges snap a box
beside them too (side-by-side boxes align their tops), so PhotoCraft's
Move tool stopped snapping to other layers' edges.
SnapTargets::reach_past_spans() lets every target catch along its whole
line, the span only shaping the drawn smart guide. The default is
unchanged, and filtered() keeps the setting.
Each icon group has a grip strip above its first icon, size.hit.target high and part of the group's rect, with a
thin pill centred across it: stroke.thick thick, half an icon cell long (GRIP_BAR_IN_CELLS), the theme's pill
rounding, text.muted at rest and text.normal while hovered or dragged. The grip part takes exactly the strip
(exact_hit), so it no longer reaches into the first icon; a drag on it moves the group as before. icons_height adds
one strip per group, and a flyout's top stays level with its group's first icon.
* craft-xlsx: typed external links, read from .xlsx and .xlsb; external references in binary formulas
ExternalLink (another workbook as ExternalBook: its target, sheet names,
defined names with refersTo and sheetId, and cached cells; a DDE or OLE link
as Other) reads from externalLinkN.xml and externalLinkN.bin alike.
Package::external_links gives one entry per Workbook::external_references,
which is now a typed field, read from externalReferences or the binary
workbook's BrtSupBookSrc records and written back from the field.
A binary formula's reference to another workbook decodes as .xlsx spells it:
[1]Data!$A$1, '[1]Other Sheet'!A1, '[1]A:C'!A1, [1]!ExtName, [1]Data!Local
for a sheet-scoped name, a DDE item [2]!'R1C1'. The link parts are read when
the workbook part is; one that can't be read, a deleted sheet of it or a name
it lacks keeps the cell's saved result.
Closes#1252.
* craft-xlsx: review fixes: external links keep their numbers, are read once, and deleted sheets keep values
- An externalReference without an r:id, or a BrtSupBookSrc whose id can't be
read, keeps its place as an empty id, so the links after it keep their
[n]; it is written back without r:id.
- A binary workbook's external link parts are read once, with its workbook
part: the formulas' index and Package::external_links share that read, so
cached cells are charged to binary_cells once.
- PtgNameX through a deleted sheet of another workbook (-1) keeps the cell's
saved result instead of falling back to the name's own scope.
* craft-xlsx: deduplicate binary external links against budget and add cache-cap test
* craft-xlsx: avoid cloning ExternalLink on duplicate binary external references
---------
Co-authored-by: kiwi4boy <kiwi4boy@gmail.com>
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
craft-common-actions' select-platforms selects the tests: the crates that
own a changed file, the crates that declare a read of it, and every
crate that depends on them. Every nextest run gets the filter; the build
and the doctests stay whole-workspace. The build setup, a crate's own
Cargo.toml and files outside the crates other than docs run every test;
docs alone run none. pdf, svg and the fonts-build consumer declare the
files of other crates that their tests read.
Sensing grows every part's hit area to the pointer's target size (size.hit.target, 8 pt), so a 6 pt grip reached
1 pt past its rect on each side: a press 1 pt into a floating window's title row started a top resize, and the top
corners of a banded layer (6 pt tall) reached 8 pt. A part declared exact_hit keeps its declared shape as its hit
area. Every window grip and the edge pane's grip declare it: a frame's grip band is sized as its reach, its
neighbours own the points beside it, and the in-app hit area matches the platform's hit test for an exclusive grip.
docs/contract-api.md regenerated.
- The floating window's title row is one text row high (HeaderStrength::Bar, size.row.text: 18 pt compact), as
production's 18 pt bar; the tab strip below keeps the panel header height.
- A resizable or movable layer with a header keeps its top grip's band (contract::grip_band, size.handle.sm) clear
above the header, so the top grip never lies over it; the regions start below the band or the padding, whichever
is deeper. Dialogs keep their layout (their padding is deeper than the band).
- Grips lie inside the frame for layers too; corners reach twice the edge width along each edge (12 pt), top corners
of a banded layer only the band's height.
- Where the OS resizes a window from its own frame (macOS Inset, resizable: windows::os_resizes) no app grips stand,
the cursor over AppKit's resize areas is the default (craft_window::mac::in_resize_area) and the move band keeps
the arrow, as an OS title bar does.
- DockSizes::window_chrome (title row plus the band in the app window) sizes floating windows, stepped resizes,
collapsed windows and float previews (FloatSpace::chrome).