mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-28 03:58:45 -06:00
* M2: clip intersection starts its row walk at the first shared row clip::intersect in vello_common, the step every clipped path passes through, began its walk over strip rows at the earlier of the two paths' first rows. Each path therefore visited every row above it, although rows where one path has no strips produce no output. Every page is clipped (the crop box is a clip), so this ran for every stroke of every render: on the A1 engineering sample it was the hottest function in a full-page render. Start at the later first row, as vello_common 0.1 does. The strips and the pixels are unchanged; a test counts the rows the walk visits and fails without the change. vello_common 0.0.8 is vendored with that one-line PdfCraft patch (marked in the source), its unit test, the vendor/README.md row and an ATTRIBUTION.toml entry for its reference image. Cargo.lock records it as a path crate. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> * Refresh catalog hashes after merging main --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> Co-authored-by: Brandon Thomas <echelon@gmail.com>
20 lines
570 B
Rust
20 lines
570 B
Rust
// Copyright 2025 the Vello Authors
|
|
// SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
|
|
//! Blurred, rounded rectangles.
|
|
use crate::color::{AlphaColor, Srgb};
|
|
use crate::kurbo::Rect;
|
|
|
|
/// A blurred, rounded rectangle.
|
|
#[derive(Debug)]
|
|
pub struct BlurredRoundedRectangle {
|
|
/// The base rectangle to use for the blur effect.
|
|
pub rect: Rect,
|
|
/// The color of the blurred rectangle.
|
|
pub color: AlphaColor<Srgb>,
|
|
/// The radius of the rounded rectangle's corners.
|
|
pub radius: f32,
|
|
/// The standard deviation of the blur effect.
|
|
pub std_dev: f32,
|
|
}
|