@nika-js/onlymap 0.10.1 → 0.10.3

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 (30) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{basemap-DzQBuqBn.js → basemap-BXj6TyI0.js} +2 -2
  3. package/dist/{geoparquet-BlFSeNwf.js → geoparquet-3uljKWBk.js} +1 -1
  4. package/dist/{globe-view-qTt7YaiC.js → globe-view-SiqJKyZ3.js} +1 -1
  5. package/dist/{hillshade-Ds0pONmA.js → hillshade-DSVos950.js} +1 -1
  6. package/dist/html-data.d.ts +4 -3
  7. package/dist/{index-C4oddUIX.js → index-Bkz-w1s4.js} +1 -1
  8. package/dist/{index-B9kwlhFA.js → index-BmhZ-nHJ.js} +1 -1
  9. package/dist/{index-BCTAq6uy.js → index-BrdfEKdd.js} +3 -3
  10. package/dist/{index-BK99wPf_.js → index-BsqaPPAj.js} +1 -1
  11. package/dist/{index-Bpk1EipB.js → index-CON8tYgk.js} +1 -1
  12. package/dist/{index-oL_18WvP.js → index-CaspQb0d.js} +2 -2
  13. package/dist/{index-CBYDP-_0.js → index-D3uUtM40.js} +7257 -7198
  14. package/dist/{index-BSwEOxkR.js → index-DScatzxZ.js} +3 -3
  15. package/dist/{index-C2VK-Is6.js → index-fdxfxPzR.js} +1 -1
  16. package/dist/{lerc-xM89n_hR.js → lerc-CDT_Q_Ki.js} +1 -1
  17. package/dist/onlymap.standalone.js +12172 -12113
  18. package/dist/onlymapjs.js +1 -1
  19. package/dist/{post-process-effect-CNMzoP-h.js → post-process-effect-CjGvim4U.js} +1 -1
  20. package/dist/{raster-yVRqHYLH.js → raster-BkCit2hH.js} +3 -3
  21. package/dist/{raster-pipeline-B_gY9-5f.js → raster-pipeline-BvIx-poy.js} +1 -1
  22. package/dist/{text-on-path-D-fhYDqa.js → text-on-path-DTAVhz00.js} +1 -1
  23. package/dist/version.d.ts +1 -1
  24. package/dist/widget-types.d.ts +15 -0
  25. package/dist/{zarr-BPeWy3ro.js → zarr-HSWSwGfd.js} +2 -2
  26. package/docs/cartograph.md +2 -2
  27. package/llms.txt +2 -2
  28. package/package.json +1 -1
  29. package/skills/onlymapjs/SKILL.md +1 -1
  30. package/skills/onlymapjs/references/syntax.md +4 -3
package/CHANGELOG.md CHANGED
@@ -8,6 +8,19 @@ Note: npm collapsed a few closely-spaced releases — the GPX/FlatGeobuf (0.5.4)
8
8
  and GeoParquet (0.5.5) work shipped to npm together as **0.5.6**, so npm's
9
9
  version list jumps 0.5.3 → 0.5.6. Each logical version is listed here regardless.
10
10
 
11
+ ## 0.10.3 — 2026-09-25
12
+
13
+ ### Fixed
14
+ - **Three authoring mistakes that used to pass validation and then draw nothing.** A generated map can now be told what is wrong with it instead of quietly rendering the wrong picture:
15
+ - **Labels along a line, on GeoJSON data.** `get-path` has to resolve to a list of coordinates. On GeoJSON that is `get-path="d.geometry.coordinates"`; writing `get-path="$geometry"` hands the layer the geometry object instead and every label vanishes. This is now an error when the data is inline, a warning when it is a URL (the shape cannot be known until it loads), and both name the form that works. It is also documented now, which it was not on any surface.
16
+ - **A millimetre stroke width.** `line-width-units="millimeters"` reads like a cartographer's unit but is not one — there are only `meters`, `pixels` and `common`, so widths silently fell back. Now an error that says which to pick. (Millimetres on paper remain correct for `<om-transform>`, which has a reference scale to resolve them against.)
17
+ - **A widget type that does not exist.** A misspelled or invented `type` rendered nothing at all and said nothing. Now an error listing the real types — and pointing out that a north arrow, scale bar, legend frame or graticule on a print sheet is a cartograph element, not a map widget.
18
+
19
+ ## 0.10.2 — 2026-09-25
20
+
21
+ ### Fixed
22
+ - **A popup opened by a click now closes when you click away.** Clicking a feature to open a tooltip left it on screen with no way to dismiss it — it only changed when you clicked a different feature. It was erratic rather than simply stuck: the same popup did close if your pointer happened to leave a feature last, so it looked intermittent. Tooltips now dismiss whenever the selection clears, whichever kind of pick opened them. A popup carrying its own close button is unaffected and still stays open when you click inside it.
23
+
11
24
  ## 0.10.1 — 2026-09-25
12
25
 
13
26
  ### Fixed
