Enumerates days of week, starting from Monday.
Converts a given HSL format color into an RGB color.
Represents the hue. In range [0, 360).
Represents the saturation. In range [0, 1].
Represents the luminosity. In range [0, 1].
An RGB color as a 3-length array of three integers in range [0, 255].
Returns the largest value in the given array, with a custom predicate function.
The array to search in.
he comparison function to use when comparing elements.
The largest value in the given array.
Returns the smallest value in the given array, with a custom predicate function.
The array to search in.
The comparison function to use when comparing elements.
The smallest value in the given array.
Uses getTextWidth()
and a trial-and-error approach to fitting a given
string into a given area.
The text to be rendered.
The name of the font-family to render in.
The target width.
The appropriate font size so that the text is at most target
pixels wide.
Uses canvas.measureText to compute and return the width of the given text of given font in pixels.
The text to be rendered.
The css font descriptor that text is to be rendered with (e.g. "bold 14px verdana").
The estimated width of the text in pixels.
Converts a given RGB color array into a hexcode format color.
An RGB color as a 3-length array of three integers in range [0, 255].
A hexcode format color string, represented as #RRGGBB
.
Identity function that returns the provided parameter.
Checks if an object is null.
The object to determine nullness.
Sanitizes a given string so that it is appropriate for a selector. Replaces illegal characters with an underscore.
String to be sanitized.
This is a tweening function to transition numerically formatted text.
Generated using TypeDoc
HexColor is a string alias that should be a valid hex-formatted color. It doesn't seem to be currently used anywhere, so it might be good to remove it, or at least, fully implement it.