Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/objectivehtml/FlipClock
/ functions
Functions
214 in github.com/objectivehtml/FlipClock
⨍
Functions
214
◇
Types & classes
72
↓ 50 callers
Method
faceValue
* The face's value to display. When this value changes, or a new * `FaceValue` instance has been returned, the clock will automatically * re
docs/types/Face.interface.ts:9
↓ 48 callers
Function
format
* Formats a date using a format string. * * @public
src/helpers/date.ts:187
↓ 47 callers
Function
faceValue
(value: T, props?: FaceValueProps)
src/FaceValue.ts:138
↓ 44 callers
Function
matchArrayStructure
(current: DigitizedValues, target: DigitizedValues, options?: MatchArrayStructureOptions | MatchArrayStructure
src/helpers/structure.ts:27
↓ 36 callers
Function
nextTick
(instance: FlipClock<any>)
test/index.tsx:8
↓ 34 callers
Function
flipClock
(props: FlipClockProps<T>)
src/FlipClock.ts:280
↓ 33 callers
Function
theme
(options?: FlipClockThemeOptions<T>)
src/themes/flipclock/index.tsx:46
↓ 22 callers
Function
next
* Get the next character in the charset relative to the given value.
src/helpers/charset.ts:209
↓ 21 callers
Function
chunk
* Get the next chunks of characters relative to another character.
src/helpers/charset.ts:180
↓ 21 callers
Function
decrement
* Decrement the current face towards the target value. The count determines * how many digits are skipped. If the array structures differ, they w
src/helpers/sequencer.ts:78
↓ 21 callers
Function
increment
* Increment the current face towards the target value. The count determines * how many digits are skipped. If the array structures differ, they w
src/helpers/sequencer.ts:116
↓ 18 callers
Function
prev
* Get the prev character in the charset relative to the given value.
src/helpers/charset.ts:247
↓ 16 callers
Function
digitize
* Parse a string, number or an array into `DigitizedValues`. * * @public
src/helpers/digitizer.ts:46
↓ 15 callers
Function
pad
(value: string | number | undefined, length: number)
src/helpers/date.ts:225
↓ 15 callers
Function
translate
(key: string, fallback?: T)
src/helpers/dictionary.ts:98
↓ 14 callers
Function
define
(key: string | [string, T][] | Record<string, T>, value?: T)
src/helpers/dictionary.ts:33
↓ 14 callers
Function
useCharset
(options?: UseCharsetOptions)
src/helpers/charset.ts:140
↓ 12 callers
Method
format
(sources)
src/helpers/parser.js:15
↓ 12 callers
Function
unset
(keys: string | string[])
src/helpers/dictionary.ts:49
↓ 11 callers
Function
clock
(props?: ClockProps)
src/faces/Clock.ts:118
↓ 11 callers
Method
hook
* Dispatch the event and call the method that corresponds to given hook. * * @protected
src/FlipClock.ts:258
↓ 9 callers
Function
counter
(props?: CounterProps)
src/faces/Counter.ts:206
↓ 9 callers
Function
parseDuration
(duration: string | null | undefined)
src/helpers/functions.ts:1
↓ 9 callers
Function
walker
()
test/helpers/structure.test.ts:87
↓ 8 callers
Function
alphanumeric
(props: AlphanumericProps)
src/faces/Alphanumeric.ts:205
↓ 8 callers
Method
compare
* Compare the face value with the given subject. * * @public
src/FaceValue.ts:113
↓ 8 callers
Method
increment
* Add to the face value by the given value. * * @public
src/faces/Counter.ts:195
↓ 7 callers
Function
isDigitized
* Check if the value is the type `DigitizedValues`. * * @public
src/helpers/digitizer.ts:79
↓ 7 callers
Function
peg$fail
(expected)
src/helpers/parser.js:291
↓ 7 callers
Function
useSequencer
(options?: SequencerOptions)
src/helpers/sequencer.ts:64
↓ 6 callers
Function
castDigitizedString
(value?: DigitizedValue | DigitizedValues)
src/helpers/structure.ts:149
↓ 6 callers
Function
characterRange
(startChar: string, endChar: string)
src/helpers/charset.ts:17
↓ 6 callers
Method
emit
* Emit an event. * * @public
src/EventEmitter.ts:37
↓ 6 callers
Method
on
* Listen for an event. This returns a function to unwatch the event. * * @public
src/EventEmitter.ts:52
↓ 6 callers
Function
useCss
( fn: UseCssDeclaration<T, V> )
src/helpers/css.ts:79
↓ 6 callers
Function
useDateFormats
(options?: UseDateFormatsOptions)
src/helpers/date.ts:148
↓ 5 callers
Function
castDigitizedGroup
(value?: DigitizedValue | DigitizedValues)
src/helpers/structure.ts:183
↓ 5 callers
Function
castDigitizedValues
(value?: DigitizedValue | DigitizedValues)
src/helpers/structure.ts:162
↓ 5 callers
Method
copy
* Create a new instance with the given value. * * @public
src/FaceValue.ts:122
↓ 5 callers
Function
elapsedTime
(props?: ElapsedTimeProps)
src/faces/ElapsedTime.ts:199
↓ 5 callers
Function
range
(startAt: number = 0, size: number)
src/helpers/charset.ts:8
↓ 5 callers
Method
stop
* Stops the timer. * * @public
src/Timer.ts:180
↓ 5 callers
Function
useDictionary
(terms: [string, T | Translator<T>][] | Record<string, T | Translator<T>>)
src/helpers/dictionary.ts:91
↓ 4 callers
Function
count
(values: DigitizedValues)
src/helpers/structure.ts:224
↓ 4 callers
Method
decrement
* Substract the face value by the given value. * * @public
src/faces/Counter.ts:186
↓ 4 callers
Function
getFilteredDuration
( start: Date | number, end: Date | number, keys: T[] )
src/helpers/duration.ts:43
↓ 4 callers
Function
isDigitizedGroup
(value: DigitizedValues | DigitizedValue | undefined)
src/helpers/structure.ts:205
↓ 4 callers
Method
mount
* Mount the clock instance to the DOM. * * @public
src/FlipClock.ts:154
↓ 4 callers
Function
stopAfterChanges
(totalChanges: number, fn: Callback<P, R>)
src/helpers/structure.ts:346
↓ 4 callers
Method
toggle
* Toggle starting/stopping the clock instance. * * @public
src/FlipClock.ts:224
↓ 4 callers
Function
useDefinitionMap
(items: [string, T][] | Record<string,T>)
src/helpers/dictionary.ts:27
↓ 4 callers
Function
useDigitizer
()
src/helpers/digitizer.ts:40
↓ 3 callers
Function
isBlacklisted
* Clean the array of undesired values.
src/helpers/charset.ts:286
↓ 3 callers
Function
isPlainObject
(value: unknown)
src/helpers/css.ts:13
↓ 3 callers
Function
isWhitelisted
* Clean the array of undesired values.
src/helpers/charset.ts:293
↓ 3 callers
Function
stopWhen
(predicate: StopPredicateFunction<P>, fn: Callback<P, R>)
src/helpers/structure.ts:331
↓ 3 callers
Function
useDurationFormats
()
src/helpers/duration.ts:79
↓ 2 callers
Method
afterCreate
* The `afterCreate` hook. * * @public
docs/types/FaceHooks.interface.ts:7
↓ 2 callers
Method
afterInterval
* The `afterInterval` hook. * * @public
docs/types/FaceHooks.interface.ts:43
↓ 2 callers
Method
afterMount
* The `afterMount` hook. * * @public
docs/types/FaceHooks.interface.ts:19
↓ 2 callers
Method
afterStart
* The `afterStart` hook. * * @public
docs/types/FaceHooks.interface.ts:55
↓ 2 callers
Method
afterStop
* The `afterStop` hook. * * @public
docs/types/FaceHooks.interface.ts:67
↓ 2 callers
Method
afterUnmount
* The `afterUnmount` hook. * * @public
docs/types/FaceHooks.interface.ts:31
↓ 2 callers
Method
beforeInterval
* The `beforeInterval` hook. * * @public
docs/types/FaceHooks.interface.ts:37
↓ 2 callers
Method
beforeMount
* The `beforeMount` hook. * * @public
docs/types/FaceHooks.interface.ts:13
↓ 2 callers
Method
beforeStart
* The `beforeStart` hook. * * @public
docs/types/FaceHooks.interface.ts:49
↓ 2 callers
Method
beforeStop
* The `beforeStop` hook. * * @public
docs/types/FaceHooks.interface.ts:61
↓ 2 callers
Method
beforeUnmount
* The `beforeUnmount` hook. * * @public
docs/types/FaceHooks.interface.ts:25
↓ 2 callers
Function
createHookMocks
()
test/index.tsx:15
↓ 2 callers
Function
getAnimationRate
(el: Element)
src/helpers/functions.ts:18
↓ 2 callers
Function
getTwelveHourFormat
(date: Date)
src/helpers/date.ts:246
↓ 2 callers
Function
mergeCss
( source: TSource, target: TTarget )
src/helpers/css.ts:22
↓ 2 callers
Function
nearest
* Find the nearest character in the charset to the given value.
src/helpers/charset.ts:166
↓ 2 callers
Function
peg$computeLocation
(startPos, endPos, offset)
src/helpers/parser.js:267
↓ 2 callers
Function
peg$computePosDetails
(pos)
src/helpers/parser.js:230
↓ 2 callers
Function
peg$f0
(value)
src/helpers/parser.js:177
↓ 2 callers
Function
peg$f1
(value)
src/helpers/parser.js:178
↓ 2 callers
Function
peg$literalExpectation
(text, ignoreCase)
src/helpers/parser.js:214
↓ 2 callers
Function
peg$parsechar
()
src/helpers/parser.js:423
↓ 2 callers
Function
peg$parsestring
()
src/helpers/parser.js:400
↓ 2 callers
Function
recurse
(current: DigitizedValues | DigitizedValue | undefined, target: DigitizedValues | DigitizedValue)
src/helpers/structure.ts:39
↓ 2 callers
Method
reset
* Resets the timer. If a callback is provided, re-start the clock. * * @public
src/Timer.ts:138
↓ 2 callers
Method
start
* Starts the timer. * * @public
src/Timer.ts:153
↓ 2 callers
Method
start
* Start the clock instance. * * @public
src/FlipClock.ts:178
↓ 2 callers
Method
stop
* Stop the clock instance. * * @public
src/FlipClock.ts:205
↓ 2 callers
Function
timer
(interval: number = 1000)
src/Timer.ts:201
↓ 2 callers
Function
trackChanges
(fn: TrackChangesCallback<P, R>)
src/helpers/structure.ts:283
↓ 2 callers
Method
unmount
* Unmount the clock instance from the DOM. * * @public
src/FlipClock.ts:240
↓ 1 callers
Function
apply
(...args: T)
src/helpers/css.ts:84
↓ 1 callers
Method
buildMessage
(expected, found)
src/helpers/parser.js:46
↓ 1 callers
Function
createCharset
* Creates a charset and shuffles it if required.
src/helpers/charset.ts:152
↓ 1 callers
Function
createSimpleTheme
()
test/index.tsx:93
↓ 1 callers
Function
defaultCharset
()
src/helpers/charset.ts:49
↓ 1 callers
Function
eventEmitter
()
src/EventEmitter.ts:105
↓ 1 callers
Function
extractTypes
()
bin/extractTypes.ts:39
↓ 1 callers
Function
groupBy
(array: T, key: string)
bin/extractTypes.ts:28
↓ 1 callers
Method
interval
* This method is called with every timer interval. Use this to increment, * decrement or value change the `faceValue()`. * * @public
docs/types/Face.interface.ts:16
↓ 1 callers
Function
isDivider
(value: DigitizedValue, dividers?: FlipClockThemeOptions['dividers'])
src/themes/flipclock/index.tsx:93
↓ 1 callers
Method
off
(key: K, fn?: T[K])
src/EventEmitter.ts:87
↓ 1 callers
Method
once
* Listen for an event once. * * @public
src/EventEmitter.ts:71
next →
1–100 of 214, ranked by callers