mirror of
https://github.com/penpot/penpot.git
synced 2025-05-27 19:46:11 +02:00
🎉 Suport for show-content in render wasm
This commit is contained in:
parent
0eedc036be
commit
e1d9efea7f
5 changed files with 47 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue