UNPKG

remove-overlaps

Version:

Given set of N circles at predefined positions attempts to remove overlap between circles

8 lines (6 loc) 123 B
module.exports = clamp; function clamp(v, min, max) { if (v < min) return min; if (v > max) return max; return v; }