Namespace util
Index
Functions
addDiv
-
Parameters
-
parentElement: HTMLElement
Reference of the element to append to.
-
Optional className: string
Optional css class name to apply to the div.
Returns HTMLDivElement
-
addEl
-
Create a new element as a child of another element.
Parameters
-
tagName: string
Tag name of the new tag to create.
-
parentElement: HTMLElement
Reference of the element to append to.
Returns HTMLElement
new HTMLElement.
-
allTruthy
-
Returns array with items which are truthy.
Type parameters
-
T
Parameters
-
Rest ...args: T[][]
array or arrays to concat into a single array.
Returns T[]
-
clone
-
Type parameters
-
T: object
Parameters
-
objectToClone: T
Returns T
-
colorFromString
-
Convert a CSS color string to a Deck.gl RGBAColor array - (The rgba color of each object, in r, g, b, [a]. Each component is in the 0-255 range.).
Parameters
-
cssColorSpecifier: string
A CSS Color Module Level 3 specifier string.
Returns RGBAColor
-
colorIsEqual
colorToString
-
Convert a Deck.gl color to a CSS rgba() string.
Parameters
-
color: RGBAColor
A Deck.gl RGBAColor array - (The rgba color of each object, in r, g, b, [a]. Each component is in the 0-255 range.)
Returns string
-
concat
-
Type parameters
-
T
Parameters
-
Rest ...args: T[][]
Returns T[]
-
createElement
-
Type parameters
-
T
Parameters
-
tag: StatelessComponent<T>
-
attrs: StatelessProps<T>
-
Rest ...children: JSX.Element[]
Returns any
-
-
Parameters
-
tag: string
-
attrs: AttributeMap
-
Rest ...children: (Element | Content)[]
Returns any
-
deepMerge
-
Type parameters
-
T
Parameters
-
Rest ...objectsToMerge: T[]
Returns T
-
desaturate
getActiveElementInfo
-
Parameters
-
Optional container: HTMLElement
Returns ActiveElementInfo
-
mount
-
Parameters
-
element: Element | JSX.Element
-
container: HTMLElement
Returns void
-
outerSize
-
Measure the outer height and width of an HTMLElement, including margin, padding and border.
Parameters
-
el: HTMLElement
HTML Element to measure.
Returns { height: number; width: number }
-
height: number
-
width: number
-
push
-
Add an array to an existing array in place.
Type parameters
-
T
Parameters
-
arr: T[]
Array to append to.
-
items: T[]
Arrof of items to append.
Returns void
-
setActiveElement
-
Parameters
-
activeElementInfo: ActiveElementInfo
-
Optional container: Element
Returns void
-
Generated using TypeDoc
Create a new div HTMLElement as a child of another element.