tg-map-core 4.1.4 → 4.1.5
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/src/index.d.ts +3 -2
- package/dist/src/map/event-target.d.ts +2 -3
- package/dist/src/map/lat-lng.d.ts +2 -0
- package/dist/src/map/map/baidu-map.d.ts +2 -0
- package/dist/src/map/map/controls/control.d.ts +17 -0
- package/dist/src/map/map/controls/map-type.control.d.ts +5 -1
- package/dist/src/map/map/controls/scale.control.d.ts +3 -2
- package/dist/src/map/map/controls/zoom.control.d.ts +15 -2
- package/dist/src/map/map/extra/marker-clusterer.d.ts +75 -5
- package/dist/src/map/map/google-map.d.ts +2 -0
- package/dist/src/map/map/here-map.d.ts +2 -0
- package/dist/src/map/map/map-options.d.ts +24 -2
- package/dist/src/map/map/map.d.ts +7 -3
- package/dist/src/map/map/overlay/baidu-info-box.d.ts +15 -6
- package/dist/src/map/map/overlay/circle.d.ts +10 -1
- package/dist/src/map/map/overlay/icon.d.ts +34 -2
- package/dist/src/map/map/overlay/info-box.d.ts +36 -4
- package/dist/src/map/map/overlay/info-window.d.ts +28 -2
- package/dist/src/map/map/overlay/label.d.ts +19 -4
- package/dist/src/map/map/overlay/marker-label.d.ts +7 -0
- package/dist/src/map/map/overlay/marker.d.ts +46 -5
- package/dist/src/map/map/overlay/overlay.d.ts +9 -1
- package/dist/src/map/map/overlay/polygon.d.ts +8 -1
- package/dist/src/map/map/overlay/polyline.d.ts +8 -1
- package/dist/src/map/map/overlay/rectangle.d.ts +9 -1
- package/dist/src/map/map/overlay/shape.d.ts +12 -2
- package/dist/src/map/map/talks-map.d.ts +33 -29
- package/dist/src/map/map-config.d.ts +11 -2
- package/dist/src/map/map-factory.d.ts +5 -1
- package/dist/src/map/unions.d.ts +5 -1
- package/dist/src/utils/arrays.d.ts +8 -0
- package/dist/src/utils/baidu-utils.d.ts +25 -0
- package/dist/src/utils/objects.d.ts +2 -2
- package/dist/src/{map/talks → utils}/talks-layers.d.ts +3 -3
- package/dist/src/utils/talks-utils.d.ts +24 -0
- package/dist/src/utils/utils.d.ts +5 -0
- package/dist/src/utils/values.d.ts +6 -0
- package/dist/tg-map-core.cjs +6761 -5498
- package/dist/tg-map-core.css +1 -2
- package/dist/tg-map-core.mjs +6747 -5499
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -3
- package/src/map/dts/baidu.d.ts +9 -0
- package/src/map/dts/maptalks.d.ts +74 -2
- package/src/map/dts/maptalks.markercluster.d.ts +35 -0
- package/dist/src/map/talks/talks-utils.d.ts +0 -7
|
@@ -8,6 +8,12 @@ export declare class KeyValue<K, V> {
|
|
|
8
8
|
constructor(keys: K[], values: V[]);
|
|
9
9
|
toKey(value: V): K;
|
|
10
10
|
toValue(key: K): V;
|
|
11
|
+
/**
|
|
12
|
+
* 通过value查找key
|
|
13
|
+
* @param equals value的比较函数
|
|
14
|
+
* @returns 未找到返回空
|
|
15
|
+
*/
|
|
16
|
+
findKey(value: V, equals?: (a: V, b: V) => boolean): K | undefined;
|
|
11
17
|
}
|
|
12
18
|
export type KeySelector<T, K> = (this: T) => K;
|
|
13
19
|
/** 用key快速查找元素的数组 */
|