@nika-js/onlymap 0.8.3 → 0.9.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 (41) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE.md +2 -0
  3. package/README.md +40 -2
  4. package/dist/{LercDecode.es-DW-G7u1_.js → LercDecode.es-BMcxSLhD.js} +1 -1
  5. package/dist/{basemap-C6mTd_uL.js → basemap-m98j2wxG.js} +780 -780
  6. package/dist/cartograph/elements/om-cartograph.d.ts +6 -0
  7. package/dist/cartograph.js +429 -416
  8. package/dist/cartograph.standalone.js +1235 -1222
  9. package/dist/elements/om-map.d.ts +21 -0
  10. package/dist/{geoparquet-CMESy27r.js → geoparquet-XOwOmChh.js} +1 -1
  11. package/dist/html-data.d.ts +1 -1
  12. package/dist/{index-CgpoaR-U.js → index-BMbpftvm.js} +1 -1
  13. package/dist/{index-DgHzTg2n.js → index-BSAY6CWm.js} +12159 -11695
  14. package/dist/index-CfPbQUqO.js +511 -0
  15. package/dist/{index-CrMM0kHK.js → index-DDNElBTs.js} +106 -106
  16. package/dist/{index-FEPpi86V.js → index-DzOvV-O7.js} +25 -25
  17. package/dist/{index-BfL5W1Ay.js → index-HZWdgtm4.js} +36 -36
  18. package/dist/index.d.ts +8 -3
  19. package/dist/{lerc-BQFrOj7h.js → lerc-qK-nhCaB.js} +2 -2
  20. package/dist/license.d.ts +46 -1
  21. package/dist/onlymap.standalone.js +26793 -25831
  22. package/dist/onlymapjs.js +97 -92
  23. package/dist/post-process/catalogue.d.ts +61 -0
  24. package/dist/post-process/compile.d.ts +37 -0
  25. package/dist/post-process/index.d.ts +71 -0
  26. package/dist/post-process/ops.d.ts +22 -0
  27. package/dist/post-process/presets.d.ts +33 -0
  28. package/dist/post-process/validate.d.ts +8 -0
  29. package/dist/programmatic.d.ts +11 -0
  30. package/dist/{raster-6vW4_NSI.js → raster-Dg5p_99H.js} +3 -3
  31. package/dist/{raster-pipeline-CYiGgsil.js → raster-pipeline-DhjkqDYd.js} +1 -1
  32. package/dist/runtime-core.d.ts +39 -1
  33. package/dist/version.d.ts +1 -1
  34. package/dist/{zarr-BNQZpB1t.js → zarr-D3CzK1Zm.js} +2 -2
  35. package/docs/cartograph.md +10 -2
  36. package/docs/effects.md +197 -0
  37. package/llms.txt +3 -2
  38. package/onlymapjs.html-data.json +171 -0
  39. package/package.json +3 -3
  40. package/skills/onlymapjs/SKILL.md +3 -2
  41. package/skills/onlymapjs/references/syntax.md +10 -3
@@ -305,6 +305,17 @@ export declare class OmMapElement extends HTMLElementBase {
305
305
  clearEffectsInternal(): void;
306
306
  /** A layer's current per-frame channel patch (tests/e2e assert trace progress through this). */
307
307
  getAnimatedPropsInternal(layerId: string): Record<string, unknown> | undefined;
308
+ /**
309
+ * Push `keep-badge` to the license module.
310
+ *
311
+ * The preference is PAGE-LEVEL, not per-map: keeping the OnlyMap credit is
312
+ * a stance about the deployment (LICENSE.md §3), and one page showing the
313
+ * badge on one map and not another would be incoherent. So removal only
314
+ * clears it when no other connected map still asks for it — one map must
315
+ * not silently revoke another's intent. A print sheet's own `keep-badge`
316
+ * ORs on top of this (a sheet can carry a credit with no map at all).
317
+ */
318
+ private applyKeepBadge;
308
319
  /** Current camera state (story initial-state capture) — internal-suffix API. */
309
320
  /** Push `max-pitch` to the runtime; absent or unparseable restores the default. */
310
321
  private applyMaxPitch;
@@ -392,6 +403,16 @@ export declare class OmMapElement extends HTMLElementBase {
392
403
  * shouldn't trigger a reconcile per edit.
393
404
  */
394
405
  private scheduleReconcile;
406
+ /**
407
+ * Hand the runtime this map's `<om-effect>` chain.
408
+ *
409
+ * The presence check is eager and the PARSE is not: the op catalogue and its
410
+ * GLSL live in a lazy chunk, so a map with no effects — which is almost
411
+ * every map — never downloads a line of it. The runtime compares the chain
412
+ * by value, so re-parsing on every reconcile costs nothing when nothing
413
+ * changed.
414
+ */
415
+ private reconcileEffects;
395
416
  private reconcile;
396
417
  /**
397
418
  * Re-runs on every reconcile when the `validate` attribute is present —
@@ -1,4 +1,4 @@
1
- import { r as p, n as d } from "./index-DgHzTg2n.js";
1
+ import { r as p, n as d } from "./index-BSAY6CWm.js";
2
2
  function g(t) {
3
3
  if (t == null) return !0;
4
4
  const e = t, n = e.id?.code;
@@ -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", "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-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", "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-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
  export declare const BUILTIN_WIDGETS: readonly ["legend", "layer-switcher", "zoom-controls", "scale-bar", "attribution", "filter", "vega-lite", "dynamic-chart", "player", "draw", "measure", "basemap-switcher", "lighting", "clip-box", "undo-redo", "widgets-toggle", "time-slider", "ifc-browser", "ifc-legend", "feature-inspector", "ifc-inspector", "ifc-loader", "ifc-clash"];
21
21
  export declare function buildHtmlCustomData(): {
@@ -1,4 +1,4 @@
1
- import { ae as _t, af as Ct } from "./index-DgHzTg2n.js";
1
+ import { as as _t, at as Ct } from "./index-BSAY6CWm.js";
2
2
  function Yt(e, r, t = 2, i, o = "xy") {
3
3
  const s = r && r.length, l = s ? r[0] * t : e.length;
4
4
  let c = Ut(e, 0, l, t, !0, i && i[0], o);