mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 04:49:03 -05:00
🐛 Relax some type restrictions for color fields.
This commit is contained in:
parent
fd1796557d
commit
204f180ec9
2 changed files with 4 additions and 4 deletions
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
;; --- Specs
|
;; --- Specs
|
||||||
|
|
||||||
(s/def ::fill-color us/color?)
|
(s/def ::fill-color string?)
|
||||||
(s/def ::fill-opacity number?)
|
(s/def ::fill-opacity number?)
|
||||||
(s/def ::line-height number?)
|
(s/def ::line-height number?)
|
||||||
(s/def ::letter-spacing number?)
|
(s/def ::letter-spacing number?)
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
(s/def ::font-size number?)
|
(s/def ::font-size number?)
|
||||||
(s/def ::stroke-style #{:none :solid :dotted :dashed :mixed})
|
(s/def ::stroke-style #{:none :solid :dotted :dashed :mixed})
|
||||||
(s/def ::stroke-width number?)
|
(s/def ::stroke-width number?)
|
||||||
(s/def ::stroke-color us/color?)
|
(s/def ::stroke-color string?)
|
||||||
(s/def ::stroke-opacity number?)
|
(s/def ::stroke-opacity number?)
|
||||||
(s/def ::rx number?)
|
(s/def ::rx number?)
|
||||||
(s/def ::ry number?)
|
(s/def ::ry number?)
|
||||||
|
|
|
@ -576,11 +576,11 @@
|
||||||
|
|
||||||
;; --- Apply Temporal Resize Matrix
|
;; --- Apply Temporal Resize Matrix
|
||||||
|
|
||||||
(deftype ApplyTemporalResize [id xfmt]
|
(deftype ApplyTemporalResize [sid xfmt]
|
||||||
ptk/UpdateEvent
|
ptk/UpdateEvent
|
||||||
(update [_ state]
|
(update [_ state]
|
||||||
(let [pid (get-in state [:workspace :current])]
|
(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
|
(defn apply-temporal-resize
|
||||||
"Attach temporal resize transformation to the shape."
|
"Attach temporal resize transformation to the shape."
|
||||||
|
|
Loading…
Add table
Reference in a new issue