mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 16:30:37 -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
|
::strokes
|
||||||
::stroke-color ;; TODO: same thing
|
::stroke-color ;; TODO: same thing
|
||||||
::stroke-color-ref-file ;;
|
::stroke-color-ref-file ;;
|
||||||
::stroke-color-ref-i ;;
|
::stroke-color-ref-id ;;
|
||||||
::stroke-opacity ;;
|
::stroke-opacity ;;
|
||||||
::stroke-style
|
::stroke-style
|
||||||
::stroke-width
|
::stroke-width
|
||||||
|
|
|
@ -39,6 +39,11 @@
|
||||||
::layout-h-orientation
|
::layout-h-orientation
|
||||||
::layout-v-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]
|
(s/def ::layout-margin (s/keys :req-un [::m1]
|
||||||
:opt-un [::m2 ::m3 ::m4]))
|
:opt-un [::m2 ::m3 ::m4]))
|
||||||
|
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
(:require
|
(:require
|
||||||
[app.common.spec :as us]
|
[app.common.spec :as us]
|
||||||
[app.common.types.color :as ctc]
|
[app.common.types.color :as ctc]
|
||||||
|
[app.common.types.shape.shadow.color :as-alias shadow-color]
|
||||||
[clojure.spec.alpha :as s]))
|
[clojure.spec.alpha :as s]))
|
||||||
|
|
||||||
|
|
||||||
;;; SHADOW EFFECT
|
;;; SHADOW EFFECT
|
||||||
|
|
||||||
(s/def ::id (s/nilable uuid?))
|
(s/def ::id (s/nilable uuid?))
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
(s/def ::file-id (s/nilable uuid?))
|
(s/def ::file-id (s/nilable uuid?))
|
||||||
(s/def ::ref-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
|
(s/keys :opt-un [::color
|
||||||
::opacity
|
::opacity
|
||||||
::gradient
|
::gradient
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
(s/def ::shadow-props
|
(s/def ::shadow-props
|
||||||
(s/keys :req-un [::id
|
(s/keys :req-un [::id
|
||||||
::style
|
::style
|
||||||
::color
|
::shadow-color/color
|
||||||
::offset-x
|
::offset-x
|
||||||
::offset-y
|
::offset-y
|
||||||
::blur
|
::blur
|
||||||
|
|
Loading…
Reference in a new issue