Commit Graph
4741 Commits
Author SHA1 Message Date
aiongg 6319440bd8 merge-c3: 2.3: PathSelection.shown: anchors of the shown subpaths only; Delete Anchor on a hidden anchor shows its subpath; PathSelection::after_delete (#13135) 2026-11-16 12:50:40 +00:00
aiongg b3f6f9a4fb merge-c4: Q9: the precise cursor trial discards the tool host's reply 2026-11-16 12:50:35 +00:00
aiongg f7df657338 merge-f: F3: TransformBox follows from the first move after the press (#11103); PressPhase::Held carries the pointer 2026-11-16 12:49:40 +00:00
aiongg 9a51f7e174 merge-c: 1.3: the equilateral trial compares the apex within a tolerance 2026-11-16 12:49:31 +00:00
aiongg faea5d0b1a merge-fwd: item 4: Preflight.height is read only by the image resolver; expect dead_code without tree 2026-11-16 12:49:22 +00:00
aiongg 6da0540fce merge-fwe: FW16 E5: a link's first sync with agents off reports no change 2026-11-16 12:49:15 +00:00
aiongg 259fc8e0bc merge-fwb: FW13: param rows report range alerts; Global Light angle range and whole degrees; SliderField reports its field's range alert 2026-11-16 12:48:38 +00:00
aiongg 1b67b7c8b2 merge-fwb: FW7: format 2026-11-16 12:48:38 +00:00
aiongg b37fd93885 merge-c3: 2.2: ⇧ anchor drags take the shared axis-or-diagonal rule (#13684) 2026-11-16 12:48:30 +00:00
aiongg a038653ff2 merge-fwe: FW16 E7: docs for agents in the open window (craft-automation README, craft-framework.md) 2026-11-16 12:48:01 +00:00
aiongg 802cf26cc6 merge-f: F6: trial for the Show Transformation Values gate over tool readouts and huds; Fixture::root_value 2026-11-16 12:47:53 +00:00
aiongg 42be2bc26c merge-fwe: FW16 E6: AgentsPage, the Agents page of Preferences over the agent settings in the draft (launcher switch line, link status, Control Port, folders through PathSetting, closed-app choice) 2026-11-16 12:47:42 +00:00
Dylan M. TayloranddotCooCoo a62de6c7c3 exr: integrate mixed deep/flat decoding with regression coverage (#1853)
* EXR: decode a flat part of a file that also holds deep parts

decode_part refused every part of a file with any deep part, and
decode_display_part, which checked only the selected part, still failed
because the exr crate's image reader validates every header and refuses
deep ones before it reads a chunk.

Both now decide from the selected part's own header. When any part is
deep, the selected flat part is read chunk by chunk: the flat headers are
validated, every part's offset table is walked from the end of the
headers, and only the selected table's chunks are read. A chunk must start
past the last offset table and inside the file, carry the selected part's
number and hold a block no other chunk of the part holds; anything else is
Malformed. Files with only flat parts keep the crate's reader.

The file-size ratio check, which was skipped for every part when any part
was deep, now applies to the flat parts of such a file; deep parts are not
counted.

* EXR: a flat part beside a deep part needs a chunk for each of its blocks

The chunk reader for a flat part of a file that also holds deep parts
refused only a second chunk for the same block. A tiled part's chunk that
named a level the part does not have was skipped without decompressing,
so the tile it took the place of had no chunk and the part decoded with
that tile left at zero.

Each chunk now has to hold one of the part's own blocks, taken from the
header, that no other chunk holds; anything else is Malformed. Since a
part has as many chunks as blocks, every block then has a chunk.

The mixed-file tests also run with a tiled flat part, and a new test
names a missing level and a repeated tile.

* EXR: a scan-line chunk beside a deep part must start at its block's first line

The block index of a scan-line chunk is its y offset divided by the
lines a block holds, rounded toward zero. A chunk whose y was not the
first line of a block, or lay up to 15 lines above the data window of
a ZIP part, still named a block and was decoded into it. Such a chunk
is now Malformed.

* EXR: a block too large to address is LimitExceeded instead of a panic

The exr crate bounds a flat chunk by a block's pixels times the bytes a
pixel takes, an unchecked product, before it reads the chunk. A 1 x 1
part with five float channels in 10^9 x 10^9 tiles passed every size
limit, and decode_part and decode_display_part then panicked with an
overflow, for files of flat parts only and for mixed files alike.
read_meta now computes the product with checked arithmetic for each
flat part and returns LimitExceeded when it does not fit in a usize.

* EXR: a chunk beside a deep part must fit the rest of the file

The exr crate allocates a chunk's declared payload, up to the size of a
block, before it reads it. In a mixed file whose flat part has large
tiles, a chunk declaring i32::MAX bytes made a 2 GiB allocation from a
file of a few hundred bytes. read_flat_part_chunks now reads the
declared length first and returns Malformed when it is longer than the
bytes left in the file.

* test(exr): verify mixed-part ratio and display block budgets

* fix(exr): bound mixed-part payload and block bookkeeping allocations

* fix(exr): expose internal ordinal helpers to regression tests

---------

Co-authored-by: dotCooCoo <RobertLeeLW@gmail.com>
2026-11-16 07:47:06 -05:00
aiongg 076e9ed13a merge-f: F2: Info panel shows the Ruler tool's measure (InfoMeasure; A, L, L1, L2) (#14982) 2026-11-16 12:46:23 +00:00
aiongg 5fc4dc6051 merge-f: F1: Perspective Crop takes either winding; Alt corner drag keeps the corners as they lie (#13485) 2026-11-16 12:45:38 +00:00
FredApps 7ed3163f35 render-parity: a NaN tolerance fails its check instead of switching it off 2026-11-16 13:45:33 +01:00
aiongg 6e7c1d4e7c merge-fwe: FW16 E6: PathSetting, a Preferences path row over the settings draft (Browse through the host's file service, keys naming list entries); PathRow files host picks itself, PathField uses it 2026-11-16 12:44:56 +00:00
aiongg 632da8704d Merge branch 'fw/merge-c1' into fw/merge-c4 2026-11-16 12:44:54 +00:00
aiongg 768a1d0cfa merge-fwd: item 7: served-font trials: a fetched face survives a reinstall, the interface language's served face leads 2026-11-16 12:44:45 +00:00
aiongg 54f9aa1b0d merge-fwd: item 5: FW15: the mock counts sub_rows calls; trial: a long layer list asks only for the rows in view 2026-11-16 12:43:51 +00:00
aiongg 4a445d10b6 merge-c: c1: rustfmt 2026-11-16 12:43:35 +00:00
aiongg 95c557733f merge-c: 1.8: Create Shape raises the range alert for a width or height typed past 1..300,000 px, every kind (UnitSelectOutput.out_of_range; CreateShapeDialog::alert_title, take_range_alert) (#13358) 2026-11-16 12:43:17 +00:00
aiongg f009a2065d merge-c4: 3.1: the lasso click trial names its rigs apart from the rig helper 2026-11-16 12:43:03 +00:00
aiongg c9b63876a0 merge-fwb: FW8: .kys import reads with craft-xml's pull reader (DOCTYPE refused, depth 512, entry lines kept); roxmltree dropped 2026-11-16 12:42:57 +00:00
aiongg c081a17fed merge-fwd: item 6: Export As suggests names with their boundary spaces and dots; ExportAsDialog/HostedExportAs files(count) asks for a folder for several files; trials 2026-11-16 12:42:49 +00:00
aiongg dc7dea1805 merge-c4: 1.10: TransformBox centre mark (#13239) and live-line look (#13263): the ends stand for the box handles they point to 2026-11-16 12:42:40 +00:00
aiongg 50b726c3fa merge-fwb: FW12: trial that an open menu takes letters and arrows from a focused text field 2026-11-16 12:41:07 +00:00
aiongg 3c3264f6f0 merge-c: 5.2: Space moves the shape being drawn by the full pointer motion, the first move after Space included (#13867) 2026-11-16 12:40:57 +00:00
aiongg 014ead170f merge-fwd: item 4: FW9: ui-contract and ui-shell parse and draw icons through craft-svg (features tree-core, tree, draw, tree-render; Limits.allow_dtd); resvg 0.45 goes; trials 2026-11-16 12:40:51 +00:00
aiongg dc0653693a merge-fwb: FW11: trial that switching away from a modified shortcut set asks to save first 2026-11-16 12:40:42 +00:00
aiongg 6b1ab75129 merge-c: 1.5: a Rectangle in Shape mode ends a click within 1 screen point (ShapeDragOptions::mode) (#13340) 2026-11-16 12:40:39 +00:00
aiongg 6c8a1861bd merge-fwe: FW16 E5: AgentLink, the link host: start, move, stop and retry the agents' control server and publish its connection file 2026-11-16 12:40:26 +00:00
aiongg f8054eedb0 merge-c: 1.3: Triangle fills its box (apex top centre), ⇧ the equilateral triangle in the square's circle, ⇧⌥ centred on the press; Create Triangle answers the same kind (#13350, #13351) 2026-11-16 12:40:03 +00:00
aiongg a7ff7a4fbe merge-fwb: A10: trial that a NumberField keeping its name in a labelled field is described by the caption 2026-11-16 12:39:49 +00:00
aiongg a635457fa0 merge-fwb: A13: blend row keys step past greyed modes, a greyed mode's letter picks nothing (#13852) 2026-11-16 12:39:46 +00:00
aiongg ab7c3c712c merge-fwb: FW7: a claimed key press takes its text; Image Size Alt+1..8 pick Resample (#15054) 2026-11-16 12:39:46 +00:00
aiongg c3f113a5c5 merge-c: 1.4a: Rectangle gear constraints in the drag (Square, Fixed Size, Proportional, From Center; ⇧ and ⌥ turn Square and From Center off) through one BoxRule for box_drag (#13343) 2026-11-16 12:39:18 +00:00
aiongg 08b5c2ac41 merge-fwb: A11: trial that a NumberField draft that is no number owes no range alert 2026-11-16 12:39:06 +00:00
aiongg 463acfe5bd merge-fwe: FW16 E4: craft_automation::agents: agent settings, the launcher's switch (AgentSwitch) and the connection file 2026-11-16 12:38:25 +00:00
aiongg 6540f19ff2 merge-c: 1.1: ⇧ squares a box drag from the drag's shorter side, ⇧⌥ the same from the centre (#13222) 2026-11-16 12:38:04 +00:00
aiongg a809ccadc6 merge-fwd: item 1: FW3: windows::mount_window decides a viewport mount's own window (not from a full-screen or Wayland-maximized opener) at all six sites; trials 2026-11-16 12:37:57 +00:00
aiongg 518da9acb9 merge-c4: Q9: the canvas publishes the precise cursor in its CanvasSpace (Canvas::precise_cursors, toggled by Caps Lock); ToolHost::precise_cursors goes 2026-11-16 12:37:53 +00:00
aiongg 73d68241d7 merge-c: 1.2: Line ⇧ snaps to the axis within 30° (keeping the along-axis offset, at least 1 px) or the diagonal at the shorter offset, one rule in craft-behavior (axis_or_diagonal) 2026-11-16 12:37:51 +00:00
aiongg 3f139e21af merge-fwb: FW2: a trackpad steps only a focused or armed value control; a value control lets go of a wheel gesture when the pointer leaves it 2026-11-16 12:37:30 +00:00
aiongg 77b98ad590 merge-fwe: FW16 E3: stoppable control server (listen, serve, Listening) replaces start 2026-11-16 12:36:06 +00:00
aiongg c36394fe4b merge-fwd: item 3: the window reads the focused canvas's leftover Escape last (with_window_intents), leave_to_window goes; a full-window dialog closes on Escape from its focused canvas; trial 2026-11-16 12:35:28 +00:00
aiongg dffe1048ed merge-fwe: FW16 E2: challenge handshake (ServerHandshake) in craft-automation's control channel, one-frame auth kept 2026-11-16 12:35:15 +00:00
aiongg bacbfc1ffb merge-c4: 3.2: Rotate View Clockwise and Counterclockwise step in screen space, so a mirrored view turns the same way (#4931) 2026-11-16 12:35:07 +00:00
aiongg dd1dbea3d4 merge-c4: 5.1: LassoTool::outline_operation, the operation the open outline latched at its press 2026-11-16 12:34:31 +00:00
aiongg 8f78c213de merge-c4: 3.1: a Lasso click deselects only when its operation is New (#13612) 2026-11-16 12:34:06 +00:00