🐛 Fix text exportation on svg.

This commit is contained in:
Andrey Antukh 2020-12-03 19:15:19 +01:00 committed by Alonso Torres
parent 6d2e2489bb
commit 43bd98151a
2 changed files with 4 additions and 3 deletions

View file

@ -171,9 +171,9 @@
:render-object
(do
(let [file-id (uuid (get-in route [:params :path :file-id]))
page-id (uuid (get-in route [:params :path :page-id]))
object-id (uuid (get-in route [:params :path :object-id]))]
(let [file-id (uuid (get-in route [:path-params :file-id]))
page-id (uuid (get-in route [:path-params :page-id]))
object-id (uuid (get-in route [:path-params :object-id]))]
[:& render/render-object {:file-id file-id
:page-id page-id
:object-id object-id}]))

View file

@ -94,6 +94,7 @@
{:keys [id x y width height content]} shape]
[:foreignObject {:x x
:y y
:id (:id shape)
:data-colors (retrieve-colors shape)
:transform (geom/transform-matrix shape)
:width (if (#{:auto-width} grow-type) 10000 width)