mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02:00
✨ Add import/export svg for grid
This commit is contained in:
parent
664825a2a6
commit
b3b984d339
4 changed files with 131 additions and 9 deletions
|
@ -229,7 +229,16 @@
|
|||
(d/update-when :shape-ref resolve)
|
||||
|
||||
(cond-> (= type :text)
|
||||
(d/update-when :content resolve-text-content context)))))
|
||||
(d/update-when :content resolve-text-content context))
|
||||
|
||||
(cond-> (and (= type :frame) (= :grid (:layout data)))
|
||||
(update
|
||||
:layout-grid-cells
|
||||
(fn [cells]
|
||||
(->> (vals cells)
|
||||
(reduce (fn [cells {:keys [id shapes]}]
|
||||
(assoc-in cells [id :shapes] (mapv resolve shapes)))
|
||||
cells))))))))
|
||||
|
||||
(defn- translate-frame
|
||||
[data type file]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue