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:
parent
579a5729e6
commit
21da6ddd4a
5 changed files with 34 additions and 2 deletions
frontend/src/app/render_wasm
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue