0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

🐛 Relax some type restrictions for color fields.

This commit is contained in:
Andrey Antukh 2019-08-07 20:10:51 +02:00
parent fd1796557d
commit 204f180ec9
2 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@
;; --- Specs
(s/def ::fill-color us/color?)
(s/def ::fill-color string?)
(s/def ::fill-opacity number?)
(s/def ::line-height number?)
(s/def ::letter-spacing number?)
@ -39,7 +39,7 @@
(s/def ::font-size number?)
(s/def ::stroke-style #{:none :solid :dotted :dashed :mixed})
(s/def ::stroke-width number?)
(s/def ::stroke-color us/color?)
(s/def ::stroke-color string?)
(s/def ::stroke-opacity number?)
(s/def ::rx number?)
(s/def ::ry number?)

View file

@ -576,11 +576,11 @@
;; --- Apply Temporal Resize Matrix
(deftype ApplyTemporalResize [id xfmt]
(deftype ApplyTemporalResize [sid xfmt]
ptk/UpdateEvent
(update [_ state]
(let [pid (get-in state [:workspace :current])]
(assoc-in state [:workspace pid :modifiers id :resize] xfmt))))
(assoc-in state [:workspace pid :modifiers sid :resize] xfmt))))
(defn apply-temporal-resize
"Attach temporal resize transformation to the shape."