mirror of
https://github.com/penpot/penpot.git
synced 2025-05-30 10:26:11 +02:00
Add shape schema definition.
This commit is contained in:
parent
91fabcb148
commit
78f619b25d
1 changed files with 7 additions and 0 deletions
|
@ -16,6 +16,13 @@
|
||||||
:width [v/required v/integer]
|
:width [v/required v/integer]
|
||||||
:height [v/required v/integer]})
|
:height [v/required v/integer]})
|
||||||
|
|
||||||
|
(def ^:static +shape-schema+
|
||||||
|
{:x [v/integer]
|
||||||
|
:y [v/integer]
|
||||||
|
:width [v/integer]
|
||||||
|
:height [v/integer]
|
||||||
|
:type [v/required sc/shape-type]})
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Events
|
;; Events
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue