Import components

This commit is contained in:
alonso.torres 2021-06-24 16:18:06 +02:00 committed by Andrés Moya
parent 7d14122746
commit 85a6edb1fd
5 changed files with 60 additions and 21 deletions

View file

@ -173,6 +173,10 @@
(map #(:attrs %))
(reduce add-attrs node-attrs)))
(= type :frame)
(let [svg-node (->> node :content (d/seek #(= "frame-background" (get-in % [:attrs :class]))))]
(merge (add-attrs {} (:attrs svg-node)) node-attrs))
(= type :svg-raw)
(->> node :content last)