0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

Merge pull request #1988 from penpot/superalex-fix-exporter-to-frontend-communication

🐛 fix exporter to frontend communication
This commit is contained in:
Alejandro 2022-06-09 13:43:49 +02:00 committed by GitHub
commit e6b80bf73e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@
[promesa.core :as p]))
(defn render
[{:keys [file-id page-id token scale type uri objects] :as params} on-object]
[{:keys [file-id page-id token scale type objects] :as params} on-object]
(letfn [(prepare-options [uri]
#js {:screen #js {:width bw/default-viewport-width
:height bw/default-viewport-height}

View file

@ -22,7 +22,7 @@
[promesa.core :as p]))
(defn render
[{:keys [file-id page-id token scale type uri objects] :as params} on-object]
[{:keys [file-id page-id token scale type objects] :as params} on-object]
(letfn [(prepare-options [uri]
#js {:screen #js {:width bw/default-viewport-width
:height bw/default-viewport-height}

View file

@ -114,7 +114,7 @@
:height height}))
(defn render
[{:keys [page-id file-id objects token scale suffix type uri]} on-object]
[{:keys [page-id file-id objects token scale type]} on-object]
(letfn [(convert-to-ppm [pngpath]
(l/trace :fn :convert-to-ppm)
(let [basepath (path/dirname pngpath)