mirror of
https://github.com/penpot/penpot.git
synced 2025-06-08 20:51:38 +02:00
🐛 Fix text exportation on svg.
This commit is contained in:
parent
6d2e2489bb
commit
43bd98151a
2 changed files with 4 additions and 3 deletions
|
@ -171,9 +171,9 @@
|
||||||
|
|
||||||
:render-object
|
:render-object
|
||||||
(do
|
(do
|
||||||
(let [file-id (uuid (get-in route [:params :path :file-id]))
|
(let [file-id (uuid (get-in route [:path-params :file-id]))
|
||||||
page-id (uuid (get-in route [:params :path :page-id]))
|
page-id (uuid (get-in route [:path-params :page-id]))
|
||||||
object-id (uuid (get-in route [:params :path :object-id]))]
|
object-id (uuid (get-in route [:path-params :object-id]))]
|
||||||
[:& render/render-object {:file-id file-id
|
[:& render/render-object {:file-id file-id
|
||||||
:page-id page-id
|
:page-id page-id
|
||||||
:object-id object-id}]))
|
:object-id object-id}]))
|
||||||
|
|
|
@ -94,6 +94,7 @@
|
||||||
{:keys [id x y width height content]} shape]
|
{:keys [id x y width height content]} shape]
|
||||||
[:foreignObject {:x x
|
[:foreignObject {:x x
|
||||||
:y y
|
:y y
|
||||||
|
:id (:id shape)
|
||||||
:data-colors (retrieve-colors shape)
|
:data-colors (retrieve-colors shape)
|
||||||
:transform (geom/transform-matrix shape)
|
:transform (geom/transform-matrix shape)
|
||||||
:width (if (#{:auto-width} grow-type) 10000 width)
|
:width (if (#{:auto-width} grow-type) 10000 width)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue