@nika-js/onlymap 0.8.4 → 0.9.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 +32 -0
- package/README.md +56 -3
- package/dist/{LercDecode.es-BKustV-1.js → LercDecode.es-IEPCRZOv.js} +1 -1
- package/dist/{basemap-B0SwrOqQ.js → basemap-DL0mk9Bf.js} +780 -780
- package/dist/dem-decode.d.ts +58 -0
- package/dist/elements/om-map.d.ts +12 -0
- package/dist/{geoparquet-C5E6N6G0.js → geoparquet-DJxZA0if.js} +1 -1
- package/dist/hillshade-DR3TxO1a.js +186 -0
- package/dist/hillshade-apron-Bem3DWyJ.js +40 -0
- package/dist/hillshade-apron.d.ts +54 -0
- package/dist/hillshade-shader-n_zManfZ.js +160 -0
- package/dist/hillshade-shader.d.ts +152 -0
- package/dist/hillshade.d.ts +133 -0
- package/dist/html-data.d.ts +2 -2
- package/dist/{index-BLIjrGOE.js → index-BjcPjICh.js} +28 -28
- package/dist/{index-xUVMTGZG.js → index-CvuDsvnk.js} +23 -23
- package/dist/index-DO_w0tqR.js +514 -0
- package/dist/{index-BnQDfKfE.js → index-DdTZSuAb.js} +1 -1
- package/dist/{index-D5Fqn_eZ.js → index-oY3XHIux.js} +13145 -12484
- package/dist/{index-CaM1C93G.js → index-vLXZuog4.js} +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/lerc-Bph62dCb.js +22 -0
- package/dist/onlymap.standalone.js +28919 -27259
- package/dist/onlymapjs.js +95 -92
- package/dist/post-process/catalogue.d.ts +61 -0
- package/dist/post-process/compile.d.ts +37 -0
- package/dist/post-process/index.d.ts +71 -0
- package/dist/post-process/ops.d.ts +22 -0
- package/dist/post-process/presets.d.ts +33 -0
- package/dist/post-process/validate.d.ts +8 -0
- package/dist/programmatic.d.ts +11 -0
- package/dist/{raster-B_wekCHv.js → raster-D-eTzCE3.js} +609 -499
- package/dist/raster-hillshade.d.ts +119 -0
- package/dist/{raster-pipeline-Dn2fkLYx.js → raster-pipeline-BlOnMPJe.js} +510 -484
- package/dist/raster-pipeline.d.ts +10 -0
- package/dist/raster.d.ts +5 -0
- package/dist/runtime-core.d.ts +39 -1
- package/dist/terrain-heightfield.d.ts +0 -16
- package/dist/terrain-sample.d.ts +0 -13
- package/dist/version.d.ts +1 -1
- package/dist/volumetrics.d.ts +7 -0
- package/dist/{zarr-Dan2ab-l.js → zarr-BGDoEtFb.js} +2 -2
- package/docs/cartograph.md +2 -2
- package/docs/design/hillshade.md +290 -0
- package/docs/effects.md +208 -0
- package/docs/hillshade.md +203 -0
- package/llms.txt +3 -1
- package/onlymapjs.attributes.json +27 -2
- package/onlymapjs.html-data.json +207 -6
- package/package.json +13 -9
- package/skills/onlymapjs/SKILL.md +4 -2
- package/skills/onlymapjs/references/syntax.md +17 -2
- package/dist/lerc-TxsFLMlC.js +0 -30
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ import { registerTerrain } from "./terrain";
|
|
|
35
35
|
import { registerRoutingProvider } from "./providers";
|
|
36
36
|
import { configureTelemetry } from "./telemetry";
|
|
37
37
|
import { configureLicense, setKeepBadge, badgeMode } from "./license";
|
|
38
|
+
import { expandPreset } from "./post-process/presets";
|
|
38
39
|
import { validateManifestString } from "./validation";
|
|
39
40
|
import { snapshotIR } from "./ir-snapshot";
|
|
40
41
|
import { snapshotDescriptorIR } from "./programmatic";
|
|
@@ -71,6 +72,7 @@ export declare function configureIfc(options: {
|
|
|
71
72
|
}): Promise<void>;
|
|
72
73
|
export type { TelemetryConfig, TelemetrySnapshot } from "./telemetry";
|
|
73
74
|
export { configureLicense, getEntitlements, subscribeLicense, setKeepBadge, badgeMode } from "./license";
|
|
75
|
+
export { expandPreset, isEffectPreset, EFFECT_PRESET_NAMES } from "./post-process/presets";
|
|
74
76
|
export type { Entitlements, LicenseIdentity, BadgeMode } from "./license";
|
|
75
77
|
export type { RuntimeContext } from "./ctx";
|
|
76
78
|
export { MapController, descriptorToIR, snapshotDescriptorIR } from "./programmatic";
|
|
@@ -137,6 +139,7 @@ export declare const OmMap: {
|
|
|
137
139
|
configureLicense: typeof configureLicense;
|
|
138
140
|
setKeepBadge: typeof setKeepBadge;
|
|
139
141
|
badgeMode: typeof badgeMode;
|
|
142
|
+
expandPreset: typeof expandPreset;
|
|
140
143
|
validate: typeof validateManifestString;
|
|
141
144
|
snapshotIR: typeof snapshotIR;
|
|
142
145
|
snapshotDescriptorIR: typeof snapshotDescriptorIR;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { C as o, D as s } from "./raster-D-eTzCE3.js";
|
|
2
|
+
var t;
|
|
3
|
+
(function(e) {
|
|
4
|
+
e[e.None = 0] = "None", e[e.Deflate = 1] = "Deflate", e[e.Zstd = 2] = "Zstd";
|
|
5
|
+
})(t || (t = {}));
|
|
6
|
+
let c = !1;
|
|
7
|
+
async function d() {
|
|
8
|
+
const e = await import("./LercDecode.es-IEPCRZOv.js");
|
|
9
|
+
return c || (await e.load(), c = !0), e;
|
|
10
|
+
}
|
|
11
|
+
async function w(e, n) {
|
|
12
|
+
const a = n.lercParameters?.[1] ?? t.None;
|
|
13
|
+
let r = e;
|
|
14
|
+
if (a === t.Deflate || a === t.Zstd) {
|
|
15
|
+
const l = a === t.Deflate ? o.Deflate : o.Zstd;
|
|
16
|
+
r = await (await s.get(l)())(e, n);
|
|
17
|
+
}
|
|
18
|
+
return { layout: "band-separate", bands: (await d()).decode(r).pixels };
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
w as decode
|
|
22
|
+
};
|