@naivemap/maplibre-gl-image-layer 0.0.1-alpha.3 → 0.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.
@@ -118,7 +118,13 @@ export default class ImageLayer implements maplibregl.CustomLayerInterface {
118
118
  * Updates the URL, the projection, the coordinates, the opacity or the resampling of the image.
119
119
  * @param {Object} option Options object.
120
120
  */
121
- updateImage(option: Partial<ImageLayerOption>): void;
121
+ updateImage(option: Partial<Omit<ImageLayerOption, 'mask'>>): this;
122
+ /**
123
+ * Updates the mask property of the image layer.
124
+ * @param mask
125
+ * @returns
126
+ */
127
+ updateMask(mask: Partial<MaskProperty>): this;
122
128
  private loadTexture;
123
129
  private getMaskBufferInfo;
124
130
  }
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import { default as ImageLayer } from './ImageLayer';
2
- export type { ImageLayerOption as ImageOption } from './ImageLayer';
2
+ export type { ImageLayerOption } from './ImageLayer';
3
3
  export default ImageLayer;
4
4
  export type { MaskProperty } from './mask';