HoverLead (Off, Lead, LeadAndSelection) replaces lead_follows_hover. List::options takes Lead, so the hovered row no longer draws as the chosen option for a frame; UndoList keeps LeadAndSelection.
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.
`RulerFace { Edge, Centred }` sits beside `TickEdge`, and
`RulerFace::of(set)` maps the creative set to Edge and the office set to
Centred. The shared tick painter takes the face. Centred draws a bar
inset in the strip by `space.gap.tight`, centres the marks on it, and
puts a number in place of each whole-unit mark. No mark runs under a
number (`RulerFace::beside_numbers`), so a whole-unit tick shows only
where its number is dropped.
TextRuler, VerticalRuler and canvas Rulers take an optional `face` prop
in their style key. Unset, the style resolves it from the scope's set.
PageRulers passes its face to both of its rulers, and the timeline ruler
keeps the edge face.
Under Centred:
- the strip is on the chrome surface and the bar carries the margin
shade and the text column on the well;
- numbers show only over the text area and are dropped where a marker
stands;
- canvas Rulers shade their margin bands as the text ruler does.
Edge is the look the rulers had before. Each ruler gets an edge and a
centred story.
* 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>