@xweather/mapsgl 1.8.3-beta.1 → 1.8.3
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/mapsgl.css +1 -1
- package/dist/mapsgl.d.ts +35 -3
- package/dist/mapsgl.js +4 -4
- package/package.json +1 -1
package/dist/mapsgl.css
CHANGED
package/dist/mapsgl.d.ts
CHANGED
|
@@ -3038,6 +3038,10 @@ export declare interface LayerRenderer {
|
|
|
3038
3038
|
* @param layer - The layer that was resized.
|
|
3039
3039
|
*/
|
|
3040
3040
|
onResize(layer: WebGLLayer): void;
|
|
3041
|
+
/**
|
|
3042
|
+
* Called when the layer's mask state changes.
|
|
3043
|
+
*/
|
|
3044
|
+
onMaskStateChange(): void;
|
|
3041
3045
|
/**
|
|
3042
3046
|
* Flags the renderer as dirty so that it is updated during the next render frame.
|
|
3043
3047
|
*/
|
|
@@ -3927,8 +3931,10 @@ get needsViewportUpdate(): boolean;
|
|
|
3927
3931
|
*/
|
|
3928
3932
|
setRefreshInterval(minutes: number, advanceToNow?: boolean): void;
|
|
3929
3933
|
private _triggerPreloadAnimation;
|
|
3930
|
-
private debouncedPreloadAnimationData;
|
|
3931
3934
|
preloadAnimationData(): Promise<void>;
|
|
3935
|
+
private debouncedPreloadAnimationData;
|
|
3936
|
+
private setNeedsPreloadAnimationData;
|
|
3937
|
+
private preloadAnimationDataIfNeeded;
|
|
3932
3938
|
triggerRedraw(): void;
|
|
3933
3939
|
protected getTransform(map: MapType, projection?: ProjectionType): MapTransform;
|
|
3934
3940
|
getProjection(): ProjectionType;
|
|
@@ -6263,6 +6269,11 @@ constructor(id: string, spec: Partial<Source>);
|
|
|
6263
6269
|
*/
|
|
6264
6270
|
cancelAllRequests(): void;
|
|
6265
6271
|
|
|
6272
|
+
protected onLoadStart(): void;
|
|
6273
|
+
protected onLoadProgress(e: any): void;
|
|
6274
|
+
protected onLoadComplete(): void;
|
|
6275
|
+
protected onTileLoaded(tile: Tile<Data>, data: Data): void;
|
|
6276
|
+
protected onTileError(tile: Tile<Data>, err: any): void;
|
|
6266
6277
|
dispose(): void;
|
|
6267
6278
|
}
|
|
6268
6279
|
|
|
@@ -6333,16 +6344,33 @@ export declare class TimeAnimation extends Animation {
|
|
|
6333
6344
|
*/
|
|
6334
6345
|
get startDate(): Date;
|
|
6335
6346
|
set startDate(value: Date);
|
|
6347
|
+
/**
|
|
6348
|
+
* The offset between the start date and the animation's reference date in milliseconds. The reference date is the
|
|
6349
|
+
* current date at the time the animation was instantiated or the last time the start/end date was set.
|
|
6350
|
+
* @readonly
|
|
6351
|
+
*/
|
|
6352
|
+
get startOffset(): number;
|
|
6336
6353
|
/**
|
|
6337
6354
|
* The end date of the animation.
|
|
6338
6355
|
*/
|
|
6339
6356
|
get endDate(): Date;
|
|
6340
6357
|
set endDate(value: Date);
|
|
6358
|
+
/**
|
|
6359
|
+
* The offset between the end date and the animation's reference date in milliseconds. The reference date is the
|
|
6360
|
+
* current date at the time the animation was instantiated or the last time the start/end date was set.
|
|
6361
|
+
* @readonly
|
|
6362
|
+
*/
|
|
6363
|
+
get endOffset(): number;
|
|
6341
6364
|
/**
|
|
6342
6365
|
* The current date of the animation based on the animation's current position.
|
|
6343
6366
|
* @readonly
|
|
6344
6367
|
*/
|
|
6345
6368
|
get currentDate(): Date;
|
|
6369
|
+
/**
|
|
6370
|
+
* The reference date of the animation. The reference date is the current date at the time the animation was
|
|
6371
|
+
* instantiated or the last time the start/end date was set.
|
|
6372
|
+
* @readonly
|
|
6373
|
+
*/
|
|
6346
6374
|
get referenceDate(): Date;
|
|
6347
6375
|
/**
|
|
6348
6376
|
* Whether the animation includes time in the past.
|
|
@@ -6375,7 +6403,9 @@ export declare class TimeAnimation extends Animation {
|
|
|
6375
6403
|
*/
|
|
6376
6404
|
get info(): TimeAnimationInfo;
|
|
6377
6405
|
private _startDate;
|
|
6406
|
+
private _startOffset;
|
|
6378
6407
|
private _endDate;
|
|
6408
|
+
private _endOffset;
|
|
6379
6409
|
private _now;
|
|
6380
6410
|
constructor({ start, end, alwaysStopAtStart, ...animationOpts }: Partial<TimeAnimationOptions>);
|
|
6381
6411
|
/**
|
|
@@ -7203,7 +7233,6 @@ declare abstract class WebGLLayer<Source extends DataSource = DataSource> extend
|
|
|
7203
7233
|
*/
|
|
7204
7234
|
timing: LayerTiming;
|
|
7205
7235
|
|
|
7206
|
-
isLayerMask: boolean;
|
|
7207
7236
|
/**
|
|
7208
7237
|
* Whether to invert the mask layer's output.
|
|
7209
7238
|
*/
|
|
@@ -7222,6 +7251,8 @@ declare abstract class WebGLLayer<Source extends DataSource = DataSource> extend
|
|
|
7222
7251
|
|
|
7223
7252
|
get mask(): LayerMask;
|
|
7224
7253
|
set mask(value: LayerMask);
|
|
7254
|
+
get isLayerMask(): boolean;
|
|
7255
|
+
set isLayerMask(value: boolean);
|
|
7225
7256
|
/**
|
|
7226
7257
|
* Returns whether this layer is visible or not.
|
|
7227
7258
|
* @readonly
|
|
@@ -7301,7 +7332,8 @@ protected addSourceEventHandler(event: string, handler: (e: any) => void, once?:
|
|
|
7301
7332
|
|
|
7302
7333
|
protected onReady(): void;
|
|
7303
7334
|
|
|
7304
|
-
protected
|
|
7335
|
+
protected onMaskStateChange(): void;
|
|
7336
|
+
protected eventPayload(): Record<string, any>;
|
|
7305
7337
|
/**
|
|
7306
7338
|
* Disposes of all cached data and resources associated with the layer. This method is automatically called when
|
|
7307
7339
|
* the layer is removed from a MapController instance.
|