mirror of
https://github.com/penpot/penpot.git
synced 2025-05-25 08:16:10 +02:00
✨ Improve text shape tracing process on exporter.
Fixes many bugs related to the svgo removal and remove unneded neesting of groups.
This commit is contained in:
parent
b1477d8087
commit
c447279c75
4 changed files with 215 additions and 148 deletions
|
@ -88,10 +88,8 @@
|
|||
[shape]
|
||||
(let [colors (->> (:content shape)
|
||||
(tree-seq map? :children)
|
||||
(into #{} (comp (map :fill-color) (filter string?))))]
|
||||
(if (empty? colors)
|
||||
"#000000"
|
||||
(apply str (interpose "," colors)))))
|
||||
(into #{"#000000"} (comp (map :fill-color) (filter string?))))]
|
||||
(apply str (interpose "," colors))))
|
||||
|
||||
(mf/defc text-shape
|
||||
{::mf/wrap-props false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue