Liking cljdoc? Tell your friends :D

baredom.components.x-confetti.model


attr-auto-firecljs

source

attr-colorscljs

source

attr-countcljs

source

attr-disabledcljs

source

attr-durationcljs

source

attr-gravitycljs

source

attr-modecljs

source

attr-origincljs

source

attr-shapescljs

source

attr-spreadcljs

source

attr-velocitycljs

source

count-maxcljs

source

count-mincljs

source

default-countcljs

source

default-durationcljs

source

default-gravitycljs

source

default-modecljs

source

default-origincljs

source

default-palettecljs

source

default-shapescljs

source

default-spreadcljs

source

default-velocitycljs

source

duration-maxcljs

source

duration-mincljs

source

event-endcljs

source

event-firecljs

source

event-schemacljs

source

gravity-maxcljs

source

gravity-mincljs

source

launch-angle-radcljs

(launch-angle-rad origin spread-deg r)

Compute the launch angle (radians) for a particle, given the burst origin and a uniform random in [0,1]. The base direction depends on origin: top → downward, center → omni, bottom → upward, point → omni.

spread-deg is the half-angle (so 60 means ±60°).

Compute the launch angle (radians) for a particle, given the burst origin
and a uniform random in [0,1]. The base direction depends on `origin`:
top → downward, center → omni, bottom → upward, point → omni.

`spread-deg` is the half-angle (so 60 means ±60°).
sourceraw docstring

method-apicljs

source

mode-valuescljs

source

normalizecljs

(normalize {:keys [mode-raw origin-raw count-raw spread-raw velocity-raw
                   gravity-raw duration-raw colors-raw shapes-raw auto-fire?
                   disabled?]})

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

Input keys: :mode-raw, :origin-raw, :count-raw, :spread-raw, :velocity-raw, :gravity-raw, :duration-raw, :colors-raw, :shapes-raw, :auto-fire? (bool), :disabled? (bool)

Output keys: :mode, :origin, :count, :spread, :velocity, :gravity, :duration, :colors (vec), :shapes (vec), :auto-fire?, :disabled?

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

Input keys:
  :mode-raw, :origin-raw, :count-raw, :spread-raw, :velocity-raw,
  :gravity-raw, :duration-raw, :colors-raw, :shapes-raw,
  :auto-fire? (bool), :disabled? (bool)

Output keys:
  :mode, :origin, :count, :spread, :velocity, :gravity, :duration,
  :colors (vec), :shapes (vec), :auto-fire?, :disabled?
sourceraw docstring

observed-attributescljs

source

origin-pointcljs

(origin-point origin w h ox oy)

Return the [x y] origin pixel for a burst, given canvas dimensions and the requested origin mode. For point, falls back to canvas center if the supplied coordinates are nil.

Return the [x y] origin pixel for a burst, given canvas dimensions and
the requested origin mode. For `point`, falls back to canvas center if
the supplied coordinates are nil.
sourceraw docstring

origin-valuescljs

source

parse-colorscljs

(parse-colors s)

Parse the colors attribute into a vector of CSS color strings. Empty / missing → returns default-palette.

Parse the `colors` attribute into a vector of CSS color strings.
Empty / missing → returns `default-palette`.
sourceraw docstring

parse-countcljs

(parse-count s)
source

parse-durationcljs

(parse-duration s)
source

parse-gravitycljs

(parse-gravity s)
source

parse-modecljs

(parse-mode s)
source

parse-origincljs

(parse-origin s)
source

parse-shapescljs

(parse-shapes s)

Parse the shapes attribute into a vector of allowed shape keywords. Filters out unknown values; falls back to defaults when the result is empty.

Parse the `shapes` attribute into a vector of allowed shape keywords.
Filters out unknown values; falls back to defaults when the result is empty.
sourceraw docstring

parse-spreadcljs

(parse-spread s)
source

parse-velocitycljs

(parse-velocity s)
source

property-apicljs

source

shape-valuescljs

source

spread-maxcljs

source

spread-mincljs

source

tag-namecljs

source

velocity-maxcljs

source

velocity-mincljs

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