Functions and macros for working with CSS units.
Functions and macros for working with CSS units.
(angle? x)(defunit name)(defunit name unit)Create a suite of functions for unit creation, conversion, validation, and arithmetic.
Create a suite of functions for unit creation, conversion, validation, and arithmetic.
(frequency? x)(length? x)(make-unit-adder unit)Create a addition function for adding Units.
Create a addition function for adding Units.
(make-unit-divider unit)Create a division function for dividing Units.
Create a division function for dividing Units.
(make-unit-fn unit)Creates a function for creating and converting CSSUnits for the
given unit. If a number n is passed the function it will produce a
new CSSUnit record with a the magnitude set to n. If a CSSUnit
is passed the function will attempt to convert it.
Creates a function for creating and converting `CSSUnit`s for the given unit. If a number n is passed the function it will produce a new `CSSUnit` record with a the magnitude set to n. If a `CSSUnit` is passed the function will attempt to convert it.
(make-unit-multiplier unit)Create a multiplication function for multiplying Units.
Create a multiplication function for multiplying Units.
(make-unit-predicate unit)Creates a function for verifying the given unit type.
Creates a function for verifying the given unit type.
(make-unit-subtractor unit)Create a subtraction function for subtracting Units.
Create a subtraction function for subtracting Units.
(read-unit s)Read a CSSUnit object from the string s.
Read a `CSSUnit` object from the string `s`.
(resolution? x)(time? x)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |