@ray-js/robot-map-sdk 0.0.16-beta.4 → 0.0.16-beta.6
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/constant/methods.js +1 -1
- package/dist/index.d.ts +57 -1
- package/dist/index.rjs.js +1 -1
- package/dist-app/assets/index-B1qsN3Md.js +1 -0
- package/dist-app/index.html +1 -1
- package/dist-docs/404.html +2 -2
- package/dist-docs/agents/domain.html +3 -3
- package/dist-docs/agents/issue-tracker.html +3 -3
- package/dist-docs/agents/triage-labels.html +3 -3
- package/dist-docs/assets/{app.DTW2hYYH.js → app.ByFtf7S3.js} +1 -1
- package/dist-docs/assets/chunks/@localSearchIndexroot.CyHa6iJo.js +1 -0
- package/dist-docs/assets/chunks/{BitmapFont.DD3maz2H.js → BitmapFont.CxzI5juo.js} +1 -1
- package/dist-docs/assets/chunks/{BufferResource.wxlZuru4.js → BufferResource.DHAX0dLK.js} +1 -1
- package/dist-docs/assets/chunks/{CanvasRenderer.CbYqCLfw.js → CanvasRenderer.D5NS4GmW.js} +1 -1
- package/dist-docs/assets/chunks/{RenderTargetSystem.D0sao2Ev.js → RenderTargetSystem.CcMP0blc.js} +1 -1
- package/dist-docs/assets/chunks/{VPLocalSearchBox.DgVfJvJ2.js → VPLocalSearchBox.QeMPtZZ2.js} +1 -1
- package/dist-docs/assets/chunks/{WebGLRenderer.BJcfEMe_.js → WebGLRenderer.DjvikWe1.js} +1 -1
- package/dist-docs/assets/chunks/{WebGPURenderer.CEX-XxJN.js → WebGPURenderer.WuGRbgwP.js} +1 -1
- package/dist-docs/assets/chunks/{browserAll.MgVvF0jw.js → browserAll.BoE1srum.js} +1 -1
- package/dist-docs/assets/chunks/{index.nzhgVyOl.js → index.DF9JqE9W.js} +46 -46
- package/dist-docs/assets/chunks/theme.DjNI0QHl.js +4 -0
- package/dist-docs/assets/chunks/{webworkerAll.g2uWahiM.js → webworkerAll.C7VOGNTT.js} +1 -1
- package/dist-docs/assets/{guide_getting-started.md.DNZprn5b.js → guide_getting-started.md.Ciz_rolL.js} +2 -2
- package/dist-docs/assets/guide_getting-started.md.Ciz_rolL.lean.js +1 -0
- package/dist-docs/guide/advanced-usage.html +3 -3
- package/dist-docs/guide/concepts.html +3 -3
- package/dist-docs/guide/getting-started.html +5 -5
- package/dist-docs/guide/mcp.html +3 -3
- package/dist-docs/hashmap.json +1 -1
- package/dist-docs/index.html +3 -3
- package/dist-docs/plans/2026-03-04-detected-objects-visibility-design.html +3 -3
- package/dist-docs/plans/2026-03-04-show-detected-objects-implementation-plan.html +3 -3
- package/dist-docs/plans/2026-03-10-simulator-debug-design.html +3 -3
- package/dist-docs/plans/2026-03-10-simulator-events-console-design.html +3 -3
- package/dist-docs/plans/2026-03-10-simulator-events-console-implementation-plan.html +3 -3
- package/dist-docs/plans/2026-03-10-simulator-runtime-controls-design.html +3 -3
- package/dist-docs/plans/2026-03-10-simulator-runtime-controls-implementation-plan.html +3 -3
- package/dist-docs/plans/2026-03-10-testing-rollout-next-steps-plan.html +3 -3
- package/dist-docs/plans/2026-03-11-simulator-logger-dump-implementation-plan.html +3 -3
- package/dist-docs/reference/callbacks.html +3 -3
- package/dist-docs/reference/config.html +3 -3
- package/dist-docs/reference/data.html +3 -3
- package/dist-docs/reference/methods.html +3 -3
- package/dist-docs/reference/runtime.html +3 -3
- package/dist-docs/reference/types.html +3 -3
- package/dist-docs/reference/utils.html +3 -3
- package/dist-docs/simulator/index.html +3 -3
- package/package.json +1 -1
- package/dist-app/assets/index-efPzSSNf.js +0 -1
- package/dist-docs/assets/chunks/@localSearchIndexroot.rCO2LZ6R.js +0 -1
- package/dist-docs/assets/chunks/theme.JmfnP66i.js +0 -4
- package/dist-docs/assets/guide_getting-started.md.DNZprn5b.lean.js +0 -1
package/dist/constant/methods.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=["areRoomsAdjacent","getForbiddenSweepZones","getForbiddenMopZones","getCleanZones","getVirtualWalls","getSpots","getWayPoints","getViewportCenterPoint","getMapCenterPoint","getWallPointsByViewportCenter","getForbiddenSweepZonePointsByViewportCenter","getForbiddenMopZonePointsByViewportCenter","getCleanZonePointsByViewportCenter","getSpotPointByViewportCenter","getEffectiveDividerPoints","getDividerEndPoints","isNearChargerOrRobot","isPointInAnyRoom","isWallIntersectsAnyRoom","isZoneIntersectsAnyRoom","resetPanZoom","snapshot","snapshotByData","getCustomCarpets","forceEndGesture","getFurniturePointsByViewportCenter","getCustomCarpetPointsByViewportCenter","getRectPointsByCenter","getFurnitures","drawCustomZones","getCustomZones","clearCustomZones","setEditingCustomZones"],o=["onMapFirstDrawed","onMapDrawed","onPathDrawed","onRoomPropertiesDrawed","onRoomsDrawed","onClickRoom","onClickRoomProperties","onRemoveForbiddenSweepZone","onRemoveForbiddenMopZone","onRemoveCleanZone","onRemoveVirtualWall","onUpdateForbiddenSweepZone","onUpdateForbiddenMopZone","onUpdateCleanZone","onUpdateVirtualWall","onUpdateSpot","onUpdateWayPoint","onUpdateDivider","onClickForbiddenSweepZone","onClickForbiddenMopZone","onClickCleanZone","onClickVirtualWall","onClickSpot","onClickWayPoint","onClickDetectedObject","onClickCustomElement","onClickMap","onClickCarpet","onDeleteCarpet","onUpdateCustomCarpet","onDeleteCustomCarpet","onGestureStart","onGestureEnd","onClickRobot","onClickChargingStation","onRemoveFurniture","onUpdateFurniture","onClickFurniture","onRemoveCustomZone","onUpdateCustomZone","onClickCustomZone"];export{e as MAP_API_METHODS,o as MAP_CALLBACK_METHODS};
|
|
1
|
+
const e=["areRoomsAdjacent","getForbiddenSweepZones","getForbiddenMopZones","getCleanZones","getVirtualWalls","getSpots","getWayPoints","getViewportCenterPoint","getMapCenterPoint","getWallPointsByViewportCenter","getForbiddenSweepZonePointsByViewportCenter","getForbiddenMopZonePointsByViewportCenter","getCleanZonePointsByViewportCenter","getSpotPointByViewportCenter","getEffectiveDividerPoints","getDividerEndPoints","isNearChargerOrRobot","isPointInAnyRoom","isWallIntersectsAnyRoom","isZoneIntersectsAnyRoom","resetPanZoom","snapshot","snapshotByData","getCustomCarpets","forceEndGesture","getFurniturePointsByViewportCenter","getCustomCarpetPointsByViewportCenter","getRectPointsByCenter","getFurnitures","drawCustomZones","getCustomZones","clearCustomZones","setEditingCustomZones"],o=["onMapFirstDrawed","onMapDrawed","onPathDrawed","onRoomPropertiesDrawed","onRoomsDrawed","onClickRoom","onClickRoomProperties","onRemoveForbiddenSweepZone","onRemoveForbiddenMopZone","onRemoveCleanZone","onRemoveVirtualWall","onUpdateForbiddenSweepZone","onUpdateForbiddenMopZone","onUpdateCleanZone","onUpdateVirtualWall","onUpdateSpot","onUpdateWayPoint","onUpdateDivider","onClickForbiddenSweepZone","onClickForbiddenMopZone","onClickCleanZone","onClickVirtualWall","onClickSpot","onClickWayPoint","onClickDetectedObject","onClickCustomElement","onClickMap","onClickCarpet","onDeleteCarpet","onUpdateCustomCarpet","onDeleteCustomCarpet","onGestureStart","onGestureEnd","onClickRobot","onClickChargingStation","onRemoveFurniture","onUpdateFurniture","onClickFurniture","onRemoveCustomZone","onUpdateCustomZone","onClickCustomZone","onUpdatePurifyPoint","onClickPurifyPoint"];export{e as MAP_API_METHODS,o as MAP_CALLBACK_METHODS};
|
package/dist/index.d.ts
CHANGED
|
@@ -746,6 +746,7 @@ export declare type ControlRenderItem =
|
|
|
746
746
|
| 'cleanZone'
|
|
747
747
|
| 'virtualWall'
|
|
748
748
|
| 'spot'
|
|
749
|
+
| 'purifyPoint'
|
|
749
750
|
| 'wayPoint'
|
|
750
751
|
| 'divider'
|
|
751
752
|
// Allow any string for custom zone types while keeping IDE autocomplete
|
|
@@ -800,6 +801,8 @@ export declare type ControlsConfig = {
|
|
|
800
801
|
virtualWall: VirtualWallConfig
|
|
801
802
|
/** 定点清扫配置 */
|
|
802
803
|
spot: SpotConfig
|
|
804
|
+
/** 净化点配置 */
|
|
805
|
+
purifyPoint: PurifyPointConfig
|
|
803
806
|
wayPoint: WayPointConfig
|
|
804
807
|
}
|
|
805
808
|
|
|
@@ -1085,7 +1088,7 @@ export declare type LoggerPayload = {
|
|
|
1085
1088
|
|
|
1086
1089
|
export declare const MAP_API_METHODS: readonly ["areRoomsAdjacent", "getForbiddenSweepZones", "getForbiddenMopZones", "getCleanZones", "getVirtualWalls", "getSpots", "getWayPoints", "getViewportCenterPoint", "getMapCenterPoint", "getWallPointsByViewportCenter", "getForbiddenSweepZonePointsByViewportCenter", "getForbiddenMopZonePointsByViewportCenter", "getCleanZonePointsByViewportCenter", "getSpotPointByViewportCenter", "getEffectiveDividerPoints", "getDividerEndPoints", "isNearChargerOrRobot", "isPointInAnyRoom", "isWallIntersectsAnyRoom", "isZoneIntersectsAnyRoom", "resetPanZoom", "snapshot", "snapshotByData", "getCustomCarpets", "forceEndGesture", "getFurniturePointsByViewportCenter", "getCustomCarpetPointsByViewportCenter", "getRectPointsByCenter", "getFurnitures", "drawCustomZones", "getCustomZones", "clearCustomZones", "setEditingCustomZones"];
|
|
1087
1090
|
|
|
1088
|
-
export declare const MAP_CALLBACK_METHODS: readonly ["onMapFirstDrawed", "onMapDrawed", "onPathDrawed", "onRoomPropertiesDrawed", "onRoomsDrawed", "onClickRoom", "onClickRoomProperties", "onRemoveForbiddenSweepZone", "onRemoveForbiddenMopZone", "onRemoveCleanZone", "onRemoveVirtualWall", "onUpdateForbiddenSweepZone", "onUpdateForbiddenMopZone", "onUpdateCleanZone", "onUpdateVirtualWall", "onUpdateSpot", "onUpdateWayPoint", "onUpdateDivider", "onClickForbiddenSweepZone", "onClickForbiddenMopZone", "onClickCleanZone", "onClickVirtualWall", "onClickSpot", "onClickWayPoint", "onClickDetectedObject", "onClickCustomElement", "onClickMap", "onClickCarpet", "onDeleteCarpet", "onUpdateCustomCarpet", "onDeleteCustomCarpet", "onGestureStart", "onGestureEnd", "onClickRobot", "onClickChargingStation", "onRemoveFurniture", "onUpdateFurniture", "onClickFurniture", "onRemoveCustomZone", "onUpdateCustomZone", "onClickCustomZone"];
|
|
1091
|
+
export declare const MAP_CALLBACK_METHODS: readonly ["onMapFirstDrawed", "onMapDrawed", "onPathDrawed", "onRoomPropertiesDrawed", "onRoomsDrawed", "onClickRoom", "onClickRoomProperties", "onRemoveForbiddenSweepZone", "onRemoveForbiddenMopZone", "onRemoveCleanZone", "onRemoveVirtualWall", "onUpdateForbiddenSweepZone", "onUpdateForbiddenMopZone", "onUpdateCleanZone", "onUpdateVirtualWall", "onUpdateSpot", "onUpdateWayPoint", "onUpdateDivider", "onClickForbiddenSweepZone", "onClickForbiddenMopZone", "onClickCleanZone", "onClickVirtualWall", "onClickSpot", "onClickWayPoint", "onClickDetectedObject", "onClickCustomElement", "onClickMap", "onClickCarpet", "onDeleteCarpet", "onUpdateCustomCarpet", "onDeleteCustomCarpet", "onGestureStart", "onGestureEnd", "onClickRobot", "onClickChargingStation", "onRemoveFurniture", "onUpdateFurniture", "onClickFurniture", "onRemoveCustomZone", "onUpdateCustomZone", "onClickCustomZone", "onUpdatePurifyPoint", "onClickPurifyPoint"];
|
|
1089
1092
|
|
|
1090
1093
|
/**
|
|
1091
1094
|
* 地图 API 接口定义
|
|
@@ -1761,6 +1764,24 @@ export declare interface MapCallbacks {
|
|
|
1761
1764
|
* @param.en spot - Clicked spot clean data
|
|
1762
1765
|
*/
|
|
1763
1766
|
onClickSpot?: (spot: SpotParam) => void;
|
|
1767
|
+
/**
|
|
1768
|
+
* @description.zh 更新净化点的回调
|
|
1769
|
+
* @description.en Callback when updating purify point
|
|
1770
|
+
* @description.zh 当用户拖动净化点位置后触发。
|
|
1771
|
+
* @description.en Triggered when user drags the purify point position.
|
|
1772
|
+
* @param.zh purifyPoint - 更新后的净化点数据
|
|
1773
|
+
* @param.en purifyPoint - Updated purify point data
|
|
1774
|
+
*/
|
|
1775
|
+
onUpdatePurifyPoint?: (purifyPoint: PurifyPointParam) => void;
|
|
1776
|
+
/**
|
|
1777
|
+
* @description.zh 点击净化点回调
|
|
1778
|
+
* @description.en Callback when clicking purify point
|
|
1779
|
+
* @description.zh 当用户点击净化点时触发。
|
|
1780
|
+
* @description.en Triggered when user clicks the purify point.
|
|
1781
|
+
* @param.zh purifyPoint - 被点击的净化点数据
|
|
1782
|
+
* @param.en purifyPoint - Clicked purify point data
|
|
1783
|
+
*/
|
|
1784
|
+
onClickPurifyPoint?: (purifyPoint: PurifyPointParam) => void;
|
|
1764
1785
|
/**
|
|
1765
1786
|
* @description.zh 点击检测物体回调
|
|
1766
1787
|
* @description.en Callback when clicking detected object
|
|
@@ -2096,6 +2117,39 @@ export declare type ProcessedRasterData = {
|
|
|
2096
2117
|
totalPixels: number
|
|
2097
2118
|
}
|
|
2098
2119
|
|
|
2120
|
+
/**
|
|
2121
|
+
* 净化点配置
|
|
2122
|
+
*
|
|
2123
|
+
* 净化点是一种独立的控制元素:只渲染一个与定点清扫(Spot)同款的中心图标,
|
|
2124
|
+
* 没有外框、填充区域,也没有名称文案。
|
|
2125
|
+
*/
|
|
2126
|
+
export declare type PurifyPointConfig = {
|
|
2127
|
+
/** 中心图标资源地址(默认与定点同款) */
|
|
2128
|
+
iconSrc: string
|
|
2129
|
+
/** 图标尺寸(像素) */
|
|
2130
|
+
iconSize: number
|
|
2131
|
+
/** 图标尺寸是否固定(不跟随地图缩放) */
|
|
2132
|
+
iconSizeFixed: boolean
|
|
2133
|
+
/** 拖出所属房间时的图标着色(出界飘红提示,缺省时不着色) */
|
|
2134
|
+
outOfBoundsTint?: ColorSource
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
/** 净化点参数 */
|
|
2138
|
+
export declare type PurifyPointParam = {
|
|
2139
|
+
/** 净化点ID */
|
|
2140
|
+
id: string
|
|
2141
|
+
/** 点坐标 */
|
|
2142
|
+
point: Point
|
|
2143
|
+
/** 可选显示名称 */
|
|
2144
|
+
name?: string
|
|
2145
|
+
/**
|
|
2146
|
+
* 可选所属房间 ID。设置后,编辑态拖拽会被约束在该房间内:
|
|
2147
|
+
* 拖出房间时圆点飘红提示,松手时回弹到房间内最后一个合法位置。
|
|
2148
|
+
* 不设置则不做房间约束(自由拖拽)。
|
|
2149
|
+
*/
|
|
2150
|
+
roomId?: number
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2099
2153
|
/**
|
|
2100
2154
|
* 点阵房间数据
|
|
2101
2155
|
*/
|
|
@@ -2266,6 +2320,8 @@ export declare type RuntimeConfig = {
|
|
|
2266
2320
|
editingVirtualWallIds: string[]
|
|
2267
2321
|
/** 正在编辑的定点清扫ID列表 */
|
|
2268
2322
|
editingSpotIds: string[]
|
|
2323
|
+
/** 正在编辑的净化点ID列表 */
|
|
2324
|
+
editingPurifyPointIds?: string[]
|
|
2269
2325
|
/** 正在编辑的途径点ID列表 */
|
|
2270
2326
|
editingWayPointIds: string[]
|
|
2271
2327
|
/** 正在编辑的地毯ID列表 */
|