@nika-js/onlymap 0.3.0 → 0.3.1

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 (45) hide show
  1. package/.vscode/onlymap.code-snippets +13 -0
  2. package/LICENSE.md +4 -0
  3. package/README.md +4 -3
  4. package/THIRD-PARTY-LICENSES.md +7874 -0
  5. package/dist/{Arrow.dom-7AXne1TU.js → Arrow.dom-BNjbQ9jb.js} +23 -23
  6. package/dist/LercDecode.es-CVmNpXBp.js +303 -0
  7. package/dist/assets/LercDecode.es-BJb2dZu5.js +305 -0
  8. package/dist/assets/__vite-browser-external-DDArsqdc.js +29 -0
  9. package/dist/assets/lerc-wasm.wasm +0 -0
  10. package/dist/assets/lzw-BY5a_5nb.js +83 -0
  11. package/dist/assets/worker-DtIrTJB7.js +305 -0
  12. package/dist/assets/zstd-QGAv3PMm.js +383 -0
  13. package/dist/{basemap-DrK6zcu8.js → basemap-BSb-g03Z.js} +6228 -6247
  14. package/dist/{convert-arrow-schema-CvZ3cT5m.js → convert-arrow-schema-DrAihRf9.js} +31 -31
  15. package/dist/ctx.d.ts +3 -0
  16. package/dist/index-CIEkseeV.js +3108 -0
  17. package/dist/index-D67FynN5.js +594 -0
  18. package/dist/{index-C9tgnPNw.js → index-QSkZjzIL.js} +4 -4
  19. package/dist/index-WeMwLoaQ.js +1446 -0
  20. package/dist/{index-CsicbycJ.js → index-lV5eG2Xt.js} +21442 -21860
  21. package/dist/index.d.ts +2 -0
  22. package/dist/ir.d.ts +3 -0
  23. package/dist/layer-registry.d.ts +15 -1
  24. package/dist/legend-spec.d.ts +66 -0
  25. package/dist/lerc-DJzRIT6z.js +30 -0
  26. package/dist/lerc-wasm.wasm +0 -0
  27. package/dist/lzw-BY5a_5nb.js +83 -0
  28. package/dist/mgrs-BY9bIvp4.js +799 -0
  29. package/dist/onlymapjs.css +1 -1
  30. package/dist/onlymapjs.js +24 -23
  31. package/dist/raster-BKf1dx54.js +8843 -0
  32. package/dist/raster.d.ts +61 -0
  33. package/dist/{recordbatch-HRu0SMKp.js → recordbatch-Bpc0uxFn.js} +200 -200
  34. package/dist/{table-accessors-DBjWgN0C.js → table-accessors-CYWTzpQI.js} +71 -76
  35. package/dist/version.d.ts +1 -1
  36. package/dist/zstd-jXobGRcq.js +14 -0
  37. package/llms.txt +3 -3
  38. package/onlymapjs.html-data.json +23 -0
  39. package/package.json +18 -15
  40. package/skills/onlymapjs/SKILL.md +3 -1
  41. package/skills/onlymapjs/references/syntax.md +29 -2
  42. package/dist/index-CiuGqS0i.js +0 -605
  43. package/dist/index-DXoRERAy.js +0 -1457
  44. package/dist/index-Ztkd30f8.js +0 -3907
  45. package/dist/onlymapjs.umd.cjs +0 -8708
