mirror of
https://github.com/penpot/penpot.git
synced 2026-03-21 18:03:47 +00:00
🎉 Improve tile caching
This commit is contained in:
@@ -171,15 +171,6 @@ pub fn render(render_state: &mut RenderState) {
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
#[allow(dead_code)]
|
||||
pub fn console_debug_tile_surface(render_state: &mut RenderState, tile: tiles::Tile) {
|
||||
let base64_image = render_state.surfaces.base64_snapshot_tile(tile);
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
run_script!(format!("console.log('%c ', 'font-size: 1px; background: url(data:image/png;base64,{base64_image}) no-repeat; padding: 100px; background-size: contain;')"))
|
||||
}
|
||||
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
#[allow(dead_code)]
|
||||
pub fn console_debug_surface(render_state: &mut RenderState, id: SurfaceId) {
|
||||
|
||||
Reference in New Issue
Block a user