mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 15:09:10 -05:00
🐛 Fixes problem with export SVG
This commit is contained in:
parent
f78bd11cec
commit
b8fbe65d36
1 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@
|
||||||
(xml/js2xml (clj->js data)))
|
(xml/js2xml (clj->js data)))
|
||||||
|
|
||||||
(defn- render-object
|
(defn- render-object
|
||||||
[browser {:keys [page-id object-id token scale suffix type]}]
|
[browser {:keys [page-id file-id object-id token scale suffix type]}]
|
||||||
(letfn [(render-in-page [page {:keys [uri cookie] :as rctx}]
|
(letfn [(render-in-page [page {:keys [uri cookie] :as rctx}]
|
||||||
(p/do!
|
(p/do!
|
||||||
(bwr/emulate! page {:viewport [1920 1080]
|
(bwr/emulate! page {:viewport [1920 1080]
|
||||||
|
@ -235,7 +235,7 @@
|
||||||
(p/let [page (render-in-page page rctx)]
|
(p/let [page (render-in-page page rctx)]
|
||||||
(render-svg page)))]
|
(render-svg page)))]
|
||||||
|
|
||||||
(let [path (str "/render-object/" page-id "/" object-id)
|
(let [path (str "/render-object/" file-id "/" page-id "/" object-id)
|
||||||
uri (doto (Uri. (:public-uri cfg/config))
|
uri (doto (Uri. (:public-uri cfg/config))
|
||||||
(.setPath "/")
|
(.setPath "/")
|
||||||
(.setFragment path))
|
(.setFragment path))
|
||||||
|
|
Loading…
Add table
Reference in a new issue