Commit Graph
8520 Commits
Author SHA1 Message Date
keithcsqueensu f4917bc47e craft-math: the control-word check stays linear over a run of letters
ends_with_control_word walked back over the whole trailing run of
letters for every letter written, so a long run took quadratic time:
200,000 letters took about 10 s in a release build, and 400,000 did not
finish in 3 minutes in a test build. The output position after the last
plain letter is now remembered; while the output still ends there its
trailing letters are plain text and are not scanned again.

Review finding on #1162 (ends_with_control_word).
2026-11-20 01:22:46 +00: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
Martin Ball 9a4dd39d3a Workspace clippy: fix lints across ui crates and tests 2026-11-20 00:56:55 +00:00
dotCooCoo 3fb6fa87c6 Merge main into fix/update-test-attach-retry 2026-11-19 16:56:40 -08: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
Martin Ball e79bf44682 ui-widgets: every bar button face boxed 2026-11-20 00:51:45 +00: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
Martin Ball 83b39eda59 Workspace clippy: boxed bar button faces, a split-menu body type, Id::unique in tests, unused leftovers 2026-11-20 00:50:26 +00:00
Martin Ball 1ae0d678ba Workspace clippy: unused imports, auto-deref, an unused clipboard helper, a chord-match type, field facts grouped, trial asserts, device tests under cfg(test) 2026-11-20 00:48:46 +00:00
Martin Ball 4d86420bcf platform: the portal watcher follows changes in its own function (cognitive complexity) 2026-11-20 00:43:46 +00:00
keithcsqueensu 4e5f883c93 Merge storytold/craft-libs main into math-ports 2026-11-20 00:40:38 +00:00
Martin Ball f77301a76d Merge follow-up: resolve_in takes Reads; the host-key trial gives states through CommandStates; cargo fmt 2026-11-20 00:40:05 +00: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
keithcsqueensu 6c7e2c71d3 craft-math: a dropped character no longer joins a command to the next letters
linear_to_latex separated a control word from a following letter only by
looking at the next input character. A character it then dropped (an
unmatched 〖 or 〗, or a control character) hid the letter after it, so
`\in〗put` and `∈〗put` were written as `\input`, a command the exported
.tex would run on the machine of whoever compiles it. A letter is now
separated whenever the output so far ends in a control word.

