@nika-js/onlymap 0.13.0 → 0.13.2

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 (63) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +2 -2
  3. package/bin/dem-tiles.mjs +270 -0
  4. package/bin/onlymapjs.mjs +138 -34
  5. package/dist/{basemap-BxqFTBzX.js → basemap-CdSCIWCl.js} +473 -443
  6. package/dist/basemap.d.ts +16 -3
  7. package/dist/{build-D4iI8O9b.js → build-CUx4yR_O.js} +10 -10
  8. package/dist/camera-altitude.d.ts +29 -0
  9. package/dist/{client-BYFePLZV.js → client-DVkMuuPp.js} +2 -2
  10. package/dist/color.d.ts +15 -0
  11. package/dist/credit-chrome.d.ts +11 -0
  12. package/dist/elements/om-map.d.ts +41 -1
  13. package/dist/geodesy.d.ts +2 -0
  14. package/dist/{geoparquet-BV32P0nI.js → geoparquet-DuCEsCOu.js} +3 -3
  15. package/dist/{globe-view-B_X6obse.js → globe-view-BWNfn-Sx.js} +1 -1
  16. package/dist/ground-controller.d.ts +39 -0
  17. package/dist/{hillshade-9VS_t-Ks.js → hillshade-DyfYxqNm.js} +61 -64
  18. package/dist/{hillshade-shader-DI2uLSNU.js → hillshade-shader-BWA0USDQ.js} +12 -11
  19. package/dist/hillshade-shader.d.ts +2 -2
  20. package/dist/hillshade.d.ts +0 -29
  21. package/dist/{index-IDWDfgTC.js → index-BfHaNHyY.js} +20687 -19351
  22. package/dist/{index-JewSBOjJ.js → index-CCj9Z5yt.js} +38 -38
  23. package/dist/{index-D40H3fpl.js → index-Cc3huYsW.js} +62 -62
  24. package/dist/{index-Bct9VWxi.js → index-DRGcZmBm.js} +1 -1
  25. package/dist/{index-eSuCj2Bn.js → index-DYrgHprN.js} +61 -61
  26. package/dist/{index-D3P6Cfbr.js → index-DabUE8w3.js} +38 -38
  27. package/dist/{index-CbFw6P0B.js → index-DfzI_j0D.js} +1 -1
  28. package/dist/{index-Di1LK4JT.js → index-DiDoH_BG.js} +3 -3
  29. package/dist/{index-BR_5FIN1.js → index-dUoVyYIW.js} +18 -18
  30. package/dist/index.d.ts +1 -1
  31. package/dist/{lerc-C42a0ISa.js → lerc-CUV0h9Ci.js} +1 -1
  32. package/dist/onlymap.standalone.js +37891 -36442
  33. package/dist/onlymapjs.js +49 -49
  34. package/dist/plane-gpu/plane-basemap.d.ts +0 -14
  35. package/dist/{post-process-effect-ktcgAjmv.js → post-process-effect-DPrpqybM.js} +1 -1
  36. package/dist/programmatic.d.ts +3 -1
  37. package/dist/{raster-CIxg_M_1.js → raster-CrRQNJE7.js} +4 -4
  38. package/dist/{raster-pipeline-BODPC9vJ.js → raster-pipeline-D9g8RAo4.js} +11 -11
  39. package/dist/runtime-core.d.ts +132 -0
  40. package/dist/sea-surface.d.ts +18 -0
  41. package/dist/terrain-derive.d.ts +39 -0
  42. package/dist/terrain-ground.d.ts +31 -0
  43. package/dist/terrain-heightfield.d.ts +17 -9
  44. package/dist/terrain-inspect-GowNVtMZ.js +96 -0
  45. package/dist/terrain-inspect.d.ts +34 -0
  46. package/dist/terrain-nodata.d.ts +50 -0
  47. package/dist/terrain-priority.d.ts +92 -0
  48. package/dist/terrain-sample.d.ts +6 -0
  49. package/dist/terrain-skirt.d.ts +6140 -0
  50. package/dist/terrain-texture-mask.d.ts +40 -0
  51. package/dist/terrain-tint.d.ts +61 -0
  52. package/dist/terrain.d.ts +132 -8
  53. package/dist/{text-on-path-LZL6NfwZ.js → text-on-path-BoFbm-tl.js} +1 -1
  54. package/dist/version.d.ts +1 -1
  55. package/dist/viewport-filter.d.ts +9 -0
  56. package/dist/volumetrics.d.ts +11 -0
  57. package/dist/{zarr-D19fNIZt.js → zarr-C8CU8LXU.js} +2 -2
  58. package/docs/cartograph.md +2 -2
  59. package/llms.txt +1 -1
  60. package/onlymapjs.html-data.json +162 -2
  61. package/package.json +2 -1
  62. package/skills/onlymapjs/SKILL.md +5 -2
  63. package/skills/onlymapjs/references/syntax.md +3 -3
