Commit Graph
2043 Commits
Author SHA1 Message Date
ViktorBystrov72andViktorBystrov72 ef9f66476c Data merge: preserve line breaks in merged text fields (#2675) (#3164)
Co-authored-by: ViktorBystrov72 <18964918+ViktorBystrov72@users.noreply.github.com>
2026-11-26 21:50:03 -05:00
FredApps 411c647b38 Merge branch 'main' into perf/list-numbering-starts 2026-11-26 18:55:33 +01:00
FredApps 585dafc3bf Merge remote-tracking branch 'origin/main' into rr-1280
# Conflicts:
#	crates/engine/src/tests.rs
2026-11-27 00:26:07 +07:00
FredApps a5cefba603 Merge branch 'main' into rtl-features 2026-11-26 18:24:01 +01:00
FredApps 770dbed9a5 Merge branch 'main' into fix/2338-anchored-text-frames 2026-11-26 18:06:59 +01:00
FredApps 1a59e0b1e5 Merge branch 'main' into rtl-features 2026-11-26 17:49:40 +01:00
FredApps 3c9f1ef2e3 Merge branch 'main' into fix/2880-bottom-aligned-resize 2026-11-26 17:32:39 +01:00
FredApps f3b71a2d3f Merge remote-tracking branch 'origin/main' into rr-1280 2026-11-26 23:22:11 +07:00
FredApps 5167263136 Merge main into rtl-features (prefs.set help lists rtlFeatures and main's saveFormat; Preferences confirm saves both) 2026-11-26 23:19:34 +07:00
FredApps 2e970e0540 Merge remote-tracking branch 'origin/main' into rr-2343 2026-11-26 23:18:11 +07:00
FredApps 445050b173 Merge remote-tracking branch 'origin/main' into rr-2890
# Conflicts:
#	ROADMAP.md
#	docs/ui-parity.md
2026-11-26 23:16:21 +07:00
FredApps 027b8255b8 Merge branch 'main' into fix/2858-default-stroke-weight 2026-11-26 17:15:49 +01:00
FredApps baf93707e8 Merge branch 'main' into fix/hyperlink-page-number 2026-11-26 16:44:41 +01:00
FredApps e994dfa355 rustfmt interchange.rs (the IDML path chain from the main merge) 2026-11-26 22:31:18 +07:00
FredApps ea3f7ed439 Merge main into fix/hyperlink-page-numb (dest_param: this PR's page and anchor checks plus main's safe-URL check; one dest_label) 2026-11-26 22:30:36 +07:00
FredApps 69aad40e2f Merge remote-tracking branch 'origin/main' into pr-1105
# Conflicts:
#	apps/designcraft-web/Cargo.toml
#	apps/designcraft-web/src/main.rs
2026-11-26 22:17:33 +07:00
FredApps bca70a9a29 Merge main into save-format (open_idml now goes through import_interchange: the IDML document path comes from its package) 2026-11-26 21:24:27 +07:00
FredApps ccaf94825f Merge main into web relink (Relink to Folder: main's folder picker on the desktop, the browser's file picker on the web) 2026-11-26 21:04:50 +07:00
Weyert de Boer 094281926a Merge branch 'main' into fix/2338-anchored-text-frames 2026-11-24 16:45:37 +09:00
skylar taylor-barrick 7fc6b09707 Layers: Delete Unused Layers keeps layers used by grouped and anchored objects (#3184)
* Layers test: Delete Unused Layers keeps layers used by nested objects

* Layers: Delete Unused Layers counts grouped and anchored objects
2026-11-23 12:38:03 -06:00
211b667594 Text: validate explicit targets before reading or editing a story (#1809)
* Text: validate explicit story targets before selection fallback

* Text: allow explicit story targets without a selection

* Text: allow explicit targets with an empty selection

---------

Co-authored-by: sky <hi@sky.cc>
Co-authored-by: skylartaylor <skylartaylor@users.noreply.github.com>
2026-11-23 09:39:36 -06:00
skylar taylor-barrick bbd4b337e2 Edit: cutting an object clears an earlier text copy (#3158) 2026-11-23 09:38:17 -06:00
skylar taylor-barrick cde44fec2f PDF: whole-page flattening respects printing and layer export (#3157) 2026-11-23 09:37:44 -06:00
skylar taylor-barrick 5f17704917 Layers: Merge Layers moves grouped and anchored objects too (#3156)
* Layers: Merge Layers moves grouped and anchored objects too

* Layers test: use as_chunks for pixel counting (clippy)
2026-11-23 09:37:22 -06:00
skylar taylor-barrick b28cda37e7 Save: refuse a document that would not reopen instead of writing it (#3155)
* Save: refuse a document that would not reopen instead of writing it

* Format test: an over-deep document is refused before writing

* Format test: rustfmt blank line
2026-11-23 09:36:48 -06:00
skylar taylor-barrick 2d9b83b48e fix(links): preserve freshly placed artwork on immediate save (#3143)
Record a content hash from the placed bytes when no reliable timestamp is available. Keep proxy generation and ordinary link hashing in the worker.
2026-11-22 14:45:03 -06:00
aiongg 0848e1add6 Apply review fixes
- crates/epub/src/story_writer.rs
- crates/engine/src/cmd/endnotes.rs
2026-11-22 09:46:12 +01:00
Ramiro Roig 75996547e6 Fix: renumber continuing lists when a frame moves within its spread
The numbering-starts cache was keyed by spread address. An in-place edit of
an unshared spread keeps that address, and each preview of a drag frees the
last preview's spread so the next copy reuses it, so dragging a frame to the
other page of its spread kept the numbers from before the drag. The cache
entry now holds the spreads it was built from and compares them with
Arc::ptr_eq: while held they can be neither edited in place nor freed.
2026-11-22 09:46:12 +01:00
Mendi Marantz bfc05ab50c Merge main into rtl-features
# Conflicts:
#	contributors/people.toml
2026-11-21 23:50:12 +02:00
aiongg 706560d10c Merge pull request #2796 from aiongg/open-background
Open: read and parse documents off the UI thread
2026-11-21 00:39:04 -05:00
AlPaka1234 930171ef29 2880: account for inside stroke in width fit and keep sheared handle axis 2026-11-20 20:52:51 +00:00
AlPaka1234 a4a4dbdd4c Keep [None] default stroke on gap edits and allow tint edits at zero weight (#2858) 2026-11-20 20:33:14 +00:00
Claude ea1286bf00 Merge remote-tracking branch 'upstream/main' into save-format 2026-11-20 18:14:26 +00:00
Claude cdd8564c61 Merge remote-tracking branch 'upstream/main' into web-relink 2026-11-20 18:14:25 +00:00
Mendi Marantz 21a8c71a87 Merge main into rtl-features 2026-11-20 16:40:19 +02:00
AlPaka1234 265f0ca75e Preserve default stroke attributes when restoring zero weight (#2858) 2026-11-20 12:10:37 +00:00
AlPaka1234 f68d7a0c49 Address review feedback: expand defaultFillStroke test and rewrap doc comment (#2858) 2026-11-20 11:23:10 +00:00
AlPaka1234 b730bbb185 2880: ignore first-line indent on table lines in width fit 2026-11-20 11:13:16 +00:00
AlPaka1234 528c685be6 Merge remote-tracking branch 'upstream/main' into fix/2858-default-stroke-weight 2026-11-20 10:24:04 +00:00
.CooCooandCodex 209c8ab919 Dependencies: unify craft-libs at 30a568b97 for shared cutovers (#2889)
* Dependencies: take craft-libs main at 3af718585c

Every craft-libs dependency and patch in Cargo.toml now uses one
revision, craft-libs main at 3af718585c60d8e9bab05c241d7a28282c61f85c.
Cargo.lock changes only craft-libs packages.

The newer crates need these changes:

- craft-xml is at one revision, so the craft-xml-dtd alias is removed
  and the DTD adapter uses craft_xml::dtd.
- craft-svg's gradient paint carries its stops and its pattern paint
  carries its tile. Paste uses the first stop's color as before, and
  skips embedded image nodes, which the scene still counts for the
  paste warning.
- craft_svg::sniff::viewbox_size came from a craft-libs commit that is
  not in main. The IDML importer keeps the same bounded viewBox sizing
  as a local function and no longer depends on craft-svg.
- craft-svg's Limits has tree_depth, the depth after references such as
  <use> are followed. Images set it to MAX_SVG_DEPTH, and a test checks
  that a long <use> chain is refused.
- craft-ui adds the flyout width and top layout actions, which the
  iconic dock sends when a flyout's side or top edge is dragged.
  window.panel.layout rejected every action it did not list, so both
  are now checked like the other per-panel actions. A test checks that
  they are kept for a registered panel and refused for an unknown one.

* Panels: a group docked back keeps its flyout's width and top

craft-ui at 3af718585c saves a dock group's flyout width and top when the
group floats and restores them in its own restore path. Dock Panel for a
group that floated as a whole goes through DesignCraft's own path, which
replayed the height, minimized state and column but not the two flyout
values, so a widened or moved flyout came back at its default size and
place. The path now replays ResizeFlyoutWidth and MoveFlyoutTop with the
other saved state.

The images test's doc comment gives the nesting depth of its `<use>`
chain as four levels, counting the root as one.

* PDF: pdf-deps expects craft-libs 3af718585c

`cargo xtask pdf-deps` checks that craft-pdf, Krilla and the Hayro
crates resolve to one craft-libs revision named in xtask. The workspace
now takes them at 3af718585c, so the check expects that revision, and
docs/pdf-backend.md names it.

* IDML: a placed SVG with a byte order mark keeps its viewBox size

The importer's viewBox sizing looked for `<` as the first byte, so a
linked viewBox-only SVG that starts with a UTF-8 byte order mark was
placed at its GraphicBounds instead of its viewBox size. The mark is now
skipped first.

* Tests: the discarded-pass input test clears its texture changes

discarded_pass_does_not_acknowledge_injected_input dropped its frame
output without clearing textures_delta, so epaint panicked on drop
whenever the frame carried a texture change. With craft-ui at
3af718585c it failed in 2 of 3 full ui-egui test runs. The test now
clears it, as the tests around it do.

* Dependencies: take craft-libs crates from craft-libs main at 453b0da782

Every craft-libs git dependency and [patch.crates-io] entry moves from
3af718585c to 453b0da782, and xtask pdf-deps and docs/pdf-backend.md
name the new commit.
Cargo.lock changes only the source revision of the 50 craft-libs
packages; no package is added or removed and no registry package
changes version.

craft-update now inspects a release the app offers on a thread of its
own (storytold/craft-libs#1149), so the prompt opens at a later tick
instead of inside offer. updates_ui's startup_prompt_shows_and_closes
waits for that answer: it ticks on each immediate repaint request the
offer's thread makes until the prompt is open.

* Updates: the startup prompt test fails instead of waiting forever

offer_and_wait waits for the one immediate repaint the offer's thread
requests after it answers, ticks once, and then asserts that the prompt
is open. Before, it waited for a repaint after every tick, so an offer
that ended without a prompt (the launcher pinning the app while the
files were read) blocked the test instead of failing it.

NOTICE names craft-libs 453b0da782 as the source of the patched Hayro
crates, the revision Cargo.toml fetches them at, adds hayro-postscript,
which is patched from the same revision, and names the PdfCraft
revision the snapshots were re-synced to.

* IDML: a placed SVG's viewBox size comes from its root tag alone

svg_viewbox_size reads only the root's start tag instead of parsing the
whole file, so placing the same large linked SVG many times no longer
parses it each time. Files over 16 MiB still give no size. A viewBox
with a value that is not a number, such as "0 0 junk 200 100", now
gives no size, so the frame's GraphicBounds size the graphic; before,
the bad value was dropped and the other numbers were read as the
viewBox.

* IDML: a placed SVG's root tag is read with craft-xml's first_start

svg_viewbox_size reads the root's start tag with Options::first_start and a
pattern that matches any name, in place of its own event loop. A file whose
root is not an svg element still gives no viewBox size; the placement test has
a case for it.

* Cargo: drop the unused craft-xml-dtd alias again

The merge of main kept the craft-xml-dtd alias at craft-libs a5ac3aa05c, which this branch had removed. No crate uses it, and Cargo.lock does not change.

* chore: resolve shared BMP dependency pin with Cargo [skip ci]

* test(color): align FOGRA39 references and isolate no-BPC accuracy [skip ci]

---------

Co-authored-by: Codex <codex@openai.com>
2026-11-19 22:45:28 +07:00
AlPaka1234 0bab0f96cd 2880: keep right indent in left-anchored fit and tighten center-VJ check 2026-11-19 10:21:57 +00:00
AlPaka1234 a77656acad Merge main into fix/2880-bottom-aligned-resize 2026-11-19 09:46:46 +00:00
autocraft-bot[bot] 0b7f99b157 Merge main into fix/2858-default-stroke-weight 2026-11-19 01:41:26 +00:00
Mendi Marantz 030322cc32 Merge main into rtl-features
# Conflicts:
#	ROADMAP.md
2026-11-18 23:24:40 +02:00
autocraft-bot[bot] 5ce12193af Merge pull request #2954 from makesomethingshit/fix/2694-idml-data-merge-counts
Data Merge: count fields after reopening IDML (#2694)
2026-11-18 15:00:20 +00:00
autocraft-bot[bot] 05f08db538 Apply review fixes
- crates/engine/src/cmd/datamerge.rs
- crates/engine/src/cmd/datamerge/tests.rs
2026-11-18 14:22:41 +00:00
autocraft-bot[bot] f5a94959f9 Merge pull request #2946 from Hamza0101/fix/separations-say-when-dpi-is-lowered
Separations: say when the resolution was lowered to fit the plate size
2026-11-18 13:36:30 +00:00
autocraft-bot[bot] 53b80e7196 Apply review fixes
- crates/engine/src/separations.rs
2026-11-18 13:00:36 +00:00
autocraft-bot[bot] 294cef70d6 Apply review fixes
- crates/engine/src/separations.rs
2026-11-18 12:24:49 +00:00
FredApps 8381c068f7 Merge branch 'main' into web-relink 2026-11-18 19:05:39 +07:00