mirror of
https://github.com/penpot/penpot.git
synced 2025-02-23 23:35:58 -05:00
✨ Adding specs for fills and strokes
This commit is contained in:
parent
505d0f4768
commit
7962c104b6
1 changed files with 26 additions and 0 deletions
|
@ -107,6 +107,30 @@
|
|||
(s/def ::shapes
|
||||
(s/every uuid? :kind vector?))
|
||||
|
||||
(s/def ::fill
|
||||
(s/keys :opt-un [::fill-color
|
||||
::fill-opacity
|
||||
::fill-color-gradient
|
||||
::fill-color-ref-file
|
||||
::fill-color-ref-id]))
|
||||
|
||||
(s/def ::fills
|
||||
(s/coll-of ::fill :kind vector?))
|
||||
|
||||
(s/def ::stroke
|
||||
(s/keys :opt-un [::stroke-color
|
||||
::stroke-color-ref-file
|
||||
::stroke-color-ref-id
|
||||
::stroke-opacity
|
||||
::stroke-style
|
||||
::stroke-width
|
||||
::stroke-alignment
|
||||
::stroke-cap-start
|
||||
::stroke-cap-end]))
|
||||
|
||||
(s/def ::strokes
|
||||
(s/coll-of ::stroke :kind vector?))
|
||||
|
||||
(s/def ::transform ::gmt/matrix)
|
||||
(s/def ::transform-inverse ::gmt/matrix)
|
||||
(s/def ::opacity ::us/safe-number)
|
||||
|
@ -140,6 +164,7 @@
|
|||
::points
|
||||
::blocked
|
||||
::collapsed
|
||||
::fills
|
||||
::fill-color
|
||||
::fill-opacity
|
||||
::fill-color-gradient
|
||||
|
@ -169,6 +194,7 @@
|
|||
::y
|
||||
::exports
|
||||
::shapes
|
||||
::strokes
|
||||
::stroke-color
|
||||
::stroke-color-ref-file
|
||||
::stroke-color-ref-id
|
||||
|
|
Loading…
Add table
Reference in a new issue