cljc-common 1.0.0
Released under the Eclipse Public License
Clojure/Clojurescript library of utility functions common to service and client development.
Installation
To install, add the following dependency to your project or build file:
[nicheware/cljc-common "1.0.0"]
Topics
Namespaces
nicheware.platform.utilities.common.config
Supports reading application configuration as a clojure map.
Public variables and functions:
nicheware.platform.utilities.common.core
This namespace contains functions that complement those in clojure.core, operating on the main clojure collections and data types.
Public variables and functions:
- after
- assoc-in-thread-last
- before
- before-last
- compose-fns
- cond-t
- current-time-millis
- deep-merge
- dissoc-in
- edn-read
- filter-count
- filter-key
- filter-remove-key
- filter-remove-val
- filter-val
- find-by-pred
- find-element
- find-first
- find-index
- find-index-by-pred
- find-indexes
- find-indexes-by-pred
- find-last
- find-last-index
- find-last-index-by-pred
- find-nth
- index-by
- insert-after
- insert-before
- is-empty?
- map-all-keys
- map-keys
- map-remove-nil
- map-values
- max-length
- min-length
- negate
- nth-items
- pad-with
- parse-int
- rand-uuid
- range-of-range
- remove-empty
- remove-nil
- remove-slice
- remove-slice-wrap
- replace-at
- replace-at-wrap
- replace-element
- replace-element-by-pred
- replace-leading-nils
- replace-trailing-nils
- rotate-seq
- selective-merge
- seq-of
- slice
- slice-wrap
- snap
- str-to-int
- throw-illegal-arg
- vec-remove-nil
nicheware.platform.utilities.common.graphics
Functions useful in graphics and drawing calculations.
Public variables and functions:
nicheware.platform.utilities.common.graphics.color
Functions for dealing with colors and conversion between different color representations.
Public variables and functions:
- black-color
- blue-color
- bright-red-color
- color-as-css-hex
- color-as-map
- color-as-rgba
- color-difference-seq
- css-blue-color
- css-pink-color
- css-white-color
- css-yellow-color
- dark-blue-color
- dark-green-color
- dark-red-color
- green-color
- hsl-precision
- hsla-to-rgba
- int-rgb
- light-grey-color
- make-color-increment-fn
- model-from-to
- model-ranges
- normalise-rgb
- nudge-color
- ratio-rgba-to-int-rgba
- react-color-as-rgba
- rgba-as-css-hex
- rgba-to-hsla
- transparent-blue-color
- unique-color
- white-color
- yellow-color
nicheware.platform.utilities.common.graphics.interpolate
Functions for performing different interpolations between two points.
Public variables and functions:
nicheware.platform.utilities.common.graphics.line
Functions for with mathematical straight and curved lines:
Public variables and functions:
nicheware.platform.utilities.common.math
Functions complementing those in the Clojure/Clojurescript Math namespace.
Public variables and functions:
nicheware.platform.utilities.common.state.migration
Functions used when handling migration of state, where state is represented by a Clojure map.
Public variables and functions:
nicheware.platform.utilities.common.version
This namespace provides a set of functions supporting in-memory versioning of a map of assets represented by a clojure map.
Public variables and functions:
- add-version
- current-version-key
- delete-asset-version
- delete-version
- find-element-with-ref-name
- find-index
- get-current
- get-current-asset
- get-current-ref
- get-first-asset-ref
- get-ordered-versions
- get-version
- make-ref-name-fn
- mutate-version
- remove-unused-versions
- rename-versioned-asset
- rename-versions
- replace-current
- replace-element-with-ref-name
- set-version
- timestamp-element
- version-element