@ray-js/robot-map-sdk 0.0.3-beta-56 → 0.0.3-beta-57
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.d.ts +29 -5
- package/dist/index.rjs.js +1 -1
- package/dist-app/assets/{index-i46MbckZ.js → index-BuYDmyTb.js} +1 -1
- package/dist-app/index.html +1 -1
- package/dist-docs/404.html +1 -1
- package/dist-docs/assets/{guide_getting-started.md.BmubsPCJ.js → guide_getting-started.md.xZ4KViU0.js} +1 -1
- package/dist-docs/guide/advanced-usage.html +1 -1
- package/dist-docs/guide/concepts.html +1 -1
- package/dist-docs/guide/getting-started.html +3 -3
- package/dist-docs/hashmap.json +1 -1
- package/dist-docs/index.html +1 -1
- package/dist-docs/reference/callbacks.html +1 -1
- package/dist-docs/reference/config.html +1 -1
- package/dist-docs/reference/data.html +1 -1
- package/dist-docs/reference/methods.html +1 -1
- package/dist-docs/reference/runtime.html +1 -1
- package/dist-docs/reference/types.html +1 -1
- package/dist-docs/reference/utils.html +1 -1
- package/package.json +1 -1
- /package/dist-docs/assets/{guide_getting-started.md.BmubsPCJ.lean.js → guide_getting-started.md.xZ4KViU0.lean.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -2256,11 +2256,6 @@ declare class MapApplication extends Application implements MapApi {
|
|
|
2256
2256
|
checkCharger?: boolean;
|
|
2257
2257
|
checkRobot?: boolean;
|
|
2258
2258
|
}): boolean;
|
|
2259
|
-
/* Excluded from this release type: calculateMinDistanceToGeometry */
|
|
2260
|
-
/* Excluded from this release type: isPointInAnyRoomStructuredInternal */
|
|
2261
|
-
/* Excluded from this release type: isPointInAnyRoomRasterInternal */
|
|
2262
|
-
/* Excluded from this release type: areStructuredRoomsAdjacentInternal */
|
|
2263
|
-
/* Excluded from this release type: areRasterRoomsAdjacentInternal */
|
|
2264
2259
|
/**
|
|
2265
2260
|
* 地图截图
|
|
2266
2261
|
*
|
|
@@ -2696,6 +2691,34 @@ declare class MapManager {
|
|
|
2696
2691
|
* 获取所有房间的几何信息
|
|
2697
2692
|
*/
|
|
2698
2693
|
getAllRooms(): Room[];
|
|
2694
|
+
/**
|
|
2695
|
+
* 判断墙体(线段)是否与任意房间有交集
|
|
2696
|
+
* @param points 墙体的两个端点坐标(机器坐标系)
|
|
2697
|
+
* @returns 如果有交集返回 true,否则返回 false
|
|
2698
|
+
*/
|
|
2699
|
+
isWallIntersectsAnyRoom(points: Point[]): boolean;
|
|
2700
|
+
/**
|
|
2701
|
+
* 判断区域(矩形)是否与任意房间有交集
|
|
2702
|
+
* @param points 区域的四个顶点坐标(机器坐标系)
|
|
2703
|
+
* @returns 如果有交集返回 true,否则返回 false
|
|
2704
|
+
*/
|
|
2705
|
+
isZoneIntersectsAnyRoom(points: Point[]): boolean;
|
|
2706
|
+
/**
|
|
2707
|
+
* 判断指定的房间是否相邻(连通)
|
|
2708
|
+
* @param roomIds 要检测的房间ID数组
|
|
2709
|
+
* @returns 是否所有指定的房间都相邻(连通)
|
|
2710
|
+
*/
|
|
2711
|
+
areRoomsAdjacent(roomIds: number[]): boolean;
|
|
2712
|
+
/* Excluded from this release type: areStructuredRoomsAdjacentInternal */
|
|
2713
|
+
/* Excluded from this release type: areRasterRoomsAdjacentInternal */
|
|
2714
|
+
/**
|
|
2715
|
+
* 判断一个点是否在任意房间内
|
|
2716
|
+
* @param point 待检测的点坐标(机器坐标系)
|
|
2717
|
+
* @returns 如果点在某个房间内,返回该房间的RoomData;否则返回null
|
|
2718
|
+
*/
|
|
2719
|
+
isPointInAnyRoom(point: Point): RoomData | null;
|
|
2720
|
+
/* Excluded from this release type: isPointInAnyRoomStructuredInternal */
|
|
2721
|
+
/* Excluded from this release type: isPointInAnyRoomRasterInternal */
|
|
2699
2722
|
/**
|
|
2700
2723
|
* 清空地图组件
|
|
2701
2724
|
*/
|
|
@@ -3317,6 +3340,7 @@ declare class RoomFill extends Container {
|
|
|
3317
3340
|
private isWallIntersectsAnyRoomStructured;
|
|
3318
3341
|
/**
|
|
3319
3342
|
* 栅格地图:判断矩形是否与任意房间有交集
|
|
3343
|
+
* 优化方案:先检查4条边,如果都失败再检查包含关系
|
|
3320
3344
|
*/
|
|
3321
3345
|
private isZoneIntersectsAnyRoomRaster;
|
|
3322
3346
|
/**
|