@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.
- package/CHANGELOG.md +24 -0
- package/README.md +1 -1
- package/dist/{basemap-BK25o5OE.js → basemap-BxqFTBzX.js} +2 -2
- package/dist/build-D4iI8O9b.js +208 -0
- package/dist/cartograph.js +43 -41
- package/dist/cartograph.standalone.js +3 -1
- package/dist/client-BYFePLZV.js +6878 -0
- package/dist/{geoparquet-CLydPm2f.js → geoparquet-BV32P0nI.js} +1 -1
- package/dist/{globe-view-ChuX60M5.js → globe-view-B_X6obse.js} +6 -6
- package/dist/{hillshade-DD8WFrvf.js → hillshade-9VS_t-Ks.js} +79 -67
- package/dist/hillshade.d.ts +7 -0
- package/dist/html-data.d.ts +1 -1
- package/dist/{index-CvrH6mbS.js → index-BR_5FIN1.js} +3 -3
- package/dist/{index-DIzzRLKr.js → index-Bct9VWxi.js} +1 -1
- package/dist/index-CbFw6P0B.js +4449 -0
- package/dist/{index-C2CKUsom.js → index-D3P6Cfbr.js} +38 -38
- package/dist/{index-CMKrghNb.js → index-D40H3fpl.js} +54 -54
- package/dist/{index-CgVFHEdM.js → index-Di1LK4JT.js} +3 -3
- package/dist/{index-Bs69fn8a.js → index-IDWDfgTC.js} +33429 -30673
- package/dist/{index-Dvwr1Y3o.js → index-JewSBOjJ.js} +49 -49
- package/dist/{index-CdAf0bLj.js → index-eSuCj2Bn.js} +42 -42
- package/dist/layer-registry.d.ts +1 -0
- package/dist/{lerc-mAijS40k.js → lerc-C42a0ISa.js} +1 -1
- package/dist/onlymap.standalone.js +60636 -51605
- package/dist/onlymapjs.js +47 -47
- package/dist/plane-gpu/gpu-layer-types.d.ts +35 -0
- package/dist/plane-gpu/plane-basemap.d.ts +10461 -0
- package/dist/plane-gpu/plane-gpu-view.d.ts +90 -0
- package/dist/plane-gpu/projection-params.d.ts +47 -0
- package/dist/plane-layers.d.ts +2 -0
- package/dist/plane-seam.d.ts +48 -0
- package/dist/plane-tileset.d.ts +23 -2
- package/dist/plane-vector/build.d.ts +107 -0
- package/dist/plane-vector/client.d.ts +18 -0
- package/dist/plane-vector/cut-ends-extension.d.ts +30 -0
- package/dist/plane-vector/plane-mvt-layer.d.ts +10412 -0
- package/dist/plane-vector/tile-cut.d.ts +45 -0
- package/dist/plane-vector/worker.d.ts +15 -0
- package/dist/plane-warp.d.ts +12 -1
- package/dist/{post-process-effect-rwFDi8di.js → post-process-effect-ktcgAjmv.js} +11 -11
- package/dist/programmatic.d.ts +6 -0
- package/dist/projection.d.ts +51 -0
- package/dist/{raster-CXIqf83L.js → raster-CIxg_M_1.js} +3 -3
- package/dist/{raster-pipeline-CfSg2Re7.js → raster-pipeline-BODPC9vJ.js} +1 -1
- package/dist/react/om-map.d.ts +4 -0
- package/dist/react.js +259 -252
- package/dist/runtime-core.d.ts +84 -2
- package/dist/{text-on-path-B08PekFz.js → text-on-path-LZL6NfwZ.js} +74 -66
- package/dist/version.d.ts +1 -1
- package/dist/{zarr-CUn2udOc.js → zarr-D19fNIZt.js} +2 -2
- package/docs/cartograph.md +2 -2
- package/docs/cartography.md +59 -3
- package/docs/testing.md +2 -1
- package/llms.txt +2 -2
- package/onlymapjs.attributes.json +1 -0
- package/onlymapjs.html-data.json +15 -1
- package/package.json +3 -2
- package/skills/onlymapjs/SKILL.md +2 -2
- package/skills/onlymapjs/references/syntax.md +7 -6
- package/dist/index-BHRpKnGi.js +0 -4883
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as L, j as x,
|
|
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, -
|
|
45
|
-
const s = t.zoom -
|
|
46
|
-
if (i > 0 && i <
|
|
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 +=
|
|
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 =
|
|
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
|
|
2
|
-
import { N as
|
|
3
|
-
import { p as
|
|
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
|
|
11
|
-
|
|
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,
|
|
16
|
-
return t.replace("{z}", String(
|
|
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
|
|
19
|
-
const
|
|
20
|
-
if (!
|
|
21
|
-
const
|
|
22
|
-
width:
|
|
23
|
-
height:
|
|
24
|
-
at: (
|
|
25
|
-
const h = (
|
|
26
|
-
return O(e,
|
|
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
|
-
|
|
31
|
-
const
|
|
32
|
-
if (
|
|
33
|
-
const h = ((a.x +
|
|
34
|
-
p.set(`${
|
|
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
|
-
),
|
|
37
|
-
const
|
|
38
|
-
return
|
|
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
|
|
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,
|
|
55
|
-
for (const
|
|
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,
|
|
63
|
-
return !a || !
|
|
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((
|
|
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 =
|
|
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
|
|
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:
|
|
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
|
-
...
|
|
122
|
-
zoomOffset: (this.props.zoomOffset ?? 0) + q(p,
|
|
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
|
-
|
|
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 (
|
|
139
|
-
const
|
|
140
|
-
if (!
|
|
141
|
-
const l = `${
|
|
142
|
-
|
|
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:
|
|
156
|
+
data: n.data,
|
|
145
157
|
format: "r32float",
|
|
146
|
-
width:
|
|
147
|
-
height:
|
|
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
|
|
165
|
+
return u.set(l, m), { texture: m, width: n.width, height: n.height, key: l };
|
|
154
166
|
},
|
|
155
|
-
onTileUnload: (
|
|
156
|
-
const
|
|
157
|
-
|
|
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: (
|
|
160
|
-
const
|
|
161
|
-
if (!
|
|
162
|
-
const l =
|
|
163
|
-
return new
|
|
164
|
-
id: `${
|
|
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:
|
|
178
|
+
image: n.texture,
|
|
167
179
|
bounds: [m, f, b, y],
|
|
168
|
-
_planeFrame:
|
|
169
|
-
_planeBounds:
|
|
170
|
-
_subdivision:
|
|
171
|
-
multiply:
|
|
172
|
-
parameters:
|
|
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:
|
|
175
|
-
height:
|
|
176
|
-
azimuthOffset:
|
|
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,
|
|
191
|
+
...Z(l.index.z, n.width, n.height),
|
|
180
192
|
north: y,
|
|
181
193
|
south: f,
|
|
182
194
|
azimuths: a,
|
|
183
|
-
weights:
|
|
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:
|
|
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
|
-
|
|
218
|
+
I as buildPaddedHeights,
|
|
207
219
|
q as captureZoomOffset,
|
|
208
220
|
J as resolveHillshadeSource
|
|
209
221
|
};
|
package/dist/hillshade.d.ts
CHANGED
|
@@ -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;
|
package/dist/html-data.d.ts
CHANGED
|
@@ -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 {
|
|
2
|
-
import {
|
|
3
|
-
import { P as h } from "./post-process-effect-
|
|
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); }
|