@@ -1,5 +1,5 @@
1
- import { aJ as Y_, N as Bu, H as Pd, k as K_, aK as J_, aL as Q_, D as Xf, Z as ey } from "./index-CBYDP-_0.js";
2
- import { a as ty } from "./globe-view-qTt7YaiC.js";
1
+ import { aJ as Y_, N as Bu, H as Pd, k as K_, aK as J_, aL as Q_, D as Xf, Z as ey } from "./index-D3uUtM40.js";
2
+ import { a as ty } from "./globe-view-SiqJKyZ3.js";
3
3
  var Ou = { exports: {} };
4
4
  /**
5
5
  * MapLibre GL JS
@@ -1,4 +1,4 @@
1
- import { a4 as p, a5 as d } from "./index-CBYDP-_0.js";
1
+ import { a4 as p, a5 as d } from "./index-D3uUtM40.js";
2
2
  function g(t) {
3
3
  if (t == null) return !0;
4
4
  const e = t, n = e.id?.code;
@@ -1,4 +1,4 @@
1
- import { d as L, j as x, a6 as A, a7 as E, a8 as d, a9 as h, aa as u, ab as z, p as V, W as Z, G as D } from "./index-CBYDP-_0.js";
1
+ import { d as L, j as x, a6 as A, a7 as E, a8 as d, a9 as h, aa as u, ab as z, p as V, W as Z, G as D } from "./index-D3uUtM40.js";
2
2
  const c = Math.PI / 180, G = 180 / Math.PI;
3
3
  function w(l, t = 0) {
4
4
  const a = Math.min(180, l) * c;
@@ -1,4 +1,4 @@
1
- import { al as P, am as T, an as N, ao as Z, c as B, ap as E, aq as C, ar as b, as as D, at as I, au as O } from "./index-CBYDP-_0.js";
1
+ import { al as P, am as T, an as N, ao as Z, c as B, ap as E, aq as C, ar as b, as as D, at as I, au as O } from "./index-D3uUtM40.js";
2
2
  import { N as _, c as H } from "./hillshade-apron-Bem3DWyJ.js";
3
3
  import { p as $, h as j, m as A, a as U } from "./hillshade-shader-DI2uLSNU.js";
4
4
  function R(t, e, o) {
@@ -16,8 +16,10 @@ interface TagData {
16
16
  }
17
17
  /** Hand-authored action list — validated against hasAction() in html-data.test.ts. */
18
18
  export declare const BUILTIN_ACTIONS: readonly ["toggle-layer", "set-pickable", "zoom-in", "zoom-out", "filter-layer", "highlight-feature", "fade", "pulse", "populate", "trace", "story-play", "story-pause", "story-seek", "fly-to", "zoom-to-feature", "show-overlay", "hide-overlay", "show-tooltip", "hide-tooltip", "draw-mode", "draw-commit", "draw-cancel", "draw-delete", "draw-clear", "draw-config", "draw-save", "export-region-3d", "measure-mode", "measure-clear", "measure-units", "set-basemap", "set-effect", "set-lighting", "set-terrain", "set-clip-box", "clip-box-edit", "set-widgets-visible", "undo", "redo", "warm-tiles"];
