@idm-plugin/geo 1.8.6 → 1.8.8
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 +303 -287
- package/dist/index.umd.cjs +9 -2
- package/dist/lane/src/index.d.ts +1 -0
- package/dist/lngLat/src/index.d.ts +7 -2
- package/package.json +1 -1
package/dist/lane/src/index.d.ts
CHANGED
|
@@ -18,6 +18,11 @@ export declare class LngLatHelper {
|
|
|
18
18
|
* @return timezone => +08:30
|
|
19
19
|
*/
|
|
20
20
|
static prettyTimeZoneOffset(offset: number): string;
|
|
21
|
+
/**
|
|
22
|
+
* @param lng
|
|
23
|
+
* @param precision 3位小数在百米级,4位小数在十米级, 5位小数在米级
|
|
24
|
+
* @param format
|
|
25
|
+
*/
|
|
21
26
|
static lng2pretty(lng: number, precision?: number, format?: string): LngLatPretty;
|
|
22
27
|
/**
|
|
23
28
|
* 纬度转化为精确数值
|
|
@@ -39,12 +44,12 @@ export declare class LngLatHelper {
|
|
|
39
44
|
static roundPrecision(num: number, precision?: number): number;
|
|
40
45
|
/**
|
|
41
46
|
* 转换为按经度单调增/减的坐标数组
|
|
42
|
-
* @param coordinates
|
|
47
|
+
* @param coordinates
|
|
43
48
|
*/
|
|
44
49
|
static convertToMonotonicLng2(coordinates: number[][]): number[][];
|
|
45
50
|
/**
|
|
46
51
|
* 转移为按经度单调增/减的坐标数组
|
|
47
|
-
* @param coordinates
|
|
52
|
+
* @param coordinates
|
|
48
53
|
*/
|
|
49
54
|
static convertToMonotonicLng(coordinates: {
|
|
50
55
|
lng: number;
|