mirror of
https://github.com/penpot/penpot.git
synced 2025-06-14 13:41:39 +02:00
🐛 Fix a mini bug
This commit is contained in:
parent
a2abe6d882
commit
a8d5cdc29f
2 changed files with 5 additions and 1 deletions
|
@ -26,7 +26,7 @@
|
||||||
fill-values (get-multi children fill-attrs)
|
fill-values (get-multi children fill-attrs)
|
||||||
stroke-values (get-multi children stroke-attrs)]
|
stroke-values (get-multi children stroke-attrs)]
|
||||||
[:*
|
[:*
|
||||||
[:& measures-menu {:ids (:id shape)
|
[:& measures-menu {:ids [(:id shape)]
|
||||||
:type type
|
:type type
|
||||||
:values measure-values}]
|
:values measure-values}]
|
||||||
[:& fill-menu {:ids child-ids
|
[:& fill-menu {:ids child-ids
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
|
|
||||||
(defn get-multi
|
(defn get-multi
|
||||||
[shapes attrs]
|
[shapes attrs]
|
||||||
|
;; Extract some attributes of a list of shapes.
|
||||||
|
;; For each attribute, if the value is the same in all shapes,
|
||||||
|
;; wll take this value. If there is any shape that is different,
|
||||||
|
;; the value of the attribute will be the keyword :multiple.
|
||||||
(let [combine-value #(if (= %1 %2) %1 :multiple)
|
(let [combine-value #(if (= %1 %2) %1 :multiple)
|
||||||
|
|
||||||
combine-values (fn [attrs shape values]
|
combine-values (fn [attrs shape values]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue