Commit Graph
7039 Commits
Author SHA1 Message Date
kiwi4boy 79127c3c5a ppt-binary: PowerPoint 95 freeforms and groups
Freeforms (3016) now read as custom paths in their box: a move to the
first point and lines to the rest from the 3035 points, closed when the
low byte of the 3017 flag is 1, with the fill, line and shadow of their
format and, when open, the arrowheads of their 3007 atom. Points are
capped at 8192 and never read past their record; a freeform of fewer
than two points is left out. Their format's angle is not read.

Groups (3001) read as groups of their members, which keep their
absolute slide places: the group's box is the union of its members'
and is also its child space. Members are read as the page's objects
are, groups included, nested at most 32 deep, and count towards the
page's object cap.
2026-11-19 23:34:47 -05:00
aiongg eb8ac21eda tests: a label change runs its tab row once; a reveal measures again the rows the lead moves between
The tab row measures the new label before it places its tabs, so the
frame runs one pass and no discard pass runs the row again. A row whose
measured state the pass changes after step 5 measured it is measured
again with its new state.
2026-11-20 04:33:13 +00:00
aiongg 49f60f8a12 craft-ui: a collection's measure ahead is its own content, as its largest-row probe is
The rows' measure at step 5 runs under a layout memory boundary: no
transcript around takes its records, so a body's kept transcript serves
a settled frame as it did before the rows were measured there.
2026-11-20 04:33:13 +00:00
Dylan M. Taylor a7c6c9d61c image-codecs: extract JPEG and JP2 embedding probes (#2498) 2026-11-19 23:32:11 -05:00
Dylan M. Taylor f4c242fe21 test(raw): ensure CARGO_TARGET_TMPDIR exists in decode_report FixtureDir (#2502) 2026-11-19 23:32:07 -05:00
Martin BallandClaude Opus 5.5 9e099b475a Merge craft-libs next 3e9bbdff1 into the WordCraft port
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 04:29:29 +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
Martin BallandClaude Opus 5.5 5dda594ad1 Merge craft-libs next 3e85f5975 into the WordCraft port
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 04:24:38 +00: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
Dylan M. Taylor cfcc86242d ps(write): add line style, smooth shading, and image stream helpers (#2500) 2026-11-19 23:23:02 -05:00
FredApps ccd4ae3887 Include DDS texture cases in one integration binary 2026-11-20 05:17:04 +01:00
aiongg 247860db6d craft-ui: a roving group's owner writes its members' set positions
A member that gives no place of its own marks its stop at its report;
the group's owner, at its report after its body ran, writes each marked
member's position and set size from this pass's members. The mark is on
the stop record, so a replayed member carries it. Nothing reads last
pass's stops for a set position.
2026-11-20 04:16:58 +00:00
aiongg 6432fde0ec craft-ui: a collection measures its rows in view before it sizes itself
Step 5 measures the auto rows in the view the collection takes that this
pass has not measured, widths first, then heights, and sizes and places
the rows by that measure. The measuring run and the real run of a pass
share one measure through the pass stamp on the lazy store's row entry;
the content step measures only the rows it brings in itself and the rows
whose measured state this pass's input changed, and a size other than
the one the pass placed by asks for the frame's discard pass.

The row env and the row state known before input are one function each,
shared by the measure and the content step. ItemCx documents the
row-hook contract.
2026-11-20 04:16:58 +00:00
Dylan M. Taylor d0193d7e94 craft-rtf: add OutlineWriter for PowerPoint-compatible Outline/RTF (refs #778) (#2494) 2026-11-19 23:15:41 -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
FredApps 9118f7ff50 Include DXF line and pattern tests in integration suite 2026-11-20 05:14:50 +01:00
FredApps 4041815638 Merge remote-tracking branch 'origin/next' into perf/2218-raster 2026-11-20 05:14:46 +01: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
kiwi4boy c8e440d125 ppt-binary: PowerPoint 95 rotation direction, orientation bits, the other 12 autoshapes and shadow offset
PowerPoint 95 measures angles counter-clockwise, so every angle is now
negated into DrawingML's clockwise rot. For shape codes of 0 and up the
transform comes from the geometry alone: the byte above the code holds
counter-clockwise quarter-turns and a horizontal mirror made after them,
which become a clockwise rot and a horizontal flip, with the box turned
back after an odd number of quarters. The rectangle, rounded rectangle
and ellipse keep taking the angle from the format, without flips. A
mirrored trapezoid is the outline wide at the top, turned a half-turn
further and unflipped, so its text stays upright; otherwise it is the
trapezoid preset.

Codes 9 to 14, the object model's shapes 13 to 24, read as right arrows
(the arrow and thick arrow, in all four directions), home plate, cube,
balloon and seal, with adjust values matched to what PowerPoint 95 drew.
A code no probe showed is a rectangle with its fill, line and text. The
shadow now falls by the format's offset at +36 and +40, clamped to 10 in,
and is half transparent when +29 says so.

The sample check compares each straight outline against the polygon in
the rendering PowerPoint 95 saved beside its file.
2026-11-19 23:13:46 -05:00
FredApps c3c01fc11d Merge remote-tracking branch 'origin/next' into perf/2218-dxf 2026-11-20 05:13:45 +01:00
FredApps 4e0a3d5313 Keep memo token comparison within style 2026-11-20 04:56:51 +01:00
Martin BallandClaude Opus 5.5 bc4bb7bd73 Merge craft-libs next 7efbe8bb6 into the WordCraft port
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:53:30 +00:00
aiongg 3625da9073 Merge storytold next into next-workspace-ci 2026-11-20 03:52:02 +00:00
kiwi4boy e6c282e942 ppt-binary: PowerPoint 95 line styles, dashes, arrowheads, flips and quarter-turn rotation
PowerPoint 95 shapes now take their angle and both flips from the format
record (3005 +48 and +52) rather than the geometry, which holds the outline
as drawn: whole quarter-turns are folded into its box, so a box turned an
odd number of them is turned back about its centre. Lines read their width
from the line style (1 to 10 pt), their dots and dashes, and on lines the
start and end arrowheads from the 3007 atom. The shadow colour comes from
+30, with the scheme's shadow slot by default. The trapezoid, wide at the
top, is now its own outline instead of a flipped preset, so a user's flip
applies on top. Shadow offsets are still fixed at 6 pt.
2026-11-19 22:49:03 -05:00
Dylan M. Taylor d7a1a6aec6 Merge branch 'main' into feat/audio-dsp 2026-11-19 22:48:18 -05:00
kiwi4boy b8879a2b0c ppt-binary: OfficeArt trapezoids face the right way (#2491)
OfficeArt's trapezoid (shape type 8) is wide at the top; DrawingML's trapezoid preset is wide at
the bottom, so mapping one to the other turned the shape upside down. It is now the custom outline
PowerPoint writes when it saves such a shape as .pptx: the full width along the top, the bottom
inset by the adjust value (5400 by default, clamped to 0-10800). Text in it stays upright.
2026-11-19 22:39:29 -05: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
Dylan M. Taylor 057b0e3e01 fix(media): custom ftyp compatible brands and real ReferenceBlock deltas (#2486)
* fix(media): support custom ftyp compatible brands and real ReferenceBlock deltas

* fix(media): satisfy clippy::chunks_exact_to_as_chunks in ftyp test
2026-11-19 22:34:35 -05:00
Martin BallandClaude Opus 5.5 6eb08ef180 wasm: gate craft-print cancel token and craft-font-manager store imports off wasm32
On wasm32 the spooler-only `Cancel` internals (SENDING, CANCELLED_MESSAGE, start_sending)
and the SuiteStore imports (Arc, Catalog) were never used. They follow the same cfg as
their users, so the wasm check has no dead-code or unused-import warnings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:31:52 +00:00
Dylan M. Taylor 7ec2437906 Bound default loudness channel weights 2026-11-19 22:30:27 -05:00
Dylan M. Taylor 63029ff9cb Merge branch 'main' into feat/audio-dsp 2026-11-19 22:27:43 -05:00
kiwi4boy c7c00cc101 ppt-binary: read PowerPoint 95 shapes and lines (#2317, step 3)
PowerPoint 95's twelve shape codes now read as DrawingML presets with
their adjust values, and lines from their 3015 ends with flips for their
direction. The 3005 format gives each its fill and line colour (an RGB or
a scheme slot, or none), its shadow and a horizontal flip; the angle comes
from 3009 as before. A shape that draws nothing but text stays a text box,
and shapes of unknown codes without text are skipped. The trapezoid is
flipped vertically, as PowerPoint 95 draws it wide at the top. Line widths
and styles, vertical flips and shadow offsets are not read yet.
2026-11-19 22:20:40 -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
Martin BallandClaude Opus 5.5 93bc1d8fbb Ribbon story: the app look shows the body band
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE
2026-11-20 03:04:24 +00:00
Martin BallandClaude Opus 5.5 197d3b3b57 Ribbon gallery: framed and spare_buttons options, with a story
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE
2026-11-20 03:04:24 +00:00
Martin BallandClaude Opus 5.5 7df066cd9a Ribbon look: the body on a lighter band ruled above and below (RibbonLook::body)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE
2026-11-20 03:04:24 +00:00
Martin BallandClaude Opus 5.5 0eef719c72 Ribbon look: group columns a tight gap apart, so View fits with Zoom labelled as the old ribbon
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE
2026-11-20 03:04:24 +00:00
Martin BallandClaude Opus 5.5 ed5b2b06b5 Ribbon look row height reaches check boxes: View Show rows at the 22-point pitch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE
2026-11-20 03:04:24 +00:00
Martin BallandClaude Opus 5.5 ace9547545 Ribbon look: tabs rest in the text colour over a bar underline (RibbonLook::tabs); the story shows the whole look
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE
2026-11-20 03:04:24 +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
kiwi4boy 60d7a16ccc ppt-binary: read PowerPoint 95 placeholders and text (#2317, step 2)
PowerPoint 95 slides now hold their placeholders and text boxes, each with
its box (converted from master units about the slide's centre) and its text:
paragraphs with their level, alignment, bullet character and the indents of
the text's ruler, and runs with their font, size, bold, italic, underline and
colour, decoded as Windows-1252. Placeholder types use PowerPoint 95's own
numbering. The master's placeholders place the default master's, and its
footer row every layout's, through the overlay the PowerPoint 97 path uses,
now shared. Run tables and text are bounded by the text they cover.
2026-11-19 21:59:39 -05:00
kiwi4boy 6503815382 ppt-binary: README and NotPpt wording for PowerPoint 95
A slide's own background can be no fill as well as a solid colour, and NotPpt names PowerPoint 95
alongside 97-2003, since both are read.
2026-11-19 21:59:20 -05:00
Dylan M. Taylor c8087acbd9 hayro*: port pdfcraft vendor/hayro* patches (#2472)
* hayro*: port pdfcraft vendor/hayro* patches (storytold/craft-libs#778)

* hayro-syntax: fix test and merge compile errors from port

* fix(hayro-syntax): avoid moving params.control in lzw_flate test

* fix(hayro-syntax): include early_change in lzw_flate test

* hayro*: fix hayro-interpret compile errors and hayro-syntax test failures

* hayro*: fix duplicate char_code_to_unicode and super::LETTER in test

* hayro-syntax: fix predictor cancellation and ArrayIter parse failure tests

* hayro-syntax: restore bit-level PNG predictor fallback when control is set

* hayro-syntax: support Checkpoints cancellation inside unfilter_png

* hayro-interpret: remove duplicate blob::tests and require hayro-syntax 0.7.2

* hayro-interpret: cast MAX_COLOR_SPACE_DEPTH u32 as usize in test

* hayro: drop unvendored vello_cpu set_max_coverage/coverage_full calls

* hayro-interpret: restore interpret_form_contents call and TextPass order

* hayro-interpret: split ExtendedWarning out of InterpreterWarning for vectorcraft compatibility

* hayro-interpret: clone extended_warning_sink before ImageXObject::new closure

* hayro-interpret: restore OP/op/OPM ExtGState handling for overprint

* hayro-interpret: restore DecodeLimits and truncation reporting in decode_content

* hayro: restore on_plate DefaultColorSpaces bypass and cmyk_luminosity soft mask
2026-11-19 21:57:15 -05:00
mtlcl410 38b4001816 MIDI: imported SMF SysEx packets retain their payloads and timing on export (#2077)
* Preserve SMF SysEx packet payloads and timing across MIDI round trips

* Order cross-track note-offs before SysEx when writing format zero

* Diagnose truncated SysEx and guard merged packet streams

* Validate emitted event order around split SysEx

* Preserve real split boundaries when exporting SMF SysEx

* Preserve same-tick SysEx order and require real termination
2026-11-20 09:57:10 +07:00
FredApps e61b412dd3 Guard prepared leaf and text memo inputs 2026-11-20 03:56:04 +01:00
aiongg fa8447050d Clipboard: the native-only conversions are imported only off wasm 2026-11-20 02:55:37 +00:00
kiwi4boy e5ad48368d ppt-binary: cap PowerPoint 95 masters lower than slides
Each master becomes a copy of the caller's default master with its layouts, so a file listing
many masters is held to 256 rather than the slides' 65,536.
2026-11-19 21:34:54 -05:00
FredApps d6b7a5bee8 Follow nested modules beside explicit registry paths 2026-11-20 03:34:46 +01:00