1
0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-05-17 06:36:10 +02:00

🐛 Fix blend mode against background

This commit is contained in:
Belén Albeza 2024-12-11 16:48:41 +01:00
parent 579a5729e6
commit 21da6ddd4a
5 changed files with 34 additions and 2 deletions
frontend/src/app/render_wasm

View file

@ -345,6 +345,11 @@
(set! (.-width canvas) (* dpr (.-clientWidth ^js canvas)))
(set! (.-height canvas) (* dpr (.-clientHeight ^js canvas))))
(defn set-canvas-background
[background]
(let [rgba (rgba-from-hex background 1)]
(h/call internal-module "_set_canvas_background" rgba)))
(defonce module
(delay
(if (exists? js/dynamicImport)