🐛 Fix big blur rendering for wasm render

This commit is contained in:
Alejandro Alonso
2025-08-11 07:35:03 +02:00
parent a702fee3cd
commit 478439f055
14 changed files with 6534 additions and 66 deletions

View File

@@ -923,6 +923,21 @@ impl Shape {
}
}
pub fn mask_filter(&self, scale: f32) -> Option<skia::MaskFilter> {
if !self.blur.hidden {
match self.blur.blur_type {
BlurType::None => None,
BlurType::Layer => skia::MaskFilter::blur(
skia::BlurStyle::Normal,
self.blur.value * scale,
Some(true),
),
}
} else {
None
}
}
pub fn is_recursive(&self) -> bool {
matches!(
self.shape_type,