0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 06:58:58 -05:00

Parse double to preserve opacity

This commit is contained in:
Florian Schroedl 2024-07-29 11:08:15 +02:00
parent 3c7261e75b
commit 1f88c8288a

View file

@ -89,7 +89,7 @@
(let [resolved-tokens (reduce (let [resolved-tokens (reduce
(fn [acc ^js cur] (fn [acc ^js cur]
(let [value (.-value cur) (let [value (.-value cur)
resolved-value (d/parse-integer (.-value cur)) resolved-value (d/parse-double (.-value cur))
original-value (-> cur .-original .-value) original-value (-> cur .-original .-value)
id (uuid (.-uuid (.-id cur))) id (uuid (.-uuid (.-id cur)))
missing-reference? (and (not resolved-value) missing-reference? (and (not resolved-value)