@nika-js/onlymap 0.4.0 → 0.4.2
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 +2 -2
- package/dist/{LercDecode.es-CWLcQT4F.js → LercDecode.es-CtFZNCJy.js} +1 -1
- package/dist/{basemap-CZupn0P2.js → basemap-DfeKYdar.js} +1 -1
- package/dist/elements/om-map.d.ts +61 -0
- package/dist/elements/om-widget.d.ts +15 -0
- package/dist/html-data.d.ts +2 -2
- package/dist/{index-C8uDiJN4.js → index-BcbVw4b7.js} +1 -1
- package/dist/{index-SWWESFOk.js → index-CU-Ft1NI.js} +2 -2
- package/dist/{index-Vw-Top85.js → index-CeAQFyJG.js} +1 -1
- package/dist/{index-CC4aVelb.js → index-PfwJVVKI.js} +1 -1
- package/dist/{index-BoxZ3Mec.js → index-ULsb51al.js} +11032 -10715
- package/dist/index.d.ts +2 -0
- package/dist/{lerc-CSc9BX_F.js → lerc-DsrKzmOh.js} +2 -2
- package/dist/onlymap.standalone.js +15793 -15476
- package/dist/onlymapjs.js +57 -49
- package/dist/{raster-DDi9gXqf.js → raster-CXnE4ZJp.js} +2 -2
- package/dist/react/context.d.ts +5 -3
- package/dist/react/om-map.d.ts +4 -0
- package/dist/react/om-widget.d.ts +4 -1
- package/dist/react.js +192 -196
- package/dist/version.d.ts +1 -1
- package/dist/widget-layout.d.ts +62 -0
- package/dist/widget-registry.d.ts +20 -0
- package/llms.txt +2 -2
- package/onlymapjs.html-data.json +59 -2
- package/package.json +2 -1
- package/skills/onlymapjs/SKILL.md +3 -1
- package/skills/onlymapjs/references/react.md +2 -2
- package/skills/onlymapjs/references/syntax.md +4 -3
package/dist/onlymapjs.js
CHANGED
|
@@ -1,59 +1,67 @@
|
|
|
1
|
-
import { ay as e, az as r, aA as o, aB as t,
|
|
1
|
+
import { ay as e, az as r, aA as o, aB as t, aC as i, aq as n, aD as b, aE as l, aF as S, aG as L, aH as p, aI as c, aJ as g, aK as m, aL as T, aM as y, aN as E, ap as A, aO as I, ax as u, aP as d, W as M, aQ as _, aR as C, aS as D, aT as O, aU as f, aV as x, aW as N, aX as h, aY as B, aZ as G, a_ as R, a$ as W, b0 as v, b1 as w, b2 as Y, b3 as F, b4 as P, b5 as k, b6 as z, b7 as H, b8 as J, b9 as V, ba as q, bb as K, bc as U, bd as j, be as Q, bf as X, 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 ia, bp as na, bq as ba, br as la, bs as Sa, bt as La } from "./index-ULsb51al.js";
|
|
2
2
|
export {
|
|
3
|
-
e as
|
|
4
|
-
r as
|
|
5
|
-
o as
|
|
6
|
-
t as
|
|
7
|
-
i as
|
|
8
|
-
n as
|
|
9
|
-
b as
|
|
10
|
-
l as
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
e as ALL_POSITION_VALUES,
|
|
4
|
+
r as AccessorCache,
|
|
5
|
+
o as BitmapLayer,
|
|
6
|
+
t as COORDINATE_SYSTEM,
|
|
7
|
+
i as CompileError,
|
|
8
|
+
n as CompositeLayer,
|
|
9
|
+
b as GeoJsonLayer,
|
|
10
|
+
l as IconLayer,
|
|
11
|
+
S as LEGACY_POSITION_ALIASES,
|
|
12
|
+
L as LIGHTING_PRESET_NAMES,
|
|
13
|
+
p as Layer,
|
|
14
|
+
c as LayerExtension,
|
|
15
|
+
g as MANAGED_SLOTS,
|
|
13
16
|
m as MapController,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
T as OmMap,
|
|
18
|
+
y as ScatterplotLayer,
|
|
19
|
+
E as ScenegraphLayer,
|
|
20
|
+
A as SimpleMeshLayer,
|
|
21
|
+
I as Tile3DLayer,
|
|
19
22
|
u as TileLayer,
|
|
20
|
-
d as
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
d as WIDGET_STYLE_KEY_NAMES,
|
|
24
|
+
M as WebMercatorViewport,
|
|
25
|
+
_ as arrowTableToColumnar,
|
|
26
|
+
C as asRows,
|
|
27
|
+
D as compileExpression,
|
|
28
|
+
O as compileFullJsAccessorBlockInSandbox,
|
|
25
29
|
f as computeTimeline,
|
|
26
30
|
x as configureBasemap,
|
|
27
|
-
|
|
31
|
+
N as configureData,
|
|
28
32
|
h as configureLicense,
|
|
29
33
|
B as configureTelemetry,
|
|
30
|
-
|
|
34
|
+
G as descriptorToIR,
|
|
31
35
|
R as destroySandbox,
|
|
32
|
-
|
|
36
|
+
W as evaluateInSandbox,
|
|
33
37
|
v as getBasemap,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
38
|
+
w as getEntitlements,
|
|
39
|
+
Y as getLayerSchema,
|
|
40
|
+
F as getTerrain,
|
|
41
|
+
P as isBrowser,
|
|
42
|
+
k as isColumnar,
|
|
43
|
+
z as isStoreToken,
|
|
44
|
+
H as loadRasterModule,
|
|
45
|
+
J as mountForTest,
|
|
46
|
+
V as normalizeData,
|
|
47
|
+
q as parseDurationMs,
|
|
48
|
+
K as parseTerrainAttrs,
|
|
49
|
+
U as parseWidgetStyle,
|
|
50
|
+
j as registerAction,
|
|
51
|
+
Q as registerBasemap,
|
|
52
|
+
X as registerFormat,
|
|
53
|
+
Z as registerLayer,
|
|
54
|
+
$ as registerSource,
|
|
55
|
+
aa as registerTerrain,
|
|
56
|
+
sa as registerWidget,
|
|
57
|
+
ea as resolveLighting,
|
|
58
|
+
ra as resolveSlot,
|
|
59
|
+
oa as rowAt,
|
|
60
|
+
ta as sandboxHtml,
|
|
61
|
+
ia as slotContainerStyle,
|
|
62
|
+
na as slotLayout,
|
|
63
|
+
ba as snapshotIR,
|
|
64
|
+
la as solarAzElDegrees,
|
|
65
|
+
Sa as validateManifest,
|
|
66
|
+
La as validateManifestString
|
|
59
67
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { w as kt, t as Ni, f as Oi, m as Ri } from "./mgrs-BY9bIvp4.js";
|
|
2
|
-
import { an as Fi, ao as zi, ap as Ks, aq as Ws, ar as Di, b as Bi, as as Ui, l as es, at as ki, d as qi, au as Ki, av as Wi, aw as Xi, ax as Xs } from "./index-
|
|
2
|
+
import { an as Fi, ao as zi, ap as Ks, aq as Ws, ar as Di, b as Bi, as as Ui, l as es, at as ki, d as qi, au as Ki, av as Wi, aw as Xi, ax as Xs } from "./index-ULsb51al.js";
|
|
3
3
|
function Hi(t, e, s) {
|
|
4
4
|
const { projectedCorners: i } = e, { topLeft: a, topRight: r, bottomRight: o, bottomLeft: n } = i, h = s(a[0], a[1]), l = s(r[0], r[1]), c = s(o[0], o[1]), u = s(n[0], n[1]), d = [
|
|
5
5
|
h,
|
|
@@ -2377,7 +2377,7 @@ it.set(G.Zstd, () => import("./zstd-jXobGRcq.js").then((t) => t.decode));
|
|
|
2377
2377
|
it.set(G.Jpeg, () => Promise.resolve(ke));
|
|
2378
2378
|
it.set(G.Jpeg6, () => Promise.resolve(ke));
|
|
2379
2379
|
it.set(G.Webp, () => Promise.resolve(ke));
|
|
2380
|
-
it.set(G.Lerc, () => import("./lerc-
|
|
2380
|
+
it.set(G.Lerc, () => import("./lerc-DsrKzmOh.js").then((t) => t.l).then((t) => t.decode));
|
|
2381
2381
|
async function qe(t, e, s) {
|
|
2382
2382
|
const i = it.get(e);
|
|
2383
2383
|
if (!i)
|
package/dist/react/context.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { MapController, LayerDescriptor } from "@nika-js/onlymap";
|
|
2
|
-
|
|
2
|
+
import type { ManagedSlot } from "@nika-js/onlymap";
|
|
3
|
+
/** A managed slot (spec: "Widget Layout Manager"), a legacy corner alias, or the author-styled `manual` tier. */
|
|
4
|
+
export type WidgetPosition = ManagedSlot | "manual" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
3
5
|
export interface OmMapContextValue {
|
|
4
6
|
controller: MapController;
|
|
5
7
|
layers: LayerRegistry;
|
|
6
8
|
/** The pane <OmOverlay> portals into — absolutely positioned above the canvas, pointer-events: none. */
|
|
7
9
|
overlayPane: HTMLDivElement;
|
|
8
|
-
/**
|
|
9
|
-
corners: Readonly<Record<
|
|
10
|
+
/** Slot containers <OmWidget> portals into (filled as OmMap's own DOM mounts). */
|
|
11
|
+
corners: Readonly<Record<ManagedSlot, HTMLDivElement | null>>;
|
|
10
12
|
}
|
|
11
13
|
export declare const OmMapContext: import("react").Context<OmMapContextValue | null>;
|
|
12
14
|
export declare function useOmMapContext(caller: string): OmMapContextValue;
|
package/dist/react/om-map.d.ts
CHANGED
|
@@ -18,6 +18,10 @@ export interface OmMapProps {
|
|
|
18
18
|
width?: number;
|
|
19
19
|
height?: number;
|
|
20
20
|
};
|
|
21
|
+
/** Layout-token sugar, the `widget-style` attribute's twin: `"gap:10 opacity:0.9"` → `--om-widget-*` custom properties on the widget layer. */
|
|
22
|
+
widgetStyle?: string;
|
|
23
|
+
/** Hide-all, the `widgets-hidden` attribute's twin: hides every slot container (visibility, not removal — widget state survives). MapLibre's attribution control is outside the layer and never hides. */
|
|
24
|
+
widgetsHidden?: boolean;
|
|
21
25
|
className?: string;
|
|
22
26
|
style?: CSSProperties;
|
|
23
27
|
children?: ReactNode;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { CSSProperties, ReactNode } from "react";
|
|
2
2
|
import { type WidgetPosition } from "./context";
|
|
3
3
|
export interface OmWidgetProps {
|
|
4
|
+
/** A managed slot (`top-start` … `bottom-end`), a legacy corner alias, or `manual`. Default `top-start`. */
|
|
4
5
|
position?: WidgetPosition;
|
|
6
|
+
/** Deterministic in-slot ordering (flex `order`); default is mount order. */
|
|
7
|
+
order?: number;
|
|
5
8
|
className?: string;
|
|
6
9
|
style?: CSSProperties;
|
|
7
10
|
children?: ReactNode;
|
|
8
11
|
}
|
|
9
|
-
export declare function OmWidget({ position, className, style, children }: OmWidgetProps): ReactNode;
|
|
12
|
+
export declare function OmWidget({ position, order, className, style, children }: OmWidgetProps): ReactNode;
|