@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.
- package/CHANGELOG.md +24 -0
- package/README.md +27 -3
- package/dist/{basemap-DL0mk9Bf.js → basemap-DzQBuqBn.js} +3882 -3980
- package/dist/cartograph/elements/om-frame.d.ts +67 -1
- package/dist/cartograph/georef.d.ts +18 -4
- package/dist/cartograph/schema.d.ts +11 -0
- package/dist/cartograph.js +1480 -1311
- package/dist/cartograph.standalone.js +1808 -1615
- package/dist/{cityjson-D_V5GY8b.js → cityjson-k-z1r6c0.js} +1 -1
- package/dist/{crs-DsDQ4Q4i.js → crs-BzE_KP4M.js} +25 -2
- package/dist/{crs-Ciu7Xs7a.js → crs-ChglCB3O.js} +39 -16
- package/dist/elements/om-map.d.ts +10 -0
- package/dist/{geoparquet-DJxZA0if.js → geoparquet-BlFSeNwf.js} +10 -10
- package/dist/globe-view-qTt7YaiC.js +104 -0
- package/dist/hillshade-Ds0pONmA.js +298 -0
- package/dist/{hillshade-shader-n_zManfZ.js → hillshade-shader-DI2uLSNU.js} +15 -10
- package/dist/hillshade-shader.d.ts +18 -2
- package/dist/hillshade.d.ts +30 -0
- package/dist/{ifc-Dc-TdSJr.js → ifc-DXwePQRv.js} +131 -131
- package/dist/{index-vLXZuog4.js → index-B9kwlhFA.js} +1 -1
- package/dist/index-BCTAq6uy.js +65 -0
- package/dist/{index-DdTZSuAb.js → index-BK99wPf_.js} +106 -106
- package/dist/index-BSwEOxkR.js +322 -0
- package/dist/{index-BjcPjICh.js → index-Bpk1EipB.js} +59 -59
- package/dist/index-C2VK-Is6.js +641 -0
- package/dist/index-C4oddUIX.js +459 -0
- package/dist/{index-oY3XHIux.js → index-CBYDP-_0.js} +18178 -16943
- package/dist/{index-CvuDsvnk.js → index-oL_18WvP.js} +47 -47
- package/dist/index.d.ts +4 -0
- package/dist/layer-registry.d.ts +27 -0
- package/dist/{lerc-Bph62dCb.js → lerc-xM89n_hR.js} +1 -1
- package/dist/onlymap.standalone.js +48211 -45574
- package/dist/onlymapjs.js +77 -74
- package/dist/parse-manifest.d.ts +6 -0
- package/dist/plane-camera.d.ts +59 -0
- package/dist/plane-layers.d.ts +56 -0
- package/dist/plane-tiles.d.ts +99 -0
- package/dist/plane-tileset.d.ts +31 -0
- package/dist/plane-warp.d.ts +91 -0
- package/dist/post-process-effect-CNMzoP-h.js +197 -0
- package/dist/programmatic.d.ts +16 -1
- package/dist/projection.d.ts +118 -0
- package/dist/{raster-pipeline-BlOnMPJe.js → raster-pipeline-B_gY9-5f.js} +4 -3
- package/dist/{raster-D-eTzCE3.js → raster-yVRqHYLH.js} +4 -4
- package/dist/runtime-core.d.ts +140 -1
- package/dist/serialize/clip.d.ts +50 -0
- package/dist/serialize/declutter.d.ts +44 -0
- package/dist/serialize/emit.d.ts +60 -0
- package/dist/serialize/index.d.ts +64 -0
- package/dist/serialize/strategy.d.ts +30 -0
- package/dist/serialize/style.d.ts +77 -0
- package/dist/snapshot.d.ts +46 -0
- package/dist/surface-anchor.d.ts +6 -0
- package/dist/text-on-path-D-fhYDqa.js +146 -0
- package/dist/text-on-path.d.ts +157 -0
- package/dist/transform/buffer.d.ts +63 -0
- package/dist/transform/contour.d.ts +37 -0
- package/dist/transform/dot-density.d.ts +19 -0
- package/dist/transform/field.d.ts +80 -0
- package/dist/transform/geometry.d.ts +20 -0
- package/dist/transform/index.d.ts +29 -0
- package/dist/transform/simplify.d.ts +10 -0
- package/dist/transform/smooth.d.ts +12 -0
- package/dist/transform-stage.d.ts +92 -0
- package/dist/version.d.ts +1 -1
- package/dist/{zarr-BGDoEtFb.js → zarr-BPeWy3ro.js} +2 -2
- package/docs/cartograph.md +12 -4
- package/docs/cartography.md +328 -0
- package/docs/design/arrows.md +182 -0
- package/docs/design/carto-substrate.md +1055 -0
- package/docs/design/extensions.md +250 -0
- package/llms.txt +3 -2
- package/onlymapjs.attributes.json +18 -0
- package/onlymapjs.html-data.json +169 -19
- package/package.json +1 -1
- package/skills/onlymapjs/SKILL.md +6 -2
- package/skills/onlymapjs/references/syntax.md +22 -2
- package/dist/hillshade-DR3TxO1a.js +0 -186
- 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
|
-
/**
|
|
151
|
-
|
|
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;
|
package/dist/hillshade.d.ts
CHANGED
|
@@ -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;
|