mirror of
https://github.com/penpot/penpot.git
synced 2025-05-25 11:46:10 +02:00
✨ Export/Import and edgecases fixing
This commit is contained in:
parent
8c25ee7796
commit
75f8e473a5
11 changed files with 240 additions and 129 deletions
|
@ -209,6 +209,13 @@
|
|||
(->> node :content last))]
|
||||
(merge (add-attrs {} (:attrs svg-node)) node-attrs))
|
||||
|
||||
(= type :bool)
|
||||
(->> node
|
||||
(:content)
|
||||
(filter #(= :path (:tag %)))
|
||||
(map #(:attrs %))
|
||||
(reduce add-attrs node-attrs))
|
||||
|
||||
:else
|
||||
node-attrs)))
|
||||
|
||||
|
@ -443,6 +450,11 @@
|
|||
mask?
|
||||
(assoc :masked-group? true))))
|
||||
|
||||
(defn add-bool-data
|
||||
[props node]
|
||||
(-> props
|
||||
(assoc :bool-type (get-meta node :bool-type keyword))))
|
||||
|
||||
(defn parse-shadow [node]
|
||||
{:id (uuid/next)
|
||||
:style (get-meta node :shadow-type keyword)
|
||||
|
@ -706,7 +718,10 @@
|
|||
(add-image-data type node))
|
||||
|
||||
(cond-> (= :text type)
|
||||
(add-text-data node))))))
|
||||
(add-text-data node))
|
||||
|
||||
(cond-> (= :bool type)
|
||||
(add-bool-data node))))))
|
||||
|
||||
(defn parse-page-data
|
||||
[node]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue