Files
SnowLuma/.pnpm-store/v11/files/d8/065377b83a0a6eb298f9616f3215a797097aed818a70beae4f8b46f4c6be68c8ca0196506eb0d093afec285aa43e00c707c2768dffbc4de5b0fe9c8796913c
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

18 lines
530 B
Plaintext

const invisibleValues = new Set(["none", "hidden"]);
/**
* Returns a function that, when provided a progress value between 0 and 1,
* will return the "none" or "hidden" string only when the progress is that of
* the origin or target.
*/
function mixVisibility(origin, target) {
if (invisibleValues.has(origin)) {
return (p) => (p <= 0 ? origin : target);
}
else {
return (p) => (p >= 1 ? target : origin);
}
}
export { invisibleValues, mixVisibility };
//# sourceMappingURL=visibility.mjs.map