@@ -1,6 +1,6 @@
1
- import { bJ as Bt, bV as Qt, bW as Yt, bX as Us } from "./index-IDWDfgTC.js";
2
- import { w as gs, t as Hs, f as Ws, m as Xs } from "./mgrs-BY9bIvp4.js";
3
- import { c as Qs } from "./convert-arrow-schema-DrAihRf9.js";
1
+ import { bS as Bt, c2 as Xt, c3 as Yt, c4 as Us } from "./index-BfHaNHyY.js";
2
+ import { w as gs, t as Hs, f as Ws, m as Qs } from "./mgrs-BY9bIvp4.js";
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";
5
5
  class Js {
6
6
  schema;
@@ -8,7 +8,7 @@ class Js {
8
8
  arrowBuilders;
9
9
  length;
10
10
  constructor(s) {
11
- this.schema = s, this.arrowSchema = Qs(s), this.arrowBuilders = this.arrowSchema.fields.map((a) => Ys({ type: a.type, nullValues: [null] })), this.length = 0;
11
+ this.schema = s, this.arrowSchema = Xs(s), this.arrowBuilders = this.arrowSchema.fields.map((a) => Ys({ type: a.type, nullValues: [null] })), this.length = 0;
12
12
  }
13
13
  addObjectRow(s) {
14
14
  for (let a = 0; a < this.arrowBuilders.length; a++) {
@@ -456,7 +456,7 @@ const ca = "4.4.3", Es = [0, 0, 39, 10], fa = {
456
456
  function ua(t) {
457
457
  t("EPSG:4326", "+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"), t("EPSG:4269", "+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"), t("EPSG:3857", "+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"), t.WGS84 = t["EPSG:4326"], t["EPSG:3785"] = t["EPSG:3857"], t.GOOGLE = t["EPSG:3857"], t["EPSG:900913"] = t["EPSG:3857"], t["EPSG:102113"] = t["EPSG:3857"];
458
458
  }
459
- var tt = 1, st = 2, Ma = 4, qt = 5, ct = 484813681109536e-20, M = Math.PI / 2, va = 0.16666666666666666, da = 0.04722222222222222, ya = 0.022156084656084655, m = 1e-10, D = 0.017453292519943295, X = 57.29577951308232, p = Math.PI / 4, Ft = Math.PI * 2, N = 3.14159265359, T = {};
459
+ var tt = 1, st = 2, Ma = 4, qt = 5, ct = 484813681109536e-20, M = Math.PI / 2, va = 0.16666666666666666, da = 0.04722222222222222, ya = 0.022156084656084655, m = 1e-10, D = 0.017453292519943295, Q = 57.29577951308232, p = Math.PI / 4, Ft = Math.PI * 2, N = 3.14159265359, T = {};
460
460
  T.greenwich = 0;
461
461
  T.lisbon = -9.131906111111;
462
462
  T.paris = 2.337229166667;
@@ -679,7 +679,7 @@ function Pa() {
679
679
  }
680
680
  function Sa(t) {
681
681
  var s = t.x, a = t.y;
682
- if (a * X > 90 && a * X < -90 && s * X > 180 && s * X < -180)
682
+ if (a * Q > 90 && a * Q < -90 && s * Q > 180 && s * Q < -180)
683
683
  return null;
684
684
  var i, e;
685
685
  if (Math.abs(Math.abs(a) - M) <= m)
@@ -1208,7 +1208,7 @@ function Ss(t) {
1208
1208
  };
1209
1209
  return t.length > 2 && (s.z = t[2]), t.length > 3 && (s.m = t[3]), s;
1210
1210
  }
1211
- function Xa(t) {
1211
+ function Qa(t) {
1212
1212
  es(t.x), es(t.y);
1213
1213
  }
1214
1214
  function es(t) {
@@ -1220,12 +1220,12 @@ function es(t) {
1220
1220
  if (typeof t != "number" || t !== t || !isFinite(t))
1221
1221
  throw new TypeError("coordinates must be finite numbers");
1222
1222
  }
1223
- function Qa(t, s) {
1223
+ function Xa(t, s) {
1224
1224
  return (t.datum.datum_type === tt || t.datum.datum_type === st) && s.datumCode !== "WGS84" || (s.datum.datum_type === tt || s.datum.datum_type === st) && t.datumCode !== "WGS84";
1225
1225
  }
1226
1226
  function St(t, s, a) {
1227
1227
  var i;
1228
- if (Array.isArray(a) && (a = Ss(a)), Xa(a), t.datum && s.datum && Qa(t, s) && (i = new H("WGS84"), a = St(t, i, a), t = i), t.axis !== "enu" && (a = is(t, !1, a)), t.projName === "longlat")
1228
+ if (Array.isArray(a) && (a = Ss(a)), Qa(a), t.datum && s.datum && Xa(t, s) && (i = new H("WGS84"), a = St(t, i, a), t = i), t.axis !== "enu" && (a = is(t, !1, a)), t.projName === "longlat")
1229
1229
  a = {
1230
1230
  x: a.x * D,
1231
1231
  y: a.y * D,
@@ -1242,8 +1242,8 @@ function St(t, s, a) {
1242
1242
  y: a.y,
1243
1243
  z: a.z || 0
1244
1244
  }), s.projName === "longlat" ? a = {
1245
- x: a.x * X,
1246
- y: a.y * X,
1245
+ x: a.x * Q,
1246
+ y: a.y * Q,
1247
1247
  z: a.z || 0
1248
1248
  } : (a = s.forward(a), s.to_meter && (a = {
1249
1249
  x: a.x / s.to_meter,
@@ -1478,17 +1478,17 @@ function Ii(t) {
1478
1478
  t.y = i;
1479
1479
  return h ? (t.x = a, t.y = i, t) : null;
1480
1480
  }
1481
- const Xt = {
1481
+ const Qt = {
1482
1482
  init: pi,
1483
1483
  forward: Ri,
1484
1484
  inverse: Ii
1485
1485
  };
1486
1486
  function Pi() {
1487
- Xt.init.apply(this), this.rc && (this.sinc0 = Math.sin(this.phic0), this.cosc0 = Math.cos(this.phic0), this.R2 = 2 * this.rc, this.title || (this.title = "Oblique Stereographic Alternative"));
1487
+ Qt.init.apply(this), this.rc && (this.sinc0 = Math.sin(this.phic0), this.cosc0 = Math.cos(this.phic0), this.R2 = 2 * this.rc, this.title || (this.title = "Oblique Stereographic Alternative"));
1488
1488
  }
1489
1489
  function Si(t) {
1490
1490
  var s, a, i, e;
1491
- return t.x = b(t.x - this.long0), Xt.forward.apply(this, [t]), s = Math.sin(t.y), a = Math.cos(t.y), i = Math.cos(t.x), e = this.k0 * this.R2 / (1 + this.sinc0 * s + this.cosc0 * a * i), t.x = e * a * Math.sin(t.x), t.y = e * (this.cosc0 * s - this.sinc0 * a * i), t.x = this.a * t.x + this.x0, t.y = this.a * t.y + this.y0, t;
1491
+ return t.x = b(t.x - this.long0), Qt.forward.apply(this, [t]), s = Math.sin(t.y), a = Math.cos(t.y), i = Math.cos(t.x), e = this.k0 * this.R2 / (1 + this.sinc0 * s + this.cosc0 * a * i), t.x = e * a * Math.sin(t.x), t.y = e * (this.cosc0 * s - this.sinc0 * a * i), t.x = this.a * t.x + this.x0, t.y = this.a * t.y + this.y0, t;
1492
1492
  }
1493
1493
  function Ai(t) {
1494
1494
  var s, a, i, e, h;
@@ -1497,7 +1497,7 @@ function Ai(t) {
1497
1497
  s = Math.sin(r), a = Math.cos(r), e = Math.asin(a * this.sinc0 + t.y * s * this.cosc0 / h), i = Math.atan2(t.x * s, h * this.cosc0 * a - t.y * this.sinc0 * s);
1498
1498
  } else
1499
1499
  e = this.phic0, i = 0;
1500
- return t.x = i, t.y = e, Xt.inverse.apply(this, [t]), t.x = b(t.x + this.long0), t;
1500
+ return t.x = i, t.y = e, Qt.inverse.apply(this, [t]), t.x = b(t.x + this.long0), t;
1501
1501
  }
1502
1502
  var Ni = ["Stereographic_North_Pole", "Oblique_Stereographic", "Polar_Stereographic", "sterea", "Oblique Stereographic Alternative", "Double_Stereographic"];
1503
1503
  const Bi = {
@@ -1603,13 +1603,13 @@ function Hi(t) {
1603
1603
  return Math.abs(n - 1) < m ? (t.x = this.long0, t.y = M) : Math.abs(n + 1) < m ? (t.x = this.long0, t.y = -1 * M) : (t.y = ut(this.e, o), t.x = b(this.long0 - Math.atan2(e * Math.cos(this.gamma0) - r * Math.sin(this.gamma0), Math.cos(this.bl * s / this.al)) / this.bl)), t;
1604
1604
  }
1605
1605
  var Wi = ["Hotine_Oblique_Mercator", "Hotine Oblique Mercator", "Hotine_Oblique_Mercator_Azimuth_Natural_Origin", "Hotine_Oblique_Mercator_Azimuth_Center", "omerc"];
1606
- const Xi = {
1606
+ const Qi = {
1607
1607
  init: zi,
1608
1608
  forward: Ui,
1609
1609
  inverse: Hi,
1610
1610
  names: Wi
1611
1611
  };
1612
- function Qi() {
1612
+ function Xi() {
1613
1613
  if (this.lat2 || (this.lat2 = this.lat1), this.k0 || (this.k0 = 1), this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, !(Math.abs(this.lat1 + this.lat2) < m)) {
1614
1614
  var t = this.b / this.a;
1615
1615
  this.e = Math.sqrt(1 - t * t);
@@ -1644,7 +1644,7 @@ function Ki(t) {
1644
1644
  }
1645
1645
  var Vi = ["Lambert Tangential Conformal Conic Projection", "Lambert_Conformal_Conic", "Lambert_Conformal_Conic_2SP", "lcc"];
1646
1646
  const Zi = {
1647
- init: Qi,
1647
+ init: Xi,
1648
1648
  forward: Yi,
1649
1649
  inverse: Ki,
1650
1650
  names: Vi
@@ -1737,7 +1737,7 @@ const oe = {
1737
1737
  inverse: re,
1738
1738
  names: ne
1739
1739
  };
1740
- function Q(t, s) {
1740
+ function X(t, s) {
1741
1741
  var a;
1742
1742
  return t > 1e-7 ? (a = t * s, (1 - t * t) * (s / (1 - a * a) - 0.5 / t * Math.log((1 - a) / (1 + a)))) : 2 * s;
1743
1743
  }
@@ -1746,7 +1746,7 @@ function Me() {
1746
1746
  var t = Math.abs(this.lat0);
1747
1747
  if (Math.abs(t - M) < m ? this.mode = this.lat0 < 0 ? this.S_POLE : this.N_POLE : Math.abs(t) < m ? this.mode = this.EQUIT : this.mode = this.OBLIQ, this.es > 0) {
1748
1748
  var s;
1749
- switch (this.qp = Q(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa = we(this.es), this.mode) {
1749
+ switch (this.qp = X(this.e, 1), this.mmf = 0.5 / (1 - this.es), this.apa = we(this.es), this.mode) {
1750
1750
  case this.N_POLE:
1751
1751
  this.dd = 1;
1752
1752
  break;
@@ -1757,7 +1757,7 @@ function Me() {
1757
1757
  this.rq = Math.sqrt(0.5 * this.qp), this.dd = 1 / this.rq, this.xmf = 1, this.ymf = 0.5 * this.qp;
1758
1758
  break;
1759
1759
  case this.OBLIQ:
1760
- this.rq = Math.sqrt(0.5 * this.qp), s = Math.sin(this.lat0), this.sinb1 = Q(this.e, s) / this.qp, this.cosb1 = Math.sqrt(1 - this.sinb1 * this.sinb1), this.dd = Math.cos(this.lat0) / (Math.sqrt(1 - this.es * s * s) * this.rq * this.cosb1), this.ymf = (this.xmf = this.rq) / this.dd, this.xmf *= this.dd;
1760
+ this.rq = Math.sqrt(0.5 * this.qp), s = Math.sin(this.lat0), this.sinb1 = X(this.e, s) / this.qp, this.cosb1 = Math.sqrt(1 - this.sinb1 * this.sinb1), this.dd = Math.cos(this.lat0) / (Math.sqrt(1 - this.es * s * s) * this.rq * this.cosb1), this.ymf = (this.xmf = this.rq) / this.dd, this.xmf *= this.dd;
1761
1761
  break;
1762
1762
  }
1763
1763
  } else
@@ -1776,7 +1776,7 @@ function ve(t) {
1776
1776
  a = p - u * 0.5, a = 2 * (this.mode === this.S_POLE ? Math.cos(a) : Math.sin(a)), s = a * Math.sin(f), a *= i;
1777
1777
  }
1778
1778
  } else {
1779
- switch (n = 0, o = 0, l = 0, i = Math.cos(f), e = Math.sin(f), h = Math.sin(u), r = Q(this.e, h), (this.mode === this.OBLIQ || this.mode === this.EQUIT) && (n = r / this.qp, o = Math.sqrt(1 - n * n)), this.mode) {
1779
+ switch (n = 0, o = 0, l = 0, i = Math.cos(f), e = Math.sin(f), h = Math.sin(u), r = X(this.e, h), (this.mode === this.OBLIQ || this.mode === this.EQUIT) && (n = r / this.qp, o = Math.sqrt(1 - n * n)), this.mode) {
1780
1780
  case this.OBLIQ:
1781
1781
  l = 1 + this.sinb1 * n + this.cosb1 * o * i;
1782
1782
  break;
@@ -1865,12 +1865,12 @@ function K(t) {
1865
1865
  return Math.abs(t) > 1 && (t = t > 1 ? 1 : -1), Math.asin(t);
1866
1866
  }
1867
1867
  function Ie() {
1868
- Math.abs(this.lat1 + this.lat2) < m || (this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e3 = Math.sqrt(this.es), this.sin_po = Math.sin(this.lat1), this.cos_po = Math.cos(this.lat1), this.t1 = this.sin_po, this.con = this.sin_po, this.ms1 = W(this.e3, this.sin_po, this.cos_po), this.qs1 = Q(this.e3, this.sin_po, this.cos_po), this.sin_po = Math.sin(this.lat2), this.cos_po = Math.cos(this.lat2), this.t2 = this.sin_po, this.ms2 = W(this.e3, this.sin_po, this.cos_po), this.qs2 = Q(this.e3, this.sin_po, this.cos_po), this.sin_po = Math.sin(this.lat0), this.cos_po = Math.cos(this.lat0), this.t3 = this.sin_po, this.qs0 = Q(this.e3, this.sin_po, this.cos_po), Math.abs(this.lat1 - this.lat2) > m ? this.ns0 = (this.ms1 * this.ms1 - this.ms2 * this.ms2) / (this.qs2 - this.qs1) : this.ns0 = this.con, this.c = this.ms1 * this.ms1 + this.ns0 * this.qs1, this.rh = this.a * Math.sqrt(this.c - this.ns0 * this.qs0) / this.ns0);
1868
+ Math.abs(this.lat1 + this.lat2) < m || (this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e3 = Math.sqrt(this.es), this.sin_po = Math.sin(this.lat1), this.cos_po = Math.cos(this.lat1), this.t1 = this.sin_po, this.con = this.sin_po, this.ms1 = W(this.e3, this.sin_po, this.cos_po), this.qs1 = X(this.e3, this.sin_po, this.cos_po), this.sin_po = Math.sin(this.lat2), this.cos_po = Math.cos(this.lat2), this.t2 = this.sin_po, this.ms2 = W(this.e3, this.sin_po, this.cos_po), this.qs2 = X(this.e3, this.sin_po, this.cos_po), this.sin_po = Math.sin(this.lat0), this.cos_po = Math.cos(this.lat0), this.t3 = this.sin_po, this.qs0 = X(this.e3, this.sin_po, this.cos_po), Math.abs(this.lat1 - this.lat2) > m ? this.ns0 = (this.ms1 * this.ms1 - this.ms2 * this.ms2) / (this.qs2 - this.qs1) : this.ns0 = this.con, this.c = this.ms1 * this.ms1 + this.ns0 * this.qs1, this.rh = this.a * Math.sqrt(this.c - this.ns0 * this.qs0) / this.ns0);
1869
1869
  }
1870
1870
  function Pe(t) {
1871
1871
  var s = t.x, a = t.y;
1872
1872
  this.sin_phi = Math.sin(a), this.cos_phi = Math.cos(a);
1873
- var i = Q(this.e3, this.sin_phi, this.cos_phi), e = this.a * Math.sqrt(this.c - this.ns0 * i) / this.ns0, h = this.ns0 * b(s - this.long0), r = e * Math.sin(h) + this.x0, n = this.rh - e * Math.cos(h) + this.y0;
1873
+ var i = X(this.e3, this.sin_phi, this.cos_phi), e = this.a * Math.sqrt(this.c - this.ns0 * i) / this.ns0, h = this.ns0 * b(s - this.long0), r = e * Math.sin(h) + this.x0, n = this.rh - e * Math.cos(h) + this.y0;
1874
1874
  return t.x = r, t.y = n, t;
1875
1875
  }
1876
1876
  function Se(t) {
@@ -1929,7 +1929,7 @@ function qe(t) {
1929
1929
  if (this.sphere)
1930
1930
  i = this.x0 + this.a * h * Math.cos(this.lat_ts), e = this.y0 + this.a * Math.sin(a) / Math.cos(this.lat_ts);
1931
1931
  else {
1932
- var r = Q(this.e, Math.sin(a));
1932
+ var r = X(this.e, Math.sin(a));
1933
1933
  i = this.x0 + this.a * this.k0 * h, e = this.y0 + this.a * r * 0.5 / this.k0;
1934
1934
  }
1935
1935
  return t.x = i, t.y = e, t;
@@ -1958,14 +1958,14 @@ function He(t) {
1958
1958
  return t.x = b(this.long0 + (s - this.x0) / (this.a * this.rc)), t.y = nt(this.lat0 + (a - this.y0) / this.a), t;
1959
1959
  }
1960
1960
  var We = ["Equirectangular", "Equidistant_Cylindrical", "eqc"];
1961
- const Xe = {
1961
+ const Qe = {
1962
1962
  init: ze,
1963
1963
  forward: Ue,
1964
1964
  inverse: He,
1965
1965
  names: We
1966
1966
  };
1967
1967
  var cs = 20;
1968
- function Qe() {
1968
+ function Xe() {
1969
1969
  this.temp = this.b / this.a, this.es = 1 - Math.pow(this.temp, 2), this.e = Math.sqrt(this.es), this.e0 = vt(this.es), this.e1 = dt(this.es), this.e2 = yt(this.es), this.e3 = mt(this.es), this.ml0 = this.a * O(this.e0, this.e1, this.e2, this.e3, this.lat0);
1970
1970
  }
1971
1971
  function Ye(t) {
@@ -2011,7 +2011,7 @@ function Ke(t) {
2011
2011
  }
2012
2012
  var Ve = ["Polyconic", "poly"];
2013
2013
  const Ze = {
2014
- init: Qe,
2014
+ init: Xe,
2015
2015
  forward: Ye,
2016
2016
  inverse: Ke,
2017
2017
  names: Ve
@@ -2325,12 +2325,12 @@ var jt = [
2325
2325
  [0.9394, 840947e-8, -192841e-9, -42106e-10],
2326
2326
  [0.9761, 616527e-8, -256e-6, -42106e-10],
2327
2327
  [1, 328947e-8, -319159e-9, -42106e-10]
2328
- ], Ds = 0.8487, ks = 1.3523, Ls = X / 5, Hh = 1 / Ls, it = 18, Nt = function(t, s) {
2328
+ ], Ds = 0.8487, ks = 1.3523, Ls = Q / 5, Hh = 1 / Ls, it = 18, Nt = function(t, s) {
2329
2329
  return t[0] + s * (t[1] + s * (t[2] + s * t[3]));
2330
2330
  }, Wh = function(t, s) {
2331
2331
  return t[1] + s * (2 * t[2] + s * 3 * t[3]);
2332
2332
  };
2333
- function Xh(t, s, a, i) {
2333
+ function Qh(t, s, a, i) {
2334
2334
  for (var e = s; i; --i) {
2335
2335
  var h = t(e);
2336
2336
  if (e -= h, Math.abs(h) < a)
@@ -2338,12 +2338,12 @@ function Xh(t, s, a, i) {
2338
2338
  }
2339
2339
  return e;
2340
2340
  }
2341
- function Qh() {
2341
+ function Xh() {
2342
2342
  this.x0 = this.x0 || 0, this.y0 = this.y0 || 0, this.long0 = this.long0 || 0, this.es = 0, this.title = this.title || "Robinson";
2343
2343
  }
2344
2344
  function Yh(t) {
2345
2345
  var s = b(t.x - this.long0), a = Math.abs(t.y), i = Math.floor(a * Ls);
2346
- i < 0 ? i = 0 : i >= it && (i = it - 1), a = X * (a - Hh * i);
2346
+ i < 0 ? i = 0 : i >= it && (i = it - 1), a = Q * (a - Hh * i);
2347
2347
  var e = {
2348
2348
  x: Nt(jt[i], a) * s,
2349
2349
  y: Nt(lt[i], a)
@@ -2367,7 +2367,7 @@ function Kh(t) {
2367
2367
  else
2368
2368
  break;
2369
2369
  var i = lt[a], e = 5 * (s.y - i[0]) / (lt[a + 1][0] - i[0]);
2370
- e = Xh(function(h) {
2370
+ e = Qh(function(h) {
2371
2371
  return (Nt(i, h) - s.y) / Wh(i, h);
2372
2372
  }, e, m, 100), s.x /= Nt(jt[a], e), s.y = (5 * a + e) * D, t.y < 0 && (s.y = -s.y);
2373
2373
  }
@@ -2375,7 +2375,7 @@ function Kh(t) {
2375
2375
  }
2376
2376
  var Vh = ["Robinson", "robin"];
2377
2377
  const Zh = {
2378
- init: Qh,
2378
+ init: Xh,
2379
2379
  forward: Yh,
2380
2380
  inverse: Kh,
2381
2381
  names: Vh
@@ -2399,7 +2399,7 @@ const ir = {
2399
2399
  names: ar
2400
2400
  };
2401
2401
  function er(t) {
2402
- t.Proj.projections.add(li), t.Proj.projections.add(Rt), t.Proj.projections.add(wi), t.Proj.projections.add(Bi), t.Proj.projections.add(Oi), t.Proj.projections.add(ji), t.Proj.projections.add(Xi), t.Proj.projections.add(Zi), t.Proj.projections.add(ie), t.Proj.projections.add(oe), t.Proj.projections.add(Re), t.Proj.projections.add(Be), t.Proj.projections.add($e), t.Proj.projections.add(je), t.Proj.projections.add(Xe), t.Proj.projections.add(Ze), t.Proj.projections.add(ih), t.Proj.projections.add(oh), t.Proj.projections.add(vh), t.Proj.projections.add(bh), t.Proj.projections.add(ph), t.Proj.projections.add(Ah), t.Proj.projections.add(kh), t.Proj.projections.add(qh), t.Proj.projections.add(Uh), t.Proj.projections.add(Zh), t.Proj.projections.add(ir);
2402
+ t.Proj.projections.add(li), t.Proj.projections.add(Rt), t.Proj.projections.add(wi), t.Proj.projections.add(Bi), t.Proj.projections.add(Oi), t.Proj.projections.add(ji), t.Proj.projections.add(Qi), t.Proj.projections.add(Zi), t.Proj.projections.add(ie), t.Proj.projections.add(oe), t.Proj.projections.add(Re), t.Proj.projections.add(Be), t.Proj.projections.add($e), t.Proj.projections.add(je), t.Proj.projections.add(Qe), t.Proj.projections.add(Ze), t.Proj.projections.add(ih), t.Proj.projections.add(oh), t.Proj.projections.add(vh), t.Proj.projections.add(bh), t.Proj.projections.add(ph), t.Proj.projections.add(Ah), t.Proj.projections.add(kh), t.Proj.projections.add(qh), t.Proj.projections.add(Uh), t.Proj.projections.add(Zh), t.Proj.projections.add(ir);
2403
2403
  }
2404
2404
  q.defaultDatum = "WGS84";
2405
2405
  q.Proj = H;
@@ -2408,7 +2408,7 @@ q.Point = ht;
2408
2408
  q.toPoint = Ss;
2409
2409
  q.defs = k;
2410
2410
  q.transform = St;
2411
- q.mgrs = Xs;
2411
+ q.mgrs = Qs;
2412
2412
  q.version = "__VERSION__";
2413
2413
  er(q);
2414
2414
  class hr {
@@ -2686,11 +2686,11 @@ const gr = "4.4.3", br = {
2686
2686
  }
2687
2687
  };
2688
2688
  async function* _r(t, s, a) {
2689
- const { reproject: i = !1, _targetCrs: e = "WGS84" } = s?.gis || {}, { shx: h, cpg: r, prj: n } = await Gs(s, a), o = await Qt(Bt(t), ps, s, a), l = o[Symbol.asyncIterator]?.() || o[Symbol.iterator]?.();
2689
+ const { reproject: i = !1, _targetCrs: e = "WGS84" } = s?.gis || {}, { shx: h, cpg: r, prj: n } = await Gs(s, a), o = await Xt(Bt(t), ps, s, a), l = o[Symbol.asyncIterator]?.() || o[Symbol.iterator]?.();
2690
2690
  let c = null;
2691
2691
  const f = await a?.fetch(ft(a?.url || "", "dbf"));
2692
2692
  if (f?.ok) {
2693
- const g = await Qt(f, Os, {
2693
+ const g = await Xt(f, Os, {
2694
2694
  ...s,
2695
2695
  dbf: {
2696
2696
  ...s?.dbf,
@@ -1,4 +1,4 @@
1
- import { bD as Su, bE as qu } from "./index-IDWDfgTC.js";
1
+ import { bM as Su, bN as qu } from "./index-BfHaNHyY.js";
2
2
  function Ru(r) {
3
3
  let n = 0, a = 0, s = 0, o = 0, l = 0, p = 0, f = 0, m = 0, d = 0;
4
4
  const E = /* @__PURE__ */ new Set();
@@ -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-IDWDfgTC.js";
2
- import { P as s } from "./post-process-effect-ktcgAjmv.js";
3
- import { G as pa, a as na } from "./globe-view-B_X6obse.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-BfHaNHyY.js";
2
+ import { P as s } from "./post-process-effect-DPrpqybM.js";
3
+ import { G as pa, a as na } from "./globe-view-BWNfn-Sx.js";
4
4
  export {
5
5
  t as AmbientLight,
6
6
  o as Attribute,
@@ -1,6 +1,6 @@
1
- import { at as j, au as S, av as A, aw as M, ax as L } from "./index-IDWDfgTC.js";
2
- import { ay as H, az as V, aA as X, aB as K } from "./index-IDWDfgTC.js";
3
- import { P as h } from "./post-process-effect-ktcgAjmv.js";
1
+ import { aC as j, aD as S, aE as A, aF as M, aG as L } from "./index-BfHaNHyY.js";
2
+ import { aH as B, aI as K, aJ as V, aK as X } from "./index-BfHaNHyY.js";
3
+ import { P as h } from "./post-process-effect-DPrpqybM.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); }
@@ -127,7 +127,7 @@ function z(o) {
127
127
  s(), e.push({ kind: "neighbourhood", op: l });
128
128
  }), s(), e;
129
129
  }
130
- function T(o, e) {
130
+ function C(o, e) {
131
131
  if (o.length === 0) return null;
132
132
  const t = [], s = [], n = /* @__PURE__ */ new Map();
133
133
  o.forEach((a, u) => {
@@ -185,7 +185,7 @@ ${_}
185
185
  passCount: d.length
186
186
  };
187
187
  }
188
- const C = /^\s*(-?[\d.]+)\s*(mm)?\s*$/i, N = /^\s*(-?[\d.]+)\s*(deg)?\s*$/i;
188
+ const T = /^\s*(-?[\d.]+)\s*(mm)?\s*$/i, N = /^\s*(-?[\d.]+)\s*(deg)?\s*$/i;
189
189
  function E(o, e) {
190
190
  if (o.kind === "color") {
191
191
  const s = L(e);
@@ -194,7 +194,7 @@ function E(o, e) {
194
194
  return [n / 255, l / 255, c / 255, r === void 0 ? 1 : r > 1 ? r / 255 : r];
195
195
  }
196
196
  if (o.kind === "length" || o.kind === "angle") {
197
- const s = (o.kind === "length" ? C : N).exec(e);
197
+ const s = (o.kind === "length" ? T : N).exec(e);
198
198
  if (!s) return;
199
199
  const n = Number(s[1]);
200
200
  return Number.isFinite(n) ? n : void 0;
@@ -215,12 +215,12 @@ function P(o, e) {
215
215
  }
216
216
  return { op: o, values: s };
217
217
  }
218
- function R(o) {
218
+ function F(o) {
219
219
  if (!o || typeof o != "object") return !1;
220
220
  const e = o;
221
221
  return typeof e.name == "string" && typeof e.fs == "string" && Array.isArray(e.passes) && e.passes.length > 0;
222
222
  }
223
- function J(o) {
223
+ function q(o) {
224
224
  const e = [];
225
225
  for (const t of Array.from(o.querySelectorAll(":scope > om-effect"))) {
226
226
  const s = t.getAttribute("preset"), n = t.getAttribute("op"), l = t.querySelector(":scope > script[type='application/json']");
@@ -255,7 +255,7 @@ function J(o) {
255
255
  console.warn(`[onlymapjs] <om-effect>'s inline module is not valid JSON — skipped. ${String(f)}`, t);
256
256
  continue;
257
257
  }
258
- if (!R(c)) {
258
+ if (!F(c)) {
259
259
  console.warn(
260
260
  "[onlymapjs] <om-effect>'s inline module needs `name`, `fs` and a non-empty `passes` — skipped.",
261
261
  t
@@ -277,14 +277,14 @@ function J(o) {
277
277
  }
278
278
  return e;
279
279
  }
280
- let F = 0;
281
- const q = () => F++;
280
+ let R = 0;
281
+ const G = () => R++;
282
282
  function D(o, e = S) {
283
283
  const t = [], s = [];
284
284
  let n = [];
285
- const l = q(), c = () => {
285
+ const l = G(), c = () => {
286
286
  if (n.length === 0) return;
287
- const r = T(n, `omfx${l}_${t.length}`);
287
+ const r = C(n, `omfx${l}_${t.length}`);
288
288
  if (n = [], !r) return;
289
289
  const i = { ...r.uniforms, pxPerMm: e }, f = new h(r.module, i);
290
290
  s.push({ effect: f, uniforms: r.uniforms }), t.push(f);
@@ -309,14 +309,14 @@ function D(o, e = S) {
309
309
  export {
310
310
  S as CSS_PX_PER_MM,
311
311
  M as EFFECT_PRESETS,
312
- H as EFFECT_PRESET_NAMES,
313
- V as OP_META,
314
- X as OP_NAMES,
312
+ B as EFFECT_PRESET_NAMES,
313
+ K as OP_META,
314
+ V as OP_NAMES,
315
315
  D as buildPostProcessEffects,
316
316
  E as coerceParam,
317
- K as expandPreset,
317
+ X as expandPreset,
318
318
  A as isEffectPreset,
319
319
  b as opDef,
320
320
  j as opMeta,
321
- J as parseEffectEls
321
+ q as parseEffectEls
322
322
  };
package/dist/index.d.ts CHANGED
@@ -92,7 +92,7 @@ export { isStoreToken } from "./external-store";
92
92
  export type { TokenStore, ViewOrigin, ViewportSnapshot, DataVersionSnapshot } from "./external-store";
93
93
  export type { LayerMetaSnapshot } from "./ctx";
94
94
  export type { Selection, PickMode, PickAtOptions, PickRectOptions, PickRect } from "./selection";
95
- export type { CameraOptions } from "./runtime-core";
95
+ export type { Camera, CameraOptions } from "./runtime-core";
96
96
  export type { MapViewport } from "./basemap";
97
97
  export { registerAction } from "./actions";
98
98
  export { distanceMeters, pathLengthMeters, ringAreaMeters2, ringPerimeterMeters, ringEnclosesPole, midpoint, getMeasureRadiusMeters, setMeasureRadiusMeters, WGS84_MEAN_RADIUS_M, type LngLat, } from "./geodesy";
@@ -1,4 +1,4 @@
1
- import { C as o, D as s } from "./raster-CIxg_M_1.js";
1
+ import { C as o, D as s } from "./raster-CrRQNJE7.js";
2
2
  var t;
3
3
  (function(e) {
4
4
  e[e.None = 0] = "None", e[e.Deflate = 1] = "Deflate", e[e.Zstd = 2] = "Zstd";