Commit Graph
6134 Commits
Author SHA1 Message Date
FredApps bcd5feda80 Merge pull request #2366 from storytold/perf/2218-ipc
ipc: consolidate integration tests and preserve discovery isolation
2026-11-20 18:29:32 +07:00
FredApps 06b351f51d Merge pull request #2364 from storytold/perf/2218-pcap
pcap: consolidate integration test binaries
2026-11-20 18:28:01 +07:00
FredApps 186d77bcad Merge pull request #2373 from storytold/perf/2218-menu
menu: consolidate tests and keep AppKit on the main thread
2026-11-20 18:22:34 +07:00
FredApps c8d7736628 Merge pull request #2362 from storytold/perf/2335-runtime-accessors
Share pass services and contract steps across component types
2026-11-20 18:20:49 +07:00
aiongg e7e877ac57 Merge pull request #2504 from aiongg/modifier-reads
craft-ui: a modifier read reruns the settled component that read it
2026-11-20 01:03:16 -05:00
aiongg a7fb8a074e Merge pull request #2490 from aiongg/picker-caption-widest
Preset picker: a caption range keeps the field at its widest caption
2026-11-20 01:02:42 -05:00
FredApps 051ec4fd62 Merge pull request #2389 from yoriswind/codex/shared-dpx-export-u8-r1
Avoid widened sample buffers in eight-bit DPX export
2026-11-20 12:36:48 +07:00
FredApps 54cb4af7e1 Merge pull request #2396 from yoriswind/codex/shared-dpx-decode-widen-r1
Reduce temporary memory when decoding DPX and Cineon
2026-11-20 12:31:20 +07:00
aiongg b5f9412055 Merge pull request #2469 from aiongg/drag-value-lag
Value drags rerun only the regions that show the value (photocraft#15859)
2026-11-20 00:22:50 -05:00
aiongg 34cfca1ee9 Merge pull request #2436 from aiongg/next-workspace-ci
ci: use main's workspace workflow on next
2026-11-20 00:21:43 -05:00
aiongg 0ca4fd7c26 craft-ui: a modifier read reruns the settled component that read it
Cx::modifiers read the pass's modifiers without a record, so a settled region
whose component painted by them (a menu bar underlining its mnemonics while Alt is
held) replayed its last paint until something else ran it. The read is now noted
under BindKey::Modifiers, and the pointer's begin hook notes an edit of that key
when the pass's modifiers, latched ones included, differ from the last pass's: the
regions that read them run in that frame, as for any edited value.

Part of storytold/photocraft#15476.
2026-11-20 04:41:35 +00:00
aiongg b83509532e Preset picker: the caption range sizes the field as a number field does
The field measured its face over both formatted ends of the range, in the
caption's proportional figures, so a value between them could still be wider
(4888 beside 5000) and change the chip's width. caption_range now names the
numeric range and decimal places of the caption; the field measures with
NumberCodec::widest of that range, and a face's thumbnail caption shows in
tabular figures, so the widest text is the widest number whatever its digits.
BrushPresetPicker writes its caption with the same codec.

Part of storytold/photocraft#15476, for storytold/photocraft#15859.
2026-11-20 04:39:56 +00:00
aiongg 3e9bbdff11 Merge pull request #2487 from aiongg/clipboard-wasm-imports
Clipboard: craft-platform's clipboard feature builds for wasm32
2026-11-19 23:24:47 -05:00
aiongg c6a1e2a372 Merge pull request #2470 from aiongg/canvas-view-clip
Clip a canvas's body to its view; the canvas shows its rulers
2026-11-19 23:24:05 -05:00
aiongg 3e85f5975a Merge pull request #2468 from aiongg/tool-overlay-clip
Brush tip outlines show only inside the canvas view (photocraft#15863)
2026-11-19 23:15:06 -05:00
aiongg a726e8a570 Merge pull request #2476 from aiongg/submenu-lag
Menus: a submenu row hover repaints only the menu
2026-11-19 23:14:23 -05:00
aiongg 3625da9073 Merge storytold next into next-workspace-ci 2026-11-20 03:52:02 +00:00
aiongg 7efbe8bb61 Merge pull request #2478 from aiongg/menu-gate-memo-key
menu: Gate and ModalRules key the runtime's command gate
2026-11-19 22:36:31 -05:00
aiongg 4c99a71f0f Merge pull request #2477 from aiongg/next-sync-1120
Merge storytold main into next (20 Nov sync)
2026-11-19 22:35:47 -05:00
aiongg e3189215d9 Preset picker: a caption range keeps the field at its widest caption
A chip whose caption follows a value (the Brush Preset chip's diameter) took the
width of its current caption, so the chip widened as the caption gained a digit.
During a size drag that moved what follows it on the bar, and the bar's kept
measure no longer matched, so the frame ran a second pass.

PresetPicker::caption_range names the captions at the two ends of what the caption
shows; the field measures with the wider, as a number field holds the widest value
of its range. BrushPresetPicker passes the captions of 1 and its largest diameter.

Part of storytold/photocraft#15476, for storytold/photocraft#15859.
2026-11-20 03:08:23 +00:00
aiongg c8fe2cf860 A modal cover shows and absorbs from its first pass
The cover's egui area had no size on its first show, so egui made that
pass a hidden sizing pass: no scrim and no absorbed hits. The discard pass
every container layer used to ask on its first show hid this; without it
the opening frame published no cover, and a modal's drag strips over the
title bar came a frame late. The cover area is seeded at its screen rect
before its first pass, as container layers are.
2026-11-20 03:02:28 +00:00
aiongg 90e6fc41d1 Guides story: the drag travels a quarter of the canvas 2026-11-20 03:01:25 +00:00
aiongg fa8447050d Clipboard: the native-only conversions are imported only off wasm 2026-11-20 02:55:37 +00:00
aiongg 5b9cd2e994 Cursor: reach the layer id through runtime::egui 2026-11-20 02:31:59 +00:00
aiongg 3b45620977 Reveals end at a container on its own layer; trials for the aim wake and layer reveals
- Step 15 routes a reveal to the scroll owner only from a component in its
  parent's flow (`in_flow`): a container on a layer, full-window layer or
  OS viewport passes neither its own focus reveal nor its body's reveal to
  the scroll region of its opener or to what lies under it.
- The part of a revealed rect a scroll body passes on is computed from the
  move it applied, after clamping.
- `Fixture::repaint_delay`, and trials: a crossed menu row waits for its
  rest with one wake, and a menu opened below a scroll region's view leaves
  the region's offset.
2026-11-20 02:10:55 +00:00
aiongg 2e70718e57 Guides story: is_some_and for the rulers' click 2026-11-20 02:09:17 +00:00
aiongg 871e9590f8 svg, usd: module doc links name their items by path 2026-11-20 02:05:44 +00:00
aiongg 995f290435 Canvas: rulers carry their zero; clip skips transformed bodies; ruler trial checks the strip 2026-11-20 02:03:59 +00:00
aiongg d3bcafaf55 Cursor trial: the cover area takes a unique id 2026-11-20 01:53:53 +00:00
aiongg e19e64edba menu: Gate and ModalRules are props of the runtime's command gate
Gate derives MemoProps. ModalRules keys on its plain fields and its revision, which stands for the
pending closure the derive cannot take; design-lint allows that one hand-written impl.
2026-11-20 01:51:38 +00:00
aiongg b05c1c27f9 Merge storytold main into next (20 Nov sync) 2026-11-20 01:48:18 +00:00
aiongg a7822c06c7 Menus: a submenu row hover repaints only the menu
Opening a submenu ran every settling region of the window for two frames,
in two passes each:

- Menu level changes (open or clear a submenu, step, activate or run a row)
  ask `request_own_repaint`: no app data changed, so only the menu runs
  again. A crossed row waits for the end of its rest with one wake instead
  of a repaint every pass; the rest starts at the pointer's last move.
- A container layer is placed by the size its container measured in this
  pass, so it reads and records no `layer_size` entry and asks no discard
  pass on its first show.
- A reveal queues a scroll jump only when the clamped offset moves, and a
  container on its own layer or window passes no reveal on to the scroll
  region of its opener's body.
2026-11-20 01:46:51 +00:00
Dylan M. Taylor 3dff4793f1 craft-develop, craft-color-transform: deduplicate spline, add 1024-entry compose_len, spaces, and warm-green WB test (#2464)
* craft-develop, craft-color-transform: deduplicate spline, add 1024-entry Lut1::compose_len, spaces, and warm-green WB test

* cct: check bradford identity and matrix tolerance in warm-green WB test

* style(color-transform): fix clippy needless_range_loop in cct test
2026-11-19 20:36:43 -05:00
Dylan M. Taylor 106134631c video: add TrackDecoderOptions, with_threads, and set_draft on TrackDecoder (#2461)
* video: add TrackDecoderOptions, with_threads, and set_draft on TrackDecoder (#778)

* fix(video): allow unused opts when decoder features disabled

* video: fix unreachable pattern in TrackDecoder::set_draft and verify inner state on reset

* fix(video): allow irrefutable_let_patterns when single decoder feature enabled

* fix(video): remove nonexistent hevc/av1 Decoder::threads test getters

* style(video): allow clippy::cognitive_complexity in track options test
2026-11-19 20:36:39 -05:00
Dylan M. Taylor 483f2ab81f craft-usd: extract neutral USDA/USDC scene, prim, and layer read/write (#778) (#2459)
* craft-usd: extract neutral USDA/USDC scene, prim, and layer read/write (#778)

* chore: update Cargo.lock for craft-usd

* craft-usd: add integration tests for USDA/USDC scene read/write (#778)

* fix(usd): use asset-only external reference syntax in scene test

* test(usd): include Shader child prim for material surface target in neutral layer test
2026-11-19 20:36:34 -05:00
Dylan M. Taylor 03d1afced9 svg: extract shared SVG document/CSS interpretation helpers (#778) (#2456)
* svg: extract shared SVG document/CSS interpretation helpers (storytold/craft-libs#778)

* svg: document doc_style::length unknown-unit px fallback

* style(svg): fix clippy field_reassign_with_default in doc_style test
2026-11-19 20:36:26 -05:00
Dylan M. Taylor 1a3be2d439 craft-develop: extract ToneMap/CameraTone and pure-Rust finish helpers (#2471)
* craft-develop: extract ToneMap/CameraTone and pure-Rust finish helpers

* fix(develop): add serde_json dev-dependency for tone tests
2026-11-19 20:23:11 -05:00
Alan Rockefeller bbe5b514a8 Dialogs: a Save over an existing file keeps its extension's spelling (#2114)
With Lowercase Extension on, saving over an existing PHOTO.PNG wrote
PHOTO.png: a second file beside the one the panel asked about on a file
system that tells letter case apart, or a silent rename on one that does
not. settled_save_path now lowercases only a name that does not exist yet.

Port of storytold/photocraft#9899, whose code moved here in
storytold/photocraft#15449.
2026-11-19 20:16:53 -05:00
Dylan M. Taylor 429937ad72 craft-dds: expose shared BC1-7, ETC1/EAC, and packed pixel decoders (#778) (#2460)
* craft-dds: expose shared BC1-7, ETC1/EAC, and packed pixel decoders (#778)

* fix(dds): qualify super::anchor in bptc test

* craft-dds: add independent known-answer test vectors for BC6H, BC7, ETC1, and EAC

* fix(dds): remove unused partition/anchor imports in bptc test
2026-11-19 20:03:14 -05:00
Dylan M. Taylor 1546550b0d pptx/drawingml: upstream DeckCraft table caps, has_notes_slide, ModelError, and import_report (#2463)
* pptx/drawingml: upstream DeckCraft table caps, has_notes_slide, ModelError, and import_report (#792)

* drawingml(table): mark insert_row and insert_col #[must_use]
2026-11-19 20:01:09 -05:00
Dylan M. Taylor d0ca0cdb28 craft-mesh: add COLLADA (.dae) and Alembic (.abc) readers (#2462)
* craft-mesh: add COLLADA (.dae) and Alembic (.abc) readers

* fix(mesh): use str::to_owned instead of into_owned in dae

* craft-mesh: make dae and abc opt-in features

* fix(mesh): remove unused Error import and use Entry API in abc
2026-11-19 20:01:05 -05:00
Dylan M. Taylor 7258e42d8d ps: expose public PostScript token/lexer scanner (read::lex) (#2458)
* ps: expose public PostScript token/lexer scanner (read::lex)

* ps(lex): only mark stream fresh on Ok token

* fix(ps): allow clippy::should_implement_trait on Lexer::next
2026-11-19 19:55:29 -05:00
Dylan M. Taylor 512a1b8e8b mesh, image-codecs: add clearcoat/sheen GLB, obj_with_mtl, and EXR chromaticities (#778) (#2466)
* mesh, image-codecs: add clearcoat/sheen GLB, obj_with_mtl, and EXR chromaticities (#778)

* fix(mesh): import Image and TextureRef in obj tests

* fix(mesh): construct Mesh via struct literal in gltf test
2026-11-19 19:50:59 -05:00
Dylan M. Taylor 0ffb1a0abe xlsx, drawingml: track dropped cells and chart data tables/pivot source/first slice angle (#778) (#2465)
* xlsx, drawingml: track dropped cells and chart data tables/pivot source/first slice angle (#778)

* xlsx, drawingml: add unit tests for dropped_cells, ChartDataTable, first_slice_angle, pivot_source (#778)
2026-11-19 19:39:15 -05:00
Dylan M. Taylor 0275c0b107 html, xfdf: extract standalone HTML writer and XFDF annotation/FDF grammar (#778) (#2457)
* html, xfdf: add standalone HTML writer and XFDF annotation/FDF grammar (#778)

* html, xfdf: escape image mime attribute and clarify rich_plain vs direct_text
2026-11-19 19:38:35 -05:00
aiongg 650694d5aa Clip a canvas's body to its view and show the rulers from the canvas
A body whose container sets scroll_owner is clipped to its body region. The canvas
pads its body by the rulers' strips and shows the Rulers itself over its own rect,
handing them its space and snap. The guide a ruler drag places reaches the body
through ruler_guide, so Guides::pending is gone, and the rulers' output comes back
in CanvasOutput. The tool host's paint and smart lines no longer clip to the canvas
rect.

Part of photocraft#15863, photocraft#15476.
2026-11-20 00:20:11 +00:00
Dylan M. Taylor 6719b207fa craft-pdf: add fonts feature with PDF encodings and Standard-14 metrics (#2454)
* craft-pdf: add fonts feature with ISO 32000-2 Annex D encodings and Standard-14 metrics

* pdf(fonts): call crate::fonts::win_ansi in std14
2026-11-19 19:14:36 -05:00
Dylan M. Taylor ff98d8b93c fix(idml): remove unused imports in model test (#2467) 2026-11-19 19:07:33 -05:00
aiongg 7f91600cb9 craft-ui: a given-value edit reruns only the settling children with no content version
An edit through a given binding unsettled every settling child for its frame and
the next, so each move of a slider, scrub or other value drag ran every panel body
of the window. A child with a content version sees what the app does with the edit
as a new version, as it does for input elsewhere, so a given edit now follows the
input rule: only children without a content version run.

Part of storytold/photocraft#15476, for storytold/photocraft#15859.
2026-11-20 00:02:58 +00:00
aiongg 3a6624df13 Brush tip outlines show only inside the canvas view, under the layers above it
A tip outline the tool host requests carries its region: the canvas's view on
the canvas's layer. The window takes the whole outline as its cursor image only
while it lies inside that region with no layer over it; otherwise the ring paints
on the canvas's layer clipped to the view, under panels, menus and dialogs, and
the window takes only its marks, as for a tip too large for an image.

photocraft#15863
2026-11-19 23:50:56 +00:00