@nika-js/onlymap 0.13.1 → 0.13.3
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 +32 -0
- package/README.md +3 -2
- package/bin/dem-tiles.mjs +270 -0
- package/bin/onlymapjs.mjs +138 -34
- package/dist/{basemap-zG1-omic.js → basemap-5NHR6Gio.js} +2 -2
- package/dist/{build-Bbi4SleC.js → build-DJjheWZ2.js} +10 -10
- package/dist/camera-altitude.d.ts +29 -0
- package/dist/{client-CIH6ToMI.js → client-0mQmDog8.js} +2 -2
- package/dist/color.d.ts +15 -0
- package/dist/credit-chrome.d.ts +11 -0
- package/dist/data-layer.d.ts +7 -15
- package/dist/elements/om-map.d.ts +41 -1
- package/dist/geodesy.d.ts +2 -0
- package/dist/{geoparquet-CyWsYt9S.js → geoparquet-B_nO2OyP.js} +3 -3
- package/dist/{globe-view-Xelgj_KW.js → globe-view-BFUa9ksE.js} +1 -1
- package/dist/ground-controller.d.ts +39 -0
- package/dist/{hillshade-Zbg50lm6.js → hillshade-B_CxPhtA.js} +61 -64
- package/dist/{hillshade-shader-DI2uLSNU.js → hillshade-shader-r7GxxjXj.js} +12 -11
- package/dist/hillshade-shader.d.ts +2 -2
- package/dist/hillshade.d.ts +0 -29
- package/dist/{index-JFuN4DCn.js → index-A1FYw2dy.js} +1 -1
- package/dist/{index-BbVnkgld.js → index-BvNxS6dM.js} +38 -38
- package/dist/{index-ClAPAqcm.js → index-CObPGkze.js} +38 -38
- package/dist/{index-BL_YCKiW.js → index-CU7RnKnO.js} +62 -62
- package/dist/{index-6eeSlSqN.js → index-CgIuV5Oh.js} +3 -3
- package/dist/{index-DnCmvLuC.js → index-ChmxbIdj.js} +61 -61
- package/dist/{index-BwtXeP_F.js → index-DT5d7kFO.js} +1 -1
- package/dist/{index-CpFNIkOO.js → index-DWijIMti.js} +22217 -20712
- package/dist/{index-BtRsa5oc.js → index-YMu_yLXO.js} +18 -18
- package/dist/index.d.ts +1 -1
- package/dist/{lerc-C3SKC6CU.js → lerc-Bl4vym9y.js} +1 -1
- package/dist/onlymap.standalone.js +39073 -37485
- package/dist/onlymapjs.js +49 -49
- package/dist/plane-gpu/plane-basemap.d.ts +0 -14
- package/dist/{post-process-effect-C3P9VwC9.js → post-process-effect-gFGVlC77.js} +1 -1
- package/dist/programmatic.d.ts +3 -1
- package/dist/{raster-BgCnz9-Z.js → raster-1ShXyF12.js} +4 -4
- package/dist/{raster-pipeline-CKdpKgFo.js → raster-pipeline-BMS54TX2.js} +11 -11
- package/dist/runtime-core.d.ts +147 -0
- package/dist/sea-surface.d.ts +18 -0
- package/dist/terrain-derive.d.ts +39 -0
- package/dist/terrain-ground.d.ts +31 -0
- package/dist/terrain-heightfield.d.ts +17 -9
- package/dist/terrain-inspect-Cndlmxig.js +96 -0
- package/dist/terrain-inspect.d.ts +34 -0
- package/dist/terrain-nodata.d.ts +50 -0
- package/dist/terrain-priority.d.ts +92 -0
- package/dist/terrain-sample.d.ts +6 -0
- package/dist/terrain-skirt.d.ts +6140 -0
- package/dist/terrain-texture-mask.d.ts +40 -0
- package/dist/terrain-tint.d.ts +61 -0
- package/dist/terrain.d.ts +132 -8
- package/dist/{text-on-path-BpVLX8Yt.js → text-on-path-QInco4aP.js} +1 -1
- package/dist/tile-url.d.ts +94 -0
- package/dist/version.d.ts +1 -1
- package/dist/viewport-filter.d.ts +9 -0
- package/dist/volumetrics.d.ts +11 -0
- package/dist/{zarr-Cur_pzNa.js → zarr-CYD8fyBe.js} +2 -2
- package/docs/cartograph.md +2 -2
- package/llms.txt +2 -2
- package/onlymapjs.html-data.json +163 -3
- package/package.json +2 -1
- package/skills/onlymapjs/SKILL.md +6 -2
- package/skills/onlymapjs/references/syntax.md +12 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { g as
|
|
4
|
-
async function
|
|
1
|
+
import { b1 as E, b2 as x, b3 as R, b4 as N, b5 as h, b6 as b, b7 as W, b8 as O, b9 as I, ba as S, bb as B, bc as _, bd as z, be as k, bf as P, bg as $, bh as C, bi as F, bj as v, bk as D, bl as w, bm as M } from "./index-DWijIMti.js";
|
|
2
|
+
import { bn as Pe, bo as $e, bp as Ce, bq as ve, br as De, bs as Me, bt as Ue, bu as je, bv as Je, bw as qe, bx as Ge, by as He, bz as Ve, bA as Ke, bB as Qe, bC as Xe, bD as Ye, bE as Ze, bF as et, bG as tt, bH as nt, bI as rt, bJ as at, bK as st, bL as ot } from "./index-DWijIMti.js";
|
|
3
|
+
import { g as U, i as j } from "./table-accessors-CYWTzpQI.js";
|
|
4
|
+
async function J(t, e, n = {}, r = {}) {
|
|
5
5
|
const a = E(t), s = x.getWorkerFarm(n), { source: o } = n, c = { name: a, source: o };
|
|
6
6
|
o || (c.url = R(t, n));
|
|
7
7
|
const i = s.getWorkerPool(c), u = n.jobName || t.name, d = await i.startJob(
|
|
8
8
|
u,
|
|
9
9
|
// eslint-disable-next-line
|
|
10
|
-
|
|
11
|
-
), y =
|
|
10
|
+
q.bind(null, r)
|
|
11
|
+
), y = N(n);
|
|
12
12
|
return d.postMessage("process", { input: e, options: y }), (await d.result).result;
|
|
13
13
|
}
|
|
14
|
-
async function
|
|
14
|
+
async function q(t, e, n, r) {
|
|
15
15
|
switch (n) {
|
|
16
16
|
case "done":
|
|
17
17
|
e.done(r);
|
|
@@ -37,7 +37,7 @@ async function J(t, e, n, r) {
|
|
|
37
37
|
console.warn(`process-on-worker: unknown message ${n}`);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function G(t, e) {
|
|
41
41
|
if (!x.isSupported())
|
|
42
42
|
return !1;
|
|
43
43
|
const n = e?._nodeWorkers ?? e?.core?._nodeWorkers, r = e?.worker ?? e?.core?.worker;
|
|
@@ -48,12 +48,12 @@ async function* me(t, e = {}) {
|
|
|
48
48
|
for await (const r of t)
|
|
49
49
|
yield typeof r == "string" ? r : n.decode(r, { stream: !0 });
|
|
50
50
|
}
|
|
51
|
-
async function*
|
|
51
|
+
async function* be(t) {
|
|
52
52
|
const e = new TextEncoder();
|
|
53
53
|
for await (const n of t)
|
|
54
54
|
yield typeof n == "string" ? e.encode(n).buffer : n;
|
|
55
55
|
}
|
|
56
|
-
async function*
|
|
56
|
+
async function* we(t) {
|
|
57
57
|
let e = "";
|
|
58
58
|
for await (const n of t) {
|
|
59
59
|
e += n;
|
|
@@ -71,13 +71,13 @@ async function* pe(t) {
|
|
|
71
71
|
for await (const n of t)
|
|
72
72
|
yield { counter: e, line: n }, e++;
|
|
73
73
|
}
|
|
74
|
-
const
|
|
74
|
+
const H = "4.4.3", ge = {
|
|
75
75
|
dataType: null,
|
|
76
76
|
batchType: null,
|
|
77
77
|
name: "JSON",
|
|
78
78
|
id: "json",
|
|
79
79
|
module: "json",
|
|
80
|
-
version:
|
|
80
|
+
version: H,
|
|
81
81
|
extensions: ["json", "geojson"],
|
|
82
82
|
mimeTypes: ["application/json"],
|
|
83
83
|
category: "json",
|
|
@@ -89,7 +89,7 @@ const G = "4.4.3", ge = {
|
|
|
89
89
|
function p(t) {
|
|
90
90
|
return JSON.parse(t);
|
|
91
91
|
}
|
|
92
|
-
class
|
|
92
|
+
class V {
|
|
93
93
|
handle;
|
|
94
94
|
size;
|
|
95
95
|
bigsize;
|
|
@@ -111,7 +111,7 @@ class H {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
const f = new Error("Not implemented");
|
|
114
|
-
class
|
|
114
|
+
class K {
|
|
115
115
|
handle;
|
|
116
116
|
size = 0;
|
|
117
117
|
bigsize = 0n;
|
|
@@ -148,44 +148,44 @@ class X {
|
|
|
148
148
|
async function Te(t, e, n) {
|
|
149
149
|
t instanceof Blob || (t = new Blob([t]));
|
|
150
150
|
const r = t.slice(e, e + n);
|
|
151
|
-
return await
|
|
151
|
+
return await Q(r);
|
|
152
152
|
}
|
|
153
|
-
async function
|
|
153
|
+
async function Q(t) {
|
|
154
154
|
return await new Promise((e, n) => {
|
|
155
155
|
const r = new FileReader();
|
|
156
156
|
r.onload = (a) => e(a?.target?.result), r.onerror = (a) => n(a), r.readAsArrayBuffer(t);
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
159
|
function xe(t, e, n, r) {
|
|
160
|
-
!Array.isArray(e) && !
|
|
161
|
-
const s =
|
|
160
|
+
!Array.isArray(e) && !b(e) && (r = void 0, n = e, e = void 0), n = n || {};
|
|
161
|
+
const s = W(e, r), o = O(t, s, n);
|
|
162
162
|
if (!o)
|
|
163
163
|
return null;
|
|
164
|
-
const c =
|
|
164
|
+
const c = I(n, o, s), i = S(t), u = () => {
|
|
165
165
|
throw new Error("parseSync called parse (which is async");
|
|
166
166
|
};
|
|
167
|
-
return r =
|
|
167
|
+
return r = B({ url: i, _parseSync: u, _parse: u, loaders: e }, c, r || null), X(o, t, c, r);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function X(t, e, n, r) {
|
|
170
170
|
if (e = _(e, t), t.parseTextSync && typeof e == "string")
|
|
171
171
|
return t.parseTextSync(e, n);
|
|
172
172
|
if (t.parseSync && e instanceof ArrayBuffer)
|
|
173
173
|
return t.parseSync(e, n, r);
|
|
174
174
|
throw new Error(`${t.name} loader: 'parseSync' not supported by this loader, use 'parse' instead. ${r.url || ""}`);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
return { ...t, length:
|
|
176
|
+
function Y(t) {
|
|
177
|
+
return { ...t, length: U(t), batchType: "data" };
|
|
178
178
|
}
|
|
179
179
|
async function l(t, e, n, r) {
|
|
180
180
|
const a = Array.isArray(e) ? e : void 0;
|
|
181
|
-
!Array.isArray(e) && !
|
|
182
|
-
const s =
|
|
181
|
+
!Array.isArray(e) && !b(e) && (r = void 0, n = e, e = void 0), t = await t, n = n || {};
|
|
182
|
+
const s = S(t), o = await z(t, e, n);
|
|
183
183
|
if (!o)
|
|
184
184
|
return [];
|
|
185
|
-
const c =
|
|
186
|
-
return r =
|
|
185
|
+
const c = I(n, o, a, s);
|
|
186
|
+
return r = B({ url: s, _parseInBatches: l, _parse: k, loaders: a }, c, r || null), await Z(o, t, c, r);
|
|
187
187
|
}
|
|
188
|
-
async function
|
|
188
|
+
async function Z(t, e, n, r) {
|
|
189
189
|
const a = await ee(t, e, n, r);
|
|
190
190
|
if (!n?.core?.metadata)
|
|
191
191
|
return a;
|
|
@@ -220,7 +220,7 @@ async function* te(t, e, n, r) {
|
|
|
220
220
|
yield ne(s, e);
|
|
221
221
|
}
|
|
222
222
|
function ne(t, e) {
|
|
223
|
-
const n =
|
|
223
|
+
const n = j(t) ? Y(t) : {
|
|
224
224
|
shape: "unknown",
|
|
225
225
|
batchType: "data",
|
|
226
226
|
data: t,
|
|
@@ -234,9 +234,9 @@ async function re(t, e = []) {
|
|
|
234
234
|
n = r(n);
|
|
235
235
|
return n;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function Ie(t, e, n, r) {
|
|
238
238
|
let a;
|
|
239
|
-
!Array.isArray(e) && !
|
|
239
|
+
!Array.isArray(e) && !b(e) ? (n = e, a = void 0) : a = e;
|
|
240
240
|
const s = C(n || {});
|
|
241
241
|
return Array.isArray(t) ? t.map((c) => g(c, a, n || {}, s)) : g(t, a, n || {}, s);
|
|
242
242
|
}
|
|
@@ -262,7 +262,7 @@ async function ae(t, e, n) {
|
|
|
262
262
|
}
|
|
263
263
|
throw new Error("Writer could not encode data");
|
|
264
264
|
}
|
|
265
|
-
async function
|
|
265
|
+
async function Se(t, e, n) {
|
|
266
266
|
if (e.text && e.encodeText)
|
|
267
267
|
return await e.encodeText(t, n);
|
|
268
268
|
if (e.text) {
|
|
@@ -281,9 +281,9 @@ function se(t, e, n) {
|
|
|
281
281
|
function oe(t) {
|
|
282
282
|
return [{ ...t, start: 0, end: t.length }];
|
|
283
283
|
}
|
|
284
|
-
async function
|
|
285
|
-
const a = { ...
|
|
286
|
-
return e.encodeURLtoURL ? ue(e, t, a) :
|
|
284
|
+
async function Be(t, e, n) {
|
|
285
|
+
const a = { ...D(), ...n };
|
|
286
|
+
return e.encodeURLtoURL ? ue(e, t, a) : G(e, a) ? await J(e, t, a) : await e.encode(t, a);
|
|
287
287
|
}
|
|
288
288
|
function ce(t, e, n) {
|
|
289
289
|
if (e.encodeSync)
|
|
@@ -320,7 +320,7 @@ function Le(t, e, n) {
|
|
|
320
320
|
throw new Error(`Writer ${e.name} could not encode in batches`);
|
|
321
321
|
}
|
|
322
322
|
async function ie(t, e, n, r) {
|
|
323
|
-
if (t =
|
|
323
|
+
if (t = w(t), e = w(e), h || !n.encodeURLtoURL)
|
|
324
324
|
throw new Error();
|
|
325
325
|
return await n.encodeURLtoURL(t, e, r);
|
|
326
326
|
}
|
|
@@ -328,7 +328,7 @@ async function ue(t, e, n) {
|
|
|
328
328
|
if (h)
|
|
329
329
|
throw new Error(`Writer ${t.name} not supported in browser`);
|
|
330
330
|
const r = T("input");
|
|
331
|
-
await new
|
|
331
|
+
await new K(r, "w").write(e);
|
|
332
332
|
const s = T("output"), o = await ie(r, s, t, n);
|
|
333
333
|
return (await M(o)).arrayBuffer();
|
|
334
334
|
}
|
|
@@ -402,7 +402,7 @@ const L = "4.4.3", Re = {
|
|
|
402
402
|
options: {
|
|
403
403
|
null: {}
|
|
404
404
|
}
|
|
405
|
-
},
|
|
405
|
+
}, Ne = {
|
|
406
406
|
dataType: null,
|
|
407
407
|
batchType: null,
|
|
408
408
|
name: "Null loader",
|
|
@@ -425,7 +425,7 @@ const L = "4.4.3", Re = {
|
|
|
425
425
|
function m(t, e, n) {
|
|
426
426
|
return null;
|
|
427
427
|
}
|
|
428
|
-
async function
|
|
428
|
+
async function We(t, e, n = () => {
|
|
429
429
|
}, r = () => {
|
|
430
430
|
}) {
|
|
431
431
|
if (t = await t, !t.ok)
|
|
@@ -524,7 +524,7 @@ class Oe {
|
|
|
524
524
|
// implements IRandomAccessFileSystem
|
|
525
525
|
// RANDOM ACCESS
|
|
526
526
|
async openReadableFile(e, n) {
|
|
527
|
-
return new
|
|
527
|
+
return new V(this.files[e]);
|
|
528
528
|
}
|
|
529
529
|
// PRIVATE
|
|
530
530
|
// Supports case independent paths, and file usage tracking
|
|
@@ -536,55 +536,55 @@ class Oe {
|
|
|
536
536
|
export {
|
|
537
537
|
Pe as FetchError,
|
|
538
538
|
ge as JSONLoader,
|
|
539
|
-
|
|
539
|
+
Ne as NullLoader,
|
|
540
540
|
Re as NullWorkerLoader,
|
|
541
541
|
$e as RequestScheduler,
|
|
542
542
|
Oe as _BrowserFileSystem,
|
|
543
|
-
|
|
543
|
+
We as _fetchProgress,
|
|
544
544
|
Ae as _selectSource,
|
|
545
545
|
Ce as _unregisterLoaders,
|
|
546
546
|
ve as assert,
|
|
547
547
|
$ as concatenateArrayBuffersAsync,
|
|
548
|
-
|
|
548
|
+
De as createDataSource,
|
|
549
549
|
Me as document,
|
|
550
|
-
|
|
550
|
+
Be as encode,
|
|
551
551
|
Le as encodeInBatches,
|
|
552
552
|
ce as encodeSync,
|
|
553
553
|
ae as encodeTable,
|
|
554
|
-
|
|
554
|
+
Se as encodeTableAsText,
|
|
555
555
|
se as encodeTableInBatches,
|
|
556
556
|
ke as encodeText,
|
|
557
557
|
Fe as encodeTextSync,
|
|
558
558
|
ie as encodeURLtoURL,
|
|
559
559
|
M as fetchFile,
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
560
|
+
Ue as forEach,
|
|
561
|
+
D as getLoaderOptions,
|
|
562
|
+
je as getPathPrefix,
|
|
563
|
+
Je as global,
|
|
564
|
+
qe as isAsyncIterable,
|
|
565
565
|
h as isBrowser,
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
566
|
+
Ge as isIterable,
|
|
567
|
+
He as isIterator,
|
|
568
|
+
Ve as isPromise,
|
|
569
|
+
Ke as isPureObject,
|
|
570
|
+
Qe as isReadableStream,
|
|
571
|
+
Xe as isResponse,
|
|
572
|
+
Ye as isWorker,
|
|
573
|
+
Ze as isWritableStream,
|
|
574
574
|
et as load,
|
|
575
|
-
|
|
575
|
+
Ie as loadInBatches,
|
|
576
576
|
tt as makeIterator,
|
|
577
|
-
|
|
577
|
+
we as makeLineIterator,
|
|
578
578
|
pe as makeNumberedLineIterator,
|
|
579
579
|
Ee as makeStream,
|
|
580
580
|
me as makeTextDecoderIterator,
|
|
581
|
-
|
|
581
|
+
be as makeTextEncoderIterator,
|
|
582
582
|
k as parse,
|
|
583
583
|
l as parseInBatches,
|
|
584
584
|
xe as parseSync,
|
|
585
585
|
Te as readArrayBuffer,
|
|
586
586
|
nt as registerLoaders,
|
|
587
|
-
|
|
587
|
+
w as resolvePath,
|
|
588
588
|
z as selectLoader,
|
|
589
589
|
O as selectLoaderSync,
|
|
590
590
|
rt as self,
|
|
@@ -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-DWijIMti.js";
|
|
2
|
+
import { P as s } from "./post-process-effect-gFGVlC77.js";
|
|
3
|
+
import { G as pa, a as na } from "./globe-view-BFUa9ksE.js";
|
|
4
4
|
export {
|
|
5
5
|
t as AmbientLight,
|
|
6
6
|
o as Attribute,
|