@fxi/zartigl 0.15.0 → 0.16.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/dist/catalog.d.ts +14 -0
- package/dist/catalog.js +18 -17
- package/dist/engine.d.ts +7 -0
- package/dist/index-CwJQCXEo.js +429 -0
- package/dist/zartigl.d.ts +7 -0
- package/dist/zartigl.js +1 -1
- package/package.json +2 -2
- package/dist/index-jwaF2X-1.js +0 -421
package/dist/catalog.d.ts
CHANGED
|
@@ -24,6 +24,9 @@ export declare const catalog: Catalog;
|
|
|
24
24
|
/** Live catalog of schema 2; a schema 3 would publish under `v3/`. */
|
|
25
25
|
export declare const CATALOG_URL = "https://sos-ch-gva-2.exo.io/mapx-zartigl/catalog/v2/catalog.json";
|
|
26
26
|
|
|
27
|
+
/** Geographic extent: west, south, east, north, in degrees. */
|
|
28
|
+
export declare type CatalogBounds = [number, number, number, number];
|
|
29
|
+
|
|
27
30
|
export declare interface CatalogEntry {
|
|
28
31
|
id: string;
|
|
29
32
|
aliases?: string[];
|
|
@@ -55,6 +58,8 @@ declare interface CatalogGeoVideoArchiveSource extends CatalogSourceBase {
|
|
|
55
58
|
type: "geovideo";
|
|
56
59
|
indexUrl: string;
|
|
57
60
|
manifestUrl?: never;
|
|
61
|
+
/** Extent of the encoded frames, as in the chunk manifests. */
|
|
62
|
+
bounds?: CatalogBounds;
|
|
58
63
|
}
|
|
59
64
|
|
|
60
65
|
/** One published artifact. */
|
|
@@ -62,6 +67,8 @@ export declare interface CatalogGeoVideoSource extends CatalogSourceBase {
|
|
|
62
67
|
type: "geovideo";
|
|
63
68
|
manifestUrl: string;
|
|
64
69
|
indexUrl?: never;
|
|
70
|
+
/** Extent of the encoded frames, as in the manifest. */
|
|
71
|
+
bounds?: CatalogBounds;
|
|
65
72
|
}
|
|
66
73
|
|
|
67
74
|
/**
|
|
@@ -155,6 +162,13 @@ export declare function compareVersions(a: string, b: string): number;
|
|
|
155
162
|
/** The keys of `style` whose value differs from `base`'s. */
|
|
156
163
|
export declare function diffStyle(style: LayerStyleInput, base: LayerStyle): LayerStyleInput;
|
|
157
164
|
|
|
165
|
+
/**
|
|
166
|
+
* Geographic extent of an entry: west, south, east, north, from its GeoVideo
|
|
167
|
+
* archive, else from a single GeoVideo artifact (often a regional event).
|
|
168
|
+
* Undefined when no GeoVideo source declares one.
|
|
169
|
+
*/
|
|
170
|
+
export declare function entryBounds(entry: CatalogEntry): CatalogBounds | undefined;
|
|
171
|
+
|
|
158
172
|
/**
|
|
159
173
|
* The legend header of a layer: its title, the provider of the source
|
|
160
174
|
* `sourceId` (else of the first source naming one) and its description.
|
package/dist/catalog.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as s, L as r, P as t, h as o, R as l, i, j as y, k as L, g as S, l as E, n as c, o as g, q as n, t as
|
|
1
|
+
import { C as s, L as r, P as t, h as o, R as l, i, j as y, k as L, g as S, l as E, n as c, o as g, q as n, t as d, u as T, v as m, m as C, a as R, p as _, e as f, d as p, w as A, x as u, r as v, y as Y, c as P, z as k, b as x, s as B } from "./index-CwJQCXEo.js";
|
|
2
2
|
export {
|
|
3
3
|
s as CATALOG_URL,
|
|
4
4
|
r as LAYER_STYLE_DEFAULTS,
|
|
@@ -9,23 +9,24 @@ export {
|
|
|
9
9
|
y as catalogLink,
|
|
10
10
|
L as compareVersions,
|
|
11
11
|
S as diffStyle,
|
|
12
|
-
E as
|
|
13
|
-
c as
|
|
14
|
-
g as
|
|
15
|
-
n as
|
|
12
|
+
E as entryBounds,
|
|
13
|
+
c as entryHeader,
|
|
14
|
+
g as findCatalogEntries,
|
|
15
|
+
n as formatTime,
|
|
16
|
+
d as formatVertical,
|
|
16
17
|
T as getCatalogEntry,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
m as loadCatalog,
|
|
19
|
+
C as mergeStyles,
|
|
20
|
+
R as migrateLegacyStyle,
|
|
21
|
+
_ as parseLayerStyle,
|
|
22
|
+
f as pickPreferredSource,
|
|
23
|
+
p as pickSourceByPriority,
|
|
24
|
+
A as providerLabel,
|
|
25
|
+
u as requireCatalogEntry,
|
|
25
26
|
v as resolveEntryStyle,
|
|
26
27
|
Y as resolveLayerStyle,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
P as resolveLocalizedText,
|
|
29
|
+
k as searchCatalog,
|
|
30
|
+
x as sourceCoversTime,
|
|
31
|
+
B as styleForKind
|
|
31
32
|
};
|
package/dist/engine.d.ts
CHANGED
|
@@ -44,6 +44,9 @@ export declare function backdropVec4(backdrop: BackdropStyle): [number, number,
|
|
|
44
44
|
*/
|
|
45
45
|
export declare function cacheChunkStore(name?: string): ChunkStore;
|
|
46
46
|
|
|
47
|
+
/** Geographic extent: west, south, east, north, in degrees. */
|
|
48
|
+
declare type CatalogBounds = [number, number, number, number];
|
|
49
|
+
|
|
47
50
|
declare interface CatalogEntry {
|
|
48
51
|
id: string;
|
|
49
52
|
aliases?: string[];
|
|
@@ -70,6 +73,8 @@ declare interface CatalogGeoVideoArchiveSource extends CatalogSourceBase {
|
|
|
70
73
|
type: "geovideo";
|
|
71
74
|
indexUrl: string;
|
|
72
75
|
manifestUrl?: never;
|
|
76
|
+
/** Extent of the encoded frames, as in the chunk manifests. */
|
|
77
|
+
bounds?: CatalogBounds;
|
|
73
78
|
}
|
|
74
79
|
|
|
75
80
|
/** One published artifact. */
|
|
@@ -77,6 +82,8 @@ declare interface CatalogGeoVideoSource extends CatalogSourceBase {
|
|
|
77
82
|
type: "geovideo";
|
|
78
83
|
manifestUrl: string;
|
|
79
84
|
indexUrl?: never;
|
|
85
|
+
/** Extent of the encoded frames, as in the manifest. */
|
|
86
|
+
bounds?: CatalogBounds;
|
|
80
87
|
}
|
|
81
88
|
|
|
82
89
|
declare type CatalogSource = CatalogZarrSource | CatalogWmtsSource | CatalogGeoVideoSource | CatalogGeoVideoArchiveSource;
|