@naivemap/mapbox-gl-image-layer 0.6.0-alpha.0 → 0.6.0-alpha.2

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/index.js DELETED
@@ -1,61 +0,0 @@
1
- import t from "@naivemap/image-layer-core";
2
- import { createMapboxLayerAdaptor as o, clearTileClippingMask as d } from "@naivemap/map-gl-layer-adaptor";
3
- class n {
4
- id;
5
- /**
6
- * @ignore
7
- */
8
- type = "custom";
9
- /**
10
- * @ignore
11
- */
12
- renderingMode = "2d";
13
- core;
14
- adaptor;
15
- /**
16
- * @param id - A unique layer id
17
- * @param option - ImageLayer options
18
- */
19
- constructor(e, r) {
20
- this.id = e, this.core = new t(r), this.adaptor = o(this.core, {
21
- id: e,
22
- renderingMode: this.renderingMode,
23
- prepareStencilMask: (a) => d(a)
24
- });
25
- }
26
- /**
27
- * @ignore
28
- */
29
- onAdd(e, r) {
30
- this.adaptor.onAdd(e, r);
31
- }
32
- /**
33
- * @ignore
34
- */
35
- onRemove(e, r) {
36
- this.adaptor.onRemove(e, r);
37
- }
38
- /**
39
- * @ignore
40
- */
41
- render(e, r) {
42
- this.adaptor.render(e, r);
43
- }
44
- /**
45
- * Updates the URL, the projection, the coordinates, the opacity or the resampling of the image.
46
- * @param {Object} option Options object.
47
- */
48
- updateImage(e) {
49
- return this.core.updateImage(e);
50
- }
51
- /**
52
- * Updates the mask property of the image layer.
53
- * @param mask
54
- */
55
- updateMask(e) {
56
- return this.core.updateMask(e);
57
- }
58
- }
59
- export {
60
- n as default
61
- };