Adds flip,proportion and rotation

This commit is contained in:
alonso.torres 2021-06-14 16:00:16 +02:00
parent a106c728ba
commit d6e009ce78
7 changed files with 189 additions and 40 deletions

View file

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