@@ -1,17 +1,17 @@
1
- import { S as c, F as o, h as u, o as l, L as w, n as m, x as d, b7 as b, b3 as p, bx as f, bt as h, bv as M, bz as S, bo as z, bk as F, bm as I, bq as v, ay as y, aw as x, k as A, aT as D, aR as U, aP as N, bG as k, bE as B, bC as E, bI as L, aZ as j, f as W, aW as q, a$ as C, B as G, m as O, N as P } from "./recordbatch-HRu0SMKp.js";
2
- function Z(e) {
3
- return R(e);
1
+ import { S as c, F as o, a as u, b as l, L as w, M as m, D as d, I as p, c as f, T as h, d as M, e as S, f as b, g as z, h as F, i as I, j as v, k as D, l as U, U as y, m as A, n as x, o as N, p as j, q as B, r as L, s as k, t as E, u as g, v as q, w as O, B as T, x as W, N as Y } from "./recordbatch-Bpc0uxFn.js";
2
+ function H(e) {
3
+ return _(e);
4
4
  }
5
- function R(e) {
6
- return new c(e.fields.map((n) => r(n)), a(e.metadata));
5
+ function _(e) {
6
+ return new c(e.fields.map((n) => r(n)), s(e.metadata));
7
7
  }
8
- function a(e) {
8
+ function s(e) {
9
9
  return e ? new Map(Object.entries(e)) : /* @__PURE__ */ new Map();
10
10
  }
11
11
  function r(e) {
12
- return new o(e.name, T(e.type), e.nullable, a(e.metadata));
12
+ return new o(e.name, C(e.type), e.nullable, s(e.metadata));
13
13
  }
14
- function T(e) {
14
+ function C(e) {
15
15
  if (typeof e == "object")
16
16
  switch (e.type) {
17
17
  case "decimal":
@@ -20,8 +20,8 @@ function T(e) {
20
20
  let n = e.children.map((t) => r(t));
21
21
  return new m(n, e.keysSorted);
22
22
  case "list":
23
- const s = r(e.children[0]);
24
- return new w(s);
23
+ const a = r(e.children[0]);
24
+ return new w(a);
25
25
  case "fixed-size-list":
26
26
  const i = r(e.children[0]);
27
27
  return new l(e.listSize, i);
@@ -32,39 +32,39 @@ function T(e) {
32
32
  }
33
33
  switch (e) {
34
34
  case "null":
35
- return new P();
35
+ return new Y();
36
36
  case "binary":
37
- return new O();
37
+ return new W();
38
38
  case "bool":
39
- return new G();
39
+ return new T();
40
40
  case "int8":
41
- return new C();
41
+ return new O();
42
42
  case "int16":
43
43
  return new q();
44
44
  case "int32":
45
- return new W();
45
+ return new g();
46
46
  case "int64":
47
- return new j();
47
+ return new E();
48
48
  case "uint8":
49
- return new L();
49
+ return new k();
50
50
  case "uint16":
51
- return new E();
51
+ return new L();
52
52
  case "uint32":
53
53
  return new B();
54
54
  case "uint64":
55
- return new k();
55
+ return new j();
56
56
  case "float16":
57
57
  return new N();
58
58
  case "float32":
59
- return new U();
59
+ return new x();
60
60
  case "float64":
61
- return new D();
62
- case "utf8":
63
61
  return new A();
62
+ case "utf8":
63
+ return new y();
64
64
  case "date-day":
65
- return new x();
65
+ return new U();
66
66
  case "date-millisecond":
67
- return new y();
67
+ return new D();
68
68
  case "time-second":
69
69
  return new v();
70
70
  case "time-millisecond":
@@ -74,21 +74,21 @@ function T(e) {
74
74
  case "time-nanosecond":
75
75
  return new z();
76
76
  case "timestamp-second":
77
- return new S();
77
+ return new b();
78
78
  case "timestamp-millisecond":
79
- return new M();
79
+ return new S();
80
80
  case "timestamp-microsecond":
81
- return new h();
81
+ return new M();
82
82
  case "timestamp-nanosecond":
83
- return new f();
83
+ return new h();
84
84
  case "interval-daytime":
85
- return new p();
85
+ return new f();
86
86
  case "interval-yearmonth":
87
- return new b();
87
+ return new p();
88
88
  default:
89
89
  throw new Error("array type not supported");
90
90
  }
91
91
  }
92
92
  export {
93
- Z as c
93
+ H as c
94
94
  };
package/dist/ctx.d.ts CHANGED
@@ -9,10 +9,13 @@ import type { LayerIR, LayerFilter } from "./ir";
9
9
  import type { RuntimeCore } from "./runtime-core";
10
10
  import type { Selection } from "./selection";
11
11
  import { type Stats } from "./stats";
12
+ import type { LegendSpec } from "./legend-spec";
12
13
  export interface LayerMetaSnapshot {
13
14
  id: string;
14
15
  label?: string;
15
16
  color?: string;
17
+ /** Statically-derived color symbology — the legend widget's default rendering (spec: "Built-in widgets / legend"). */
18
+ legend?: LegendSpec;
16
19
  visible: boolean;
17
20
  type: string;
18
21
  dataUrl?: string;