Commit Graph
4634 Commits
Author SHA1 Message Date
aiongg 2df33d2f01 Merge remote-tracking branch 'upstream/main' into sync/main-1116
# Conflicts:
#	Cargo.lock
#	crates/audio/src/lib.rs
#	crates/exr/src/decode.rs
#	crates/font-catalog/src/lib.rs
#	crates/ps/src/lib.rs
#	crates/svg/Cargo.toml
#	crates/text/Cargo.toml
#	crates/text/src/lib.rs
#	crates/video/Cargo.toml
#	crates/video/src/lib.rs
2026-11-16 14:23:07 +00:00
aiongg 10f681650e design-lint: PenDraft on the closed list (own or foreign, fixed by meaning) 2026-11-16 14:21:29 +00:00
aiongg 2c39aa8eb2 TransformBox: format the craft_behavior import 2026-11-16 14:19:34 +00:00
aiongg 4c6712623f Keys: texts record their place in egui's input as presses do (in_egui); withdraw finds presses and texts by that place through one lookup 2026-11-16 14:18:56 +00:00
aiongg fe7246f6c6 TransformBox: one predicate decides which parts follow inside the slop, for the declared sense and the grip; a click that ends with the box as pressed cancels (CancelReason::Unchanged) 2026-11-16 14:15:26 +00:00
FredApps c7a872e2f2 Merge pull request #1878 from storytold/onee/778-svg-guard-path
craft-svg: bound entity scans and reset smooth controls after Z
2026-11-16 15:13:24 +01:00
aiongg 8f1d4731d5 Props: vis option for setters; settings read follows open_with's folder and reports a damaged file; agent link rejects out-of-range ports 2026-11-16 14:10:46 +00:00
aiongg e1e8f86845 Pen: whose anchors a draft's are is a state of the handed-in draft (PenDraft), read by Delete, Backspace and remove_last alike 2026-11-16 14:10:37 +00:00
aiongg 594f455b80 Save for Web: the slice number inset is the tight gap token 2026-11-16 14:04:19 +00:00
aiongg fca840bcc5 Per-statement marks for the print marks; exception entries for the vec2 allows; slice number inset allow 2026-11-16 14:02:50 +00:00
FredApps e60702ab1c Merge pull request #1861 from storytold/render-parity-harness
craft-render-parity: compare two renders against a stated tolerance (#587)
2026-11-16 15:02:00 +01:00
aiongg 3bce302286 Allow markers for printer marks, print story page sizes and the Convert Point cursor tip 2026-11-16 14:01:16 +00:00
aiongg 5e5a4364dd design-lint: literal -1, 0 and 1 vectors are directions, not sizes (literal-size/vec2) 2026-11-16 14:01:16 +00:00
aiongg 4fb9c7c0a5 craft-draw: trial for the transform box's secondary-click mode menu 2026-11-16 13:58:43 +00:00
FredApps e836b6fd89 Merge pull request #1849 from storytold/feature/craft-macho
Add craft-macho: Mach-O slice tables and header names from Craft Anything
2026-11-16 14:46:00 +01:00
FredApps ceffcc52da Merge pull request #1846 from storytold/feature/craft-pe
Add craft-pe: PE/COFF headers from Craft Anything
2026-11-16 14:45:21 +01:00
aiongg c02478d2b1 HistoryEvent::rename/new_snapshot and SwatchEdit::move_group constructors 2026-11-16 13:44:24 +00:00
aiongg f647f41e82 Merge branch 'dl/api' into dl/all 2026-11-16 13:39:11 +00:00
aiongg be59c9572f Merge branch 'dl/props' into dl/all 2026-11-16 13:39:10 +00:00
aiongg b39d967677 Merge branch 'dl/contract' into dl/all 2026-11-16 13:39:10 +00:00
FredApps 17afe46839 Merge pull request #1843 from storytold/feature/craft-tar
Add craft-tar: TAR and cpio member walkers from Craft Anything
2026-11-16 14:36:11 +01:00
aiongg fbe5a16ffe design-lint: api/non-exhaustive: #[non_exhaustive] on public types and variants, constructors where other crates build them 2026-11-16 13:31:29 +00:00
aiongg 3be93ea350 design-lint: contract/keys, contract/egui-import, contract/pointer, test/harness: imaging's raw story presses through testing::input, SelectMask::start_pass, CylinderValues::moved, the magnetic width trial in the select trials 2026-11-16 13:29:30 +00:00
aiongg 2512b3c381 design-lint: style/token-read: StyleCx::of_env gives the style context of a scope (with_root and ContentPainterCx::style_cx build on it); the adjustments grid works out its columns from it 2026-11-16 13:29:30 +00:00
aiongg da0fcfd21a design-lint: props: derive the setters of ui-widgets components (#[prop]) and drop the hand setters 2026-11-16 13:27:45 +00:00
aiongg bc9b545e5f design-lint: props: derive the setters of ui-patterns components (#[prop]) and drop the hand setters 2026-11-16 13:27:45 +00:00
aiongg 394579be1c design-lint: props: derive the setters of ui-panels components (#[prop]) and drop the hand setters 2026-11-16 13:27:45 +00:00
aiongg a7bc89dde1 design-lint: props: derive the setters of text components (#[prop]) and drop the hand setters 2026-11-16 13:27:45 +00:00
aiongg 183d99f0c2 design-lint: props: derive the setters of print components (#[prop]) and drop the hand setters 2026-11-16 13:27:45 +00:00
aiongg 290f3f45f1 design-lint: props: derive the setters of imaging components (#[prop]) and drop the hand setters 2026-11-16 13:27:45 +00:00
aiongg 305bc92fbd design-lint: props: derive the setters of draw components (#[prop]) and drop the hand setters 2026-11-16 13:27:45 +00:00
aiongg 6697fc9ebc design-lint: props: derive the setters of color components (#[prop]) and drop the hand setters 2026-11-16 13:27:45 +00:00
aiongg d580ecfc16 design-lint: rustfmt the files of the contract fixes 2026-11-16 13:25:07 +00:00
aiongg f6ac586b18 design-lint: contract/entry, contract/pointer: CropSession::show_frame; the reset button reads the contract's click 2026-11-16 13:23:38 +00:00
aiongg af3758b54e design-lint: contract/egui-widget: the comp comment tip is a Text 2026-11-16 13:23:38 +00:00
aiongg 98500a9576 design-lint: contract/memory, test/literal-size: each preset kind's browser keyed by a salted Stack; the guide trial asserts the typed position 2026-11-16 13:23:38 +00:00
aiongg 25ea7622ba Merge branch 'fw/merge-i' into area/fwb2 2026-11-16 13:23:08 +00:00
aiongg ca1a3c72bf Merge branch 'fw/merge-h' into area/fwb2 2026-11-16 13:23:08 +00:00
aiongg 404e03bc63 design-lint: contract/platform, contract/memory: the freedesktop icon lookup lives in craft-window (theme_svgs), so caption icons need no target cfg; desktop icons kept in a session slot; the memory rule's scope_builder test reads the builder argument, not the closure body 2026-11-16 13:22:31 +00:00
aiongg 3af946a321 design-lint: contract/memory, contract/shadow: dock request lists in a runtime::memory session slot; Flyout::show_popup no longer hides the library's show 2026-11-16 13:22:31 +00:00
aiongg b96b48666f merge-fwh: pen: PenTool::deletes, Delete and Backspace left to the app for a draft the selected tool does not own (a864229579) 2026-11-16 13:21:50 +00:00
aiongg 839b67b628 Merge branch 'fw/merge-fb' into area/fwb2 2026-11-16 13:20:06 +00:00
aiongg 2c129a64e3 merge-fwf: F3 pointer slop: Sense::FOLLOWS_IN_SLOP (Sense widens to u32) declares a drag part that begins at the first move inside slop; TransformBox's following parts declare it; the suite's pointer-slop case expects one gesture ending in a Commit within slop for it, reading the part's sense by owner 2026-11-16 13:19:54 +00:00
aiongg 62523e765b design-lint: contract/egui-import, contract/memory, test/cfg-test: ui-canvas's picture slot is a contract PaintSlot (PaintUi::reserve_slot); tool fixture and brush story ids and memory through runtime::memory and StoryData; ruler tick trial in the integration binary 2026-11-16 13:19:50 +00:00
Dylan M. TaylorandVoiceLessQ 6ef2c053df tiff: share allocation-free first-image compression probe (#1867)
* tiff: share WordCraft classic compression probe

Extracted from storytold/wordcraft crates/geom/src/picture.rs at fe8a8a838cde68b272ac68429e53049347feab40. Original implementation by VoiceLessQ; retains Dylan Taylor duplicate-tag hardening from ab0020d6f.

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>

* tiff: cover compression probe refusal and endian parity

* test(tiff): allow assertions on bounded fixture conversions

---------

Co-authored-by: VoiceLessQ <t12kaem@gmail.com>
2026-11-16 08:19:29 -05:00
aiongg 464ded51f4 merge-fwi: craft-settings: SettingsStore::read, a read-only load on the store's own load path 2026-11-16 13:18:40 +00:00
2f8b328c6f Add craft-elf: ELF program headers and dynamic entries from Craft Anything (#1851)
Moves the header pieces of Craft Anything's crates/formats/src/elf.rs
into a pure-Rust crate: the class/endian-aware reader, program_headers,
ProgramHeader, dynamic_entries, va_to_off, and the segment type,
permission and dynamic tag names. Mitigations, dynamic symbols, symbol
versions and core-file notes stay in the app.

Part of #778.

Co-authored-by: BFlat <bombayapirat@gmail.com>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
Co-authored-by: GGWA <65288322+rech4210@users.noreply.github.com>
2026-11-16 08:18:20 -05:00
aiongg 858b1c1793 merge-fwh: anchor tools: AnchorTool, the canvas tool of Add/Delete Anchor, Convert Point and Direct Selection (no press, own cursor, shown pen draft) 2026-11-16 13:17:17 +00:00
Dylan M. TaylorandAndy Ching 046a7229af fix(docx): integrate VML fallbacks without breaking linked text-box stories (#1864)
* craft-docx: write Word 2010 shapes inside mc:AlternateContent with a VML fallback

A shape was written as a bare `wps:wsp` in `w:drawing`. Word 2007, and
Word 2000-2003 with the Office Compatibility Pack, don't know `wps` and
refuse the whole file. Word writes such shapes in `mc:AlternateContent`.

`write_shape` now guards the drawing with `mc:Choice Requires="wps"` and,
for rectangles, text boxes, rounded rectangles and ellipses, adds an
`mc:Fallback` with the shape as VML: size, position, z-order, wrapping,
fill, outline and the text box's text (copied from the choice's output,
so the story isn't written twice). Other kinds get no fallback; an old
reader skips that shape and still opens the file.

Refs storytold/wordcraft#6849

* craft-docx: guard a shape only when it gets a VML fallback; keep more in the fallback

A shape guarded by `mc:AlternateContent` with no fallback is skipped by
a reader that doesn't know `wps`, and dropped on that reader's next save:
worse than refusing the file. Such shapes are written bare again; only
shapes with a VML form are guarded.

The VML fallback also keeps the shape's own stacking order (a floating
object in its text box moved `self.z` on), its wrap distances, its hidden
flag and its text box's text direction.

* craft-docx: keep behind-text shapes' order in the VML fallback

A behind-text shape's fallback `z-index` was the negated `z`, which
reverses the order of overlapping behind-text shapes. It is now `z`
shifted below zero within signed 32-bit range, so a higher `z` still
stacks higher; other shapes' `z-index` is capped at `i32::MAX`.

* fix(docx): preserve linked text boxes without an incomplete VML fallback

---------

Co-authored-by: Andy Ching <53651198+andyching168@users.noreply.github.com>
2026-11-16 08:16:40 -05:00
FredApps dd345db898 image-codecs: read a raster's resolution from its headers (resolution_probe) (#1838)
* image-codecs: read a raster's resolution from its headers (resolution_probe)

file_resolution(bytes) gives the pixels per inch a JPEG, PNG, WebP, BMP or
classic TIFF records without decoding pixels. JPEG uses the decoder's marker
scan (Photoshop, XMP, EXIF, then JFIF), PNG reads pHYs as the decoder does and
falls back to eXIf, WebP its EXIF chunk, TIFF its IFD0 tags; BMP reads the
info header's pixels per metre. Values outside 1-100000 ppi count as none.

DesignCraft (crates/images/src/resolution.rs) and FigCraft
(crates/format/src/density.rs) each carry their own marker and chunk walkers
for this; they can switch to the shared probe.

Part of #778 and #785.

* image-codecs: resolution_probe reads only a whole nine-byte pHYs, and a zero one leaves eXIf

A pHYs chunk that declares any other length, or is cut off before its
CRC, records nothing, and its data is no longer read from the bytes
after it. A zero pixels-per-metre count records nothing either, as in the
decoder, so the eXIf resolution still answers.
2026-11-16 08:14:38 -05:00