@nika-js/onlymap 0.10.4 → 0.10.5

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 (33) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{basemap-CEk-fwwQ.js → basemap-Q-Hd5jE-.js} +2 -2
  3. package/dist/{geoparquet-aBafoHei.js → geoparquet-mtTpzfNU.js} +1 -1
  4. package/dist/{globe-view-CPzn74yH.js → globe-view-D6a6_ADT.js} +1 -1
  5. package/dist/{hillshade-fonIyeOe.js → hillshade-CY4PNGum.js} +1 -1
  6. package/dist/{index-irwJUTjX.js → index--Zswyzcw.js} +1 -1
  7. package/dist/{index-BYOHopZU.js → index-4z9qUdmz.js} +1 -1
  8. package/dist/{index-BlwNB2Fo.js → index-BhH8ySRp.js} +3 -3
  9. package/dist/{index-BOXzqzVq.js → index-BwOC7qcd.js} +1 -1
  10. package/dist/{index-FP1-ImsV.js → index-D6jtcTK4.js} +3 -3
  11. package/dist/{index-CW9LiA0Z.js → index-DUJtvAv2.js} +2 -2
  12. package/dist/{index-6uyOjvvx.js → index-DwIUeLzW.js} +1 -1
  13. package/dist/{index-CIiSsOZG.js → index-V-VuBp7C.js} +1 -1
  14. package/dist/{index-XlX-ORox.js → index-yJEyQjKn.js} +9637 -9611
  15. package/dist/legend-spec.d.ts +18 -0
  16. package/dist/{lerc-B_m7L7RH.js → lerc-BdO3Bk6b.js} +1 -1
  17. package/dist/onlymap.standalone.js +18671 -18590
  18. package/dist/onlymapjs.js +1 -1
  19. package/dist/{post-process-effect-D-uTiLdK.js → post-process-effect-DqteD0Gr.js} +1 -1
  20. package/dist/{raster-D3o26cuQ.js → raster-3YBp5u4H.js} +3 -3
  21. package/dist/{raster-pipeline-1u0HyuNs.js → raster-pipeline-P1v9_jgU.js} +1 -1
  22. package/dist/text-on-path-DMUvpyS-.js +201 -0
  23. package/dist/text-on-path.d.ts +51 -11
  24. package/dist/version.d.ts +1 -1
  25. package/dist/{zarr-CVVmWsbf.js → zarr-CldzO0mP.js} +2 -2
  26. package/docs/cartograph.md +2 -2
  27. package/llms.txt +1 -1
  28. package/onlymapjs.attributes.json +2 -0
  29. package/onlymapjs.html-data.json +8 -0
  30. package/package.json +1 -1
  31. package/skills/onlymapjs/SKILL.md +1 -1
  32. package/skills/onlymapjs/references/syntax.md +5 -2
  33. package/dist/text-on-path-DCS_Eg0_.js +0 -146
package/CHANGELOG.md CHANGED
@@ -8,6 +8,18 @@ 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.5 — 2026-09-25
12
+
13
+ ### Changed
14
+ - **A name now goes where its line is legible.** A label following a line used to sit at the midpoint, which on real rivers is usually a bend — so the name wrapped it and came out scrambled. It now searches the line for the straightest stretch it fits on. Measured on Natural Earth's rivers at continental scale: the Colorado turned 151° between neighbouring letters and the Columbia spread 292°, nearly a full circle; all eleven rivers now come in under 45°, and none was dropped to get there. `placement="start"`, `"middle"` and `"end"` still work when a name belongs somewhere specific, like a river's mouth.
15
+
16
+ ### Added
17
+ - **`max-angle`** — how sharply a name may bend, in degrees between neighbouring letters. Defaults to 45°, the same figure MapLibre uses. When no stretch of the line is straight enough, the name is laid straight instead of being thrown away.
18
+ - **`orientation="chord"`** — lay the whole name straight, angled along the stretch it covers rather than following every wiggle. For data too jagged to follow at the scale you are drawing.
19
+
20
+ ### Fixed
21
+ - **Legend entries show their layer's actual colour.** A layer coloured the ordinary way — `get-fill-color="[226,206,166,92]"` — produced a grey square, because only data-driven colour ramps were understood and a flat colour fell through to a default. Flat colours are now read, in the order the eye sees them: a layer whose fill is transparent and whose stroke does the drawing shows the stroke.
22
+
11
23
  ## 0.10.4 — 2026-09-25
