mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 05:38:28 +02:00
✨ Components annotations
This commit is contained in:
parent
cd1825d97a
commit
68367b002e
19 changed files with 495 additions and 38 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue