@metoceanapi/wxtiles-leaflet 1.0.6-15 → 1.0.6-18
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 +19 -0
- package/dist/es/qtree.d.ts +2 -1
- package/dist/es/tilesLayer.d.ts +3 -2
- package/dist/es/wxtiles.d.ts +1 -0
- package/dist/es/wxtiles.js +1 -1
- package/dist/es/wxtools.d.ts +7 -6
- package/dist/web/wxtiles.js +1 -1
- package/package.json +1 -1
- package/dist/es/defaults/seamask.d.ts +0 -2
package/dist/es/wxtools.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export interface Converter {
|
|
|
74
74
|
trivial?: boolean;
|
|
75
75
|
}
|
|
76
76
|
export declare function makeConverter(from: string, to: string, customUnits?: Units): Converter;
|
|
77
|
-
declare type CacheableFunc = (url: string) =>
|
|
77
|
+
declare type CacheableFunc<T> = (url: string) => T;
|
|
78
78
|
interface IntegralPare {
|
|
79
79
|
integral: Uint32Array;
|
|
80
80
|
integralNZ: Uint32Array;
|
|
@@ -85,21 +85,22 @@ export interface DataPicture {
|
|
|
85
85
|
dmax: number;
|
|
86
86
|
dmul: number;
|
|
87
87
|
}
|
|
88
|
-
export interface
|
|
88
|
+
export interface DataIntegral extends DataPicture {
|
|
89
89
|
integral: IntegralPare;
|
|
90
90
|
radius: number;
|
|
91
91
|
}
|
|
92
92
|
export declare function loadImageData(url: string, signal: AbortSignal): Promise<ImageData>;
|
|
93
|
-
export interface AbortableCacheableFunc extends CacheableFunc {
|
|
93
|
+
export interface AbortableCacheableFunc<T> extends CacheableFunc<T> {
|
|
94
94
|
abort(): void;
|
|
95
95
|
controller: AbortController;
|
|
96
96
|
}
|
|
97
|
-
export declare function loadDataPictureCachedAbortable(): AbortableCacheableFunc
|
|
98
|
-
export declare function
|
|
97
|
+
export declare function loadDataPictureCachedAbortable(): AbortableCacheableFunc<Promise<DataIntegral>>;
|
|
98
|
+
export declare function loadMaskCachedAbortable(controller: AbortController): AbortableCacheableFunc<Promise<ImageData>>;
|
|
99
|
+
export declare function blurData(im: DataIntegral, radius: number): DataIntegral;
|
|
99
100
|
export declare function RGBtoHEX(rgb: number): string;
|
|
100
101
|
export declare function RGBAtoHEX(rgba: number): string;
|
|
101
102
|
export declare function HEXtoRGBA(c: string): number;
|
|
102
|
-
export declare function fetchJson(url: RequestInfo): Promise<any>;
|
|
103
|
+
export declare function fetchJson(url: RequestInfo, init?: RequestInit): Promise<any>;
|
|
103
104
|
export declare function createEl(tagName: string, className?: string, container?: HTMLElement): HTMLElement;
|
|
104
105
|
export declare function mixColor(c1: number, c2: number, t: number): number;
|
|
105
106
|
export declare function createLevels(min: number, max: number, n: number): number[];
|