19
- /** Hand-authored widget types — validated against the widget registry in html-data.test.ts. */
20
- export declare const BUILTIN_WIDGETS: readonly ["legend", "layer-switcher", "zoom-controls", "scale-bar", "attribution", "filter", "vega-lite", "dynamic-chart", "player", "draw", "measure", "basemap-switcher", "lighting", "effects", "clip-box", "undo-redo", "widgets-toggle", "time-slider", "ifc-browser", "ifc-legend", "feature-inspector", "ifc-inspector", "ifc-loader", "ifc-clash"];
19
+ /** Hand-authored widget types — validated against the widget registry in html-data.test.ts.
20
+ * Declared in `widget-types.ts` so the runtime validator can use it without
21
+ * pulling this 42 KB table into the bundle. */
22
+ export { BUILTIN_WIDGETS } from "./widget-types";
21
23
  export declare function buildHtmlCustomData(): {
22
24
  version: number;
23
25
  tags: TagData[];
@@ -36,4 +38,3 @@ export declare function buildLayerAttributeContract(): {
36
38
  universal: string[];
37
39
  layers: Record<string, string[]>;
38
40
  };
39
- export {};
@@ -1,4 +1,4 @@
1
- import { aA as B } from "./index-CBYDP-_0.js";
1
+ import { aA as B } from "./index-D3uUtM40.js";
2
2
  const V = /* @__PURE__ */ new Set([
3
3
  "GeoJsonLayer",
4
4
  "PolygonLayer",
@@ -1,4 +1,4 @@
1
- import { bv as _t, bw as Ct } from "./index-CBYDP-_0.js";
1
+ import { bv as _t, bw as Ct } from "./index-D3uUtM40.js";
2
2
  function Yt(e, r, t = 2, i, o = "xy") {
3
3
  const s = r && r.length, l = s ? r[0] * t : e.length;
4
4
  let c = Ut(e, 0, l, t, !0, i && i[0], o);
@@ -1,6 +1,6 @@
1
- import { A as t, a as o, b as i, C as l, c as p, d as n, D as _, e as c, f as g, F as h, L as m, g as L, h as y, i as f, j as w, M as S, k as V, O as b, l as C, m as E, P as I, T as P, n as T, o as M, U as d, V as A, p as O, q as u, W as N, r as k, s as x, t as D, u as G, G as R, v as j, w as W, x as q, y as v, z, B as F, E as U, H as Y, I as B, J as H, K as J, N as K, Q, R as X, S as Z, X as $, Y as aa, Z as sa, _ as ea, $ as ra, a0 as ta, a1 as oa, a2 as ia } from "./index-CBYDP-_0.js";
2
- import { P as s } from "./post-process-effect-CNMzoP-h.js";
3
- import { G as pa, a as na } from "./globe-view-qTt7YaiC.js";
1
+ import { A as t, a as o, b as i, C as l, c as p, d as n, D as _, e as c, f as g, F as h, L as m, g as L, h as y, i as f, j as w, M as S, k as V, O as b, l as C, m as E, P as I, T as P, n as T, o as M, U as d, V as A, p as O, q as u, W as N, r as k, s as x, t as D, u as G, G as R, v as j, w as W, x as q, y as v, z, B as F, E as U, H as Y, I as B, J as H, K as J, N as K, Q, R as X, S as Z, X as $, Y as aa, Z as sa, _ as ea, $ as ra, a0 as ta, a1 as oa, a2 as ia } from "./index-D3uUtM40.js";
2
+ import { P as s } from "./post-process-effect-CjGvim4U.js";
3
+ import { G as pa, a as na } from "./globe-view-SiqJKyZ3.js";
4
4
  export {
5
5
  t as AmbientLight,
6
6
  o as Attribute,
@@ -1,4 +1,4 @@
1
- import { bB as Bt, bM as Xt, bN as Yt, bO as Us } from "./index-CBYDP-_0.js";
1
+ import { bB as Bt, bM as Xt, bN as Yt, bO as Us } from "./index-D3uUtM40.js";
2
2
  import { w as gs, t as Hs, f as Ws, m as Qs } from "./mgrs-BY9bIvp4.js";
3
3
  import { c as Xs } from "./convert-arrow-schema-DrAihRf9.js";
4
4
  import { y as Ys, A as bt, a as Ks, z as Vs, R as Zs } from "./recordbatch-Bpc0uxFn.js";
@@ -1,4 +1,4 @@
1
- import { bx as Be, by as le, bz as ce, bA as De, bB as Oe, bC as ke } from "./index-CBYDP-_0.js";
1
+ import { bx as Be, by as le, bz as ce, bA as De, bB as Oe, bC as ke } from "./index-D3uUtM40.js";
2
2
  import { y as ve, a as he, z as G, R as J, A as ue, C as Fe, F as xe, n as je, S as Ie, E as Ne } from "./recordbatch-Bpc0uxFn.js";
3
3
  import { g as V, a as fe, b as Le, c as Ue, d as Me, e as qe, m as Ve } from "./table-accessors-CYWTzpQI.js";
4
4
  import { c as $e } from "./convert-arrow-schema-DrAihRf9.js";
@@ -1,5 +1,5 @@
1
- import { aM as R, aN as S, aO as E, aP as N, aQ as h, aR as w, aS as W, aT as O, aU as x, aV as I, aW as B, aX as _, aY as P, aZ as k, a_ as $, a$ as z, b0 as C, b1 as F, b2 as v, b3 as M, b4 as p, b5 as U } from "./index-CBYDP-_0.js";
2
- import { b6 as $e, b7 as ze, b8 as Ce, b9 as ve, ba as Me, bb as Ue, bc as je, bd as De, be as qe, bf as Je, bg as Ve, bh as Ge, bi as He, bj as Qe, bk as Xe, bl as Ye, bm as Ze, bn as Ke, bo as et, bp as tt, bq as nt, br as rt, bs as at, bt as st, bu as ot } from "./index-CBYDP-_0.js";
1
+ import { aM as R, aN as S, aO as E, aP as N, aQ as h, aR as w, aS as W, aT as O, aU as x, aV as I, aW as B, aX as _, aY as P, aZ as k, a_ as $, a$ as z, b0 as C, b1 as F, b2 as v, b3 as M, b4 as p, b5 as U } from "./index-D3uUtM40.js";
2
+ import { b6 as $e, b7 as ze, b8 as Ce, b9 as ve, ba as Me, bb as Ue, bc as je, bd as De, be as qe, bf as Je, bg as Ve, bh as Ge, bi as He, bj as Qe, bk as Xe, bl as Ye, bm as Ze, bn as Ke, bo as et, bp as tt, bq as nt, br as rt, bs as at, bt as st, bu as ot } from "./index-D3uUtM40.js";
3
3
  import { g as j, i as D } from "./table-accessors-CYWTzpQI.js";
4
4
  async function q(t, e, n = {}, r = {}) {
5
5
  const a = R(t), s = S.getWorkerFarm(n), { source: o } = n, c = { name: a, source: o };