mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 19:51:41 +02:00
✨ Adds flip,proportion and rotation
This commit is contained in:
parent
a106c728ba
commit
d6e009ce78
7 changed files with 189 additions and 40 deletions
|
@ -137,11 +137,13 @@
|
|||
[file [page-name content]]
|
||||
(if (cip/valid? content)
|
||||
(let [nodes (->> content cip/node-seq)
|
||||
file-id (:id file)]
|
||||
file-id (:id file)
|
||||
page-data (-> (cip/parse-page-data content)
|
||||
(assoc :name page-name))]
|
||||
(->> (rx/from nodes)
|
||||
(rx/filter cip/shape?)
|
||||
(rx/mapcat (partial resolve-images file-id))
|
||||
(rx/reduce add-shape-file (fb/add-page file page-name))
|
||||
(rx/reduce add-shape-file (fb/add-page file page-data))
|
||||
(rx/map fb/close-page)))
|
||||
(rx/empty)))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue