Liking cljdoc? Tell your friends :D

baredom.components.x-color-picker.model


allowed-modescljs

source

alpha->pctcljs

(alpha->pct a)

Convert alpha (0-1) to strip percentage (0-100).

Convert alpha (0-1) to strip percentage (0-100).
sourceraw docstring

attr-alphacljs

source

attr-disabledcljs

source

attr-labelcljs

source

attr-modecljs

source

attr-namecljs

source

attr-opencljs

source

attr-readonlycljs

source

attr-swatchescljs

source

attr-valuecljs

source

clampcljs

(clamp v lo hi)

Clamp v to [lo, hi].

Clamp v to [lo, hi].
sourceraw docstring

clamp-alphacljs

(clamp-alpha a)

Clamp to [0, 1].

Clamp to [0, 1].
sourceraw docstring

clamp-huecljs

(clamp-hue h)

Wrap hue to [0, 360).

Wrap hue to [0, 360).
sourceraw docstring

clamp-percentcljs

(clamp-percent v)

Clamp to [0, 100].

Clamp to [0, 100].
sourceraw docstring

color-value-textcljs

(color-value-text h s l a)

Produce a human-readable ARIA value text for the current colour.

Produce a human-readable ARIA value text for the current colour.
sourceraw docstring

default-modecljs

source

default-valuecljs

source

derive-statecljs

(derive-state {:keys [value alpha disabled readonly name mode open label
                      swatches]})

Transform raw attribute values into a normalized state map.

Transform raw attribute values into a normalized state map.
sourceraw docstring

event-changecljs

source

event-inputcljs

source

event-schemacljs

source

hsl->hsvcljs

(hsl->hsv h s l)

Convert HSL to HSV. All inputs/outputs use H 0-360, S/L/V 0-100.

Convert HSL to HSV. All inputs/outputs use H 0-360, S/L/V 0-100.
sourceraw docstring

hsl->rgbcljs

(hsl->rgb h s l)

Convert HSL to RGB. H is 0-360, S and L are 0-100. Returns {:r :g :b} with values 0-255.

Convert HSL to RGB. H is 0-360, S and L are 0-100.
Returns {:r :g :b} with values 0-255.
sourceraw docstring

hsv->hslcljs

(hsv->hsl h s v)

Convert HSV to HSL. All inputs/outputs use H 0-360, S/V/L 0-100.

Convert HSV to HSL. All inputs/outputs use H 0-360, S/V/L 0-100.
sourceraw docstring

hue->pctcljs

(hue->pct h)

Convert hue (0-360) to strip percentage (0-100).

Convert hue (0-360) to strip percentage (0-100).
sourceraw docstring

interactable?cljs

(interactable? {:keys [disabled? readonly?]})

Returns true when the element can accept user input.

Returns true when the element can accept user input.
sourceraw docstring

make-detailcljs

(make-detail hex h s l a)

Create an event detail map for the current colour state.

Create an event detail map for the current colour state.
sourceraw docstring

normalize-modecljs

(normalize-mode s)

Normalize mode attribute to 'inline' or 'popover'.

Normalize mode attribute to 'inline' or 'popover'.
sourceraw docstring

normalize-valuecljs

(normalize-value s)

Parse and normalize a hex value string. Returns valid #rrggbb or default.

Parse and normalize a hex value string. Returns valid #rrggbb or default.
sourceraw docstring

observed-attributescljs

source

parse-hexcljs

(parse-hex s)

Parse hex string (#rgb, #rrggbb, #rrggbbaa) into {:r :g :b :a} or nil. r/g/b are 0-255, a is 0-1.

Parse hex string (#rgb, #rrggbb, #rrggbbaa) into {:r :g :b :a} or nil.
r/g/b are 0-255, a is 0-1.
sourceraw docstring

parse-swatchescljs

(parse-swatches s)

Parse comma-separated hex colour strings. Returns vector of valid hex strings.

Parse comma-separated hex colour strings. Returns vector of valid hex strings.
sourceraw docstring

pct->alphacljs

(pct->alpha pct)

Convert strip percentage (0-100) to alpha (0-1).

Convert strip percentage (0-100) to alpha (0-1).
sourceraw docstring

pct->huecljs

(pct->hue pct)

Convert strip percentage (0-100) to hue (0-360).

Convert strip percentage (0-100) to hue (0-360).
sourceraw docstring

property-apicljs

source

rgb->hexcljs

(rgb->hex r g b)

Convert RGB (0-255) to #rrggbb hex string.

Convert RGB (0-255) to #rrggbb hex string.
sourceraw docstring

rgb->hslcljs

(rgb->hsl r g b)

Convert RGB (0-255) to HSL. Returns {:h 0-360 :s 0-100 :l 0-100}.

Convert RGB (0-255) to HSL. Returns {:h 0-360 :s 0-100 :l 0-100}.
sourceraw docstring

rgba->hex8cljs

(rgba->hex8 r g b a)

Convert RGBA to #rrggbbaa hex string. Alpha is 0-1.

Convert RGBA to #rrggbbaa hex string. Alpha is 0-1.
sourceraw docstring

sat-val->xy-pctcljs

(sat-val->xy-pct sat val)

Convert HSV saturation (0-100) and value (0-100) to area thumb percentage positions {:x 0-100 :y 0-100}. x = saturation (left=0, right=100) y = inverted value (top=0 means V=100, bottom=100 means V=0).

Convert HSV saturation (0-100) and value (0-100) to area thumb
percentage positions {:x 0-100 :y 0-100}.
x = saturation (left=0, right=100)
y = inverted value (top=0 means V=100, bottom=100 means V=0).
sourceraw docstring

tag-namecljs

source

valid-hex?cljs

(valid-hex? s)

Returns true when s is a valid hex colour string.

Returns true when s is a valid hex colour string.
sourceraw docstring

xy-pct->sat-valcljs

(xy-pct->sat-val x-pct y-pct)

Convert area thumb percentage positions to HSV saturation and value. Returns {:sat 0-100 :val 0-100}.

Convert area thumb percentage positions to HSV saturation and value.
Returns {:sat 0-100 :val 0-100}.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close