Liking cljdoc? Tell your friends :D

hatti.utils.style


answer->colorcljs

(answer->color {:keys [children] :as field} answers)

Given a field and set of answers, return a mapping of answer to color defaulting to an inbuilt palette if the field is not a select-one or any of the choices lack an appearance attribute

Given a field and set of answers, return a mapping of answer to color
defaulting to an inbuilt palette if the field is not a select-one or
any of the choices lack an appearance attribute
sourceraw docstring

customizable-style?cljs

(customizable-style? [style-name _])

Check if a user can customize a style

Check if a user can customize a style
sourceraw docstring

field->colorscljs

(field->colors field)

Return the appropriate set of colors given the field. For a select_one, returns a mapping of answer to color. Returns a string for all other field types

Return the appropriate set of colors given the field. For a select_one,
returns a mapping of answer to color. Returns a string for all other field
types
sourceraw docstring

get-css-rule-mapcljs

(get-css-rule-map appearance-attribute)

Return a map of a form field answer name to CSS rules

Return a map of a form field answer name to CSS rules
sourceraw docstring

greycljs

A Grey Color for deselected points.

A Grey Color for deselected points.
sourceraw docstring

group-user-defined-colors-by-answercljs

(group-user-defined-colors-by-answer field)

Return a map of answers to their associated colors

Return a map of answers to their associated colors
sourceraw docstring

group-user-defined-styles-by-answercljs

(group-user-defined-styles-by-answer {:keys [children]})

Return a map of answer to associated CSS rules

Return a map of answer to associated CSS rules
sourceraw docstring

qualitative-palettecljs

Saturated qualitative palette from colorbrewer. Saturated red+brown disabled due to clash with the :clicked color.

Saturated qualitative palette from colorbrewer.
Saturated red+brown disabled due to clash with the :clicked color.
sourceraw docstring

sequential-palettecljs

Color palette of YlGnBl from colorbrewer.

Color palette of YlGnBl from colorbrewer.
sourceraw docstring

user-customizable-stylescljs

Set of CSS properties that can be modified by a user

Set of CSS properties that can be modified by a user
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close