🐛 Fixes issues with export

This commit is contained in:
alonso.torres 2021-01-28 18:06:44 +01:00
parent 41ec622e26
commit 3faa5b4a11
7 changed files with 36 additions and 24 deletions

View file

@ -115,7 +115,9 @@
(let [shape (unchecked-get props "shape")
grow-type (unchecked-get props "grow-type")
embed-fonts? (mf/use-ctx muc/embed-ctx)
{:keys [id x y width height content]} shape]
{:keys [id x y width height content]} shape
;; We add 8px to add a padding for the exporter
width (+ width 8)]
[:foreignObject {:x x
:y y
:id (:id shape)