@antv/l7-component 2.10.9 → 2.10.13

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.
@@ -1,16 +1,16 @@
1
1
  import { IPopperControlOption, PopperControl } from './popperControl';
2
- type BaseOptionItem = {
2
+ declare type BaseOptionItem = {
3
3
  value: string;
4
4
  text: string;
5
5
  [key: string]: string;
6
6
  };
7
- type NormalOptionItem = BaseOptionItem & {
7
+ declare type NormalOptionItem = BaseOptionItem & {
8
8
  icon?: HTMLElement;
9
9
  };
10
- type ImageOptionItem = BaseOptionItem & {
10
+ declare type ImageOptionItem = BaseOptionItem & {
11
11
  img: string;
12
12
  };
13
- export type ControlOptionItem = ImageOptionItem | NormalOptionItem;
13
+ export declare type ControlOptionItem = ImageOptionItem | NormalOptionItem;
14
14
  export interface ISelectControlOption extends IPopperControlOption {
15
15
  options: ControlOptionItem[];
16
16
  defaultValue?: string | string[];
package/es/interface.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type ControlEvent = 'show' | 'hide' | 'add' | 'remove' | string;
1
+ export declare type ControlEvent = 'show' | 'hide' | 'add' | 'remove' | string;
2
2
  export interface IMarkerStyleOption {
3
3
  element?: (...args: any[]) => any;
4
4
  style: {
@@ -1,13 +1,13 @@
1
1
  import { ILayer, IPopupOption } from '@antv/l7-core';
2
2
  import { Container } from 'inversify';
3
3
  import Popup from './popup';
4
- export type LayerField = {
4
+ export declare type LayerField = {
5
5
  field: string;
6
6
  formatField?: ((field: string) => string) | string;
7
7
  formatValue?: ((value: any) => any) | string;
8
8
  getValue?: (feature: any) => any;
9
9
  };
10
- export type LayerPopupConfigItem = {
10
+ export declare type LayerPopupConfigItem = {
11
11
  layer: ILayer | string;
12
12
  fields: Array<LayerField | string>;
13
13
  };
@@ -16,7 +16,7 @@ export interface ILayerPopupOption extends IPopupOption {
16
16
  items?: LayerPopupConfigItem[];
17
17
  trigger: 'hover' | 'click';
18
18
  }
19
- type LayerMapInfo = {
19
+ declare type LayerMapInfo = {
20
20
  onMouseMove?: (layer: ILayer, e: any) => void;
21
21
  onMouseOut?: (layer: ILayer, e: any) => void;
22
22
  onClick?: (layer: ILayer, e: any) => void;
@@ -2,15 +2,15 @@ import { EventEmitter } from 'eventemitter3';
2
2
  /**
3
3
  * 气泡位置枚举
4
4
  */
5
- export type PopperPlacement = 'top-start' | 'top' | 'top-end' | 'left-start' | 'left' | 'left-end' | 'bottom-start' | 'bottom' | 'bottom-end' | 'right-start' | 'right' | 'right-end';
5
+ export declare type PopperPlacement = 'top-start' | 'top' | 'top-end' | 'left-start' | 'left' | 'left-end' | 'bottom-start' | 'bottom' | 'bottom-end' | 'right-start' | 'right' | 'right-end';
6
6
  /**
7
7
  * 气泡触发类型,当前支持 click 和 hover 两种类型
8
8
  */
9
- export type PopperTrigger = 'click' | 'hover';
9
+ export declare type PopperTrigger = 'click' | 'hover';
10
10
  /**
11
11
  * 气泡内容类型
12
12
  */
13
- export type PopperContent = string | HTMLElement | null;
13
+ export declare type PopperContent = string | HTMLElement | null;
14
14
  export interface IPopperOption {
15
15
  placement: PopperPlacement;
16
16
  trigger: PopperTrigger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-component",
3
- "version": "2.10.9",
3
+ "version": "2.10.13",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -26,8 +26,8 @@
26
26
  "author": "lzxue",
27
27
  "license": "ISC",
28
28
  "dependencies": {
29
- "@antv/l7-core": "2.10.9",
30
- "@antv/l7-utils": "2.10.9",
29
+ "@antv/l7-core": "2.10.13",
30
+ "@antv/l7-utils": "2.10.13",
31
31
  "@babel/runtime": "^7.7.7",
32
32
  "eventemitter3": "^4.0.0",
33
33
  "inversify": "^5.0.1",
@@ -36,11 +36,11 @@
36
36
  "supercluster": "^7.0.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@antv/l7-test-utils": "2.10.9",
39
+ "@antv/l7-test-utils": "2.10.13",
40
40
  "gcoord": "^0.3.2",
41
41
  "less": "^4.1.3"
42
42
  },
43
- "gitHead": "9fe64ef00875f4d96771542c16842468e61a8ef4",
43
+ "gitHead": "8fadd5482db4de817a0a2e7c5cae43a9de560501",
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  }