🎉 Suport for show-content in render wasm

This commit is contained in:
Alejandro Alonso 2024-12-09 15:19:14 +01:00
parent 0eedc036be
commit e1d9efea7f
5 changed files with 47 additions and 23 deletions

View file

@ -51,6 +51,7 @@ pub struct Shape {
pub selrect: math::Rect,
pub transform: Matrix,
pub rotation: f32,
pub clip_content: bool,
fills: Vec<Fill>,
pub blend_mode: BlendMode,
pub opacity: f32,
@ -66,6 +67,7 @@ impl Shape {
selrect: math::Rect::new_empty(),
transform: Matrix::identity(),
rotation: 0.,
clip_content: true,
fills: vec![],
blend_mode: BlendMode::default(),
opacity: 1.,