🎉 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

@ -413,6 +413,13 @@ impl RenderState {
if !id.is_nil() {
self.render_single_shape(shape);
if shape.clip_content {
self.drawing_surface.canvas().clip_rect(
shape.selrect,
skia::ClipOp::Intersect,
true,
);
}
}
// draw all the children shapes