🎉 Hidden layer support for wasm render

This commit is contained in:
Alejandro Alonso 2024-12-03 12:57:04 +01:00 committed by Belén Albeza
parent 7c7ede9d0c
commit 07215357d6
5 changed files with 20 additions and 3 deletions

View file

@ -389,7 +389,7 @@ impl RenderState {
let mut is_complete = self.viewbox.area.contains(shape.selrect);
if !id.is_nil() {
if !shape.selrect.intersects(self.viewbox.area) {
if !shape.selrect.intersects(self.viewbox.area) || shape.hidden {
self.render_debug_shape(shape, false);
// TODO: This means that not all the shapes are renderer so we
// need to call a render_all on the zoom out.