@antv/l7-layers 2.9.37 → 2.10.1
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/es/core/BaseLayer.js +2 -0
- package/es/glsl.d.ts +5 -0
- package/es/tile/style/utils.d.ts +1 -1
- package/lib/core/BaseLayer.js +2 -0
- package/lib/glsl.d.ts +5 -0
- package/package.json +6 -6
package/es/core/BaseLayer.js
CHANGED
|
@@ -793,6 +793,7 @@ var BaseLayer = (_dec = lazyInject(TYPES.IGlobalConfigService), (_class = /*#__P
|
|
|
793
793
|
visible: true
|
|
794
794
|
});
|
|
795
795
|
this.reRender();
|
|
796
|
+
this.emit('show');
|
|
796
797
|
return this;
|
|
797
798
|
}
|
|
798
799
|
}, {
|
|
@@ -802,6 +803,7 @@ var BaseLayer = (_dec = lazyInject(TYPES.IGlobalConfigService), (_class = /*#__P
|
|
|
802
803
|
visible: false
|
|
803
804
|
});
|
|
804
805
|
this.reRender();
|
|
806
|
+
this.emit('hide');
|
|
805
807
|
return this;
|
|
806
808
|
}
|
|
807
809
|
}, {
|
package/es/glsl.d.ts
ADDED
package/es/tile/style/utils.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export declare function updateLayersConfig(layers: ILayer[], key: string, value:
|
|
|
5
5
|
export declare function setStyleAttributeField(layer: ILayer, parent: ILayer, style: ScaleAttributeType, value: IScaleValue | undefined | string | string[]): ILayer | undefined;
|
|
6
6
|
export declare function getDefaultStyleAttributeField(layer: ILayer, type: string, style: string): string | string[] | 1;
|
|
7
7
|
export declare function getLayerShape(layerType: string, layer: ILayer): string | string[];
|
|
8
|
-
export declare function parseScaleValue(value: IScaleValue | string, type: string): (string | number |
|
|
8
|
+
export declare function parseScaleValue(value: IScaleValue | string, type: string): (string | number | any[])[] | (import("@antv/l7-core").StyleAttributeField | ((...args: any[]) => [] | undefined))[];
|
|
9
9
|
export declare function setScale(layer: ILayer, parent: ILayer): void;
|
package/lib/core/BaseLayer.js
CHANGED
|
@@ -790,6 +790,7 @@ var BaseLayer = (_dec = (0, _l7Core.lazyInject)(_l7Core.TYPES.IGlobalConfigServi
|
|
|
790
790
|
visible: true
|
|
791
791
|
});
|
|
792
792
|
this.reRender();
|
|
793
|
+
this.emit('show');
|
|
793
794
|
return this;
|
|
794
795
|
}
|
|
795
796
|
}, {
|
|
@@ -799,6 +800,7 @@ var BaseLayer = (_dec = (0, _l7Core.lazyInject)(_l7Core.TYPES.IGlobalConfigServi
|
|
|
799
800
|
visible: false
|
|
800
801
|
});
|
|
801
802
|
this.reRender();
|
|
803
|
+
this.emit('hide');
|
|
802
804
|
return this;
|
|
803
805
|
}
|
|
804
806
|
}, {
|
package/lib/glsl.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-layers",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.1",
|
|
4
4
|
"description": "L7's collection of built-in layers",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@antv/async-hook": "^2.2.2",
|
|
30
|
-
"@antv/l7-core": "2.
|
|
31
|
-
"@antv/l7-maps": "2.
|
|
32
|
-
"@antv/l7-source": "2.
|
|
33
|
-
"@antv/l7-utils": "2.
|
|
30
|
+
"@antv/l7-core": "2.10.1",
|
|
31
|
+
"@antv/l7-maps": "2.10.1",
|
|
32
|
+
"@antv/l7-source": "2.10.1",
|
|
33
|
+
"@antv/l7-utils": "2.10.1",
|
|
34
34
|
"@babel/runtime": "^7.7.7",
|
|
35
35
|
"@mapbox/martini": "^0.2.0",
|
|
36
36
|
"@turf/clone": "^6.5.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@types/gl-matrix": "^2.4.5",
|
|
62
62
|
"@types/lodash": "^4.14.138"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "25282411015887cd36c2de1e89a43beb886e1a70",
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
}
|