Add export/import to custom caps

This commit is contained in:
alonso.torres 2021-08-30 12:12:04 +02:00 committed by Andrés Moya
parent 3cd3e89679
commit 2dfa4f9ec9
2 changed files with 15 additions and 2 deletions

View file

@ -62,6 +62,7 @@
group? (= :group (:type shape))
rect? (= :rect (:type shape))
text? (= :text (:type shape))
path? (= :path (:type shape))
mask? (and group? (:masked-group? shape))
center (gsh/center-shape shape)]
(-> props
@ -92,6 +93,10 @@
(add! :r3)
(add! :r4)))
(cond-> path?
(-> (add! :stroke-cap-start)
(add! :stroke-cap-end)))
(cond-> text?
(-> (add! :grow-type)
(add! :content (comp json/encode uuid->string))))