0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

🐛 Make the path command params optional.

This commit is contained in:
Andrey Antukh 2022-01-26 18:11:20 +01:00
parent 686cacd5ae
commit 420525cdf0

View file

@ -355,10 +355,12 @@
(s/keys :req-un [:internal.shape.text/text]))))
(s/def :internal.shape.path/command keyword?)
(s/def :internal.shape.path/params (s/nilable (s/map-of keyword? any?)))
(s/def :internal.shape.path/params
(s/nilable (s/map-of keyword? any?)))
(s/def :internal.shape.path/command-item
(s/keys :req-un [:internal.shape.path/command
:internal.shape.path/params]))
(s/keys :req-un [:internal.shape.path/command]
:opt-un [:internal.shape.path/params]))
(s/def :internal.shape.path/content
(s/coll-of :internal.shape.path/command-item :kind vector?))