@nika-js/onlymap 0.6.11 → 0.6.14

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 (43) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +16 -2
  3. package/dist/{LercDecode.es-C331HMjV.js → LercDecode.es-Bqk5xyNu.js} +1 -1
  4. package/dist/attribute-resolution.d.ts +4 -0
  5. package/dist/{basemap-NN5SYEaS.js → basemap-KDsE62YN.js} +1 -1
  6. package/dist/classify.d.ts +62 -0
  7. package/dist/clip-box.d.ts +0 -32
  8. package/dist/data-layer.d.ts +0 -17
  9. package/dist/draw-controller.d.ts +4 -1
  10. package/dist/effects.d.ts +1 -0
  11. package/dist/elements/om-map.d.ts +1 -21
  12. package/dist/elements/om-story.d.ts +0 -18
  13. package/dist/expr/errors.d.ts +3 -0
  14. package/dist/field-access.d.ts +10 -0
  15. package/dist/geodesy.d.ts +11 -0
  16. package/dist/{geoparquet-Dmyu5Oou.js → geoparquet-DOexUItM.js} +1 -1
  17. package/dist/html-data.d.ts +1 -1
  18. package/dist/{index-D28RTVKt.js → index-BFNjPrc2.js} +1 -1
  19. package/dist/{index-CSVtCpQL.js → index-D_EyImRx.js} +1 -1
  20. package/dist/{index-_vNbcONa.js → index-DnsWPk6e.js} +1 -1
  21. package/dist/{index-BUp4hR6r.js → index-ESUJidEA.js} +21949 -21687
  22. package/dist/{index-CNxSRD27.js → index-mxTk4d2L.js} +2 -2
  23. package/dist/layer-registry.d.ts +10 -0
  24. package/dist/layers/marker-icons.d.ts +0 -2
  25. package/dist/legend-spec.d.ts +1 -6
  26. package/dist/{lerc-Cryu98-R.js → lerc-CPb8TKuv.js} +2 -2
  27. package/dist/onlymap.standalone.js +41385 -41123
  28. package/dist/onlymapjs.js +1 -1
  29. package/dist/programmatic.d.ts +5 -16
  30. package/dist/{raster-BVzTnbhW.js → raster-M2R7FhL7.js} +2 -2
  31. package/dist/{raster-pipeline-FAPzre9S.js → raster-pipeline-Csa7n5SZ.js} +1 -1
  32. package/dist/react.js +215 -232
  33. package/dist/runtime-core.d.ts +35 -1
  34. package/dist/site-placement.d.ts +0 -2
  35. package/dist/testing.d.ts +4 -1
  36. package/dist/version.d.ts +1 -1
  37. package/dist/{zarr-DCWSzKoG.js → zarr-tHnzENgX.js} +2 -2
  38. package/docs/testing.md +1 -1
  39. package/llms.txt +5 -3
  40. package/onlymapjs.html-data.json +32 -1
  41. package/package.json +3 -2
  42. package/skills/onlymapjs/SKILL.md +5 -4
  43. package/skills/onlymapjs/references/syntax.md +4 -4
@@ -1,5 +1,5 @@
1
- import { i as E, j as S, k as R, o as N, p as h, q as w, s as O, t as W, v as x, w as I, x as B, y as _, A as P, B as k, E as $, F as z, H as v, I as F, J as C, K as U, N as p, O as M } from "./index-BUp4hR6r.js";
2
- import { P as $e, R as ze, _ as ve, Q as Ce, S as Ue, T as Me, U as je, X as De, Y as Je, Z as qe, $ as He, a0 as Ve, a1 as Ge, a2 as Ke, a3 as Qe, a4 as Xe, a5 as Ye, a6 as Ze, a7 as et, a8 as tt, a9 as nt, aa as rt, ab as at, ac as st, ad as ot } from "./index-BUp4hR6r.js";
1
+ import { i as E, j as S, k as R, o as N, p as h, q as w, s as O, t as W, v as x, w as I, x as B, y as _, A as P, B as k, E as $, F as z, H as v, I as F, J as C, K as U, N as p, O as M } from "./index-ESUJidEA.js";
2
+ import { P as $e, R as ze, _ as ve, Q as Ce, S as Ue, T as Me, U as je, X as De, Y as Je, Z as qe, $ as He, a0 as Ve, a1 as Ge, a2 as Ke, a3 as Qe, a4 as Xe, a5 as Ye, a6 as Ze, a7 as et, a8 as tt, a9 as nt, aa as rt, ab as at, ac as st, ad as ot } from "./index-ESUJidEA.js";
3
3
  import { g as j, i as D } from "./table-accessors-CYWTzpQI.js";
