(name: string)
| 1507 | const closureBounds = useMemo(() => { |
| 1508 | const params = new URLSearchParams(window.location.search); |
| 1509 | const read = (name: string): number | undefined => { |
| 1510 | const raw = params.get(name); |
| 1511 | if (raw === null) { |
| 1512 | return undefined; |
| 1513 | } |
| 1514 | const value = Number.parseInt(raw, 10); |
| 1515 | return Number.isFinite(value) ? value : undefined; |
| 1516 | }; |
| 1517 | return { depth: read(CLOSURE_DEPTH_PARAM), cap: read(CLOSURE_CAP_PARAM) }; |
| 1518 | }, []); |
| 1519 |
no test coverage detected