@aibee/crc-bmap 0.0.97 → 0.0.98
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/lib/bmap.cjs.min.js +31 -31
- package/lib/bmap.cjs.min.js.map +4 -4
- package/lib/bmap.esm.js +187 -27
- package/lib/bmap.esm.js.map +4 -4
- package/lib/bmap.esm.min.js +31 -31
- package/lib/bmap.esm.min.js.map +4 -4
- package/lib/bmap.min.js +31 -31
- package/lib/bmap.min.js.map +4 -4
- package/lib/src/elements/floor.d.ts +1 -0
- package/lib/src/elements/poi.d.ts +1 -1
- package/lib/src/plugins/navigation/navigation.d.ts +1 -1
- package/lib/src/utils/path.d.ts +10 -0
- package/package.json +2 -1
|
@@ -39,7 +39,7 @@ export declare class Navigation extends Plugin<EventMap> {
|
|
|
39
39
|
nodeId: string;
|
|
40
40
|
}): Promise<PathData>;
|
|
41
41
|
renderPath(points: Point[]): void;
|
|
42
|
-
catmullRomCurve3(points: Point[]): number
|
|
42
|
+
catmullRomCurve3(points: Point[]): [number, number][];
|
|
43
43
|
dispose(): void;
|
|
44
44
|
}
|
|
45
45
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 路径简化
|
|
3
|
+
* @param path 路径点集数组
|
|
4
|
+
* @param ignoreFirst 是否在简化过程中忽略第一个点
|
|
5
|
+
* @param smoothingOptimization 是否针对平滑对路径进行插值
|
|
6
|
+
* @param simplifyDistanceThreshold 简化时路径最短保留的距离, 默认为5
|
|
7
|
+
* @param maximumTurningDegree 简化时三点夹角认定为转弯的最大角度,默认为150
|
|
8
|
+
* @param smoothingDistance 平滑时使用的转角最大距离
|
|
9
|
+
*/
|
|
10
|
+
export declare function simplifyPath(path: [number, number][], ignoreFirst?: boolean, smoothingOptimization?: boolean, simplifyDistanceThreshold?: number, maximumTurningDegree?: number, smoothingDistance?: number): [number, number][];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aibee/crc-bmap",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.98",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/bmap.min.js",
|
|
6
6
|
"module": "lib/bmap.esm.min.js",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"@turf/turf": "^6.5.0",
|
|
47
47
|
"@tweenjs/tween.js": "^21.0.0",
|
|
48
48
|
"@types/three": "^0.156.0",
|
|
49
|
+
"chaikin-smooth": "^1.0.4",
|
|
49
50
|
"hotkeys-js": "^3.12.0",
|
|
50
51
|
"lodash": "^4.17.21",
|
|
51
52
|
"meshline": "^3.3.0",
|