From bc3914e7e005dc94d4215e2960076aafb1ede917 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 9 Jun 2022 13:39:29 +0200 Subject: [PATCH] :bug: Fix exporter to frontend communication --- exporter/src/app/renderer/bitmap.cljs | 2 +- exporter/src/app/renderer/pdf.cljs | 2 +- exporter/src/app/renderer/svg.cljs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exporter/src/app/renderer/bitmap.cljs b/exporter/src/app/renderer/bitmap.cljs index 8283f6d03..eaee73346 100644 --- a/exporter/src/app/renderer/bitmap.cljs +++ b/exporter/src/app/renderer/bitmap.cljs @@ -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} diff --git a/exporter/src/app/renderer/pdf.cljs b/exporter/src/app/renderer/pdf.cljs index e4c26392f..124e545ad 100644 --- a/exporter/src/app/renderer/pdf.cljs +++ b/exporter/src/app/renderer/pdf.cljs @@ -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} diff --git a/exporter/src/app/renderer/svg.cljs b/exporter/src/app/renderer/svg.cljs index f0dfe7991..36923bab9 100644 --- a/exporter/src/app/renderer/svg.cljs +++ b/exporter/src/app/renderer/svg.cljs @@ -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)