Optional
options: BadgerOptionsPrivate
#canvasPrivate
#ctxPrivate
#imagePrivate
#offsetPrivate
#optionsPrivate
#sizePrivate
#urlPrivate
#valueStatic
DefaultStatic
OffsetsStatic
prefixedThe background color for the badge (pill).
The text color for the badge (pill).
Where the badge should be positioned.
The border radius for the badge (pill).
A value between 0 and 1 representing the size of the badge.
The url to the image we want to draw the badge on.
The data url for the most recent draw call.
The number to render within the badge.
Rest
...args: ArgumentMap<BadgerEvents>[Extract<T, keyof BadgerEvents>]Optional
context: anyCalls each of the listeners registered for a given event.
Rest
...args: ArgumentMap<BadgerEvents>[Extract<T, keyof BadgerEvents>]Return an array listing the events for which the emitter has registered listeners.
Private
getURLReturn the number of listeners listening to a given event.
Return the listeners registered for a given event.
Optional
fn: ((...args) => void)Rest
...args: ArgumentMap<BadgerEvents>[Extract<T, keyof BadgerEvents>]Optional
context: anyOptional
once: booleanAdd a listener for a given event.
Rest
...args: ArgumentMap<BadgerEvents>[Extract<T, keyof BadgerEvents>]Optional
context: anyAdd a one-time listener for a given event.
Rest
...args: ArgumentMap<BadgerEvents>[Extract<T, keyof BadgerEvents>]Optional
context: anyRemove the listeners of a given event.
Optional
fn: ((...args) => void)Rest
...args: ArgumentMap<BadgerEvents>[Extract<T, keyof BadgerEvents>]Optional
context: anyOptional
once: booleanPrivate
setupGenerated using TypeDoc
Used to add a badge (pill) to a given image, this can be used to update a favicon and more.
Inspired by Roko C. Buljan's answer on Stack Overflow. Reference