mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-30 18:27:00 +01:00
`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`.