mirror of
https://github.com/penpot/penpot.git
synced 2025-08-03 21:38:23 +02:00
✨ Integrate stoke add/del operation.
This commit is contained in:
parent
c90c38d612
commit
4465db130d
6 changed files with 86 additions and 77 deletions
|
@ -15,6 +15,10 @@
|
|||
[uxbox.common.exceptions :as ex]
|
||||
[uxbox.common.spec :as us]))
|
||||
|
||||
;; TODO: should be replaced when uuid is unified under
|
||||
;; uxbox.common.uuid namespace.
|
||||
(def uuid-zero #uuid "00000000-0000-0000-0000-000000000000")
|
||||
|
||||
;; --- Specs
|
||||
|
||||
(s/def ::id uuid?)
|
||||
|
@ -53,7 +57,7 @@
|
|||
(s/def ::ry number?)
|
||||
(s/def ::stroke-color string?)
|
||||
(s/def ::stroke-opacity number?)
|
||||
(s/def ::stroke-style #{:none :solid :dotted :dashed :mixed})
|
||||
(s/def ::stroke-style #{:solid :dotted :dashed :mixed :none})
|
||||
(s/def ::stroke-width number?)
|
||||
(s/def ::text-align #{"left" "right" "center" "justify"})
|
||||
(s/def ::type #{:rect :path :circle :image :text :canvas :curve :icon :frame :group})
|
||||
|
@ -163,6 +167,16 @@
|
|||
:name "root"
|
||||
:shapes []}}})
|
||||
|
||||
(def default-shape-attrs
|
||||
{:fill-color "#000000"
|
||||
:fill-opacity 1})
|
||||
|
||||
(def default-frame-attrs
|
||||
{:frame-id uuid-zero
|
||||
:fill-color "#ffffff"
|
||||
:fill-opacity 1
|
||||
:shapes []})
|
||||
|
||||
;; --- Changes Processing Impl
|
||||
|
||||
(defmulti process-change
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue