@nika-js/onlymap 0.10.3 → 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.
- package/CHANGELOG.md +17 -0
- package/dist/{basemap-BXj6TyI0.js → basemap-Q-Hd5jE-.js} +2 -2
- package/dist/{geoparquet-3uljKWBk.js → geoparquet-mtTpzfNU.js} +1 -1
- package/dist/{globe-view-SiqJKyZ3.js → globe-view-D6a6_ADT.js} +1 -1
- package/dist/{hillshade-DSVos950.js → hillshade-CY4PNGum.js} +1 -1
- package/dist/{index-CON8tYgk.js → index--Zswyzcw.js} +1 -1
- package/dist/{index-BmhZ-nHJ.js → index-4z9qUdmz.js} +1 -1
- package/dist/{index-BrdfEKdd.js → index-BhH8ySRp.js} +3 -3
- package/dist/{index-Bkz-w1s4.js → index-BwOC7qcd.js} +1 -1
- package/dist/{index-DScatzxZ.js → index-D6jtcTK4.js} +3 -3
- package/dist/{index-CaspQb0d.js → index-DUJtvAv2.js} +2 -2
- package/dist/{index-fdxfxPzR.js → index-DwIUeLzW.js} +1 -1
- package/dist/{index-BsqaPPAj.js → index-V-VuBp7C.js} +1 -1
- package/dist/{index-D3uUtM40.js → index-yJEyQjKn.js} +11048 -11016
- package/dist/legend-spec.d.ts +18 -0
- package/dist/{lerc-CDT_Q_Ki.js → lerc-BdO3Bk6b.js} +1 -1
- package/dist/onlymap.standalone.js +20861 -20774
- package/dist/onlymapjs.js +1 -1
- package/dist/plane-layers.d.ts +22 -0
- package/dist/{post-process-effect-CjGvim4U.js → post-process-effect-DqteD0Gr.js} +1 -1
- package/dist/{raster-BkCit2hH.js → raster-3YBp5u4H.js} +3 -3
- package/dist/{raster-pipeline-BvIx-poy.js → raster-pipeline-P1v9_jgU.js} +1 -1
- package/dist/text-on-path-DMUvpyS-.js +201 -0
- package/dist/text-on-path.d.ts +51 -11
- package/dist/version.d.ts +1 -1
- package/dist/{zarr-HSWSwGfd.js → zarr-CldzO0mP.js} +2 -2
- package/docs/cartograph.md +2 -2
- package/llms.txt +1 -1
- package/onlymapjs.attributes.json +2 -0
- package/onlymapjs.html-data.json +8 -0
- package/package.json +1 -1
- package/skills/onlymapjs/SKILL.md +1 -1
- package/skills/onlymapjs/references/syntax.md +5 -2
- package/dist/text-on-path-DTAVhz00.js +0 -146
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,23 @@ 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
|
+
|
|
23
|
+
## 0.10.4 — 2026-09-25
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
- **Labels and lines on a projected map land where their data says.** On a map with a `crs`, a layer that read coordinates through an accessor over GeoJSON — `get-path="d.geometry.coordinates"`, the documented way to run a river's name along the river — had those coordinates converted into the projection **twice**. The Mississippi's first vertex came out 12 000 km west and 19 900 km north of where it belongs, so labels sprawled across the sheet while the land drawn from the very same file sat correctly. Only projected maps were affected, and only when the data was GeoJSON: the same layer over flat rows was always right, which is why the library's own atlas plate never showed it.
|
|
27
|
+
|
|
11
28
|
## 0.10.3 — 2026-09-25
|
|
12
29
|
|
|
13
30
|
### 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-
|
|
2
|
-
import { a as ty } from "./globe-view-
|
|
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 { 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-
|
|
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-
|
|
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-
|
|
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,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-
|
|
2
|
-
import { P as s } from "./post-process-effect-
|
|
3
|
-
import { G as pa, a as na } from "./globe-view-
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { ac as j, ad as S, ae as A, af as M, ag as L } from "./index-
|
|
2
|
-
import { ah as H, ai as V, aj as X, ak as K } from "./index-
|
|
3
|
-
import { P as h } from "./post-process-effect-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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";
|