@antv/l7-layers 2.9.37 → 2.10.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.
@@ -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
@@ -0,0 +1,5 @@
1
+ declare module '*.glsl' {
2
+ const content: string;
3
+ // @ts-ignore
4
+ export default content;
5
+ }
@@ -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 | unknown[])[] | (import("@antv/l7-core").StyleAttributeField | ((...args: any[]) => [] | undefined))[];
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;
@@ -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
@@ -0,0 +1,5 @@
1
+ declare module '*.glsl' {
2
+ const content: string;
3
+ // @ts-ignore
4
+ export default content;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-layers",
3
- "version": "2.9.37",
3
+ "version": "2.10.0",
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.9.37",
31
- "@antv/l7-maps": "2.9.37",
32
- "@antv/l7-source": "2.9.37",
33
- "@antv/l7-utils": "2.9.37",
30
+ "@antv/l7-core": "2.10.0",
31
+ "@antv/l7-maps": "2.10.0",
32
+ "@antv/l7-source": "2.10.0",
33
+ "@antv/l7-utils": "2.10.0",
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": "18d479150376cbcb0d616f921036173460293c38",
64
+ "gitHead": "3a18f28d0c92b49230f1fe3c1acd8c5db820bd63",
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  }