@nika-js/onlymap 0.2.3 → 0.3.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/README.md +29 -7
- package/dist/{basemap-BdvB-SHy.js → basemap-DrK6zcu8.js} +2337 -2273
- package/dist/basemap-registry.d.ts +10 -0
- package/dist/basemap.d.ts +23 -0
- package/dist/color.d.ts +9 -0
- package/dist/deck.d.ts +28 -0
- package/dist/deck.js +16 -0
- package/dist/elements/om-map.d.ts +29 -0
- package/dist/html-data.d.ts +2 -2
- package/dist/{index-CJOMgp8k.js → index-C9tgnPNw.js} +1 -1
- package/dist/{index-CvBHiOGD.js → index-CiuGqS0i.js} +2 -2
- package/dist/{index-BxzDKZpu.js → index-CsicbycJ.js} +16599 -15089
- package/dist/{index-BVQ0s1Zh.js → index-DXoRERAy.js} +1 -1
- package/dist/{index-Vc8QfNEf.js → index-Ztkd30f8.js} +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/ir-snapshot.d.ts +2 -0
- package/dist/ir.d.ts +7 -0
- package/dist/onlymapjs.js +54 -35
- package/dist/onlymapjs.umd.cjs +423 -349
- package/dist/programmatic.d.ts +35 -0
- package/dist/react/om-layer.d.ts +2 -0
- package/dist/react.js +18 -16
- package/dist/runtime-core.d.ts +73 -1
- package/dist/scene-lighting.d.ts +83 -0
- package/dist/selection.d.ts +1 -1
- package/dist/snapshot.d.ts +14 -0
- package/dist/terrain.d.ts +113 -0
- package/dist/version.d.ts +1 -1
- package/docs/custom-layers.md +99 -0
- package/llms.txt +4 -4
- package/onlymapjs.html-data.json +140 -29
- package/package.json +20 -3
- package/skills/onlymapjs/SKILL.md +1 -1
- package/skills/onlymapjs/references/syntax.md +24 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Oe = Object.defineProperty;
|
|
2
2
|
var ke = (r, e, t) => e in r ? Oe(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var l = (r, e, t) => ke(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import { g as ve, a as ce, b as he, i as Fe, t as je, l as xe } from "./index-
|
|
4
|
+
import { g as ve, a as ce, b as he, i as Fe, t as je, l as xe } from "./index-CsicbycJ.js";
|
|
5
5
|
import { ai as Ie, h as ue, au as X, a2 as W, af as fe, Y as Ne, F as Le, aR as Ue, S as Me, bP as qe } from "./recordbatch-HRu0SMKp.js";
|
|
6
6
|
import { g as $, a as de, b as Ve, c as $e, d as Pe, e as He, m as ze } from "./table-accessors-DBjWgN0C.js";
|
|
7
7
|
import { c as Qe } from "./convert-arrow-schema-CvZ3cT5m.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ri = Object.defineProperty;
|
|
2
2
|
var Ii = (t, a, i) => a in t ? Ri(t, a, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[a] = i;
|
|
3
3
|
var N = (t, a, i) => Ii(t, typeof a != "symbol" ? a + "" : a, i);
|
|
4
|
-
import { t as zt, $ as ca, a0 as ua, a1 as wi } from "./index-
|
|
4
|
+
import { t as zt, $ as ca, a0 as ua, a1 as wi } from "./index-CsicbycJ.js";
|
|
5
5
|
import { c as Si } from "./convert-arrow-schema-CvZ3cT5m.js";
|
|
6
6
|
import { ai as Ni, af as Nt, h as Ci, au as Pi, a2 as Oi } from "./recordbatch-HRu0SMKp.js";
|
|
7
7
|
class Ti {
|
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { registerSource, registerFormat, configureData } from "./data-layer";
|
|
|
27
27
|
import { registerWidget } from "./widget-registry";
|
|
28
28
|
import { registerAction } from "./actions";
|
|
29
29
|
import { registerBasemap, configureBasemap } from "./basemap-registry";
|
|
30
|
+
import { registerTerrain } from "./terrain";
|
|
30
31
|
import { configureTelemetry } from "./telemetry";
|
|
31
32
|
import { configureLicense } from "./license";
|
|
32
33
|
import { validateManifestString } from "./validation";
|
|
@@ -45,6 +46,11 @@ export { registerWidget } from "./widget-registry";
|
|
|
45
46
|
export type { WidgetImpl, WidgetHost } from "./widget-registry";
|
|
46
47
|
export { registerBasemap, configureBasemap, getBasemap } from "./basemap-registry";
|
|
47
48
|
export type { BasemapPreset, BasemapStyle } from "./basemap-registry";
|
|
49
|
+
export { LIGHTING_PRESET_NAMES, resolveLighting, solarAzElDegrees } from "./scene-lighting";
|
|
50
|
+
export type { LightingIR, LightingOptions, LightingPresetName } from "./scene-lighting";
|
|
51
|
+
export { registerTerrain, getTerrain, parseTerrainAttrs } from "./terrain";
|
|
52
|
+
export type { TerrainPreset, TerrainIR, ElevationDecoder, LayerTerrainMode } from "./terrain";
|
|
53
|
+
export type { SnapshotOptions } from "./snapshot";
|
|
48
54
|
export { configureTelemetry } from "./telemetry";
|
|
49
55
|
export type { TelemetryConfig, TelemetrySnapshot } from "./telemetry";
|
|
50
56
|
export { configureLicense, getEntitlements } from "./license";
|
|
@@ -68,6 +74,10 @@ export type { OmMapElement } from "./elements/om-map";
|
|
|
68
74
|
export type { OmStoryElement, StoryState } from "./elements/om-story";
|
|
69
75
|
export { computeTimeline, parseDurationMs } from "./timeline";
|
|
70
76
|
export type { StepTiming, StepInterval, Timeline } from "./timeline";
|
|
77
|
+
export { Layer, CompositeLayer, LayerExtension, WebMercatorViewport, COORDINATE_SYSTEM } from "@deck.gl/core";
|
|
78
|
+
export { GeoJsonLayer, ScatterplotLayer, IconLayer, BitmapLayer } from "@deck.gl/layers";
|
|
79
|
+
export { TileLayer, Tile3DLayer } from "@deck.gl/geo-layers";
|
|
80
|
+
export { SimpleMeshLayer, ScenegraphLayer } from "@deck.gl/mesh-layers";
|
|
71
81
|
export { compileExpression, AccessorCache, CompileError } from "./expr";
|
|
72
82
|
export type { Shape, CompileOptions, CompiledExpression } from "./expr";
|
|
73
83
|
export { evaluateInSandbox, compileFullJsAccessorBlockInSandbox, sandboxHtml, destroySandbox } from "./csp-sandbox";
|
|
@@ -87,6 +97,7 @@ export declare const OmMap: {
|
|
|
87
97
|
registerFormat: typeof registerFormat;
|
|
88
98
|
registerSource: typeof registerSource;
|
|
89
99
|
registerBasemap: typeof registerBasemap;
|
|
100
|
+
registerTerrain: typeof registerTerrain;
|
|
90
101
|
configureBasemap: typeof configureBasemap;
|
|
91
102
|
configureData: typeof configureData;
|
|
92
103
|
configureTelemetry: typeof configureTelemetry;
|
package/dist/ir-snapshot.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ export interface LayerIRSnapshot {
|
|
|
34
34
|
rows: number;
|
|
35
35
|
meta: LayerMeta;
|
|
36
36
|
filter?: LayerFilter;
|
|
37
|
+
/** Per-layer terrain mode when authored (`terrain` attribute) — absent = the type default. */
|
|
38
|
+
terrain?: "drape" | "offset" | "off";
|
|
37
39
|
/**
|
|
38
40
|
* Resolved deck.gl props, made JSON-safe: compiled accessors appear as
|
|
39
41
|
* their updateTrigger fingerprint (`[accessor <shape>|<source>]`), other
|
package/dist/ir.d.ts
CHANGED
|
@@ -55,6 +55,13 @@ export interface LayerIR {
|
|
|
55
55
|
meta: LayerMeta;
|
|
56
56
|
/** The layer's active declarative filter, if `filter-field`/`filter-range` are present. */
|
|
57
57
|
filter?: LayerFilter;
|
|
58
|
+
/**
|
|
59
|
+
* Per-layer terrain mode (spec: "Terrain") — the `terrain` attribute:
|
|
60
|
+
* drape onto / sit on / ignore an active terrain surface. Absent = the
|
|
61
|
+
* type's default (3D-model layers offset, tiled 3D layers off, everything
|
|
62
|
+
* else drapes). Inert without map-level terrain.
|
|
63
|
+
*/
|
|
64
|
+
terrain?: "drape" | "offset" | "off";
|
|
58
65
|
/**
|
|
59
66
|
* deck.gl `updateTriggers` — one behavioural fingerprint (`shape|paramName|source`)
|
|
60
67
|
* per compiled accessor deckProp, so deck.gl recomputes an attribute iff the
|
package/dist/onlymapjs.js
CHANGED
|
@@ -1,38 +1,57 @@
|
|
|
1
|
-
import { an as e, ao as r, ap as o, aq as t, ar as i, as as n, at as l, au as
|
|
1
|
+
import { an as e, ao as r, ap as o, aq as t, ar as i, as as n, at as l, au as c, av as m, aw as p, ax as g, ay as b, az as L, aA as y, aB as T, aC as S, aD as u, ad as E, aE as d, aF as M, aG as A, aH as I, aI as x, aJ as C, aK as f, aL as B, aM as D, aN as h, aO as w, aP as R, aQ as v, aR as F, aS as G, aT as N, aU as O, aV as _, aW as z, aX as H, aY as J, aZ as W, a_ as P, a$ as V, b0 as Y, b1 as k, b2 as q, b3 as K, b4 as Q, b5 as U, b6 as X, b7 as Z, b8 as $, b9 as j, ba as aa, bb as sa } from "./index-CsicbycJ.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AccessorCache,
|
|
4
|
-
r as
|
|
5
|
-
o as
|
|
6
|
-
t as
|
|
7
|
-
i as
|
|
8
|
-
n as
|
|
9
|
-
l as
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
S as
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
M as
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
D as
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
4
|
+
r as BitmapLayer,
|
|
5
|
+
o as COORDINATE_SYSTEM,
|
|
6
|
+
t as CompileError,
|
|
7
|
+
i as CompositeLayer,
|
|
8
|
+
n as GeoJsonLayer,
|
|
9
|
+
l as IconLayer,
|
|
10
|
+
c as LIGHTING_PRESET_NAMES,
|
|
11
|
+
m as Layer,
|
|
12
|
+
p as LayerExtension,
|
|
13
|
+
g as MapController,
|
|
14
|
+
b as OmMap,
|
|
15
|
+
L as ScatterplotLayer,
|
|
16
|
+
y as ScenegraphLayer,
|
|
17
|
+
T as SimpleMeshLayer,
|
|
18
|
+
S as Tile3DLayer,
|
|
19
|
+
u as TileLayer,
|
|
20
|
+
E as WebMercatorViewport,
|
|
21
|
+
d as arrowTableToColumnar,
|
|
22
|
+
M as asRows,
|
|
23
|
+
A as compileExpression,
|
|
24
|
+
I as compileFullJsAccessorBlockInSandbox,
|
|
25
|
+
x as computeTimeline,
|
|
26
|
+
C as configureBasemap,
|
|
27
|
+
f as configureData,
|
|
28
|
+
B as configureLicense,
|
|
29
|
+
D as configureTelemetry,
|
|
30
|
+
h as descriptorToIR,
|
|
31
|
+
w as destroySandbox,
|
|
32
|
+
R as evaluateInSandbox,
|
|
33
|
+
v as getBasemap,
|
|
34
|
+
F as getEntitlements,
|
|
35
|
+
G as getLayerSchema,
|
|
36
|
+
N as getTerrain,
|
|
37
|
+
O as isBrowser,
|
|
38
|
+
_ as isColumnar,
|
|
39
|
+
z as mountForTest,
|
|
40
|
+
H as normalizeData,
|
|
41
|
+
J as parseDurationMs,
|
|
42
|
+
W as parseTerrainAttrs,
|
|
43
|
+
P as registerAction,
|
|
44
|
+
V as registerBasemap,
|
|
45
|
+
Y as registerFormat,
|
|
46
|
+
k as registerLayer,
|
|
47
|
+
q as registerSource,
|
|
48
|
+
K as registerTerrain,
|
|
49
|
+
Q as registerWidget,
|
|
50
|
+
U as resolveLighting,
|
|
51
|
+
X as rowAt,
|
|
52
|
+
Z as sandboxHtml,
|
|
53
|
+
$ as snapshotIR,
|
|
54
|
+
j as solarAzElDegrees,
|
|
55
|
+
aa as validateManifest,
|
|
56
|
+
sa as validateManifestString
|
|
38
57
|
};
|