MCPcopy Index your code
hub / github.com/codeaashu/claude-code / computeGlimmerIndex

Function computeGlimmerIndex

src/bridge/bridgeStatusUtil.ts:61–67  ·  view source on GitHub ↗
(
  tick: number,
  messageWidth: number,
)

Source from the content-addressed store, hash-verified

59
60/** Compute the glimmer index for a reverse-sweep shimmer animation. */
61export function computeGlimmerIndex(
62 tick: number,
63 messageWidth: number,
64): number {
65 const cycleLength = messageWidth + 20
66 return messageWidth + 10 - (tick % cycleLength)
67}
68
69/**
70 * Split text into three segments by visual column position for shimmer rendering.

Callers 1

BriefSpinnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected