ui/client/features/shell/domain/FaviconFrames
Pure (DOMAIN-001): the Cockpit's tab icon as the logo's toggle mark, frame by frame.
Cockpit client (features), next. Source: ui/client/features/shell/domain/FaviconFrames.ts.
Type Aliases#
ToggleFrame#
ToggleFrame =
object
Defined in: ui/client/features/shell/domain/FaviconFrames.ts:27
Properties#
barOpacity
barOpacity:
number
Defined in: ui/client/features/shell/domain/FaviconFrames.ts:27
barX
barX:
number
Defined in: ui/client/features/shell/domain/FaviconFrames.ts:27
knobX
knobX:
number
Defined in: ui/client/features/shell/domain/FaviconFrames.ts:27
Variables#
FLIP_CYCLE_MS#
constFLIP_CYCLE_MS:1500=1500
Defined in: ui/client/features/shell/domain/FaviconFrames.ts:7
One flip of the toggle, in ms (the busy logo's cadence).
Functions#
isAtRest()#
isAtRest(
f):boolean
Defined in: ui/client/features/shell/domain/FaviconFrames.ts:36
At rest: knob right, bar showing, nothing shifted. A stopping favicon waits for this so it never freezes mid-flip.
Parameters#
f
Returns#
boolean
toDataUrl()#
toDataUrl(
svg):string
Defined in: ui/client/features/shell/domain/FaviconFrames.ts:53
Parameters#
svg
string
Returns#
string
toggleFaviconSvg()#
toggleFaviconSvg(
f):string
Defined in: ui/client/features/shell/domain/FaviconFrames.ts:41
The frame as an SVG document (the drawing in app/icon.svg, with the knob and bar moved).
Parameters#
f
Returns#
string
toggleFrame()#
toggleFrame(
tMs):ToggleFrame
Defined in: ui/client/features/shell/domain/FaviconFrames.ts:30
The toggle tMs into the loop (any time; it wraps).
Parameters#
tMs
number