Commit Graph
4 Commits
Author SHA1 Message Date
dotCooCoo 7d81c44277 Merge #659 (fix/linesweeper-paperjs-fixtures) into integration/linesweeper 2026-11-09 13:45:44 -08:00
dotCooCoo 60b287c846 linesweeper: the paperjs test fails when its data files cannot be loaded
tests/paperjs.rs reads its cases from boolean-test/data/, which the 0.5.0
package does not include. It skipped any file it could not load, so the
paperjs target ran 0 trials and passed. A file that cannot be loaded now
becomes a failing <operation>/load trial, and load_errors_are_reported
checks that a missing file produces one. README.craft.md, SOURCE.json and
NOTICE record the change as a local patch.
2026-11-07 03:57:47 -08:00
dotCooCoo 9aa0870fe7 linesweeper: the paperjs image check counts a difference in alpha
`pixmap_distance` in `tests/paperjs.rs` compared only red, green and
blue. The test fills both shapes with opaque black on a transparent
pixmap, so a covered pixel and an empty one have the same color and the
distance was 0 for any result. The distance now also counts the alpha
difference, and `pixmap_distance_counts_coverage` checks that a filled
pixmap and an empty one are at distance 1.

`scripts/test-pdf-backends.sh` and `README.craft.md` run the `paperjs`
test as well. The package does not include the `boolean-test/data/`
files the test reads, so here it runs only the new test.

The change is recorded in `SOURCE.json`, the Local changes table in
`README.craft.md` and `NOTICE`.
2026-11-07 03:30:35 -08:00
dotCooCoo f14cc7f21e linesweeper: keep a copy of the crates.io 0.5.0 package in vendor/
Add the linesweeper 0.5.0 package to vendor/ with no file changed, so
that a fix to it can reach the Craft apps through this repository
without waiting for a linesweeper release. The GitHub repository its
manifest names is archived, and its README says development moved off
GitHub.

Leave out the test font (fonts live in craft-fonts), the logo artwork,
the snapshot images and the package's repository tooling. SOURCE.json
lists each with its hash.

Add a workspace exclude, a [patch.crates-io] entry, SOURCE.json with
the archive hash and per-file hashes, NOTICE and ATTRIBUTION.md rows,
and the package's tests in the backend test script. craft-prepress's
flatten feature now builds against the copy, so Cargo.lock drops the
package's registry source and checksum.
2026-11-06 19:05:18 -08:00