mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 Fix big blur rendering for wasm render
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user