mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 08:20:45 -05:00
🐛 Fix inconsistencies on common/types specs
This commit is contained in:
parent
8de1ae0478
commit
f28b62cd3d
3 changed files with 9 additions and 4 deletions
|
@ -212,7 +212,7 @@
|
|||
::strokes
|
||||
::stroke-color ;; TODO: same thing
|
||||
::stroke-color-ref-file ;;
|
||||
::stroke-color-ref-i ;;
|
||||
::stroke-color-ref-id ;;
|
||||
::stroke-opacity ;;
|
||||
::stroke-style
|
||||
::stroke-width
|
||||
|
|
|
@ -39,6 +39,11 @@
|
|||
::layout-h-orientation
|
||||
::layout-v-orientation]))
|
||||
|
||||
(s/def ::m1 ::us/safe-number)
|
||||
(s/def ::m2 ::us/safe-number)
|
||||
(s/def ::m3 ::us/safe-number)
|
||||
(s/def ::m4 ::us/safe-number)
|
||||
|
||||
(s/def ::layout-margin (s/keys :req-un [::m1]
|
||||
:opt-un [::m2 ::m3 ::m4]))
|
||||
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
(:require
|
||||
[app.common.spec :as us]
|
||||
[app.common.types.color :as ctc]
|
||||
[app.common.types.shape.shadow.color :as-alias shadow-color]
|
||||
[clojure.spec.alpha :as s]))
|
||||
|
||||
|
||||
;;; SHADOW EFFECT
|
||||
|
||||
(s/def ::id (s/nilable uuid?))
|
||||
|
@ -27,7 +27,7 @@
|
|||
(s/def ::file-id (s/nilable uuid?))
|
||||
(s/def ::ref-id (s/nilable uuid?))
|
||||
|
||||
(s/def :shadow/color
|
||||
(s/def ::shadow-color/color
|
||||
(s/keys :opt-un [::color
|
||||
::opacity
|
||||
::gradient
|
||||
|
@ -37,7 +37,7 @@
|
|||
(s/def ::shadow-props
|
||||
(s/keys :req-un [::id
|
||||
::style
|
||||
::color
|
||||
::shadow-color/color
|
||||
::offset-x
|
||||
::offset-y
|
||||
::blur
|
||||
|
|
Loading…
Reference in a new issue