mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 06:51:41 +02:00
✨ Add export/import to custom caps
This commit is contained in:
parent
3cd3e89679
commit
2dfa4f9ec9
2 changed files with 15 additions and 2 deletions
|
@ -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))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue