Liking cljdoc? Tell your friends :D

baredom.components.x-liquid-glass.model


attr-amplitudecljs

source

attr-blobscljs

source

attr-blurcljs

source

attr-color-1cljs

source

attr-color-2cljs

source

attr-disabledcljs

source

attr-frostcljs

source

attr-goocljs

source

attr-modecljs

source

attr-specularcljs

source

attr-specular-intensitycljs

source

attr-specular-sizecljs

source

attr-speedcljs

source

attr-tintcljs

source

css-blurcljs

source

css-bordercljs

source

css-border-widthcljs

source

css-gradient-1cljs

source

css-gradient-2cljs

source

css-paddingcljs

source

css-shadowcljs

source

css-specular-colorcljs

source

css-springcljs

source

css-spring-durationcljs

source

css-tintcljs

source

displace-satellitecljs

(displace-satellite rest-x rest-y i t speed amplitude)

Compute displaced position for satellite i at time t. Returns #js [x y].

Compute displaced position for satellite i at time t.
Returns #js [x y].
sourceraw docstring

event-schemacljs

source

normalizecljs

(normalize {:keys [blobs-raw speed-raw amplitude-raw blur-raw goo-raw tint-raw
                   specular-attr specular-size-raw specular-intensity-raw
                   disabled-attr mode-raw frost-raw color-1-raw color-2-raw]})

Normalise raw attribute inputs into a stable view-model map.

Input keys: :blobs-raw string | nil :speed-raw string | nil :amplitude-raw string | nil :blur-raw string | nil :goo-raw string | nil :tint-raw string | nil :specular-attr string | nil (nil when absent) :specular-size-raw string | nil :specular-intensity-raw string | nil :disabled-attr string | nil (nil when absent)

Output keys: :blobs int :speed number :amplitude number :blur number :goo number :tint string | nil :specular? boolean :specular-size number :specular-intensity number :disabled? boolean

Normalise raw attribute inputs into a stable view-model map.

Input keys:
  :blobs-raw              string | nil
  :speed-raw              string | nil
  :amplitude-raw          string | nil
  :blur-raw               string | nil
  :goo-raw                string | nil
  :tint-raw               string | nil
  :specular-attr          string | nil  (nil when absent)
  :specular-size-raw      string | nil
  :specular-intensity-raw string | nil
  :disabled-attr          string | nil  (nil when absent)

Output keys:
  :blobs              int
  :speed              number
  :amplitude          number
  :blur               number
  :goo                number
  :tint               string | nil
  :specular?          boolean
  :specular-size      number
  :specular-intensity number
  :disabled?          boolean
sourceraw docstring

observed-attributescljs

source

parse-amplitudecljs

(parse-amplitude s)
source

parse-blobscljs

(parse-blobs s)
source

parse-blurcljs

(parse-blur s)
source

parse-boolcljs

(parse-bool s)

Parse a boolean presence attribute. Present (any value) → true, nil → false.

Parse a boolean presence attribute. Present (any value) → true, nil → false.
sourceraw docstring

parse-colorcljs

(parse-color s)

Parse a color attribute. Returns nil if absent or empty, otherwise the string.

Parse a color attribute. Returns nil if absent or empty, otherwise the string.
sourceraw docstring

parse-frostcljs

(parse-frost s)
source

parse-goocljs

(parse-goo s)
source

parse-modecljs

(parse-mode s)

Parse mode attribute. Returns :surface or :submerged.

Parse mode attribute. Returns :surface or :submerged.
sourceraw docstring

parse-specular-intensitycljs

(parse-specular-intensity s)
source

parse-specular-sizecljs

(parse-specular-size s)
source

parse-speedcljs

(parse-speed s)
source

parse-tintcljs

(parse-tint s)

Parse tint attribute. Returns nil if absent or empty, otherwise the string.

Parse tint attribute. Returns nil if absent or empty, otherwise the string.
sourceraw docstring

property-apicljs

source

pseudo-noisecljs

(pseudo-noise x y t)

Organic-looking noise from sum of sines. Returns value in ~[-1, 1].

Organic-looking noise from sum of sines. Returns value in ~[-1, 1].
sourceraw docstring

satellite-rest-positionscljs

(satellite-rest-positions n cx cy rx ry)

Compute rest positions for n satellite ellipses evenly distributed around a central ellipse. Returns #js [xs ys] where xs/ys are Float64Arrays.

cx, cy — center of the element rx, ry — semi-axes of the orbital path (where satellites sit)

Compute rest positions for n satellite ellipses evenly distributed
around a central ellipse. Returns #js [xs ys] where xs/ys are Float64Arrays.

cx, cy — center of the element
rx, ry — semi-axes of the orbital path (where satellites sit)
sourceraw docstring

spring-durationcljs

source

spring-easingcljs

CSS linear() spring easing function for physically natural motion.

CSS linear() spring easing function for physically natural motion.
sourceraw docstring

tag-namecljs

source

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