(element: HTMLElement)
| 188 | |
| 189 | /** Whether an element's content is wider than its visible box. */ |
| 190 | export function isTextClipped(element: HTMLElement): boolean { |
| 191 | return element.scrollWidth > element.clientWidth + 1 |
| 192 | } |
| 193 | |
| 194 | /** Clamps `value` to the inclusive `[min, max]` range. */ |
| 195 | export function clamp(value: number, min: number, max: number): number { |
no outgoing calls
no test coverage detected