@nika-js/onlymap 0.8.4 → 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 (36) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +32 -2
  3. package/dist/{LercDecode.es-BKustV-1.js → LercDecode.es-BMcxSLhD.js} +1 -1
  4. package/dist/{basemap-B0SwrOqQ.js → basemap-m98j2wxG.js} +780 -780
  5. package/dist/elements/om-map.d.ts +10 -0
  6. package/dist/{geoparquet-C5E6N6G0.js → geoparquet-XOwOmChh.js} +1 -1
  7. package/dist/html-data.d.ts +1 -1
  8. package/dist/{index-CaM1C93G.js → index-BMbpftvm.js} +1 -1
  9. package/dist/{index-D5Fqn_eZ.js → index-BSAY6CWm.js} +12139 -11698
  10. package/dist/index-CfPbQUqO.js +511 -0
  11. package/dist/{index-BnQDfKfE.js → index-DDNElBTs.js} +106 -106
  12. package/dist/{index-xUVMTGZG.js → index-DzOvV-O7.js} +25 -25
  13. package/dist/{index-BLIjrGOE.js → index-HZWdgtm4.js} +36 -36
  14. package/dist/index.d.ts +3 -0
  15. package/dist/{lerc-TxsFLMlC.js → lerc-qK-nhCaB.js} +2 -2
  16. package/dist/onlymap.standalone.js +26772 -25833
  17. package/dist/onlymapjs.js +101 -98
  18. package/dist/post-process/catalogue.d.ts +61 -0
  19. package/dist/post-process/compile.d.ts +37 -0
  20. package/dist/post-process/index.d.ts +71 -0
  21. package/dist/post-process/ops.d.ts +22 -0
  22. package/dist/post-process/presets.d.ts +33 -0
  23. package/dist/post-process/validate.d.ts +8 -0
  24. package/dist/programmatic.d.ts +11 -0
  25. package/dist/{raster-B_wekCHv.js → raster-Dg5p_99H.js} +3 -3
  26. package/dist/{raster-pipeline-Dn2fkLYx.js → raster-pipeline-DhjkqDYd.js} +1 -1
  27. package/dist/runtime-core.d.ts +39 -1
  28. package/dist/version.d.ts +1 -1
  29. package/dist/{zarr-Dan2ab-l.js → zarr-D3CzK1Zm.js} +2 -2
  30. package/docs/cartograph.md +2 -2
  31. package/docs/effects.md +197 -0
  32. package/llms.txt +2 -1
  33. package/onlymapjs.html-data.json +163 -0
  34. package/package.json +3 -3
  35. package/skills/onlymapjs/SKILL.md +3 -2
  36. package/skills/onlymapjs/references/syntax.md +9 -2
@@ -403,6 +403,16 @@ export declare class OmMapElement extends HTMLElementBase {
403
403
  * shouldn't trigger a reconcile per edit.
404
404
  */
405
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;
406
416
  private reconcile;
407
417
  /**
408
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-D5Fqn_eZ.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-D5Fqn_eZ.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);