MCPcopy Create free account
hub / github.com/TruthHun/BookStack / toBarPerc

Function toBarPerc

static/nprogress/nprogress.js:311–313  ·  view source on GitHub ↗

* (Internal) converts a percentage (`0..1`) to a bar translateX * percentage (`-100%..0%`).

(n)

Source from the content-addressed store, hash-verified

309 */
310
311 function toBarPerc(n) {
312 return (-1 + n) * 100;
313 }
314
315
316 /**

Callers 2

nprogress.jsFile · 0.85
barPositionCSSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected