@nika-js/onlymap 0.12.1 → 0.13.0

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 (60) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +1 -1
  3. package/dist/{basemap-BK25o5OE.js → basemap-BxqFTBzX.js} +2 -2
  4. package/dist/build-D4iI8O9b.js +208 -0
  5. package/dist/cartograph.js +43 -41
  6. package/dist/cartograph.standalone.js +3 -1
  7. package/dist/client-BYFePLZV.js +6878 -0
  8. package/dist/{geoparquet-CLydPm2f.js → geoparquet-BV32P0nI.js} +1 -1
  9. package/dist/{globe-view-ChuX60M5.js → globe-view-B_X6obse.js} +6 -6
  10. package/dist/{hillshade-DD8WFrvf.js → hillshade-9VS_t-Ks.js} +79 -67
  11. package/dist/hillshade.d.ts +7 -0
  12. package/dist/html-data.d.ts +1 -1
  13. package/dist/{index-CvrH6mbS.js → index-BR_5FIN1.js} +3 -3
  14. package/dist/{index-DIzzRLKr.js → index-Bct9VWxi.js} +1 -1
  15. package/dist/index-CbFw6P0B.js +4449 -0
  16. package/dist/{index-C2CKUsom.js → index-D3P6Cfbr.js} +38 -38
  17. package/dist/{index-CMKrghNb.js → index-D40H3fpl.js} +54 -54
  18. package/dist/{index-CgVFHEdM.js → index-Di1LK4JT.js} +3 -3
  19. package/dist/{index-Bs69fn8a.js → index-IDWDfgTC.js} +33429 -30673
  20. package/dist/{index-Dvwr1Y3o.js → index-JewSBOjJ.js} +49 -49
  21. package/dist/{index-CdAf0bLj.js → index-eSuCj2Bn.js} +42 -42
  22. package/dist/layer-registry.d.ts +1 -0
  23. package/dist/{lerc-mAijS40k.js → lerc-C42a0ISa.js} +1 -1
  24. package/dist/onlymap.standalone.js +60636 -51605
  25. package/dist/onlymapjs.js +47 -47
  26. package/dist/plane-gpu/gpu-layer-types.d.ts +35 -0
  27. package/dist/plane-gpu/plane-basemap.d.ts +10461 -0
  28. package/dist/plane-gpu/plane-gpu-view.d.ts +90 -0
  29. package/dist/plane-gpu/projection-params.d.ts +47 -0
  30. package/dist/plane-layers.d.ts +2 -0
  31. package/dist/plane-seam.d.ts +48 -0
  32. package/dist/plane-tileset.d.ts +23 -2
  33. package/dist/plane-vector/build.d.ts +107 -0
  34. package/dist/plane-vector/client.d.ts +18 -0
  35. package/dist/plane-vector/cut-ends-extension.d.ts +30 -0
  36. package/dist/plane-vector/plane-mvt-layer.d.ts +10412 -0
  37. package/dist/plane-vector/tile-cut.d.ts +45 -0
  38. package/dist/plane-vector/worker.d.ts +15 -0
  39. package/dist/plane-warp.d.ts +12 -1
  40. package/dist/{post-process-effect-rwFDi8di.js → post-process-effect-ktcgAjmv.js} +11 -11
  41. package/dist/programmatic.d.ts +6 -0
  42. package/dist/projection.d.ts +51 -0
  43. package/dist/{raster-CXIqf83L.js → raster-CIxg_M_1.js} +3 -3
  44. package/dist/{raster-pipeline-CfSg2Re7.js → raster-pipeline-BODPC9vJ.js} +1 -1
  45. package/dist/react/om-map.d.ts +4 -0
  46. package/dist/react.js +259 -252
  47. package/dist/runtime-core.d.ts +84 -2
  48. package/dist/{text-on-path-B08PekFz.js → text-on-path-LZL6NfwZ.js} +74 -66
  49. package/dist/version.d.ts +1 -1
  50. package/dist/{zarr-CUn2udOc.js → zarr-D19fNIZt.js} +2 -2
  51. package/docs/cartograph.md +2 -2
  52. package/docs/cartography.md +59 -3
  53. package/docs/testing.md +2 -1
  54. package/llms.txt +2 -2
  55. package/onlymapjs.attributes.json +1 -0
  56. package/onlymapjs.html-data.json +15 -1
  57. package/package.json +3 -2
  58. package/skills/onlymapjs/SKILL.md +2 -2
  59. package/skills/onlymapjs/references/syntax.md +7 -6
  60. package/dist/index-BHRpKnGi.js +0 -4883
@@ -1,4 +1,4 @@
1
- import { ae as i, af as m, ag as p } from "./index-Bs69fn8a.js";
1
+ import { ae as i, af as m, ag as p } from "./index-IDWDfgTC.js";
2
2
  function y(e) {
3
3
  if (e == null) return !0;
4
4
  const t = e, o = t.id?.code;
@@ -1,4 +1,4 @@
1
- import { d as L, j as x, ah as A, ai as E, aj as d, ak as u, al as h, am as z, p as V, W as Z, G as D } from "./index-Bs69fn8a.js";
1
+ import { d as L, j as x, am as A, an as E, ao as d, ap as h, aq as u, ar as z, p as V, W as Z, G as D } from "./index-IDWDfgTC.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;
@@ -41,9 +41,9 @@ class T extends A {
41
41
  }
42
42
  applyConstraints(t) {
43
43
  const { longitude: a, latitude: o, maxBounds: e } = t;
44
- if (t.zoom = this._constrainZoom(t.zoom, t), (a < -180 || a > 180) && (t.longitude = E(a + 180, 360) - 180), t.latitude = d(o, -u, u), e && (t.longitude = d(t.longitude, e[0][0], e[1][0]), t.latitude = d(t.latitude, e[0][1], e[1][1])), e) {
45
- const s = t.zoom - h(o), n = e[1][0] - e[0][0], i = e[1][1] - e[0][1];
46
- if (i > 0 && i < u * 2) {
44
+ if (t.zoom = this._constrainZoom(t.zoom, t), (a < -180 || a > 180) && (t.longitude = E(a + 180, 360) - 180), t.latitude = d(o, -h, h), e && (t.longitude = d(t.longitude, e[0][0], e[1][0]), t.latitude = d(t.latitude, e[0][1], e[1][1])), e) {
45
+ const s = t.zoom - u(o), n = e[1][0] - e[0][0], i = e[1][1] - e[0][1];
46
+ if (i > 0 && i < h * 2) {
47
47
  const r = Math.min(S(t.height, s), i) / 2;
48
48
  t.latitude = d(t.latitude, e[0][1] + r, e[1][1] - r);
49
49
  }
@@ -52,13 +52,13 @@ class T extends A {
52
52
  t.longitude = d(t.longitude, e[0][0] + r, e[1][0] - r);
53
53
  }
54
54
  }
55
- return t.latitude !== o && (t.zoom += h(t.latitude) - h(o)), t;
55
+ return t.latitude !== o && (t.zoom += u(t.latitude) - u(o)), t;
56
56
  }
57
57
  _constrainZoom(t, a) {
58
58
  a || (a = this.getViewportProps());
59
59
  const { latitude: o, maxZoom: e, maxBounds: s } = a;
60
60
  let { minZoom: n } = a;
61
- const i = h(0), r = h(o) - i;
61
+ const i = u(0), r = u(o) - i;
62
62
  if (s !== null && a.width > 0 && a.height > 0) {
63
63
  const g = s[0][1], M = s[1][1], _ = Math.sign(g) === Math.sign(M) ? Math.min(Math.abs(g), Math.abs(M)) : 0, P = w(s[1][0] - s[0][0]) * Math.cos(_ * c), f = w(s[1][1] - s[0][1]);
64
64
  P > 0 && (n = Math.max(n, Math.log2(a.width / P) + i)), f > 0 && (n = Math.max(n, Math.log2(a.height / f) + i)), n > e && (n = e);
@@ -1,44 +1,44 @@
1
- import { c as F, a3 as M, a4 as T, a5 as H, a6 as $, a7 as B, a8 as x, a9 as E, aa as _, ab as D, ac as O } from "./index-Bs69fn8a.js";
2
- import { N as C, c as N } from "./hillshade-apron-Bem3DWyJ.js";
3
- import { p as P, h as R, m as Z, a as U } from "./hillshade-shader-DI2uLSNU.js";
1
+ import { c as w, a3 as F, a4 as M, a5 as B, a6 as H, a7 as $, a8 as x, a9 as E, aa as _, ab as D, ac as O } from "./index-IDWDfgTC.js";
2
+ import { N as P, c as C } from "./hillshade-apron-Bem3DWyJ.js";
3
+ import { p as N, h as R, m as Z, a as U } from "./hillshade-shader-DI2uLSNU.js";
4
4
  const A = 64, g = /* @__PURE__ */ new Map();
5
5
  function S(t) {
6
6
  const e = g.get(t);
7
7
  if (e) return e;
8
8
  const a = D(t);
9
9
  if (g.set(t, a), g.size > A) {
10
- const s = g.keys().next().value;
11
- s !== void 0 && g.delete(s);
10
+ const r = g.keys().next().value;
11
+ r !== void 0 && g.delete(r);
12
12
  }
13
13
  return a;
14
14
  }
15
- function z(t, e, a, s) {
16
- return t.replace("{z}", String(s)).replace("{x}", String(e)).replace("{y}", String(a));
15
+ function z(t, e, a, r) {
16
+ return t.replace("{z}", String(r)).replace("{x}", String(e)).replace("{y}", String(a));
17
17
  }
18
- async function j(t, e, a) {
19
- const s = await S(z(t, a.x, a.y, a.z));
20
- if (!s) return null;
21
- const u = (n) => ({
22
- width: n.width,
23
- height: n.height,
24
- at: (c, r) => {
25
- const h = (r * n.width + c) * 4;
26
- return O(e, n.data[h], n.data[h + 1], n.data[h + 2]);
18
+ async function I(t, e, a) {
19
+ const r = await S(z(t, a.x, a.y, a.z));
20
+ if (!r) return null;
21
+ const c = (i) => ({
22
+ width: i.width,
23
+ height: i.height,
24
+ at: (u, s) => {
25
+ const h = (s * i.width + u) * 4;
26
+ return O(e, i.data[h], i.data[h + 1], i.data[h + 2]);
27
27
  }
28
28
  }), d = 2 ** a.z, p = /* @__PURE__ */ new Map();
29
29
  return await Promise.all(
30
- C.map(async ({ dx: n, dy: c }) => {
31
- const r = a.y + c;
32
- if (r < 0 || r >= d) return;
33
- const h = ((a.x + n) % d + d) % d;
34
- p.set(`${n},${c}`, await S(z(t, h, r, a.z)));
30
+ P.map(async ({ dx: i, dy: u }) => {
31
+ const s = a.y + u;
32
+ if (s < 0 || s >= d) return;
33
+ const h = ((a.x + i) % d + d) % d;
34
+ p.set(`${i},${u}`, await S(z(t, h, s, a.z)));
35
35
  })
36
- ), N(u(s), (n, c) => {
37
- const r = p.get(`${n},${c}`);
38
- return r ? u(r) : null;
36
+ ), C(c(r), (i, u) => {
37
+ const s = p.get(`${i},${u}`);
38
+ return s ? c(s) : null;
39
39
  });
40
40
  }
41
- const I = {
41
+ const j = {
42
42
  blendColorSrcFactor: "dst",
43
43
  blendColorDstFactor: "zero",
44
44
  blendAlphaSrcFactor: "zero",
@@ -51,16 +51,16 @@ class L extends _ {
51
51
  return { ...e, modules: [...e.modules, U] };
52
52
  }
53
53
  draw(e) {
54
- const a = this.props, s = { ...a.hillshadeUniforms, hillshadeHeights: a.image };
55
- for (const u of this.getModels()) u.shaderInputs.setProps({ hillshade: s });
54
+ const a = this.props, r = { ...a.hillshadeUniforms, hillshadeHeights: a.image };
55
+ for (const c of this.getModels()) c.shaderInputs.setProps({ hillshade: r });
56
56
  super.draw(e);
57
57
  }
58
58
  }
59
59
  class W extends L {
60
60
  static layerName = "WarpedHillshadeBitmapLayer";
61
61
  _createMesh() {
62
- const e = this.props, a = e._planeFrame, s = e._planeBounds;
63
- return !a || !s ? super._createMesh() : E(s, a, e._subdivision ?? 1);
62
+ const e = this.props, a = e._planeFrame, r = e._planeBounds;
63
+ return !a || !r ? super._createMesh() : E(r, a, e._subdivision ?? 1);
64
64
  }
65
65
  }
66
66
  function k(t, e) {
@@ -69,13 +69,13 @@ function k(t, e) {
69
69
  if (t in x) return x[t];
70
70
  try {
71
71
  const a = JSON.parse(t);
72
- if ([a?.rScaler, a?.gScaler, a?.bScaler, a?.offset].every((s) => typeof s == "number" && Number.isFinite(s))) return a;
72
+ if ([a?.rScaler, a?.gScaler, a?.bScaler, a?.offset].every((r) => typeof r == "number" && Number.isFinite(r))) return a;
73
73
  } catch {
74
74
  }
75
75
  return console.warn(`[onlymapjs] HillshadeLayer: decoder="${t}" is not "terrarium", "mapbox-rgb" or {rScaler,gScaler,bScaler,offset} JSON — using terrarium.`), e;
76
76
  }
77
77
  function J(t) {
78
- const e = B(t.src);
78
+ const e = $(t.src);
79
79
  return e ? e.requiresKey ? (console.warn(`[onlymapjs] HillshadeLayer: src="${t.src}" needs a ${e.requiresKey} key, which this layer does not plumb — use a keyless source such as "terrarium".`), null) : {
80
80
  template: e.elevationData,
81
81
  decoder: typeof e.decoder == "string" ? x[e.decoder] : e.decoder,
@@ -85,7 +85,7 @@ function J(t) {
85
85
  function q(t, e) {
86
86
  return !Number.isFinite(t) || !Number.isFinite(e) || e <= 0 ? 0 : Math.max(0, Math.round(Math.log2(Math.max(1, t / e))));
87
87
  }
88
- class Y extends F {
88
+ class Y extends w {
89
89
  static layerName = "OmHillshadeLayer";
90
90
  static defaultProps = {
91
91
  src: { type: "string", value: "terrarium" },
@@ -100,10 +100,20 @@ class Y extends F {
100
100
  _planeFrame: { type: "object", value: null, optional: !0, compare: !1 },
101
101
  sunDatum: { type: "string", value: "sheet" }
102
102
  };
103
+ /**
104
+ * The plane tileset for this layer's tiles: one binding for the layer's
105
+ * life, re-pointed when the plane changes, because deck keeps the tile
106
+ * layer's first tileset whatever class a later render passes
107
+ * (plane-tileset.ts). Kept in state, which outlives each render's instance.
108
+ */
109
+ planeTileset(e) {
110
+ const a = this.state;
111
+ return a.planeTileset = F.bind(a.planeTileset, e), a.planeTileset.TilesetClass;
112
+ }
103
113
  renderLayers() {
104
114
  const e = J(this.props);
105
115
  if (!e) return null;
106
- const { azimuths: a, weights: s } = P(this.props.sunAzimuth, this.props.sunWeight), u = this.props.blend === "multiply", d = this.context.device, p = d?.canvasContext?.cssToDeviceRatio?.() ?? 1, n = typeof devicePixelRatio == "number" && devicePixelRatio > 0 ? devicePixelRatio : 1, c = this.state.textures, r = this.props._planeFrame ?? null, h = Math.max(1, p / n), v = this.props.sunDatum === "geographic";
116
+ const { azimuths: a, weights: r } = N(this.props.sunAzimuth, this.props.sunWeight), c = this.props.blend === "multiply", d = this.context.device, p = d?.canvasContext?.cssToDeviceRatio?.() ?? 1, i = typeof devicePixelRatio == "number" && devicePixelRatio > 0 ? devicePixelRatio : 1, u = this.state.textures, s = this.props._planeFrame ?? null, h = Math.max(1, p / i), v = this.props.sunDatum === "geographic";
107
117
  return new M(
108
118
  this.getSubLayerProps({ id: "tiles" }),
109
119
  {
@@ -118,8 +128,8 @@ class Y extends F {
118
128
  // `renderSubLayers` was never called — no error anywhere. The tile
119
129
  // PYRAMID's zoom range is a different number entirely, and the plane
120
130
  // tileset applies it to the geographic zoom it derives.
121
- ...r ? { TilesetClass: $(r), minZoom: -1 / 0 } : {},
122
- zoomOffset: (this.props.zoomOffset ?? 0) + q(p, n),
131
+ ...s ? { TilesetClass: this.planeTileset(s), minZoom: -1 / 0 } : {},
132
+ zoomOffset: (this.props.zoomOffset ?? 0) + q(p, i),
123
133
  // deck compares FUNCTION props by their update triggers, never by
124
134
  // identity — inline closures would otherwise invalidate everything on
125
135
  // every render. So anything a closure captures is invisible to deck
@@ -133,60 +143,62 @@ class Y extends F {
133
143
  // all, because every knob below is a uniform.
134
144
  updateTriggers: {
135
145
  getTileData: [e.template, JSON.stringify(e.decoder)],
136
- renderSubLayers: [a.join(","), s.join(","), this.props.sunElevation, this.props.zFactor, u, v, r?.projection.code ?? ""]
146
+ // The plane itself, not its code: every tile's mesh is warped for
147
+ // one plane, and a live switch must rebuild them (plane-tileset.ts).
148
+ renderSubLayers: [a.join(","), r.join(","), this.props.sunElevation, this.props.zFactor, c, v, s]
137
149
  },
138
- getTileData: async (i) => {
139
- const o = await j(e.template, e.decoder, i.index);
140
- if (!o || !d) return null;
141
- const l = `${i.index.z}/${i.index.x}/${i.index.y}`;
142
- c.get(l)?.destroy();
150
+ getTileData: async (o) => {
151
+ const n = await I(e.template, e.decoder, o.index);
152
+ if (!n || !d) return null;
153
+ const l = `${o.index.z}/${o.index.x}/${o.index.y}`;
154
+ u.get(l)?.destroy();
143
155
  const m = d.createTexture({
144
- data: o.data,
156
+ data: n.data,
145
157
  format: "r32float",
146
- width: o.width + 2,
147
- height: o.height + 2,
158
+ width: n.width + 2,
159
+ height: n.height + 2,
148
160
  // NEAREST, because linear filtering of a float texture needs
149
161
  // OES_texture_float_linear, which is not universal (the same
150
162
  // constraint raster-pipeline.ts documents).
151
163
  sampler: { minFilter: "nearest", magFilter: "nearest", addressModeU: "clamp-to-edge", addressModeV: "clamp-to-edge" }
152
164
  });
153
- return c.set(l, m), { texture: m, width: o.width, height: o.height, key: l };
165
+ return u.set(l, m), { texture: m, width: n.width, height: n.height, key: l };
154
166
  },
155
- onTileUnload: (i) => {
156
- const o = `${i.index.z}/${i.index.x}/${i.index.y}`;
157
- c.get(o)?.destroy(), c.delete(o);
167
+ onTileUnload: (o) => {
168
+ const n = `${o.index.z}/${o.index.x}/${o.index.y}`;
169
+ u.get(n)?.destroy(), u.delete(n);
158
170
  },
159
- renderSubLayers: (i) => {
160
- const o = i.data;
161
- if (!o) return null;
162
- const l = i.tile, [[m, f], [b, y]] = r && l.lngLatBbox ? [[l.lngLatBbox.west, l.lngLatBbox.south], [l.lngLatBbox.east, l.lngLatBbox.north]] : l.boundingBox, w = r ? W : L;
163
- return new w(i, {
164
- id: `${i.id}-bitmap`,
171
+ renderSubLayers: (o) => {
172
+ const n = o.data;
173
+ if (!n) return null;
174
+ const l = o.tile, [[m, f], [b, y]] = s && l.lngLatBbox ? [[l.lngLatBbox.west, l.lngLatBbox.south], [l.lngLatBbox.east, l.lngLatBbox.north]] : l.boundingBox, T = s ? W : L;
175
+ return new T(o, {
176
+ id: `${o.id}-bitmap`,
165
177
  data: void 0,
166
- image: o.texture,
178
+ image: n.texture,
167
179
  bounds: [m, f, b, y],
168
- _planeFrame: r,
169
- _planeBounds: r ? { west: m, south: f, east: b, north: y } : void 0,
170
- _subdivision: r ? H(l.index.z, h) : 1,
171
- multiply: u,
172
- parameters: u ? I : {},
180
+ _planeFrame: s,
181
+ _planeBounds: s ? { west: m, south: f, east: b, north: y } : void 0,
182
+ _subdivision: s ? H(l.index.z, h) : 1,
183
+ multiply: c,
184
+ parameters: c ? j : {},
173
185
  hillshadeUniforms: R({
174
- width: o.width,
175
- height: o.height,
176
- azimuthOffset: r && !v ? T(r, [(m + b) / 2, (y + f) / 2]) : 0,
186
+ width: n.width,
187
+ height: n.height,
188
+ azimuthOffset: s && !v ? B(s, [(m + b) / 2, (y + f) / 2]) : 0,
177
189
  // Web Mercator: one scale for both axes, stated at the equator
178
190
  // and given its cos-phi falloff per fragment by the shader.
179
- ...Z(l.index.z, o.width, o.height),
191
+ ...Z(l.index.z, n.width, n.height),
180
192
  north: y,
181
193
  south: f,
182
194
  azimuths: a,
183
- weights: s,
195
+ weights: r,
184
196
  sunElevation: this.props.sunElevation ?? 45,
185
197
  zFactor: this.props.zFactor ?? 1,
186
198
  // This layer's texture IS the heightfield, so there is no
187
199
  // sampled colour to multiply into — a multiply-blended tile emits
188
200
  // the shade and lets the GL blend put it in the framebuffer.
189
- composite: u ? "framebuffer" : !1
201
+ composite: c ? "framebuffer" : !1
190
202
  })
191
203
  });
192
204
  }
@@ -203,7 +215,7 @@ class Y extends F {
203
215
  }
204
216
  export {
205
217
  Y as OmHillshadeLayer,
206
- j as buildPaddedHeights,
218
+ I as buildPaddedHeights,
207
219
  q as captureZoomOffset,
208
220
  J as resolveHillshadeSource
209
221
  };
@@ -157,6 +157,13 @@ export declare class OmHillshadeLayer extends CompositeLayer<OmHillshadeLayerPro
157
157
  value: string;
158
158
  };
159
159
  };
160
+ /**
161
+ * The plane tileset for this layer's tiles: one binding for the layer's
162
+ * life, re-pointed when the plane changes, because deck keeps the tile
163
+ * layer's first tileset whatever class a later render passes
164
+ * (plane-tileset.ts). Kept in state, which outlives each render's instance.
165
+ */
166
+ private planeTileset;
160
167
  renderLayers(): Layer | null;
161
168
  initializeState(): void;
162
169
  finalizeState(): void;
@@ -15,7 +15,7 @@ interface TagData {
15
15
  }[];
16
16
  }
17
17
  /** Hand-authored action list — validated against hasAction() in html-data.test.ts. */
18
- export declare const BUILTIN_ACTIONS: readonly ["toggle-layer", "set-pickable", "set-layer-attribute", "expand-cluster", "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-projection", "set-effect", "set-lighting", "set-terrain", "set-clip-box", "clip-box-edit", "set-widgets-visible", "undo", "redo", "warm-tiles"];
18
+ export declare const BUILTIN_ACTIONS: readonly ["toggle-layer", "set-pickable", "set-layer-attribute", "expand-cluster", "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-projection", "set-crs", "set-effect", "set-lighting", "set-terrain", "set-clip-box", "clip-box-edit", "set-widgets-visible", "undo", "redo", "warm-tiles"];
19
19
  /** Hand-authored widget types — validated against the widget registry in html-data.test.ts.
20
20
  * Declared in `widget-types.ts` so the runtime validator can use it without
21
21
  * pulling this 42 KB table into the bundle. */
@@ -1,6 +1,6 @@
1
- import { an as j, ao as S, ap as A, aq as M, ar as L } from "./index-Bs69fn8a.js";
2
- import { as as H, at as V, au as X, av as K } from "./index-Bs69fn8a.js";
3
- import { P as h } from "./post-process-effect-rwFDi8di.js";
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";
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,4 +1,4 @@
1
- import { aB as B } from "./index-Bs69fn8a.js";
1
+ import { aH as B } from "./index-IDWDfgTC.js";
2
2
  const V = /* @__PURE__ */ new Set([
3
3
  "GeoJsonLayer",
4
4
  "PolygonLayer",