Review finding on #1162 (latex_text.rs, the 〗 arm). The control
character case was already on main.
2026-11-20 00:37:18 +00:00
Martin Ball e9f8979aac Merge craft-libs next 200447091 (memo-resolve, drag handles) into the WordCraft port: story command states through CommandStates 2026-11-20 00:36:56 +00: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
FredApps ec3a32d0c2 Isolate generated track fixtures per test 2026-11-20 01:15:29 +01: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
aiongg 910a14280f craft-ui: a component joins its body's roving group in the pass it says so
Stops register after update, which calls Cx::join_roving, so a stop and its focusable parts are in the body's
roving group from the first pass that shows them. Membership is a field of the pass (roving_member), read by the
stops and the report step; the pass-stamped join slots in egui memory (join_group, member_group, join_part_group,
part_group) go. testing::focus::pass_stop_groups reads what the running pass registered.
2026-11-20 00:11:15 +00:00
aiongg cfb62ec86f craft-ui: the layout memory a run keeps is a record fact, not journal entries
A run notes each layout memory entry and kept transcript it keeps (replay::note_layout_keep, from read, record,
end_measure and kept_serves) in Facts::layout_keeps, merged outward like owners. A replay keeps them through one
layout_memory::keep and passes them to the record open around it. The journal no longer holds where the run measured,
which changes with the path layout memory takes and means nothing to a replay.
2026-11-20 00:11:15 +00:00
aiongg a818e5dc45 craft-ui: the replay audit compares a moved replay with the kept run moved where the replay adds it
A view whose room moved (a scroll) replays its record shifted. Its audit run compares with the kept record as that
replay adds it: egui's records through PassRecords::shifted, journal entries with their arguments shifted, and the
kept rect moved by the shift's offset. journal's again is Copy (every capture-free closure is).
2026-11-20 00:11:15 +00:00
aiongg bf98f15211 egui: repin to bcdeb7bb8 (a part's records after a sizing pass; no empty shapes or sizing widgets; PassRecords::shifted) 2026-11-20 00:10:09 +00:00
aiongg 4417218eca ci: the Workspace gate's Linux leg runs the UI crates' tests again with the replay audit, from the same build 2026-11-20 00:10:09 +00:00
aiongg b257b150fb craft-ui: the replay audit runs every memoized view that would replay and compares it with the replay
Test builds only. With CRAFT_UI_AUDIT_REPLAY=1 (or testing::audit_replays), the outermost view that would replay in a
real pass runs for real inside an audit record; the kept run stays as it was. The run is compared with what the replay
adds: the view's rect, paint, widget rects and AccessKit nodes (PassRecords::first_difference), focus registrations,
the journal and the output. A difference panics with the view's name and the first difference of each kind. Counters
count nothing inside an audit run, so the count trials hold under the audit.

A record that paints a paint callback is blocked: its view runs every pass, and the audit names it.
2026-11-20 00:10:09 +00: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
FredApps 0290ef624a Include track decoding trials in video integration suite 2026-11-20 00:54:24 +01:00
FredApps b73ad070b2 Merge remote-tracking branch 'origin/next' into perf/2218-video 2026-11-20 00:52:34 +01:00
FredApps efa69b8bb8 Keep shared resolved labels in registry trial 2026-11-20 00:52:06 +01: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
FredApps b5bfa1d29d Verify focus lookup after replaying a recorded stop 2026-11-20 00:44:13 +01:00
FredApps 236df21be2 Merge remote-tracking branch 'origin/next' into publish/registry-2332
# Conflicts:
#	crates/ui-shell/tests/it/commands/mod.rs
2026-11-20 00:43:55 +01:00
David Mann 2004470919 Merge pull request #2285 from davidmann4/anchor/12707-drag-handles
Add Anchor: a drag from a segment pulls out the new anchor's handles (photocraft#12707)
2026-11-20 00:42:48 +01:00
FredApps 26aaabc630 Merge remote-tracking branch 'origin/next' into perf/runtime-accessors
# Conflicts:
#	crates/ui-contract/src/runtime/focus.rs
2026-11-20 00:42:26 +01:00
dotCooCoo ebbc62b93d Update tests: the attach retry calls busy() 2026-11-19 15:39:12 -08:00
Terra854 f428c3d36e sqlite: add bounded wire decoding helpers (#2446) 2026-11-19 18:34:01 -05:00
Dylan M. Taylor 01c89f9a23 idml: add reusable designmap schema emission (#778) (#2455)
* idml: separate reusable designmap schema emission (#778)

* test(idml): split designmap schema roundtrip test for clippy
2026-11-19 18:32:24 -05:00
Dylan M. Taylor 80c1ff2d4a rustfmt framework batch 4 2026-11-19 18:25:32 -05:00
Dylan M. Taylor 93b24900f3 Merge branch 'pdf-port/fwb4-d' into pdf-port/followups 2026-11-19 18:25:03 -05:00
Dylan M. Taylor 352b1897ca Merge branch 'pdf-port/fwb4-c' into pdf-port/followups 2026-11-19 18:25:03 -05:00
Dylan M. Taylor d420c3e1c5 Merge branch 'pdf-port/fwb4-b' into pdf-port/followups 2026-11-19 18:25:03 -05:00
Dylan M. Taylor c9fe3946ec Framework batch 4 d: port follow-ups (see runs/fwb4-d.md) 2026-11-19 18:25:02 -05:00
Dylan M. Taylor 895d5a46f8 Framework batch 4 c: port follow-ups (see runs/fwb4-c.md) 2026-11-19 18:25:02 -05:00
Dylan M. Taylor d9c0813c95 Framework batch 4 a: port follow-ups (see runs/fwb4-a.md) 2026-11-19 18:25:02 -05:00
Dylan M. Taylor c7884b3362 Framework batch 4 b: port follow-ups (see runs/fwb4-b.md) 2026-11-19 18:25:02 -05:00
dotCooCoo 9bb003847d Merge main into fix/update-test-attach-retry 2026-11-19 15:23:47 -08:00