mirror of
https://github.com/penpot/penpot.git
synced 2025-05-05 11:45:54 +02:00
Add missing import on colorpicker ns.
This commit is contained in:
parent
c397100cbc
commit
29b0036248
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
[rum.core :as rum]
|
[rum.core :as rum]
|
||||||
[cats.labs.lens :as l]
|
[cats.labs.lens :as l]
|
||||||
[goog.events :as events]
|
[goog.events :as events]
|
||||||
|
[uxbox.util.color :refer (rgb->hex)]
|
||||||
[uxbox.ui.mixins :as mx])
|
[uxbox.ui.mixins :as mx])
|
||||||
(:import goog.events.EventType))
|
(:import goog.events.EventType))
|
||||||
|
|
||||||
|
@ -21,7 +22,7 @@
|
||||||
r (aget (.-data image) 0)
|
r (aget (.-data image) 0)
|
||||||
g (aget (.-data image) 1)
|
g (aget (.-data image) 1)
|
||||||
b (aget (.-data image) 2)]
|
b (aget (.-data image) 2)]
|
||||||
(callback {:hex (mx/rgb->hex [r g b])
|
(callback {:hex (rgb->hex [r g b])
|
||||||
:rgb [r g b]})))
|
:rgb [r g b]})))
|
||||||
|
|
||||||
(defn colorpicker-render
|
(defn colorpicker-render
|
||||||
|
|
Loading…
Add table
Reference in a new issue