@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.
- package/CHANGELOG.md +17 -0
- package/LICENSE.md +2 -0
- package/README.md +40 -2
- package/dist/{LercDecode.es-DW-G7u1_.js → LercDecode.es-BMcxSLhD.js} +1 -1
- package/dist/{basemap-C6mTd_uL.js → basemap-m98j2wxG.js} +780 -780
- package/dist/cartograph/elements/om-cartograph.d.ts +6 -0
- package/dist/cartograph.js +429 -416
- package/dist/cartograph.standalone.js +1235 -1222
- package/dist/elements/om-map.d.ts +21 -0
- package/dist/{geoparquet-CMESy27r.js → geoparquet-XOwOmChh.js} +1 -1
- package/dist/html-data.d.ts +1 -1
- package/dist/{index-CgpoaR-U.js → index-BMbpftvm.js} +1 -1
- package/dist/{index-DgHzTg2n.js → index-BSAY6CWm.js} +12159 -11695
- package/dist/index-CfPbQUqO.js +511 -0
- package/dist/{index-CrMM0kHK.js → index-DDNElBTs.js} +106 -106
- package/dist/{index-FEPpi86V.js → index-DzOvV-O7.js} +25 -25
- package/dist/{index-BfL5W1Ay.js → index-HZWdgtm4.js} +36 -36
- package/dist/index.d.ts +8 -3
- package/dist/{lerc-BQFrOj7h.js → lerc-qK-nhCaB.js} +2 -2
- package/dist/license.d.ts +46 -1
- package/dist/onlymap.standalone.js +26793 -25831
- package/dist/onlymapjs.js +97 -92
- package/dist/post-process/catalogue.d.ts +61 -0
- package/dist/post-process/compile.d.ts +37 -0
- package/dist/post-process/index.d.ts +71 -0
- package/dist/post-process/ops.d.ts +22 -0
- package/dist/post-process/presets.d.ts +33 -0
- package/dist/post-process/validate.d.ts +8 -0
- package/dist/programmatic.d.ts +11 -0
- package/dist/{raster-6vW4_NSI.js → raster-Dg5p_99H.js} +3 -3
- package/dist/{raster-pipeline-CYiGgsil.js → raster-pipeline-DhjkqDYd.js} +1 -1
- package/dist/runtime-core.d.ts +39 -1
- package/dist/version.d.ts +1 -1
- package/dist/{zarr-BNQZpB1t.js → zarr-D3CzK1Zm.js} +2 -2
- package/docs/cartograph.md +10 -2
- package/docs/effects.md +197 -0
- package/llms.txt +3 -2
- package/onlymapjs.html-data.json +171 -0
- package/package.json +3 -3
- package/skills/onlymapjs/SKILL.md +3 -2
- 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 —
|
package/dist/html-data.d.ts
CHANGED
|
@@ -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(): {
|