@nika-js/onlymap 0.9.1 → 0.10.1

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 (79) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +27 -3
  3. package/dist/{basemap-DL0mk9Bf.js → basemap-DzQBuqBn.js} +3882 -3980
  4. package/dist/cartograph/elements/om-frame.d.ts +67 -1
  5. package/dist/cartograph/georef.d.ts +18 -4
  6. package/dist/cartograph/schema.d.ts +11 -0
  7. package/dist/cartograph.js +1480 -1311
  8. package/dist/cartograph.standalone.js +1808 -1615
  9. package/dist/{cityjson-D_V5GY8b.js → cityjson-k-z1r6c0.js} +1 -1
  10. package/dist/{crs-DsDQ4Q4i.js → crs-BzE_KP4M.js} +25 -2
  11. package/dist/{crs-Ciu7Xs7a.js → crs-ChglCB3O.js} +39 -16
  12. package/dist/elements/om-map.d.ts +10 -0
  13. package/dist/{geoparquet-DJxZA0if.js → geoparquet-BlFSeNwf.js} +10 -10
  14. package/dist/globe-view-qTt7YaiC.js +104 -0
  15. package/dist/hillshade-Ds0pONmA.js +298 -0
  16. package/dist/{hillshade-shader-n_zManfZ.js → hillshade-shader-DI2uLSNU.js} +15 -10
  17. package/dist/hillshade-shader.d.ts +18 -2
  18. package/dist/hillshade.d.ts +30 -0
  19. package/dist/{ifc-Dc-TdSJr.js → ifc-DXwePQRv.js} +131 -131
  20. package/dist/{index-vLXZuog4.js → index-B9kwlhFA.js} +1 -1
  21. package/dist/index-BCTAq6uy.js +65 -0
  22. package/dist/{index-DdTZSuAb.js → index-BK99wPf_.js} +106 -106
  23. package/dist/index-BSwEOxkR.js +322 -0
  24. package/dist/{index-BjcPjICh.js → index-Bpk1EipB.js} +59 -59
  25. package/dist/index-C2VK-Is6.js +641 -0
  26. package/dist/index-C4oddUIX.js +459 -0
  27. package/dist/{index-oY3XHIux.js → index-CBYDP-_0.js} +18178 -16943
  28. package/dist/{index-CvuDsvnk.js → index-oL_18WvP.js} +47 -47
  29. package/dist/index.d.ts +4 -0
  30. package/dist/layer-registry.d.ts +27 -0
  31. package/dist/{lerc-Bph62dCb.js → lerc-xM89n_hR.js} +1 -1
  32. package/dist/onlymap.standalone.js +48211 -45574
  33. package/dist/onlymapjs.js +77 -74
  34. package/dist/parse-manifest.d.ts +6 -0
  35. package/dist/plane-camera.d.ts +59 -0
  36. package/dist/plane-layers.d.ts +56 -0
  37. package/dist/plane-tiles.d.ts +99 -0
  38. package/dist/plane-tileset.d.ts +31 -0
  39. package/dist/plane-warp.d.ts +91 -0
  40. package/dist/post-process-effect-CNMzoP-h.js +197 -0
  41. package/dist/programmatic.d.ts +16 -1
  42. package/dist/projection.d.ts +118 -0
  43. package/dist/{raster-pipeline-BlOnMPJe.js → raster-pipeline-B_gY9-5f.js} +4 -3
  44. package/dist/{raster-D-eTzCE3.js → raster-yVRqHYLH.js} +4 -4
  45. package/dist/runtime-core.d.ts +140 -1
  46. package/dist/serialize/clip.d.ts +50 -0
  47. package/dist/serialize/declutter.d.ts +44 -0
  48. package/dist/serialize/emit.d.ts +60 -0
  49. package/dist/serialize/index.d.ts +64 -0
  50. package/dist/serialize/strategy.d.ts +30 -0
  51. package/dist/serialize/style.d.ts +77 -0
  52. package/dist/snapshot.d.ts +46 -0
  53. package/dist/surface-anchor.d.ts +6 -0
  54. package/dist/text-on-path-D-fhYDqa.js +146 -0
  55. package/dist/text-on-path.d.ts +157 -0
  56. package/dist/transform/buffer.d.ts +63 -0
  57. package/dist/transform/contour.d.ts +37 -0
  58. package/dist/transform/dot-density.d.ts +19 -0
  59. package/dist/transform/field.d.ts +80 -0
  60. package/dist/transform/geometry.d.ts +20 -0
  61. package/dist/transform/index.d.ts +29 -0
  62. package/dist/transform/simplify.d.ts +10 -0
  63. package/dist/transform/smooth.d.ts +12 -0
  64. package/dist/transform-stage.d.ts +92 -0
  65. package/dist/version.d.ts +1 -1
  66. package/dist/{zarr-BGDoEtFb.js → zarr-BPeWy3ro.js} +2 -2
  67. package/docs/cartograph.md +12 -4
  68. package/docs/cartography.md +328 -0
  69. package/docs/design/arrows.md +182 -0
  70. package/docs/design/carto-substrate.md +1055 -0
  71. package/docs/design/extensions.md +250 -0
  72. package/llms.txt +3 -2
  73. package/onlymapjs.attributes.json +18 -0
  74. package/onlymapjs.html-data.json +169 -19
  75. package/package.json +1 -1
  76. package/skills/onlymapjs/SKILL.md +6 -2
  77. package/skills/onlymapjs/references/syntax.md +22 -2
  78. package/dist/hillshade-DR3TxO1a.js +0 -186
  79. package/dist/index-DO_w0tqR.js +0 -514
