@nika-js/onlymap 0.1.1 → 0.2.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.
@@ -1,8 +1,8 @@
1
1
  var R = Object.defineProperty;
2
2
  var N = (t, e, r) => e in t ? R(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
3
  var u = (t, e, r) => N(t, typeof e != "symbol" ? e + "" : e, r);
4
- import { c as W, W as x, d as O, e as _, f as m, h as g, j as P, s as z, n as I, k as B, m as k, o as $, p as C, q as M, r as U, u as F, v as D, w as L, x as j, y as v, z as T, A as J } from "./index-CU-iOTdr.js";
5
- import { F as Ue, R as De, _ as je, B as ve, C as Je, D as qe, E as Ve, G as Ge, H as He, I as Ke, J as Qe, K as Xe, L as Ye, M as Ze, N as er, O as rr, P as tr, Q as nr, S as ar, T as sr, U as cr, V as or, X as ir, Y as ur, Z as fr } from "./index-CU-iOTdr.js";
4
+ import { c as W, W as x, d as O, e as _, f as m, h as g, j as P, s as z, n as I, k as B, m as k, o as $, p as C, q as F, r as M, u as U, v as D, w as L, x as j, y as v, z as T, A as J } from "./index-DnvxPnDF.js";
5
+ import { F as Ue, R as De, _ as je, B as ve, C as Je, D as qe, E as Ve, G as Ge, H as He, I as Ke, J as Qe, K as Xe, L as Ye, M as Ze, N as er, O as rr, P as tr, Q as nr, S as ar, T as sr, U as cr, V as or, X as ir, Y as ur, Z as fr } from "./index-DnvxPnDF.js";
6
6
  import { g as q, i as V } from "./table-accessors-DBjWgN0C.js";
7
7
  async function G(t, e, r = {}, n = {}) {
8
8
  const a = W(t), s = x.getWorkerFarm(r), { source: c } = r, o = { name: a, source: c };
package/dist/index.d.ts CHANGED
@@ -39,6 +39,11 @@ export type { DataRequestConfig } from "./data-layer";
39
39
  export { registerWidget } from "./widget-registry";
40
40
  export type { WidgetImpl, WidgetHost } from "./widget-registry";
41
41
  export type { RuntimeContext } from "./ctx";
42
+ export { MapController, descriptorToIR } from "./programmatic";
43
+ export type { LayerDescriptor, MapControllerOptions, CameraState, OverlayPositioner, PickListener } from "./programmatic";
44
+ export type { Selection } from "./selection";
45
+ export type { CameraOptions } from "./runtime-core";
46
+ export type { MapViewport } from "./basemap";
42
47
  export { registerAction } from "./actions";
43
48
  export type { ActionHandler } from "./actions";
44
49
  export { validateManifestString, validateManifest } from "./validation";
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Reconcile-pass diff over the layer IR (spec: "Reactivity — the watch
3
+ * declaration"), shared by both front-ends (HU2): decides which narrow
4
+ * `data:<id>` watch tokens fire and whether `layers` (added/removed/
5
+ * visibility toggled) should. Reference equality only, matching the
6
+ * "stable reference" discipline used throughout — a layer's `data` array
7
+ * is the same reference across reconciles unless it genuinely reloaded.
8
+ */
9
+ import type { LayerIR } from "./ir";
10
+ export interface LayerIRDiff {
11
+ /** Layers whose `data` reference changed (or that are new) — fires `data:<id>` tokens. */
12
+ changedDataIds: Set<string>;
13
+ /** A layer was added/removed or toggled visibility — fires the `layers` token. */
14
+ layersChanged: boolean;
15
+ }
16
+ export declare function diffLayerIRs(previous: ReadonlyMap<string, LayerIR>, next: ReadonlyMap<string, LayerIR>): LayerIRDiff;
package/dist/onlymapjs.js CHANGED
@@ -1,30 +1,32 @@
1
- import { an as e, ao as r, ap as o, aq as t, ar as i, as as n, at as l, au as m, av as c, aw as p, ax as u, ay as g, az as d, aA as x, aB as S, aC as b, aD as w, aE as A, aF as C, aG as M, aH as f, aI as v, aJ as y, aK as D, aL as F, aM as I, aN as T } from "./index-CU-iOTdr.js";
1
+ import { an as e, ao as r, ap as o, aq as t, ar as i, as as n, at as l, au as c, av as m, aw as p, ax as u, ay as d, az as g, aA as x, aB as C, aC as M, aD as S, aE as b, aF as w, aG as A, aH as I, aI as T, aJ as f, aK as v, aL as y, aM as D, aN as F, aO as h, aP as B } from "./index-DnvxPnDF.js";
2
2
  export {
3
3
  e as AccessorCache,
4
4
  r as CompileError,
5
- o as OmMap,
6
- t as arrowTableToColumnar,
7
- i as asRows,
8
- n as compileExpression,
9
- l as compileFullJsAccessorBlockInSandbox,
5
+ o as MapController,
6
+ t as OmMap,
7
+ i as arrowTableToColumnar,
8
+ n as asRows,
9
+ l as compileExpression,
10
+ c as compileFullJsAccessorBlockInSandbox,
10
11
  m as computeTimeline,
11
- c as configureData,
12
- p as destroySandbox,
13
- u as evaluateInSandbox,
14
- g as getLayerSchema,
15
- d as isBrowser,
16
- x as isColumnar,
12
+ p as configureData,
13
+ u as descriptorToIR,
14
+ d as destroySandbox,
15
+ g as evaluateInSandbox,
16
+ x as getLayerSchema,
17
+ C as isBrowser,
18
+ M as isColumnar,
17
19
  S as mountForTest,
18
20
  b as normalizeData,
19
21
  w as parseDurationMs,
20
22
  A as registerAction,
21
- C as registerFormat,
22
- M as registerLayer,
23
+ I as registerFormat,
24
+ T as registerLayer,
23
25
  f as registerSource,
24
26
  v as registerWidget,
25
27
  y as rowAt,
26
28
  D as sandboxHtml,
27
29
  F as snapshotIR,
28
- I as validateManifest,
29
- T as validateManifestString
30
+ h as validateManifest,
31
+ B as validateManifestString
30
32
  };