@nika-js/onlymap 0.12.1 → 0.13.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/CHANGELOG.md +29 -0
- package/README.md +1 -1
- package/dist/{basemap-BK25o5OE.js → basemap-zG1-omic.js} +473 -443
- package/dist/basemap.d.ts +16 -3
- package/dist/build-Bbi4SleC.js +208 -0
- package/dist/cartograph.js +43 -41
- package/dist/cartograph.standalone.js +3 -1
- package/dist/client-CIH6ToMI.js +6878 -0
- package/dist/{geoparquet-CLydPm2f.js → geoparquet-CyWsYt9S.js} +1 -1
- package/dist/{globe-view-ChuX60M5.js → globe-view-Xelgj_KW.js} +6 -6
- package/dist/{hillshade-DD8WFrvf.js → hillshade-Zbg50lm6.js} +79 -67
- package/dist/hillshade.d.ts +7 -0
- package/dist/html-data.d.ts +1 -1
- package/dist/{index-CgVFHEdM.js → index-6eeSlSqN.js} +3 -3
- package/dist/{index-CMKrghNb.js → index-BL_YCKiW.js} +54 -54
- package/dist/{index-C2CKUsom.js → index-BbVnkgld.js} +38 -38
- package/dist/{index-CvrH6mbS.js → index-BtRsa5oc.js} +3 -3
- package/dist/{index-DIzzRLKr.js → index-BwtXeP_F.js} +1 -1
- package/dist/{index-Dvwr1Y3o.js → index-ClAPAqcm.js} +49 -49
- package/dist/{index-Bs69fn8a.js → index-CpFNIkOO.js} +33429 -30673
- package/dist/{index-CdAf0bLj.js → index-DnCmvLuC.js} +42 -42
- package/dist/index-JFuN4DCn.js +4449 -0
- package/dist/layer-registry.d.ts +1 -0
- package/dist/{lerc-mAijS40k.js → lerc-C3SKC6CU.js} +1 -1
- package/dist/onlymap.standalone.js +60762 -51701
- package/dist/onlymapjs.js +47 -47
- package/dist/plane-gpu/gpu-layer-types.d.ts +35 -0
- package/dist/plane-gpu/plane-basemap.d.ts +10461 -0
- package/dist/plane-gpu/plane-gpu-view.d.ts +90 -0
- package/dist/plane-gpu/projection-params.d.ts +47 -0
- package/dist/plane-layers.d.ts +2 -0
- package/dist/plane-seam.d.ts +48 -0
- package/dist/plane-tileset.d.ts +23 -2
- package/dist/plane-vector/build.d.ts +107 -0
- package/dist/plane-vector/client.d.ts +18 -0
- package/dist/plane-vector/cut-ends-extension.d.ts +30 -0
- package/dist/plane-vector/plane-mvt-layer.d.ts +10412 -0
- package/dist/plane-vector/tile-cut.d.ts +45 -0
- package/dist/plane-vector/worker.d.ts +15 -0
- package/dist/plane-warp.d.ts +12 -1
- package/dist/{post-process-effect-rwFDi8di.js → post-process-effect-C3P9VwC9.js} +11 -11
- package/dist/programmatic.d.ts +6 -0
- package/dist/projection.d.ts +51 -0
- package/dist/{raster-CXIqf83L.js → raster-BgCnz9-Z.js} +3 -3
- package/dist/{raster-pipeline-CfSg2Re7.js → raster-pipeline-CKdpKgFo.js} +1 -1
- package/dist/react/om-map.d.ts +4 -0
- package/dist/react.js +259 -252
- package/dist/runtime-core.d.ts +84 -2
- package/dist/{text-on-path-B08PekFz.js → text-on-path-BpVLX8Yt.js} +74 -66
- package/dist/version.d.ts +1 -1
- package/dist/{zarr-CUn2udOc.js → zarr-Cur_pzNa.js} +2 -2
- package/docs/cartograph.md +2 -2
- package/docs/cartography.md +59 -3
- package/docs/testing.md +2 -1
- package/llms.txt +2 -2
- package/onlymapjs.attributes.json +1 -0
- package/onlymapjs.html-data.json +15 -1
- package/package.json +3 -2
- package/skills/onlymapjs/SKILL.md +2 -2
- package/skills/onlymapjs/references/syntax.md +7 -6
- package/dist/index-BHRpKnGi.js +0 -4883
package/dist/onlymapjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bY as e, bZ as r, b_ as t, aa as c, C as o, b$ as i, c as d, c0 as n, c1 as l, c2 as S, c3 as g, ay as E, c4 as L, c5 as T, c6 as _, c7 as A, c8 as p, c9 as m, ca as I, cb as u, L as M, g as D, cc as y, cd as f, ce as O, cf as P, cg as R, bM as C, ch as N, a4 as b, ci as F, aI as v, cj as h, W as B, ck as x, aH as G, cl as w, cm as U, cn as W, co as Y, cp as k, cq as H, cr as X, cs as z, ct as J, cu as K, cv as j, cw as V, cx as q, cy as Z, cz as $, cA as Q, cB as aa, aB as sa, cC as ea, cD as ra, cE as ta, cF as ca, cG as oa, cH as ia, cI as da, cJ as na, cK as la, cL as Sa, cM as ga, cN as Ea, a7 as La, cO as Ta, cP as _a, av as Aa, cQ as pa, cR as ma, cS as Ia, cT as ua, cU as Ma, cV as Da, cW as ya, cX as fa, cY as Oa, cZ as Pa, c_ as Ra, c$ as Ca, d0 as Na, d1 as ba, d2 as Fa, d3 as va, d4 as ha, d5 as Ba, d6 as xa, d7 as Ga, d8 as wa, d9 as Ua, da as Wa, db as Ya, dc as ka, dd as Ha, de as Xa, df as za, dg as Ja, dh as Ka, aJ as ja, di as Va, dj as qa, dk as Za, dl as $a, dm as Qa, dn as as, dp as ss, dq as es, dr as rs, ds as ts, dt as cs, du as os, dv as is, dw as ds, dx as ns, dy as ls, dz as Ss } from "./index-CpFNIkOO.js";
|
|
2
2
|
export {
|
|
3
3
|
e as ALL_POSITION_VALUES,
|
|
4
4
|
r as AUDIT_EXEMPTIONS,
|
|
@@ -15,39 +15,39 @@ export {
|
|
|
15
15
|
L as FOLD_BOTTOM_CLEARANCE_PX,
|
|
16
16
|
T as FOLD_HYSTERESIS_PX,
|
|
17
17
|
_ as FOLD_SIDES,
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
A as FOLD_SINGLE_SIDED_RATIO,
|
|
19
|
+
p as GeoJsonLayer,
|
|
20
20
|
m as IconLayer,
|
|
21
21
|
I as LEGACY_POSITION_ALIASES,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
u as LIGHTING_PRESET_NAMES,
|
|
23
|
+
M as Layer,
|
|
24
|
+
D as LayerExtension,
|
|
25
25
|
y as MANAGED_SLOTS,
|
|
26
26
|
f as MapController,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
O as OmMap,
|
|
28
|
+
P as ScatterplotLayer,
|
|
29
|
+
R as ScenegraphLayer,
|
|
30
30
|
C as SimpleMeshLayer,
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
N as Tile3DLayer,
|
|
32
|
+
b as TileLayer,
|
|
33
33
|
F as UNIT_SYSTEMS,
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
v as WGS84_MEAN_RADIUS_M,
|
|
35
|
+
h as WIDGET_STYLE_KEY_NAMES,
|
|
36
36
|
B as WebMercatorViewport,
|
|
37
37
|
x as arrowTableToColumnar,
|
|
38
38
|
G as asRows,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
w as auditLayout,
|
|
40
|
+
U as badgeMode,
|
|
41
|
+
W as bottomEndLiftPx,
|
|
42
42
|
Y as compileExpression,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
k as compileFullJsAccessorBlockInSandbox,
|
|
44
|
+
H as computeTimeline,
|
|
45
|
+
X as configureBasemap,
|
|
46
|
+
z as configureCrs,
|
|
47
|
+
J as configureData,
|
|
48
|
+
K as configureIfc,
|
|
49
|
+
j as configureLicense,
|
|
50
|
+
V as configureTelemetry,
|
|
51
51
|
q as descriptorToIR,
|
|
52
52
|
Z as destroySandbox,
|
|
53
53
|
$ as distanceMeters,
|
|
@@ -69,39 +69,39 @@ export {
|
|
|
69
69
|
La as getTerrain,
|
|
70
70
|
Ta as isBrowser,
|
|
71
71
|
_a as isColumnar,
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
Aa as isEffectPreset,
|
|
73
|
+
pa as isStoreToken,
|
|
74
74
|
ma as lineStringLengthMeters,
|
|
75
75
|
Ia as loadIfc,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
ua as loadRasterModule,
|
|
77
|
+
Ma as midpoint,
|
|
78
|
+
Da as mountForTest,
|
|
79
79
|
ya as niceNumber,
|
|
80
80
|
fa as normalizeData,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
Oa as parseDurationMs,
|
|
82
|
+
Pa as parseTerrainAttrs,
|
|
83
|
+
Ra as parseUnitSystem,
|
|
84
84
|
Ca as parseWidgetStyle,
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
Na as pathLengthMeters,
|
|
86
|
+
ba as registerAction,
|
|
87
87
|
Fa as registerBasemap,
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
va as registerCrs,
|
|
89
|
+
ha as registerFormat,
|
|
90
90
|
Ba as registerLayer,
|
|
91
91
|
xa as registerRoutingProvider,
|
|
92
92
|
Ga as registerSource,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
wa as registerTerrain,
|
|
94
|
+
Ua as registerWidget,
|
|
95
|
+
Wa as registeredCrsCodes,
|
|
96
96
|
Ya as releaseDataOwner,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
97
|
+
ka as resolveCrs,
|
|
98
|
+
Ha as resolveFoldBreakpointPx,
|
|
99
|
+
Xa as resolveImageOverlay,
|
|
100
|
+
za as resolveLighting,
|
|
101
|
+
Ja as resolveProjection,
|
|
102
|
+
Ka as resolveSlot,
|
|
103
|
+
ja as ringAreaMeters2,
|
|
104
|
+
Va as ringEnclosesPole,
|
|
105
105
|
qa as ringPerimeterMeters,
|
|
106
106
|
Za as rowAt,
|
|
107
107
|
$a as sandboxHtml,
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GPU projection (docs/design/gpu-projection.md): the layer types the shader
|
|
3
|
+
* draws on a plane it projects. Each projects every vertex through deck's
|
|
4
|
+
* `project` module and does no projection arithmetic of its own on the CPU,
|
|
5
|
+
* and e2e/gpu-parity.spec.ts holds each one's picture and picks equal to the
|
|
6
|
+
* CPU path's. Every other type keeps the CPU path — its data copied into
|
|
7
|
+
* plane metres — under the same view, which the shader's Cartesian branch
|
|
8
|
+
* draws unchanged.
|
|
9
|
+
*
|
|
10
|
+
* Not here, measured: HexagonLayer, GridLayer and ContourLayer bin points on
|
|
11
|
+
* the CPU in the view's own coordinates, which under the shader are degrees.
|
|
12
|
+
* GreatCircleLayer interpolates along the great circle in deck's own shader
|
|
13
|
+
* with the builtin trig SwiftShader gets wrong — 1.9 px off there, exact on a
|
|
14
|
+
* real GPU — so it keeps the CPU path, which draws it as before.
|
|
15
|
+
* HeatmapLayer clamps its bounds to ±360°/±85° whenever its data is lng/lat,
|
|
16
|
+
* but takes them from the view, which is in plane metres here. They never
|
|
17
|
+
* contain the screen, so it rebuilt its whole weight texture every frame:
|
|
18
|
+
* 198 ms a frame panning on Metal, against 16.6 on the CPU path. The picture
|
|
19
|
+
* still matched, so the parity spec never saw the cost.
|
|
20
|
+
* MVTLayer is not here either way: vector tiles are projected per tile, off
|
|
21
|
+
* the main thread, and drawn as plane coordinates on both paths
|
|
22
|
+
* (plane-vector/plane-mvt-layer.ts).
|
|
23
|
+
*/
|
|
24
|
+
import type { PlaneFrame } from "../projection";
|
|
25
|
+
export declare const GPU_DRAWN_TYPES: ReadonlySet<string>;
|
|
26
|
+
/**
|
|
27
|
+
* The GPU-drawn types with polygon FILLS. deck's patched tessellator
|
|
28
|
+
* triangulates a fill in the plane the layer hands it (`_planePreproject`),
|
|
29
|
+
* and a live plane switch must triangulate again: a trigger on `getPolygon`,
|
|
30
|
+
* which reaches SolidPolygonLayer's tessellation directly, through
|
|
31
|
+
* PolygonLayer's forwarding, and GeoJsonLayer's fill sublayer by its override
|
|
32
|
+
* slot. The plane travels the same way. Lines and points are untouched by a
|
|
33
|
+
* switch, as before, and so is a GeoJSON layer with no polygon in it.
|
|
34
|
+
*/
|
|
35
|
+
export declare function planeTessellationProps(type: string, props: Record<string, unknown>, plane: PlaneFrame, data: unknown): Record<string, unknown>;
|