4
4
  async function J(t, e, n = {}, r = {}) {
5
5
  const a = E(t), s = S.getWorkerFarm(n), { source: o } = n, c = { name: a, source: o };
@@ -84,3 +84,13 @@ export declare function registerLayer(schema: Omit<LayerSchema, "tier"> & {
84
84
  export declare function ensureLayerClass(schema: LayerSchema): Promise<void> | null;
85
85
  export declare function getLayerSchema(type: string): LayerSchema | undefined;
86
86
  export declare function getAllLayerSchemas(): ReadonlyMap<string, LayerSchema>;
87
+ /**
88
+ * The ONE opt-out predicate for the scene-wide per-layer attributes declared
89
+ * above (issue: three call sites each accepted a different value set —
90
+ * runtime-core honored only snap="off", clip-box honored "off"/false, and
91
+ * validation waved through "false" for both — so snap="false" passed
92
+ * validation clean yet kept snapping). Accepts the documented "off" plus the
93
+ * boolean-ish spellings validation already accepts; programmatic descriptors
94
+ * can carry a real `false`.
95
+ */
96
+ export declare function isSceneOptOut(props: Record<string, unknown>, key: "snap" | "clip"): boolean;
@@ -25,6 +25,4 @@ export type TrackingIconName = keyof typeof DIRECTIONAL_SVGS;
25
25
  export declare function isTrackingIconName(v: unknown): v is TrackingIconName;
26
26
  /** A directional marker (a `Tracking` layer's moving entity) — every shape points "up" (north) at angle 0, rotated per-row via `getAngle`. Unknown names fall back to the arrow (validation warns at author time). */
27
27
  export declare function directionalIcon(name: TrackingIconName | string, color: string): IconDescriptor;
28
- /** Back-compat alias — the original arrow-only builder. */
29
- export declare function arrowIcon(color: string): IconDescriptor;
30
28
  export {};
@@ -58,9 +58,4 @@ export declare const RASTER_COLORMAP_STOPS: Record<string, string[]>;
58
58
  * label it wrong).
59
59
  */
60
60
  export declare function deriveRasterLegendSpec(colormap: string | null | undefined, min: number | null | undefined, max: number | null | undefined): LegendSpec | undefined;
61
- /**
62
- * Derive a LegendSpec from a `get-fill-color` source expression. Returns
63
- * undefined when the expression isn't one of the recognizable shapes (the
64
- * widget falls back to the single swatch).
65
- */
66
- export declare function deriveLegendSpec(source: string | undefined | null): LegendSpec | undefined;
61
+ export declare function deriveLegendSpec(source: string | null | undefined): LegendSpec | undefined;
@@ -1,4 +1,4 @@
1
- import { C as a, D as s } from "./raster-BVzTnbhW.js";
1
+ import { C as a, D as s } from "./raster-M2R7FhL7.js";
2
2
  const D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3
3
  __proto__: null
4
4
  }, Symbol.toStringTag, { value: "Module" }));
@@ -8,7 +8,7 @@ var t;
8
8
  })(t || (t = {}));
9
9
  let l = !1;
10
10
  async function d() {
11
- const e = await import("./LercDecode.es-C331HMjV.js");
11
+ const e = await import("./LercDecode.es-Bqk5xyNu.js");
12
12
  return l || (await e.load(), l = !0), e;
13
13
  }
14
14
  async function i(e, r) {