(point: number | string)
| 598 | |
| 599 | // Converts a snap point value to a CSS length: numbers are pixels. |
| 600 | function toLength(point: number | string): string { |
| 601 | return typeof point === 'number' ? `${point}px` : point; |
| 602 | } |
| 603 | |
| 604 | function SnapPoint({point, align, axis}: SnapPointProps) { |
| 605 | let mainUnit = axis === 'y' ? 'dvh' : 'dvw'; |
no outgoing calls
no test coverage detected