mirror of
https://github.com/penpot/penpot.git
synced 2025-02-04 13:29:14 -05:00
🐛 Add to spec opacity and blend-mode
This commit is contained in:
parent
2a11e9962d
commit
626d0cba46
1 changed files with 24 additions and 2 deletions
|
@ -256,6 +256,25 @@
|
||||||
(s/def :internal.shape/transform ::matrix)
|
(s/def :internal.shape/transform ::matrix)
|
||||||
(s/def :internal.shape/transform-inverse ::matrix)
|
(s/def :internal.shape/transform-inverse ::matrix)
|
||||||
|
|
||||||
|
(s/def :internal.shape/opacity ::us/safe-number)
|
||||||
|
(s/def :internal.shape/blend-mode
|
||||||
|
#{:normal
|
||||||
|
:darken
|
||||||
|
:multiply
|
||||||
|
:color-burn
|
||||||
|
:lighten
|
||||||
|
:screen
|
||||||
|
:color-dodge
|
||||||
|
:overlay
|
||||||
|
:soft-light
|
||||||
|
:hard-light
|
||||||
|
:difference
|
||||||
|
:exclusion
|
||||||
|
:hue
|
||||||
|
:saturation
|
||||||
|
:color
|
||||||
|
:luminosity})
|
||||||
|
|
||||||
(s/def ::shape-attrs
|
(s/def ::shape-attrs
|
||||||
(s/keys :opt-un [:internal.shape/selrect
|
(s/keys :opt-un [:internal.shape/selrect
|
||||||
:internal.shape/points
|
:internal.shape/points
|
||||||
|
@ -307,7 +326,9 @@
|
||||||
::cti/interactions
|
::cti/interactions
|
||||||
:internal.shape/masked-group?
|
:internal.shape/masked-group?
|
||||||
:internal.shape/shadow
|
:internal.shape/shadow
|
||||||
:internal.shape/blur]))
|
:internal.shape/blur
|
||||||
|
:internal.shape/opacity
|
||||||
|
:internal.shape/blend-mode]))
|
||||||
|
|
||||||
|
|
||||||
;; shapes-group is handled differently
|
;; shapes-group is handled differently
|
||||||
|
@ -317,7 +338,8 @@
|
||||||
:opt-un [::id]))
|
:opt-un [::id]))
|
||||||
|
|
||||||
(s/def ::shape
|
(s/def ::shape
|
||||||
(s/and ::minimal-shape ::shape-attrs
|
(s/and ::minimal-shape
|
||||||
|
::shape-attrs
|
||||||
(s/keys :opt-un [::id
|
(s/keys :opt-un [::id
|
||||||
::component-id
|
::component-id
|
||||||
::component-file
|
::component-file
|
||||||
|
|
Loading…
Add table
Reference in a new issue