mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 23:49:45 -05:00
🐛 Fix problem with import old files
This commit is contained in:
parent
10e981d034
commit
491748af9f
1 changed files with 2 additions and 2 deletions
|
@ -216,7 +216,8 @@
|
|||
(let [;; The nodes with the "frame-background" class can have some anidation depending on the strokes they have
|
||||
g-nodes (find-all-nodes node :g)
|
||||
defs-nodes (flatten (map #(find-all-nodes % :defs) g-nodes))
|
||||
rect-nodes (flatten [(map #(find-all-nodes % #{:rect :path}) defs-nodes)
|
||||
rect-nodes (flatten [[(find-all-nodes node :rect)]
|
||||
(map #(find-all-nodes % #{:rect :path}) defs-nodes)
|
||||
(map #(find-all-nodes % #{:rect :path}) g-nodes)])
|
||||
svg-node (d/seek #(= "frame-background" (get-in % [:attrs :class])) rect-nodes)]
|
||||
(merge (add-attrs {} (:attrs svg-node)) node-attrs))
|
||||
|
@ -567,7 +568,6 @@
|
|||
|
||||
(defn parse-guide-node [node]
|
||||
(let [attrs (-> node :attrs remove-penpot-prefix)]
|
||||
(println attrs)
|
||||
(let [id (uuid/next)]
|
||||
[id
|
||||
{:id id
|
||||
|
|
Loading…
Add table
Reference in a new issue