UNPKG

motion-plus-vue

Version:

Motion Plus Vue

12 lines (11 loc) 299 B
import { calcTotalItemLength as h, calcItemLength as o } from "./calc-total-item-length.mjs"; function r(l, e, n) { const c = h(e), m = Math.max(...e.map(o)); let t = 0, a = 0; for (; a < l; ) a = (c + n) * (t + 1) - m, t++; return Math.max(t - 1, 0); } export { r as calcNumClones };