@nika-js/onlymap 0.13.0 → 0.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +2 -2
  3. package/bin/dem-tiles.mjs +270 -0
  4. package/bin/onlymapjs.mjs +138 -34
  5. package/dist/{basemap-BxqFTBzX.js → basemap-CdSCIWCl.js} +473 -443
  6. package/dist/basemap.d.ts +16 -3
  7. package/dist/{build-D4iI8O9b.js → build-CUx4yR_O.js} +10 -10
  8. package/dist/camera-altitude.d.ts +29 -0
  9. package/dist/{client-BYFePLZV.js → client-DVkMuuPp.js} +2 -2
  10. package/dist/color.d.ts +15 -0
  11. package/dist/credit-chrome.d.ts +11 -0
  12. package/dist/elements/om-map.d.ts +41 -1
  13. package/dist/geodesy.d.ts +2 -0
  14. package/dist/{geoparquet-BV32P0nI.js → geoparquet-DuCEsCOu.js} +3 -3
  15. package/dist/{globe-view-B_X6obse.js → globe-view-BWNfn-Sx.js} +1 -1
  16. package/dist/ground-controller.d.ts +39 -0
  17. package/dist/{hillshade-9VS_t-Ks.js → hillshade-DyfYxqNm.js} +61 -64
  18. package/dist/{hillshade-shader-DI2uLSNU.js → hillshade-shader-BWA0USDQ.js} +12 -11
  19. package/dist/hillshade-shader.d.ts +2 -2
  20. package/dist/hillshade.d.ts +0 -29
  21. package/dist/{index-IDWDfgTC.js → index-BfHaNHyY.js} +20687 -19351
  22. package/dist/{index-JewSBOjJ.js → index-CCj9Z5yt.js} +38 -38
  23. package/dist/{index-D40H3fpl.js → index-Cc3huYsW.js} +62 -62
  24. package/dist/{index-Bct9VWxi.js → index-DRGcZmBm.js} +1 -1
  25. package/dist/{index-eSuCj2Bn.js → index-DYrgHprN.js} +61 -61
  26. package/dist/{index-D3P6Cfbr.js → index-DabUE8w3.js} +38 -38
  27. package/dist/{index-CbFw6P0B.js → index-DfzI_j0D.js} +1 -1
  28. package/dist/{index-Di1LK4JT.js → index-DiDoH_BG.js} +3 -3
  29. package/dist/{index-BR_5FIN1.js → index-dUoVyYIW.js} +18 -18
  30. package/dist/index.d.ts +1 -1
  31. package/dist/{lerc-C42a0ISa.js → lerc-CUV0h9Ci.js} +1 -1
  32. package/dist/onlymap.standalone.js +37891 -36442
  33. package/dist/onlymapjs.js +49 -49
  34. package/dist/plane-gpu/plane-basemap.d.ts +0 -14
  35. package/dist/{post-process-effect-ktcgAjmv.js → post-process-effect-DPrpqybM.js} +1 -1
  36. package/dist/programmatic.d.ts +3 -1
  37. package/dist/{raster-CIxg_M_1.js → raster-CrRQNJE7.js} +4 -4
  38. package/dist/{raster-pipeline-BODPC9vJ.js → raster-pipeline-D9g8RAo4.js} +11 -11
  39. package/dist/runtime-core.d.ts +132 -0
  40. package/dist/sea-surface.d.ts +18 -0
  41. package/dist/terrain-derive.d.ts +39 -0
  42. package/dist/terrain-ground.d.ts +31 -0
  43. package/dist/terrain-heightfield.d.ts +17 -9
  44. package/dist/terrain-inspect-GowNVtMZ.js +96 -0
  45. package/dist/terrain-inspect.d.ts +34 -0
  46. package/dist/terrain-nodata.d.ts +50 -0
  47. package/dist/terrain-priority.d.ts +92 -0
  48. package/dist/terrain-sample.d.ts +6 -0
  49. package/dist/terrain-skirt.d.ts +6140 -0
  50. package/dist/terrain-texture-mask.d.ts +40 -0
  51. package/dist/terrain-tint.d.ts +61 -0
  52. package/dist/terrain.d.ts +132 -8
  53. package/dist/{text-on-path-LZL6NfwZ.js → text-on-path-BoFbm-tl.js} +1 -1
  54. package/dist/version.d.ts +1 -1
  55. package/dist/viewport-filter.d.ts +9 -0
  56. package/dist/volumetrics.d.ts +11 -0
  57. package/dist/{zarr-D19fNIZt.js → zarr-C8CU8LXU.js} +2 -2
  58. package/docs/cartograph.md +2 -2
  59. package/llms.txt +1 -1
  60. package/onlymapjs.html-data.json +162 -2
  61. package/package.json +2 -1
  62. package/skills/onlymapjs/SKILL.md +5 -2
  63. package/skills/onlymapjs/references/syntax.md +3 -3
@@ -1,32 +1,3 @@
1
- /**
2
- * Hillshade / shaded relief — the lazy chunk (docs/design/hillshade.md).
3
- *
4
- * WHAT THIS IS, AND IS NOT. Cartographic shaded relief is RENDERED TEXTURE:
5
- * pixels, never numbers. Nothing here is queryable, classified or reported,
6
- * which is the line issue #13 drew when it put "raster analysis
7
- * (hillshade/slope)" out of scope — the boundary there is QUERYABILITY, not
8
- * the arithmetic. This ships no analytic product.
9
- *
10
- * It is a LAYER, not a mode of `terrain=`. `terrain=` means a 3D surface: it
11
- * replaces the basemap, changes what the camera means, and is meaningless at
12
- * pitch 0. Relief on a print sheet has to compose underneath the data layers
13
- * like any other layer — and, decisively, a layer draws inside deck's own
14
- * framebuffer, so it lands in `snapshot()` and UNDER `<om-effect>`. Relief a
15
- * print finish could not reach would be worth very little.
16
- *
17
- * THE SEAM IS THE WHOLE DESIGN PROBLEM. A hillshade is a derivative, so every
18
- * fragment needs its neighbours — and at a tile's edge the neighbours live in
19
- * a different tile. Sampling with clamp-to-edge instead makes the derivative
20
- * collapse to zero along every border, drawing a pale grid over the world:
21
- * the single most recognisable way a hand-rolled hillshade looks broken.
22
- * Rather than bind nine textures per draw, each tile is decoded on the CPU
23
- * (`dem-decode.ts`, which exists because these bytes are heights and must not
24
- * be colour-managed) into a heightfield with a ONE-PIXEL APRON copied from
25
- * its eight neighbours. The shader then samples one texture with no edge
26
- * cases at all, and the neighbour fetches are nearly free because a
27
- * neighbour is almost always a tile the map is drawing anyway — see
28
- * `tileCache`.
29
- */
30
1
  import { CompositeLayer, type Layer } from "@deck.gl/core";
31
2
  import { type ElevationDecoder } from "./terrain";
32
3
  import { type PaddedHeights } from "./hillshade-apron";