(value: number)
| 57 | const { storageKey, defaultWidth, min, max, reverse = false } = options; |
| 58 | |
| 59 | function clamp(value: number): number { |
| 60 | if (!Number.isFinite(value)) return defaultWidth; |
| 61 | return Math.min(toValue(max), Math.max(min, Math.round(value))); |
| 62 | } |
| 63 | |
| 64 | const width = ref<number>(clamp(readStored(storageKey) ?? defaultWidth)); |
| 65 | const dragging = ref(false); |
no outgoing calls
no test coverage detected