Commit Graph
24364 Commits
Author SHA1 Message Date
dotCooCoo 8a3fe259e8 Print: file.print in the app passes maxPages on to the engine
The app's file.print forwarded preset, settings, format, level and
flattenerPreset to the engine but dropped maxPages, so a script that set
a page limit through Document.print (added in #9087) still printed or
saved every page. The app now forwards it, returns the engine's
{pages, format} without printing or saving when the job is past the
limit, and passes an explicit null on so the engine rejects it instead
of treating it as no limit. The command text in both catalogs lists the
parameter.
2026-12-02 00:41:23 -08:00
.CooCoo e8a6aa85c0 Merge pull request #10513 from dotCooCoo/fix/tests-text-doc
Tests: text and doc tests check what the code returns, not only that it is there
2026-12-01 19:12:22 -08:00
.CooCoo 3860a8025c Merge pull request #10502 from dotCooCoo/fix/common-tangents-metaball
Path Precision Tools: Common Tangents and Smooth Bridge are one dialog
2026-12-01 18:28:19 -08:00
.CooCoo 2b67583bf0 Merge pull request #10516 from dotCooCoo/test/svg-pdf-eps-pass
Tests: SVG, PDF and EPS tests check what they claim, and a gradient without stops exports as one that pads
2026-12-01 18:24:21 -08:00
.CooCoo d6c378d227 Merge pull request #10512 from dotCooCoo/fix/import-fuzz-tests
Tests: import_fuzz's two regression tests check that their input reaches the export
2026-12-01 18:17:26 -08:00
.CooCoo b12269e64e Merge pull request #10514 from dotCooCoo/chore/tests-color-effects
Tests: color and effects tests check behavior, not their own tables
2026-12-01 18:05:06 -08:00
dotCooCoo 2b50799ed5 Merge main into fix/tests-text-doc 2026-12-01 17:53:19 -08:00
dotCooCoo 5071f17319 Tests: skip the Hebrew mark cluster test when no font covers Hebrew
hebrew_marks_stay_with_base_clusters asserts exact glyph start offsets,
which depend on the face that shapes the word. It now skips, as the
sibling font-dependent tests do, when no installed face covers shin,
lamed, vav and final mem.
2026-12-01 17:53:19 -08:00
.CooCoo 051e5e385f Merge pull request #10368 from dotCooCoo/fix/new-document-spacing
New Document: Preset Details rows stand a stack gap apart
2026-12-01 17:52:03 -08:00
dotCooCoo 771e73d405 Tests: Hebrew mark clusters must cover the whole word
hebrew_marks_stay_with_base_clusters now calls assert_source_coverage, so
glyphs that start at the four letters but leave the marks out of their
source ranges fail the test.
2026-12-01 17:47:59 -08:00
dotCooCoo ee56902432 Merge main into fix/tests-text-doc 2026-12-01 17:38:46 -08:00
dotCooCoo 52d08f0f9c Tests: SVG, PDF and EPS tests check what they claim
Assertions that ran all() over a list that could be empty now check the
list's length first: mesh points, image inks, glyph origins, imported
text, the PDF mesh and arrowhead paths, and the resampled CMYK pixels.
An image that takes a Warp from its art style is checked to keep none of
the look's fills and strokes, instead of checking each of none.

The convolve-matrix tests check that the filtered rectangle is imported,
not only that the import returned Ok. The fan-out clip path test moves
to a unit test that counts the clip paths read. The self-nesting symbol
test checks that the other symbol comes back. The EPS level and preview
id test checks the param values and the trimming and case rules instead
of looping over every value. The ignored PDF text-heavy timing run says
why it is ignored.

A gradient that repeats or reflects with no stops now paints as one
that pads. Before, PDF export wrote it as two 160 by 160 images and EPS
wrote three runs of a conic where one that pads writes one;
`Gradient::is_spread` is false without stops. `paint.setFill`'s params
still report the spread.
2026-12-01 17:38:19 -08:00
.CooCoo 6c3e10a8fd Merge pull request #10503 from dotCooCoo/fix/gradient-cmyk-sliders
Gradient: the stop popover's CMYK sliders keep the stop's own values
2026-12-01 17:36:51 -08:00
.CooCoo 44522e9b7e Merge pull request #10506 from dotCooCoo/fix/include-bleed-native-files
Export for Screens: Include Bleed files of an artboard hold the bleed once
2026-12-01 17:32:13 -08:00
dotCooCoo beeeacafe5 Tests: text and doc tests check what the code returns, not only that it is there
Tests in vectorcraft-text and vectorcraft-doc that could pass on an empty
result, or that only checked a result exists, now assert the values:

- Blend: gradient steps assert their stop count before checking each
  stop's swatch, tint and plates; the odd dash blended to solid asserts
  the whole pattern; a copied step asserts its members.
- Symbols: limiting depth keeps every symbol; a stroke override on type
  keeps the run it styles.
- File fonts: an extreme descent clamps to the lowest table value and
  the Windows descent still fits.
- Invert wrap on a tangled shape asserts the line still meets it.
- Bidi, ligature carets, Thai and whitespace fallback: the glyph and
  line counts are asserted, Hebrew points stay in their letters'
  clusters, and every character of an isolate test has a glyph.
- Glyph categories, trace views, compound shape modes and digit
  systems check written-out ids instead of a round trip over every
  value.

Removed joins_on_a_circle_are_measured, which printed measurements and
asserted nothing, and chord_placement_leaves_the_join_gap_above_the_baseline,
which checked arithmetic done in the test itself;
joined_glyphs_meet_on_a_curved_path covers joined type on a curve.
2026-12-01 17:25:24 -08:00
dotCooCoo c58415b307 Tests: color and effects tests check behavior, not their own tables
Parse tests in the color crate looped over every id or label and parsed
it back. Blend modes, policies, harmony rules, recolor methods and WCAG
categories parse by looking the text up in that same table, so those
loops could not fail. They now parse representative ids, labels and
spellings, and the edge cases: "Color" next to "Color Burn", empty
text, and a label where only ids parse.

- default_swatches_parse read swatch.rs as text. It now checks the
  built swatches: no two solid swatches share a color (a bad hex
  literal falls back to black), and the Sunset and Ocean stops equal
  the swatches their literals name.
- loads_system_cmyk_icc ran only on macOS and returned early without
  the system profile. loads_icc_files_and_refuses_bad_ones runs on every
  native target: a missing file is an I/O error naming the path, a file
  that is not a profile is refused, and a built-in profile's bytes are
  refused for their name.
- the_other_libraries_keep_classic_mixing_and_centered_midpoints is
  removed: those libraries are built with Gradient::new's defaults.
- pixel_timings and bench_catalog_lookup are removed. They were ignored
  and only printed timings.
- Checks over lists that can be empty now also check the count:
  reverse and move keep every stop, a conic draws its 4 wedges, each
  harmony gives at least two colors, the fit leaves patches out, the
  wireframe draws edges, a flat warp keeps its anchors, a gradient
  stroke has slices, and fitted dashes on a curve are drawn.
- the_effects_are_colour_adjustments_in_their_own_menu checks one
  add-on effect and one effect outside it instead of every entry.
2026-12-01 17:24:39 -08:00
dotCooCoo 21f9323fcf Tests: import_fuzz's two regression tests check that their input reaches the export
svg_type_shifted_two_billion_points_exports_to_pdf now checks that the
SVG import keeps the type's shift of more than 2,000,000,000 pt, and that
the exported PDF leaves the type out, read back with the PDF importer.
Before, it checked only that the export returned Ok, so an import that
dropped or clamped the shift made it pass without reaching the bound.

a_long_thin_shape_with_a_shadow_renders_and_exports now checks that the
Affinity import gives exactly one shape with a drop shadow, more than
3,000,000 pt wide, before it renders and exports it. Before, an import
that dropped the shadow made it pass without drawing one.

The other 66 test-lint hits in import_fuzz.rs are property tests whose
claim is that hostile input loads, renders and exports without a panic.
Their helpers (survive, survive_library and the others) fail the case
through TestCaseError, which the no-assertion rule does not count.
2026-12-01 17:22:04 -08:00
FredApps b242c6498a Merge pull request #9214 from tareq-halaby/feat/arabic-language-support
refactor(i18n): prepare Arabic language registration and 6-form plurals
2026-12-02 02:21:19 +01:00
FredApps 7fc3da2964 Merge branch 'main' into feat/arabic-language-support 2026-12-02 01:45:37 +01:00
.CooCoo 5970647dec Merge pull request #10508 from dotCooCoo/fix/quick-pen-touchpad-test-lint
Tests: exempt the macOS-only Quick Pen touchpad test from never-run
2026-12-01 16:18:04 -08:00
FredApps c3d4cd7444 Merge branch 'main' into feat/arabic-language-support 2026-12-02 01:08:16 +01:00
FredApps b13b1457d2 Merge pull request #5450 from Taha-Mahmoodi/svg/export-length-unit
Fix #4462: SVG export can write width and height in mm, cm or in
2026-12-02 01:07:05 +01:00
dotCooCoo a0f7ba0ed1 Tests: exempt the macOS-only Quick Pen touchpad test from never-run
main's CI fails at test-lint since #8808 merged: keys_held_during_a_touchpad_gesture_count_until_it_ends is compiled only on macOS, which no CI test leg runs. egui reports a touchpad gesture's phases only on macOS; on Windows and Linux it reads a touchpad's Ctrl+scroll as a pinch, so the test cannot run there. The allow comment names that reason.
2026-12-01 15:40:44 -08:00
dotCooCoo 2157200131 Merge main into fix/new-document-spacing 2026-12-01 15:38:11 -08:00
FredApps 559a2205d5 Merge branch 'main' into svg/export-length-unit 2026-12-02 00:35:06 +01:00
.CooCoo 3852fa4afb Merge pull request #10484 from dotCooCoo/fix/pathops-cap-reports
Pathfinder: Divide and Live Paint report paths too complex to map
2026-12-01 15:33:36 -08:00
FredApps 5a4a558f5c Merge branch 'main' into svg/export-length-unit 2026-12-02 00:29:33 +01:00
.CooCoo 977062a652 Merge pull request #10462 from dotCooCoo/fix/colorcontrast-isolating-group-test
Tests: check the contrast answer for a Difference square in an isolating group
2026-12-01 15:19:00 -08:00
.CooCoo ae508e0179 Merge pull request #10500 from dotCooCoo/fix/reset-warning-dialogs
Preferences: Reset All Warning Dialogs turns dismissed warnings back on
2026-12-01 15:14:44 -08:00
.CooCoo aa557da659 Merge pull request #8808 from dotCooCoo/feat/quick-pen-scroll-arc
Quick Pen: Ctrl+wheel over the canvas changes the arc size
2026-12-01 14:57:33 -08:00
dotCooCoo bb9a4463ee Merge main into fix/include-bleed-native-files 2026-12-01 14:38:42 -08:00
dotCooCoo 86a5efd04c Export for Screens: Include Bleed files of an artboard hold the bleed once
With Include Bleed, a .vectorcraft, .ai or EPS row wrote the artboard
already grown by the document's bleed and kept the document's bleed as
well. Opened again, the file had the bleed outside the grown artboard, so
a PDF with the document's bleed came out with it twice: a 3 mm bleed made
a 6 mm one.

These files now hold the grown artboard with a bleed of 0. PDF rows and
Full Document files are unchanged. The params text and docs/mcp.md say so.
2026-12-01 14:38:27 -08:00
.CooCoo c5ad63ace7 Merge pull request #10450 from dotCooCoo/fix/swatch-library-freeze
Library panels: a large library scrolls without rebuilding its rows every frame
2026-12-01 14:30:46 -08:00
dotCooCoo 7e7826c6e9 Gradient: the stop popover's CMYK sliders keep the stop's own values
The Color tab of the gradient stop popover gave its Color panel only the
stop's sRGB, so every frame the rows worked their values out again from
that sRGB. On a CMYK stop, typing a value or dragging one slider rewrote
the other channels: typing Cyan 40 on C10 M20 Y30 K5 gave M17.3 Y24.7 K0.

The popover now passes the stop's values in its own model, as the Color
panel does, so a typed value stays as typed and a drag changes only the
dragged channel. The new test types Cyan, sets Magenta and drags Yellow
on a CMYK stop and checks the exact channel values after each edit.
2026-12-01 14:25:21 -08:00
.CooCoo f05e30191a Merge pull request #10434 from dotCooCoo/fix/tight-ui-test-values
Tests: check exact values in panel and dialog tests
2026-12-01 14:21:50 -08:00
dotCooCoo 67ae8f8e58 Merge main into fix/common-tangents-metaball 2026-12-01 14:18:44 -08:00
dotCooCoo 5d494db4d9 Tests: Connect tangents' external shape does not cross itself
The test checked only which corners the shape has, so corners joined in
the wrong order passed. It now also checks the shape's area.
2026-12-01 14:16:38 -08:00
.CooCoo 4596f1a8be Merge pull request #10374 from dotCooCoo/fix/swallowed-regression-guards
Tests: guards check the environment, not the output under test
2026-12-01 14:10:23 -08:00
dotCooCoo 827f4fc87e Tests: make isolation change the contrast answer for the grouped Difference square
The white square behind the Difference square was opaque, so the art behind
the group never reached the blend and the test gave the same answer with
isolation off. That square is now 50 % opaque. The test checks that the
isolating group gives one answer and that the same group without isolation
reports that the art behind the selection is not one color.
2026-12-01 14:10:14 -08:00
.CooCoo 0667ef8644 Merge pull request #10421 from dotCooCoo/chore/test-lint-rules
xtask: test-lint reports mirror, constant-echo, fixture-only, never-run and exact-pixel tests
2026-12-01 14:01:51 -08:00
.CooCoo eaceffc996 Merge pull request #10356 from dotCooCoo/fix/issue-10262
Fix #10262: Document Info scrolls in a short dock group
2026-12-01 13:54:30 -08:00
dotCooCoo 7183a91544 Preferences: Reset All Warning Dialogs turns dismissed warnings back on
General gets a Reset All Warning Dialogs button after the Show External
Script Warning row. It turns every warning that a Don't Show Again box
turned off back on in the Preferences window, and OK or Apply saves it.
The button is dimmed while every warning is on, so a click then changes
nothing. The warnings with a Don't Show Again box are listed in one place
(`WARNING_DIALOGS`), so a later dialog with the box joins the reset by
adding its preference there.
2026-12-01 13:52:58 -08:00
dotCooCoo 4ce98e8032 MCP: regenerate the UI catalog for the Gap Options preview text
The params text of ui.livePaintGapOptions in
crates/ui-egui/src/menus/ui_commands.rs gained the failed-preview
sentence, but crates/mcp/src/ui_catalog.rs was not regenerated, so
`cargo xtask ui-commands --check` failed in CI. This is the output of
`cargo xtask ui-commands`.
2026-12-01 13:45:26 -08:00
.CooCoo 3d51a889d1 Merge pull request #10457 from dotCooCoo/fix/heavy-filter-shortcut-test-race
Tests: hold the clock still in the heavy filter shortcut test
2026-12-01 13:45:16 -08:00
dotCooCoo 9c7777372a Merge main into fix/colorcontrast-isolating-group-test 2026-12-01 13:17:13 -08:00
dotCooCoo 6230cf282a Merge main into fix/common-tangents-metaball 2026-12-01 13:17:02 -08:00
dotCooCoo 813ef9b3e7 Merge main into fix/pathops-cap-reports 2026-12-01 13:16:59 -08:00
.CooCoo a5a3e40c5e Merge pull request #9087 from dotCooCoo/feat/scripts-print-printer
Scripts: Document.print prints to an installed printer and app.printerList lists the printers
2026-12-01 13:11:17 -08:00
dotCooCoo 988e5ca919 Merge main into fix/common-tangents-metaball 2026-12-01 11:16:00 -08:00
dotCooCoo 6f684e6da9 Path Precision Tools: Common Tangents and Smooth Bridge are one dialog
Common Tangents… now also does what Smooth Bridge… did (#10465).

- Connect tangents joins the two tangents of each kind into one closed
  shape, along the chords between where they touch each path (a point's
  two lines make a triangle). `connect` on
  `addon.pathtools.commonTangents`.
- With External, the dialog shows Straight and Curved. Straight keeps
  the tangent lines; Curved joins the circles along concave arcs, as
  Smooth Bridge did, with Radius, Constant Gap, Reach and Keep
  Originals, which take input only with Curved. `curved`, `radius`,
  `gap`, `reach` and `keepOriginals` on the command; options of the
  other mode are an error.
- The Smooth Bridge… menu item is gone. `addon.pathtools.bridge` still
  runs for scripts and actions, opens the merged dialog with External
  and Curved, and is left out of the command palette and Keyboard
  Shortcuts. A palette search for "metaball" or "smooth bridge" finds
  Common Tangents.

Docs: docs/mcp.md, docs/ui-parity.md, ROADMAP.
2026-12-01 11:16:00 -08:00