12
24
 
13
25
  ### 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-XlX-ORox.js";
2
- import { a as ty } from "./globe-view-CPzn74yH.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-yJEyQjKn.js";
2
+ import { a as ty } from "./globe-view-D6a6_ADT.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-XlX-ORox.js";
1
+ import { a4 as p, a5 as d } from "./index-yJEyQjKn.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-XlX-ORox.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-yJEyQjKn.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-XlX-ORox.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-yJEyQjKn.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) {
@@ -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-XlX-ORox.js";
1
+ import { bx as Be, by as le, bz as ce, bA as De, bB as Oe, bC as ke } from "./index-yJEyQjKn.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,4 +1,4 @@
1
- import { bv as _t, bw as Ct } from "./index-XlX-ORox.js";
1
+ import { bv as _t, bw as Ct } from "./index-yJEyQjKn.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-XlX-ORox.js";
2
- import { P as s } from "./post-process-effect-D-uTiLdK.js";
3
- import { G as pa, a as na } from "./globe-view-CPzn74yH.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-yJEyQjKn.js";
2
+ import { P as s } from "./post-process-effect-DqteD0Gr.js";
3
+ import { G as pa, a as na } from "./globe-view-D6a6_ADT.js";
4
4
  export {
5
5
  t as AmbientLight,
6
6
  o as Attribute,
@@ -1,4 +1,4 @@
1
- import { aA as B } from "./index-XlX-ORox.js";
1
+ import { aA as B } from "./index-yJEyQjKn.js";
2
2
  const V = /* @__PURE__ */ new Set([
3
3
  "GeoJsonLayer",
4
4
  "PolygonLayer",
@@ -1,6 +1,6 @@
1
- import { ac as j, ad as S, ae as A, af as M, ag as L } from "./index-XlX-ORox.js";
2
- import { ah as H, ai as V, aj as X, ak as K } from "./index-XlX-ORox.js";
3
- import { P as h } from "./post-process-effect-D-uTiLdK.js";
1
+ import { ac as j, ad as S, ae as A, af as M, ag as L } from "./index-yJEyQjKn.js";
2
+ import { ah as H, ai as V, aj as X, ak as K } from "./index-yJEyQjKn.js";
3
+ import { P as h } from "./post-process-effect-DqteD0Gr.js";
4
4
  const O = `
5
5
  float omfx_lum(vec3 c) { return dot(c, vec3(0.299, 0.587, 0.114)); }
6
6
  float omfx_hash(vec2 p) { return fract(sin(dot(p, vec2(12.9898, 78.233))) * 43758.5453); }
@@ -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-XlX-ORox.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-XlX-ORox.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-yJEyQjKn.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-yJEyQjKn.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 };
@@ -1,4 +1,4 @@
1
- import { aB as tt, aC as et, aD as j, at as nt, au as ot, aE as B, aF as rt, aG as U, aq as st, ar as _, aH as C, aI as it } from "./index-XlX-ORox.js";
1
+ import { aB as tt, aC as et, aD as j, at as nt, au as ot, aE as B, aF as rt, aG as U, aq as st, ar as _, aH as C, aI as it } from "./index-yJEyQjKn.js";
2
2
  const J = Math.PI / 180, T = tt * J;
3
3
  function Q(t, r) {
4
4
  const n = Math.max(Math.cos(r * J), 1e-6);
@@ -1,4 +1,4 @@
1
- import { bB as Bt, bM as Xt, bN as Yt, bO as Us } from "./index-XlX-ORox.js";
1
+ import { bB as Bt, bM as Xt, bN as Yt, bO as Us } from "./index-yJEyQjKn.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";