Adding specs for fills and strokes

This commit is contained in:
Alejandro Alonso 2022-03-01 07:39:27 +01:00 committed by Alonso Torres
parent 505d0f4768
commit 7962c104b6

View File

@ -107,6 +107,30 @@
(s/def ::shapes (s/def ::shapes
(s/every uuid? :kind vector?)) (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 ::gmt/matrix)
(s/def ::transform-inverse ::gmt/matrix) (s/def ::transform-inverse ::gmt/matrix)
(s/def ::opacity ::us/safe-number) (s/def ::opacity ::us/safe-number)
@ -140,6 +164,7 @@
::points ::points
::blocked ::blocked
::collapsed ::collapsed
::fills
::fill-color ::fill-color
::fill-opacity ::fill-opacity
::fill-color-gradient ::fill-color-gradient
@ -169,6 +194,7 @@
::y ::y
::exports ::exports
::shapes ::shapes
::strokes
::stroke-color ::stroke-color
::stroke-color-ref-file ::stroke-color-ref-file
::stroke-color-ref-id ::stroke-color-ref-id