@nika-js/onlymap 0.4.6 → 0.5.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.
- package/README.md +6 -4
- package/THIRD-PARTY-LICENSES.md +2 -2
- package/dist/{LercDecode.es-B49qauXg.js → LercDecode.es-BNF7PeWz.js} +1 -1
- package/dist/{basemap-nJ_ODY7r.js → basemap-7GQL0KSL.js} +1 -1
- package/dist/cityjson-urQeujQv.js +407 -0
- package/dist/cityjson.d.ts +138 -0
- package/dist/data-layer.d.ts +21 -0
- package/dist/elements/om-map.d.ts +30 -0
- package/dist/{index-uDJbHjA9.js → index-7PZgoR0X.js} +1 -1
- package/dist/{index-CeOjfL2p.js → index-9W_UXlPB.js} +2 -2
- package/dist/{index-DjlGZov2.js → index-BKiYWYJz.js} +1 -1
- package/dist/index-CW1n5LdO.js +4006 -0
- package/dist/{index-o_yRv2lD.js → index-ULFXRQAo.js} +1 -1
- package/dist/{index-DSkgI4Oc.js → index-ppCRU8Eb.js} +11369 -11186
- package/dist/ir-snapshot.d.ts +2 -0
- package/dist/ir.d.ts +7 -0
- package/dist/layer-registry.d.ts +14 -0
- package/dist/{lerc-CaQOmDCP.js → lerc-C-D0ZLmp.js} +2 -2
- package/dist/license.d.ts +34 -8
- package/dist/onlymap.standalone.js +22520 -21925
- package/dist/onlymapjs.js +19 -19
- package/dist/quota-notice.d.ts +43 -0
- package/dist/raster-D43jYSib.js +4842 -0
- package/dist/runtime-core.d.ts +1 -0
- package/dist/version.d.ts +1 -1
- package/docs/3d-assets.md +99 -1
- package/llms.txt +2 -2
- package/onlymapjs.html-data.json +12 -8
- package/package.json +2 -1
- package/skills/onlymapjs/SKILL.md +3 -1
- package/skills/onlymapjs/references/patterns.md +4 -0
- package/skills/onlymapjs/references/syntax.md +85 -16
- package/skills/onlymapjs/references/testing.md +1 -1
- package/dist/raster-DMq8FgiV.js +0 -8843
|
@@ -55,6 +55,9 @@ export declare class OmMapElement extends HTMLElementBase {
|
|
|
55
55
|
private errorPanel;
|
|
56
56
|
private runtimeErrors;
|
|
57
57
|
private readyFired;
|
|
58
|
+
private visibleSizeChecked;
|
|
59
|
+
/** Custom-state holder for the `om-collapsed` height-floor marker — see applyHeightFloor. */
|
|
60
|
+
private internals;
|
|
58
61
|
private resolveReady;
|
|
59
62
|
readonly ready: Promise<void>;
|
|
60
63
|
private readonly viewSettle;
|
|
@@ -284,6 +287,33 @@ export declare class OmMapElement extends HTMLElementBase {
|
|
|
284
287
|
private dispatchRendererLoad;
|
|
285
288
|
/** Fires `om-map-ready` / resolves `.ready` once the first reconcile ran, the renderer is up, and no declared data URL is still loading. */
|
|
286
289
|
private checkReady;
|
|
290
|
+
/**
|
|
291
|
+
* Per-element half of the base-layout guardrail: mark the host `om-collapsed`
|
|
292
|
+
* so the layered `min-height` floor applies, but ONLY while it genuinely
|
|
293
|
+
* measures zero. Gating the floor this way is what lets an explicit author
|
|
294
|
+
* height win outright — a map with any height never carries the state, so the
|
|
295
|
+
* floor rule never matches it and a 300px map stays 300px.
|
|
296
|
+
*
|
|
297
|
+
* Clear-then-re-measure makes it idempotent and self-correcting: the connect-
|
|
298
|
+
* time call runs mid-parse, where a parent sized by later siblings still
|
|
299
|
+
* measures zero, and the post-ready call drops a floor that turned out to be
|
|
300
|
+
* unnecessary.
|
|
301
|
+
*
|
|
302
|
+
* A custom state rather than an attribute or inline style, deliberately: the
|
|
303
|
+
* host's own MutationObserver treats attribute writes as manifest edits (a
|
|
304
|
+
* reconcile), history.ts records them as undo steps, and either would
|
|
305
|
+
* serialize into a saved manifest. A custom state touches none of that.
|
|
306
|
+
*/
|
|
307
|
+
private applyHeightFloor;
|
|
308
|
+
/**
|
|
309
|
+
* First-shot guardrail: warn (once) if the map has no visible size once it is
|
|
310
|
+
* ready. The base-layout default covers a bare `<om-map>`, but a constrained
|
|
311
|
+
* parent (a 0-height flex/grid cell, `height:100%` under an unsized ancestor)
|
|
312
|
+
* can still collapse it — a silent blank map otherwise.
|
|
313
|
+
* Skipped headless: jsdom/happy-dom report 0×0 by design, and `mountForTest`
|
|
314
|
+
* sets the `headless` attribute, so this never fires in the test harness.
|
|
315
|
+
*/
|
|
316
|
+
private checkVisibleSize;
|
|
287
317
|
private pickPayload;
|
|
288
318
|
/**
|
|
289
319
|
* Dispatches to every `<om-behavior on="eventName">` (live-queried, like
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as E, j as S, k as R, n as N, o as h, p as w, q as O, s as W, r as x, t as I, v as B, w as _, x as P, y as k, A as $, B as z, E as v, F, H as C, I as U, J as p, K as M } from "./index-
|
|
2
|
-
import { N as $e, R as ze, _ as ve, O as Ce, P as Ue, Q as Me, S as je, T as De, U as Je, X as qe, Y as He, Z as Ve, $ as Ge, a0 as Ke, a1 as Qe, a2 as Xe, a3 as Ye, a4 as Ze, a5 as et, a6 as tt, a7 as nt, a8 as rt, a9 as at, aa as st, ab as ot } from "./index-
|
|
1
|
+
import { i as E, j as S, k as R, n as N, o as h, p as w, q as O, s as W, r as x, t as I, v as B, w as _, x as P, y as k, A as $, B as z, E as v, F, H as C, I as U, J as p, K as M } from "./index-ppCRU8Eb.js";
|
|
2
|
+
import { N as $e, R as ze, _ as ve, O as Ce, P as Ue, Q as Me, S as je, T as De, U as Je, X as qe, Y as He, Z as Ve, $ as Ge, a0 as Ke, a1 as Qe, a2 as Xe, a3 as Ye, a4 as Ze, a5 as et, a6 as tt, a7 as nt, a8 as rt, a9 as at, aa as st, ab as ot } from "./index-ppCRU8Eb.js";
|
|
3
3
|
import { g as j, i as D } from "./table-accessors-CYWTzpQI.js";
|
|
4
4
|
async function J(t, e, n = {}, r = {}) {
|
|
5
5
|
const a = E(t), s = S.getWorkerFarm(n), { source: o } = n, c = { name: a, source: o };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ai as Bt,
|
|
1
|
+
import { ai as Bt, av as Xt, aw as Yt, ax as Us } from "./index-ppCRU8Eb.js";
|
|
2
2
|
import { w as gs, t as Hs, f as Ws, m as Qs } from "./mgrs-BY9bIvp4.js";
|
|
3
3
|
import { c as Xs } from "./convert-arrow-schema-DrAihRf9.js";
|
|
4
4
|
import { y as Ys, A as bt, a as Ks, z as Vs, R as Zs } from "./recordbatch-Bpc0uxFn.js";
|