mirror of
https://github.com/glanceapp/glance.git
synced 2025-08-09 23:57:39 +02:00
Add masonry layout functionality
This commit is contained in:
@ -23,3 +23,7 @@ export function throttledDebounce(callback, maxDebounceTimes, debounceDelay) {
|
||||
export function isElementVisible(element) {
|
||||
return !!(element.offsetWidth || element.offsetHeight || element.getClientRects().length);
|
||||
}
|
||||
|
||||
export function clamp(value, min, max) {
|
||||
return Math.min(Math.max(value, min), max);
|
||||
}
|
||||
|
Reference in New Issue
Block a user