(text)
| 1362 | } |
| 1363 | |
| 1364 | function looksLikeNdjson(text) { |
| 1365 | const firstLine = text.split(/\r?\n/, 1)[0]; |
| 1366 | return firstLine.includes('"type"') && firstLine.includes('"Point"'); |
| 1367 | } |
| 1368 | |
| 1369 | function clamp01(value) { |
| 1370 | return value === null ? null : Math.min(1, Math.max(0, value)); |