@basemaps/landing 6.46.0 → 7.1.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 +2 -4
- package/build/__tests__/config.debug.test.d.ts +0 -1
- package/build/__tests__/config.debug.test.js +11 -10
- package/build/__tests__/config.debug.test.js.map +1 -1
- package/build/__tests__/config.test.d.ts +0 -1
- package/build/__tests__/config.test.js +5 -4
- package/build/__tests__/config.test.js.map +1 -1
- package/build/__tests__/geojson.test.d.ts +0 -1
- package/build/__tests__/geojson.test.js +6 -5
- package/build/__tests__/geojson.test.js.map +1 -1
- package/build/__tests__/map.config.test.d.ts +0 -1
- package/build/__tests__/map.config.test.js +66 -65
- package/build/__tests__/map.config.test.js.map +1 -1
- package/build/__tests__/tile.matrix.test.d.ts +0 -1
- package/build/__tests__/tile.matrix.test.js +11 -10
- package/build/__tests__/tile.matrix.test.js.map +1 -1
- package/build/attribution.d.ts +8 -11
- package/build/attribution.js +145 -66
- package/build/attribution.js.map +1 -1
- package/build/components/copyable.d.ts +1 -2
- package/build/components/copyable.js +27 -18
- package/build/components/copyable.js.map +1 -1
- package/build/components/daterange.d.ts +0 -1
- package/build/components/daterange.js +11 -7
- package/build/components/daterange.js.map +1 -1
- package/build/components/debug.d.ts +13 -2
- package/build/components/debug.js +273 -78
- package/build/components/debug.js.map +1 -1
- package/build/components/layer.switcher.dropdown.d.ts +1 -2
- package/build/components/layer.switcher.dropdown.js +43 -29
- package/build/components/layer.switcher.dropdown.js.map +1 -1
- package/build/components/layout.footer.d.ts +0 -1
- package/build/components/layout.footer.js +7 -2
- package/build/components/layout.footer.js.map +1 -1
- package/build/components/layout.header.d.ts +1 -2
- package/build/components/layout.header.js +44 -23
- package/build/components/layout.header.js.map +1 -1
- package/build/components/link.d.ts +0 -1
- package/build/components/link.js +1 -1
- package/build/components/link.js.map +1 -1
- package/build/components/map.d.ts +14 -4
- package/build/components/map.js +221 -84
- package/build/components/map.js.map +1 -1
- package/build/components/map.switcher.d.ts +1 -2
- package/build/components/map.switcher.js +80 -31
- package/build/components/map.switcher.js.map +1 -1
- package/build/config.d.ts +0 -1
- package/build/config.debug.d.ts +6 -1
- package/build/config.debug.js +6 -0
- package/build/config.debug.js.map +1 -1
- package/build/config.js +4 -8
- package/build/config.js.map +1 -1
- package/build/config.layer.d.ts +31 -2
- package/build/config.layer.js +14 -6
- package/build/config.layer.js.map +1 -1
- package/build/config.map.d.ts +6 -6
- package/build/config.map.js +95 -29
- package/build/config.map.js.map +1 -1
- package/build/debug.map.d.ts +2 -3
- package/build/debug.map.js +57 -23
- package/build/debug.map.js.map +1 -1
- package/build/global.d.ts +3 -3
- package/build/index.d.ts +0 -1
- package/build/index.js.map +1 -1
- package/build/tile.matrix.d.ts +0 -1
- package/build/tile.matrix.js +12 -0
- package/build/tile.matrix.js.map +1 -1
- package/build/url.d.ts +4 -1
- package/build/url.js +10 -8
- package/build/url.js.map +1 -1
- package/build/webp.d.ts +0 -1
- package/build/webp.js.map +1 -1
- package/dist/docs/404.html +849 -0
- package/dist/docs/assets/images/favicon.png +0 -0
- package/dist/docs/assets/javascripts/bundle.6c14ae12.min.js +29 -0
- package/dist/docs/assets/javascripts/bundle.6c14ae12.min.js.map +7 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.ar.min.js +1 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.da.min.js +18 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.de.min.js +18 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.du.min.js +18 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.el.min.js +1 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.es.min.js +18 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.fi.min.js +18 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.fr.min.js +18 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.he.min.js +1 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.hi.min.js +1 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.hu.min.js +18 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.hy.min.js +1 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.it.min.js +18 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.ja.min.js +1 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.jp.min.js +1 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.kn.min.js +1 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.ko.min.js +1 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.multi.min.js +1 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.nl.min.js +18 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.no.min.js +18 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.pt.min.js +18 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.ro.min.js +18 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.ru.min.js +18 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.sa.min.js +1 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.stemmer.support.min.js +1 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.sv.min.js +18 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.ta.min.js +1 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.te.min.js +1 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.th.min.js +1 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.tr.min.js +18 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.vi.min.js +1 -0
- package/dist/docs/assets/javascripts/lunr/min/lunr.zh.min.js +1 -0
- package/dist/docs/assets/javascripts/lunr/tinyseg.js +206 -0
- package/dist/docs/assets/javascripts/lunr/wordcut.js +6708 -0
- package/dist/docs/assets/javascripts/swagger-initializer.js +20 -0
- package/dist/docs/assets/javascripts/swagger-ui-bundle.js +3 -0
- package/dist/docs/assets/javascripts/swagger-ui-bundle.js.map +1 -0
- package/dist/docs/assets/javascripts/swagger-ui-es-bundle-core.js +3 -0
- package/dist/docs/assets/javascripts/swagger-ui-es-bundle-core.js.map +1 -0
- package/dist/docs/assets/javascripts/swagger-ui-es-bundle.js +3 -0
- package/dist/docs/assets/javascripts/swagger-ui-es-bundle.js.map +1 -0
- package/dist/docs/assets/javascripts/swagger-ui-standalone-preset.js +3 -0
- package/dist/docs/assets/javascripts/swagger-ui-standalone-preset.js.map +1 -0
- package/dist/docs/assets/javascripts/workers/search.f886a092.min.js +42 -0
- package/dist/docs/assets/javascripts/workers/search.f886a092.min.js.map +7 -0
- package/dist/docs/assets/stylesheets/main.fad675c6.min.css +1 -0
- package/dist/docs/assets/stylesheets/main.fad675c6.min.css.map +1 -0
- package/dist/docs/assets/stylesheets/palette.356b1318.min.css +1 -0
- package/dist/docs/assets/stylesheets/palette.356b1318.min.css.map +1 -0
- package/dist/docs/assets/stylesheets/swagger-ui-dark.css +833 -0
- package/dist/docs/assets/stylesheets/swagger-ui.css +3 -0
- package/dist/docs/assets/stylesheets/swagger-ui.css.map +1 -0
- package/dist/docs/assets/stylesheets/swagger-ui.js +2 -0
- package/dist/docs/assets/stylesheets/swagger-ui.js.map +1 -0
- package/dist/docs/assets/swagger-ui/oauth2-redirect.html +79 -0
- package/dist/docs/configuration/index.html +503 -0
- package/dist/docs/deployment/index.html +457 -0
- package/dist/docs/developer-guide/index.html +434 -0
- package/dist/docs/examples/_overview/index.html +413 -0
- package/dist/docs/examples/index.leaflet.xyz.3857.html +38 -0
- package/dist/docs/examples/index.maplibre.opacity.3857.html +215 -0
- package/dist/docs/examples/index.maplibre.vector.3857.html +45 -0
- package/dist/docs/examples/leaflet.xyz.3857/index.html +448 -0
- package/dist/docs/examples/maplibre.opacity.3857/index.html +625 -0
- package/dist/docs/examples/maplibre.vector.3857/index.html +455 -0
- package/dist/docs/index.css +3 -0
- package/dist/docs/index.html +623 -0
- package/dist/docs/linz-motif.svg +124 -0
- package/dist/docs/operator-guide/cog-quality/index.html +608 -0
- package/dist/docs/operator-guide/empty-tiles/index.html +513 -0
- package/dist/docs/operator-guide/gebco/index.html +479 -0
- package/dist/docs/operator-guide/index.html +413 -0
- package/dist/docs/operator-guide/quick-start/index.html +611 -0
- package/dist/docs/operator-guide/relief-shade/index.html +490 -0
- package/dist/docs/operator-guide/static/2023-06-26-gisborne-2023.png +0 -0
- package/dist/docs/operator-guide/static/quality__005_006_0_bilinear.webp +0 -0
- package/dist/docs/operator-guide/static/quality__005_006_0_lanczos.webp +0 -0
- package/dist/docs/operator-guide/static/quality__i6.bilinear.webp +0 -0
- package/dist/docs/operator-guide/static/quality__i6.cubic.webp +0 -0
- package/dist/docs/operator-guide/static/quality__i6.lanczos.webp +0 -0
- package/dist/docs/operator-guide/static/quality__resampling-overview.webp +0 -0
- package/dist/docs/operator-guide/static/quick-start__layers.png +0 -0
- package/dist/docs/operator-guide/static/relief__aerial.webp +0 -0
- package/dist/docs/operator-guide/static/relief__base.webp +0 -0
- package/dist/docs/operator-guide/static/relief__darken.webp +0 -0
- package/dist/docs/operator-guide/static/relief__lighten.webp +0 -0
- package/dist/docs/operator-guide/texture-shade/index.html +537 -0
- package/dist/docs/quick-start/index.html +419 -0
- package/dist/docs/sitemap.xml +98 -0
- package/dist/docs/sitemap.xml.gz +0 -0
- package/dist/docs/static/basemaps-service.png +0 -0
- package/dist/docs/static/tile-resize.png +0 -0
- package/dist/docs/static/workflow-run.png +0 -0
- package/dist/docs/user-guide/_get-started/index.html +602 -0
- package/dist/docs/user-guide/api-documentation/index.html +409 -0
- package/dist/docs/user-guide/api-documentation/swagger-c1884237.html +120 -0
- package/dist/docs/user-guide/swagger-api.json +393 -0
- package/dist/docs/user-guide/technical-documentation/index.html +930 -0
- package/package.json +17 -17
- package/CHANGELOG.md +0 -1374
- package/build/__tests__/config.debug.test.d.ts.map +0 -1
- package/build/__tests__/config.test.d.ts.map +0 -1
- package/build/__tests__/geojson.test.d.ts.map +0 -1
- package/build/__tests__/map.config.test.d.ts.map +0 -1
- package/build/__tests__/tile.matrix.test.d.ts.map +0 -1
- package/build/attribution.d.ts.map +0 -1
- package/build/components/copyable.d.ts.map +0 -1
- package/build/components/daterange.d.ts.map +0 -1
- package/build/components/debug.d.ts.map +0 -1
- package/build/components/layer.switcher.dropdown.d.ts.map +0 -1
- package/build/components/layout.footer.d.ts.map +0 -1
- package/build/components/layout.header.d.ts.map +0 -1
- package/build/components/link.d.ts.map +0 -1
- package/build/components/map.d.ts.map +0 -1
- package/build/components/map.switcher.d.ts.map +0 -1
- package/build/config.d.ts.map +0 -1
- package/build/config.debug.d.ts.map +0 -1
- package/build/config.layer.d.ts.map +0 -1
- package/build/config.map.d.ts.map +0 -1
- package/build/debug.map.d.ts.map +0 -1
- package/build/global.d.ts.map +0 -1
- package/build/index.d.ts.map +0 -1
- package/build/tile.matrix.d.ts.map +0 -1
- package/build/url.d.ts.map +0 -1
- package/build/webp.d.ts.map +0 -1
package/build/tile.matrix.d.ts
CHANGED
|
@@ -21,4 +21,3 @@ export declare function locationTransform(location: MapLocation, tileMatrix: Til
|
|
|
21
21
|
* *Warning* This will overwrite the existing object
|
|
22
22
|
*/
|
|
23
23
|
export declare function projectGeoJson(g: GeoJSON.FeatureCollection, targetTileMatrix: TileMatrixSet): void;
|
|
24
|
-
//# sourceMappingURL=tile.matrix.d.ts.map
|
package/build/tile.matrix.js
CHANGED
|
@@ -3,6 +3,18 @@ import { Config } from './config.js';
|
|
|
3
3
|
import { WindowUrl } from './url.js';
|
|
4
4
|
export class TileGrid {
|
|
5
5
|
constructor(tileMatrix, extraZoomLevels = 0) {
|
|
6
|
+
Object.defineProperty(this, "tileMatrix", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
configurable: true,
|
|
9
|
+
writable: true,
|
|
10
|
+
value: void 0
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(this, "extraZoomLevels", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
configurable: true,
|
|
15
|
+
writable: true,
|
|
16
|
+
value: void 0
|
|
17
|
+
});
|
|
6
18
|
this.tileMatrix = tileMatrix;
|
|
7
19
|
this.extraZoomLevels = extraZoomLevels;
|
|
8
20
|
}
|
package/build/tile.matrix.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tile.matrix.js","sourceRoot":"","sources":["../src/tile.matrix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,UAAU,EAAiB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"tile.matrix.js","sourceRoot":"","sources":["../src/tile.matrix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,UAAU,EAAiB,MAAM,eAAe,CAAC;AAGnG,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EAA8B,SAAS,EAAE,MAAM,UAAU,CAAC;AAEjE,MAAM,OAAO,QAAQ;IAGnB,YAAY,UAAyB,EAAE,eAAe,GAAG,CAAC;QAF1D;;;;;WAA0B;QAC1B;;;;;WAAwB;QAEtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IACzC,CAAC;IAED,QAAQ,CACN,OAAe,EACf,KAAqB,EACrB,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,MAAM,EAC1B,IAAiB;QAEjB,OAAO,SAAS,CAAC,SAAS,CAAC;YACzB,OAAO,mCAAqB;YAC5B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,OAAO;YACP,KAAK;YACL,MAAM;YACN,IAAI;SACL,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,gBAAgB,GAAG,IAAI,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;AACtD,MAAM,oBAAoB,GAAG,IAAI,QAAQ,CAAC,eAAe,CAAC,CAAC;AAC3D,MAAM,cAAc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CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC;YACxB,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC"}
|
package/build/url.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export interface LonLat {
|
|
|
6
6
|
}
|
|
7
7
|
export interface MapLocation extends LonLat {
|
|
8
8
|
zoom: number;
|
|
9
|
+
bearing?: number;
|
|
10
|
+
pitch?: number;
|
|
9
11
|
}
|
|
10
12
|
export declare const enum MapOptionType {
|
|
11
13
|
TileRaster = "raster",
|
|
@@ -21,7 +23,9 @@ export interface TileUrlParams {
|
|
|
21
23
|
layerId: string;
|
|
22
24
|
style?: string | null;
|
|
23
25
|
config?: string | null;
|
|
26
|
+
pipeline?: string | null;
|
|
24
27
|
date?: FilterDate;
|
|
28
|
+
imageFormat?: string;
|
|
25
29
|
}
|
|
26
30
|
export declare function ensureBase58(s: null): null;
|
|
27
31
|
export declare function ensureBase58(s: string): string;
|
|
@@ -35,4 +39,3 @@ export declare const WindowUrl: {
|
|
|
35
39
|
toConfigUrl(layerId: string, config?: string | null): string;
|
|
36
40
|
toConfigImageryUrl(layerId: string, imageryId: string, config?: string | null): string;
|
|
37
41
|
};
|
|
38
|
-
//# sourceMappingURL=url.d.ts.map
|
package/build/url.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { base58, isBase58 } from '@basemaps/config/build/base58.js';
|
|
2
|
-
import { GoogleTms
|
|
2
|
+
import { GoogleTms } from '@basemaps/geo';
|
|
3
3
|
import { toQueryString } from '@basemaps/shared/build/url.js';
|
|
4
4
|
import { Config } from './config.js';
|
|
5
5
|
export function ensureBase58(s) {
|
|
@@ -29,34 +29,36 @@ export const WindowUrl = {
|
|
|
29
29
|
return `${this.baseUrl()}/v1/imagery/${layerId}/${imageryType}`;
|
|
30
30
|
},
|
|
31
31
|
toTileUrl(params) {
|
|
32
|
-
var _a, _b;
|
|
33
32
|
const queryParams = new URLSearchParams();
|
|
34
33
|
if (Config.ApiKey != null && Config.ApiKey !== '')
|
|
35
34
|
queryParams.set('api', Config.ApiKey);
|
|
36
35
|
if (params.config != null)
|
|
37
36
|
queryParams.set('config', ensureBase58(params.config));
|
|
38
|
-
if (
|
|
37
|
+
if (params.pipeline != null)
|
|
38
|
+
queryParams.set('pipeline', params.pipeline);
|
|
39
|
+
if (params.date?.before != null)
|
|
39
40
|
queryParams.set('date[before]', params.date.before);
|
|
41
|
+
const imageFormat = params.imageFormat ?? WindowUrl.ImageFormat;
|
|
40
42
|
if (params.urlType === "style" /* MapOptionType.Style */) {
|
|
41
43
|
if (params.tileMatrix.identifier !== GoogleTms.identifier)
|
|
42
44
|
queryParams.set('tileMatrix', params.tileMatrix.identifier);
|
|
43
|
-
if (
|
|
44
|
-
queryParams.set('format',
|
|
45
|
+
if (imageFormat !== 'webp')
|
|
46
|
+
queryParams.set('format', imageFormat);
|
|
45
47
|
}
|
|
46
48
|
const q = '?' + queryParams.toString();
|
|
47
49
|
const baseTileUrl = `${this.baseUrl()}/v1/tiles/${params.layerId}/${params.tileMatrix.identifier}`;
|
|
48
50
|
if (params.urlType === "raster" /* MapOptionType.TileRaster */)
|
|
49
|
-
return `${baseTileUrl}/{z}/{x}/{y}.${
|
|
51
|
+
return `${baseTileUrl}/{z}/{x}/{y}.${imageFormat}${q}`;
|
|
50
52
|
if (params.urlType === "vector-xyz" /* MapOptionType.TileVectorXyz */)
|
|
51
53
|
return `${baseTileUrl}/{z}/{x}/{y}.pbf${q}`;
|
|
52
54
|
if (params.urlType === "style" /* MapOptionType.Style */)
|
|
53
|
-
return `${this.baseUrl()}/v1/styles/${
|
|
55
|
+
return `${this.baseUrl()}/v1/styles/${params.style ?? params.layerId}.json${q}`;
|
|
54
56
|
if (params.urlType === "wmts" /* MapOptionType.Wmts */)
|
|
55
57
|
return `${baseTileUrl}/WMTSCapabilities.xml${q}`;
|
|
56
58
|
if (params.urlType === "attribution" /* MapOptionType.Attribution */)
|
|
57
59
|
return `${baseTileUrl}/attribution.json${q}`;
|
|
58
60
|
if (params.urlType === "tile-wmts" /* MapOptionType.TileWmts */) {
|
|
59
|
-
return `${baseTileUrl}/{TileMatrix}/{TileCol}/{TileRow}.${
|
|
61
|
+
return `${baseTileUrl}/{TileMatrix}/{TileCol}/{TileRow}.${imageFormat}${q}`;
|
|
60
62
|
}
|
|
61
63
|
throw new Error('Unknown url type: ' + params.urlType);
|
|
62
64
|
},
|
package/build/url.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.js","sourceRoot":"","sources":["../src/url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"url.js","sourceRoot":"","sources":["../src/url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAiB,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAqCrC,MAAM,UAAU,YAAY,CAAC,CAAgB;IAC3C,IAAI,CAAC,IAAI,IAAI;QAAE,OAAO,IAAI,CAAC;IAC3B,IAAI,QAAQ,CAAC,CAAC,CAAC;QAAE,OAAO,CAAC,CAAC;IAC1B,MAAM,IAAI,GAAG,IAAI,WAAW,EAAE,CAAC;IAC/B,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC9B,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAC/B,CAAC;AAED,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,WAAW,EAAE,KAAK;IAElB,OAAO;QACL,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC/B,IAAI,OAAO,KAAK,EAAE;YAAE,OAA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C,CAAC;IACzD,CAAC;IAED,WAAW,CAAC,OAAe,EAAE,SAAwB,MAAM,CAAC,GAAG,CAAC,MAAM;QACpE,MAAM,KAAK,GAAG,aAAa,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QAC5D,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,cAAc,OAAO,QAAQ,KAAK,EAAE,CAAC;IAC/D,CAAC;IAED,kBAAkB,CAAC,OAAe,EAAE,SAAiB,EAAE,SAAwB,MAAM,CAAC,GAAG,CAAC,MAAM;QAC9F,MAAM,KAAK,GAAG,aAAa,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QAC5D,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,cAAc,OAAO,IAAI,SAAS,QAAQ,KAAK,EAAE,CAAC;IAC5E,CAAC;CACF,CAAC"}
|
package/build/webp.d.ts
CHANGED
package/build/webp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webp.js","sourceRoot":"","sources":["../src/webp.ts"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG,qFAAqF,CAAC;AAExG,4EAA4E;AAC5E,SAAS,qBAAqB;IAC5B,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAE9C,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"webp.js","sourceRoot":"","sources":["../src/webp.ts"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG,qFAAqF,CAAC;AAExG,4EAA4E;AAC5E,SAAS,qBAAqB;IAC5B,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAE9C,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UA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