MCPcopy
hub / github.com/vuejs/core / getTimeout

Function getTimeout

packages/runtime-dom/src/components/Transition.ts:461–466  ·  view source on GitHub ↗
(delays: string[], durations: string[])

Source from the content-addressed store, hash-verified

459}
460
461function getTimeout(delays: string[], durations: string[]): number {
462 while (delays.length < durations.length) {
463 delays = delays.concat(delays)
464 }
465 return Math.max(...durations.map((d, i) => toMs(d) + toMs(delays[i])))
466}
467
468// Old versions of Chromium (below 61.0.3163.100) formats floating pointer
469// numbers in a locale-dependent way, using a comma instead of a dot.

Callers 1

getTransitionInfoFunction · 0.85

Calls 2

toMsFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected