Add import/export svg for grid

This commit is contained in:
alonso.torres 2023-05-18 16:08:57 +02:00
parent 664825a2a6
commit b3b984d339
4 changed files with 131 additions and 9 deletions

View file

@ -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]