@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
package/dist/onlymapjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ay as e, az as r, aA as o, aB as t, aC as l, aD as b,
|
|
1
|
+
import { ay as e, az as r, aA as o, aB as t, aC as l, aD as b, an as i, aE as n, aF as S, aG as L, aH as T, aI as E, aJ as g, aK as y, aL as A, aM as d, aN as m, aO as p, aP as c, aQ as I, aR as _, aS as D, aT as u, am as O, aU as M, au as f, aV as F, W as C, aW as N, aX as P, aY as B, aZ as R, a_ as h, a$ as x, b0 as G, b1 as W, b2 as v, b3 as w, b4 as H, b5 as U, b6 as Y, b7 as X, b8 as k, b9 as z, ba as J, bb as K, bc as V, bd as j, be as q, bf as Q, bg as Z, bh as $, bi as aa, bj as sa, bk as ea, bl as ra, bm as oa, bn as ta, bo as la, bp as ba, bq as ia, br as na, bs as Sa, bt as La, bu as Ta, bv as Ea, bw as ga, bx as ya, by as Aa, bz as da, bA as ma, bB as pa, bC as ca, bD as Ia, bE as _a, bF as Da, bG as ua, bH as Oa, bI as Ma } from "./index-ppCRU8Eb.js";
|
|
2
2
|
export {
|
|
3
3
|
e as ALL_POSITION_VALUES,
|
|
4
4
|
r as AUDIT_EXEMPTIONS,
|
|
@@ -13,12 +13,12 @@ export {
|
|
|
13
13
|
T as FOLD_HYSTERESIS_PX,
|
|
14
14
|
E as FOLD_SIDES,
|
|
15
15
|
g as GeoJsonLayer,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
y as IconLayer,
|
|
17
|
+
A as LEGACY_POSITION_ALIASES,
|
|
18
|
+
d as LIGHTING_PRESET_NAMES,
|
|
19
|
+
m as Layer,
|
|
20
|
+
p as LayerExtension,
|
|
21
|
+
c as MANAGED_SLOTS,
|
|
22
22
|
I as MapController,
|
|
23
23
|
_ as OmMap,
|
|
24
24
|
D as ScatterplotLayer,
|
|
@@ -30,10 +30,10 @@ export {
|
|
|
30
30
|
C as WebMercatorViewport,
|
|
31
31
|
N as arrowTableToColumnar,
|
|
32
32
|
P as asRows,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
B as auditLayout,
|
|
34
|
+
R as compileExpression,
|
|
35
|
+
h as compileFullJsAccessorBlockInSandbox,
|
|
36
|
+
x as computeTimeline,
|
|
37
37
|
G as configureBasemap,
|
|
38
38
|
W as configureData,
|
|
39
39
|
v as configureLicense,
|
|
@@ -47,8 +47,8 @@ export {
|
|
|
47
47
|
J as foldToggleSlot,
|
|
48
48
|
K as foldToggleStyle,
|
|
49
49
|
V as getBasemap,
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
j as getEntitlements,
|
|
51
|
+
q as getLayerSchema,
|
|
52
52
|
Q as getTerrain,
|
|
53
53
|
Z as isBrowser,
|
|
54
54
|
$ as isColumnar,
|
|
@@ -67,12 +67,12 @@ export {
|
|
|
67
67
|
Ta as registerTerrain,
|
|
68
68
|
Ea as registerWidget,
|
|
69
69
|
ga as resolveFoldBreakpointPx,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
ya as resolveLighting,
|
|
71
|
+
Aa as resolveSlot,
|
|
72
|
+
da as rowAt,
|
|
73
|
+
ma as sandboxHtml,
|
|
74
|
+
pa as settleLayout,
|
|
75
|
+
ca as shouldFoldAtWidth,
|
|
76
76
|
Ia as slotContainerStyle,
|
|
77
77
|
_a as slotLayout,
|
|
78
78
|
Da as snapshotIR,
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The row-cap notice (spec: "Monetization Gates / row cap"). When the free
|
|
3
|
+
* plan's per-layer row cap truncates a layer, the map still renders — so
|
|
4
|
+
* WITHOUT this the failure is invisible to the person looking at the map, and
|
|
5
|
+
* a partial dataset silently reads as a complete one. That invisibility was
|
|
6
|
+
* the whole reason the gate used to render nothing instead (license.ts's
|
|
7
|
+
* revised violation-mode note); this node is what makes truncation safe to
|
|
8
|
+
* prefer over a blank layer.
|
|
9
|
+
*
|
|
10
|
+
* Deliberately NOT the badge's twin:
|
|
11
|
+
*
|
|
12
|
+
* - Dismissible, and no tamper resistance. The badge is a CONDITION of the
|
|
13
|
+
* free license, so it fights removal; this is a diagnostic. Hiding it costs
|
|
14
|
+
* the viewer nothing but their own warning, and the dev/agent channel
|
|
15
|
+
* (`report`, severity "error") is unaffected either way.
|
|
16
|
+
* - Dismissal is keyed to the SIGNATURE of what was truncated, not to the
|
|
17
|
+
* session. Dismiss it and it stays gone for that situation — but a
|
|
18
|
+
* genuinely different truncation later (another layer, a changed count) is
|
|
19
|
+
* news, and says so again.
|
|
20
|
+
* - Top-center, because widgets own the corners.
|
|
21
|
+
*
|
|
22
|
+
* `update()` is called on every reconcile and must stay free when nothing
|
|
23
|
+
* changed — it compares signatures before touching the DOM at all.
|
|
24
|
+
*
|
|
25
|
+
* ANNOUNCEMENT is a separate, permanently-mounted, visually-hidden live
|
|
26
|
+
* region rather than `role="status"` on the visible box. A live region has to
|
|
27
|
+
* already be in the accessibility tree when its content changes for assistive
|
|
28
|
+
* tech to announce it — inserting a node that ALREADY carries
|
|
29
|
+
* `role="status"`/`aria-live` usually announces nothing, and moving the
|
|
30
|
+
* region's content into a `display:none` box doesn't announce either. So the
|
|
31
|
+
* region mounts empty at map construction (long before any data loads) and
|
|
32
|
+
* only ever has its text swapped. The visible box deliberately carries NO
|
|
33
|
+
* live-region role, or the same message would be announced twice; it stays in
|
|
34
|
+
* the a11y tree so its dismiss button is still reachable by keyboard and
|
|
35
|
+
* screen reader.
|
|
36
|
+
*/
|
|
37
|
+
import type { TruncatedLayer } from "./license";
|
|
38
|
+
export interface QuotaNoticeHandle {
|
|
39
|
+
/** Called every reconcile with the pass's truncations — no-ops unless they changed. */
|
|
40
|
+
update(truncated: readonly TruncatedLayer[]): void;
|
|
41
|
+
destroy(): void;
|
|
42
|
+
}
|
|
43
|
+
export declare function mountQuotaNotice(container: HTMLElement): QuotaNoticeHandle;
|