@@ -147,6 +147,22 @@ export declare function hillshadeUniformsForTile(opts: {
147
147
  weights: number[];
148
148
  sunElevation: number;
149
149
  zFactor: number;
150
- /** true multiplies the shade into the existing colour; false replaces it. */
151
- composite: boolean;
150
+ /**
151
+ * What the shade does with the colour already in the chain. `false`/`0`
152
+ * replaces it. `"colour"` multiplies into the layer's own sampled picture —
153
+ * the raster path's colormap. `"framebuffer"` emits the shade alone for a
154
+ * multiply BLEND to apply, which is the only correct choice when the layer's
155
+ * texture is the heightfield rather than a picture.
156
+ */
157
+ composite: boolean | "colour" | "framebuffer";
158
+ /**
159
+ * Degrees added to every azimuth before it reaches the shader — the grid
160
+ * convergence, on a projected sheet whose sun means SHEET north (§4a).
161
+ *
162
+ * It is applied HERE rather than in GLSL because shading runs in the source
163
+ * tile's own grid, where up is geographic north: the rotation is a property
164
+ * of where the tile sits on the sheet, which is a per-tile constant, not a
165
+ * per-fragment one. Zero on a Mercator map, where the two norths coincide.
166
+ */
167
+ azimuthOffset?: number;
152
168
  }): HillshadeUniformValues;
@@ -30,6 +30,7 @@
30
30
  import { CompositeLayer, type Layer } from "@deck.gl/core";
31
31
  import { type ElevationDecoder } from "./terrain";
32
32
  import { type PaddedHeights } from "./hillshade-apron";
33
+ import type { PlaneFrame } from "./projection";
33
34
  /** Drops every cached decode — exported for tests and for a page tearing a map down. */
34
35
  export declare function clearHillshadeTileCache(): void;
35
36
  /**
@@ -57,6 +58,25 @@ export interface OmHillshadeLayerProps {
57
58
  maxZoom?: number | null;
58
59
  zoomOffset?: number | null;
59
60
  opacity?: number;
61
+ /**
62
+ * The map's projection plane, set by the runtime when `<om-map crs>` is
63
+ * projected (§9, Phase 6). Present: tiles are selected through a plane-aware
64
+ * `Tileset2D` and drawn as subdivided warped meshes. Absent: the Mercator
65
+ * path, byte for byte as before — a projected map is the exception, and the
66
+ * common case must not pay for it.
67
+ */
68
+ _planeFrame?: PlaneFrame | null;
69
+ /**
70
+ * Which north `sun-azimuth` means on a PROJECTED sheet (§4a, §12.4). Inert
71
+ * on a Mercator map, where the two are the same thing.
72
+ *
73
+ * `"sheet"` (the default) keeps the apparent light constant across the plate,
74
+ * which is what relief atlases do — on a CONUS sheet geographic north swings
75
+ * 34 degrees from one edge to the other, and light that rotates across a
76
+ * plate reads as a mistake rather than as physics. `"geographic"` is
77
+ * physically true: that slope really is lit from the north-west.
78
+ */
79
+ sunDatum?: string | null;
60
80
  }
61
81
  /**
62
82
  * `src` resolution mirrors `parseTerrainAttrs` exactly: a registered preset
@@ -126,6 +146,16 @@ export declare class OmHillshadeLayer extends CompositeLayer<OmHillshadeLayerPro
126
146
  type: string;
127
147
  value: number;
128
148
  };
149
+ _planeFrame: {
150
+ type: string;
151
+ value: null;
152
+ optional: boolean;
153
+ compare: boolean;
154
+ };
155
+ sunDatum: {
156
+ type: string;
157
+ value: string;
158
+ };
129
159
  };
130
160
  renderLayers(): Layer | null;
131
161
  initializeState(): void;