(>> scale1 scale2)
Combines two scales. Note that in evaluation scale1 is evaluated first.
Combines two scales. Note that in evaluation scale1 is evaluated first.
(adjust-range scale [range-min range-max])
Simply sets a new range in the last succ of scale, without altering anything else
Simply sets a new range in the last succ of scale, without altering anything else
(domain scale)
Returns the domain of a scale. That is the domain of the first scale
Returns the domain of a scale. That is the domain of the first scale
(invert scale)
Inverts the range of a scaling for the specified range. This is done by calculating the center of this range and mirroring target values. Thus, ranges must be defined correctly, thus.
Inverts the range of a scaling for the specified range. This is done by calculating the center of this range and mirroring target values. Thus, ranges must be defined correctly, thus.
(pad scale padding)
Pads a scale in the sense of adding a offset defined in padding
to the target range.
Pads a scale in the sense of adding a offset defined in `padding` to the target range.
(pad-to-zero scale)
Pads a scale to 0. That is, it subtracts or adds an offset to the smallest range boundary, setting it to 0
Pads a scale to 0. That is, it subtracts or adds an offset to the smallest range boundary, setting it to 0
(range scale)
Returns the range of a scale. That is the range of the last scale in succ.
Returns the range of a scale. That is the range of the last scale in succ.
(scale scale value)
Scales a value using the given scale.
Scales a value using the given scale.
(scale-inverted scale param)
Scales the value inverted (reversed) using the given scale.
Scales the value inverted (reversed) using the given scale.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close