Components annotations

This commit is contained in:
Pablo Alba 2023-04-27 13:26:32 +02:00 committed by Andrés Moya
parent cd1825d97a
commit 68367b002e
19 changed files with 495 additions and 38 deletions

View file

@ -141,6 +141,17 @@
(rx/reduce conj {})
(rx/map (fn [pages-index]
(update-in bundle [:file :data] assoc :pages-index pages-index))))))
(rx/mapcat
(fn [bundle]
(->> (rx/from (-> bundle :file :data seq))
(rx/merge-map
(fn [[_ object :as kp]]
(if (t/pointer? object)
(resolve kp)
(rx/of kp))))
(rx/reduce conj {})
(rx/map (fn [data]
(update bundle :file assoc :data data))))))
(rx/mapcat
(fn [{:keys [fonts] :as bundle}]
(rx/of (df/fonts-fetched fonts)