@ray-js/robot-map-sdk 0.0.16-beta.1 → 0.0.16-beta.10
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/bin/mcp-server.js +24 -24
- package/dist/constant/methods.js +1 -1
- package/dist/index.d.ts +122 -4
- package/dist/index.rjs.js +1 -1
- package/dist-app/assets/index-CKs7mckI.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.NIVI4Air.js → app.Bgoj8KA9.js} +1 -1
- package/dist-docs/assets/chunks/@localSearchIndexroot.CHVWB7VI.js +1 -0
- package/dist-docs/assets/chunks/{BitmapFont.B813wC36.js → BitmapFont.Cn5tEcHP.js} +1 -1
- package/dist-docs/assets/chunks/{BufferResource.Dp_hmOm8.js → BufferResource.DZKZSM1k.js} +1 -1
- package/dist-docs/assets/chunks/{CanvasRenderer.XH0JoDos.js → CanvasRenderer.Bi_W60sK.js} +1 -1
- package/dist-docs/assets/chunks/{RenderTargetSystem.CpVOSGiV.js → RenderTargetSystem.D5BIr0Br.js} +1 -1
- package/dist-docs/assets/chunks/{VPLocalSearchBox.ObYTFACu.js → VPLocalSearchBox.B0OzIf0s.js} +1 -1
- package/dist-docs/assets/chunks/{WebGLRenderer.CDU-D4m8.js → WebGLRenderer.OH-2Ff0j.js} +1 -1
- package/dist-docs/assets/chunks/{WebGPURenderer.BlH4IW2i.js → WebGPURenderer.q-zbsRwy.js} +1 -1
- package/dist-docs/assets/chunks/{browserAll.CHWWuYWB.js → browserAll.F6MnNd3i.js} +1 -1
- package/dist-docs/assets/chunks/index.BlykEJhQ.js +744 -0
- package/dist-docs/assets/chunks/theme.CB2YL8Lx.js +4 -0
- package/dist-docs/assets/chunks/{webworkerAll.B_FFwhws.js → webworkerAll.DtS1CXDs.js} +1 -1
- package/dist-docs/assets/{guide_getting-started.md.Cl25b--q.js → guide_getting-started.md.CHQim8cP.js} +1 -1
- package/dist-docs/assets/guide_spot-room-binding.md.CZGLnxCe.js +31 -0
- package/dist-docs/assets/guide_spot-room-binding.md.CZGLnxCe.lean.js +1 -0
- package/dist-docs/assets/{reference_config.md.B45KsJB6.js → reference_config.md.Dr5HxVZt.js} +11 -3
- package/dist-docs/assets/{reference_config.md.B45KsJB6.lean.js → reference_config.md.Dr5HxVZt.lean.js} +1 -1
- package/dist-docs/assets/{reference_runtime.md.BBP2J_yR.js → reference_runtime.md.CX2K6JLY.js} +2 -2
- package/dist-docs/assets/{reference_runtime.md.BBP2J_yR.lean.js → reference_runtime.md.CX2K6JLY.lean.js} +1 -1
- 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/guide/spot-room-binding.html +55 -0
- 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 +14 -6
- package/dist-docs/reference/data.html +3 -3
- package/dist-docs/reference/methods.html +3 -3
- package/dist-docs/reference/runtime.html +5 -5
- 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--x4zgRq9.js +0 -1
- package/dist-docs/assets/chunks/@localSearchIndexroot.CF6qpqRY.js +0 -1
- package/dist-docs/assets/chunks/index.BYdnGBxg.js +0 -744
- package/dist-docs/assets/chunks/theme.B6W0Ut3f.js +0 -4
- /package/dist-docs/assets/{guide_getting-started.md.Cl25b--q.lean.js → guide_getting-started.md.CHQim8cP.lean.js} +0 -0
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","getRoomAnchors","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","onUpdateRoomAnchor","onUpdateWayPoint","onUpdateDivider","onClickForbiddenSweepZone","onClickForbiddenMopZone","onClickCleanZone","onClickVirtualWall","onClickSpot","onClickRoomAnchor","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};
|
package/dist/index.d.ts
CHANGED
|
@@ -312,6 +312,25 @@ export declare type AppConfig = {
|
|
|
312
312
|
*
|
|
313
313
|
* */
|
|
314
314
|
incrementalThreshold: number
|
|
315
|
+
/**
|
|
316
|
+
* 合并阈值(路径点数)
|
|
317
|
+
*
|
|
318
|
+
* 距上次全量重绘累计新增点数超过该值时,强制转全量重绘,把增量追加堆积的
|
|
319
|
+
* 绘图指令收敛成一条抽稀后的折线,避免 speed=0 长会话下指令/显存无限增长。
|
|
320
|
+
*
|
|
321
|
+
* 越小越频繁收敛(峰值内存低、偶发重绘更频繁);越大收敛越少(重绘更少、
|
|
322
|
+
* 指令堆积峰值更高)。默认 200。
|
|
323
|
+
*/
|
|
324
|
+
consolidateThreshold: number
|
|
325
|
+
/**
|
|
326
|
+
* 抽稀容差(屏幕像素)
|
|
327
|
+
*
|
|
328
|
+
* 全量重绘时对折线做 RDP 抽稀的容差,以“屏幕像素”表达,内部按运行时最大
|
|
329
|
+
* 缩放折算为世界坐标,保证即使放到最大倍数,被删点的偏差也 < 该像素值。
|
|
330
|
+
*
|
|
331
|
+
* 设为 0 时关闭抽稀。默认 0.5(比常见的 1px 更保守,优先保证视觉无变化)。
|
|
332
|
+
*/
|
|
333
|
+
simplifyTolerancePx: number
|
|
315
334
|
/** 清扫路径配置 */
|
|
316
335
|
commonPath: {
|
|
317
336
|
/** 是否可见 */
|
|
@@ -727,6 +746,7 @@ export declare type ControlRenderItem =
|
|
|
727
746
|
| 'cleanZone'
|
|
728
747
|
| 'virtualWall'
|
|
729
748
|
| 'spot'
|
|
749
|
+
| 'roomAnchor'
|
|
730
750
|
| 'wayPoint'
|
|
731
751
|
| 'divider'
|
|
732
752
|
// Allow any string for custom zone types while keeping IDE autocomplete
|
|
@@ -781,6 +801,12 @@ export declare type ControlsConfig = {
|
|
|
781
801
|
virtualWall: VirtualWallConfig
|
|
782
802
|
/** 定点清扫配置 */
|
|
783
803
|
spot: SpotConfig
|
|
804
|
+
/**
|
|
805
|
+
* 房间锚点配置。房间锚点是一路由外侧主动上报的独立数据源(类似禁区/划框),
|
|
806
|
+
* 复用定点(Spot)渲染,但拥有独立配置:默认尖端对齐坐标、默认不展示,
|
|
807
|
+
* 需 `show` 为 true 才渲染。不影响普通定点(controls.spot)的行为。
|
|
808
|
+
*/
|
|
809
|
+
roomAnchor: RoomAnchorConfig
|
|
784
810
|
wayPoint: WayPointConfig
|
|
785
811
|
}
|
|
786
812
|
|
|
@@ -1045,6 +1071,12 @@ export declare type LoggerConfig = {
|
|
|
1045
1071
|
appLogEnabled: boolean
|
|
1046
1072
|
/** 转发到 App 原生日志的级别 */
|
|
1047
1073
|
appLogLevels: LoggerLevel[]
|
|
1074
|
+
/**
|
|
1075
|
+
* 是否对转发到 App 通道的大数据日志做摘要瘦身。
|
|
1076
|
+
* 仅影响 emitToApp 路径,console 输出始终保留完整数据。
|
|
1077
|
+
* 默认 true:对地图/路径绘制入口提取关键字段,其他大数据按尺寸阈值裁剪。
|
|
1078
|
+
*/
|
|
1079
|
+
appLogSummary?: boolean
|
|
1048
1080
|
tag: string
|
|
1049
1081
|
}
|
|
1050
1082
|
|
|
@@ -1058,9 +1090,9 @@ export declare type LoggerPayload = {
|
|
|
1058
1090
|
ts: number
|
|
1059
1091
|
}
|
|
1060
1092
|
|
|
1061
|
-
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"];
|
|
1093
|
+
export declare const MAP_API_METHODS: readonly ["areRoomsAdjacent", "getForbiddenSweepZones", "getForbiddenMopZones", "getCleanZones", "getVirtualWalls", "getSpots", "getRoomAnchors", "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"];
|
|
1062
1094
|
|
|
1063
|
-
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"];
|
|
1095
|
+
export declare const MAP_CALLBACK_METHODS: readonly ["onMapFirstDrawed", "onMapDrawed", "onPathDrawed", "onRoomPropertiesDrawed", "onRoomsDrawed", "onClickRoom", "onClickRoomProperties", "onRemoveForbiddenSweepZone", "onRemoveForbiddenMopZone", "onRemoveCleanZone", "onRemoveVirtualWall", "onUpdateForbiddenSweepZone", "onUpdateForbiddenMopZone", "onUpdateCleanZone", "onUpdateVirtualWall", "onUpdateSpot", "onUpdateRoomAnchor", "onUpdateWayPoint", "onUpdateDivider", "onClickForbiddenSweepZone", "onClickForbiddenMopZone", "onClickCleanZone", "onClickVirtualWall", "onClickSpot", "onClickRoomAnchor", "onClickWayPoint", "onClickDetectedObject", "onClickCustomElement", "onClickMap", "onClickCarpet", "onDeleteCarpet", "onUpdateCustomCarpet", "onDeleteCustomCarpet", "onGestureStart", "onGestureEnd", "onClickRobot", "onClickChargingStation", "onRemoveFurniture", "onUpdateFurniture", "onClickFurniture", "onRemoveCustomZone", "onUpdateCustomZone", "onClickCustomZone"];
|
|
1064
1096
|
|
|
1065
1097
|
/**
|
|
1066
1098
|
* 地图 API 接口定义
|
|
@@ -1205,6 +1237,15 @@ export declare interface MapApi {
|
|
|
1205
1237
|
* @returns 定点清扫数据数组
|
|
1206
1238
|
*/
|
|
1207
1239
|
getSpots(): SpotParam[];
|
|
1240
|
+
/**
|
|
1241
|
+
* 获取当前地图上所有房间锚点数据
|
|
1242
|
+
*
|
|
1243
|
+
* 房间锚点是由外侧主动上报的独立数据源,与定点相互独立。返回值以数据缓存为准,
|
|
1244
|
+
* 不受 `controls.roomAnchor.show` 当前显隐状态影响。
|
|
1245
|
+
*
|
|
1246
|
+
* @returns 房间锚点数据数组
|
|
1247
|
+
*/
|
|
1248
|
+
getRoomAnchors(): RoomAnchorParam[];
|
|
1208
1249
|
/**
|
|
1209
1250
|
* 获取当前地图上所有家具数据
|
|
1210
1251
|
*
|
|
@@ -1673,6 +1714,15 @@ export declare interface MapCallbacks {
|
|
|
1673
1714
|
* @param.en spot - Updated spot clean data
|
|
1674
1715
|
*/
|
|
1675
1716
|
onUpdateSpot?: (spot: SpotParam) => void;
|
|
1717
|
+
/**
|
|
1718
|
+
* @description.zh 更新房间锚点的回调
|
|
1719
|
+
* @description.en Callback when updating room anchor
|
|
1720
|
+
* @description.zh 当用户操作房间锚点位置后触发(房间锚点复用定点渲染,可编辑时生效)。
|
|
1721
|
+
* @description.en Triggered when user operates room anchor position (room anchors reuse spot rendering; effective when editable).
|
|
1722
|
+
* @param.zh point - 更新后的房间锚点数据
|
|
1723
|
+
* @param.en point - Updated room anchor data
|
|
1724
|
+
*/
|
|
1725
|
+
onUpdateRoomAnchor?: (point: RoomAnchorParam) => void;
|
|
1676
1726
|
/**
|
|
1677
1727
|
* @description.zh 更新途经点的回调
|
|
1678
1728
|
* @description.en Callback when updating way point
|
|
@@ -1736,6 +1786,15 @@ export declare interface MapCallbacks {
|
|
|
1736
1786
|
* @param.en spot - Clicked spot clean data
|
|
1737
1787
|
*/
|
|
1738
1788
|
onClickSpot?: (spot: SpotParam) => void;
|
|
1789
|
+
/**
|
|
1790
|
+
* @description.zh 点击房间锚点回调
|
|
1791
|
+
* @description.en Callback when clicking room anchor
|
|
1792
|
+
* @description.zh 当用户点击房间锚点时触发。
|
|
1793
|
+
* @description.en Triggered when user clicks room anchor.
|
|
1794
|
+
* @param.zh point - 被点击的房间锚点数据
|
|
1795
|
+
* @param.en point - Clicked room anchor data
|
|
1796
|
+
*/
|
|
1797
|
+
onClickRoomAnchor?: (point: RoomAnchorParam) => void;
|
|
1739
1798
|
/**
|
|
1740
1799
|
* @description.zh 点击检测物体回调
|
|
1741
1800
|
* @description.en Callback when clicking detected object
|
|
@@ -2132,6 +2191,43 @@ export declare type Room = {
|
|
|
2132
2191
|
colorIndex?: number
|
|
2133
2192
|
}
|
|
2134
2193
|
|
|
2194
|
+
/**
|
|
2195
|
+
* 房间锚点配置。
|
|
2196
|
+
*
|
|
2197
|
+
* 房间锚点复用定点(Spot)的全部渲染能力,因此其配置就是一份 {@link SpotConfig},
|
|
2198
|
+
* 额外增加一个 `show` 开关:
|
|
2199
|
+
* - `show` 默认 `false`,房间锚点默认不展示;置为 `true` 后才渲染(类似 showName 的显隐能力)。
|
|
2200
|
+
*
|
|
2201
|
+
* 房间锚点数据由外侧主动上报(见 `drawRoomAnchors`),与普通定点相互独立,
|
|
2202
|
+
* 互不影响。默认 `iconAnchor` 为 `{ x: 0.5, y: 1 }`(尖端对齐坐标),
|
|
2203
|
+
* 而普通定点默认居中,因此两者可拥有不同视觉表现。
|
|
2204
|
+
*/
|
|
2205
|
+
export declare type RoomAnchorConfig = SpotConfig & {
|
|
2206
|
+
/** 是否展示房间锚点,默认 false;关闭时不渲染任何房间锚点 */
|
|
2207
|
+
show: boolean
|
|
2208
|
+
}
|
|
2209
|
+
|
|
2210
|
+
/**
|
|
2211
|
+
* 房间锚点参数。
|
|
2212
|
+
*
|
|
2213
|
+
* 房间锚点是与定点({@link SpotParam})完全独立的一类元素,拥有自己的数据类型,
|
|
2214
|
+
* 二者互不耦合、互不影响。字段结构目前与定点相近,但可各自独立演进。
|
|
2215
|
+
*/
|
|
2216
|
+
export declare type RoomAnchorParam = {
|
|
2217
|
+
/** 房间锚点ID */
|
|
2218
|
+
id: string
|
|
2219
|
+
/** 点坐标 */
|
|
2220
|
+
point: Point
|
|
2221
|
+
/** 可选显示名称 */
|
|
2222
|
+
name?: string
|
|
2223
|
+
/**
|
|
2224
|
+
* 可选所属房间 ID。设置后该房间锚点即与房间关联:编辑态拖拽被硬约束在该房间内,
|
|
2225
|
+
* 无法拖出房间边界(拖到房间外的位置会被拒绝,停留在最后一个合法位置)。
|
|
2226
|
+
* 不设置则为普通房间锚点,可自由拖拽。
|
|
2227
|
+
*/
|
|
2228
|
+
roomId?: number
|
|
2229
|
+
}
|
|
2230
|
+
|
|
2135
2231
|
/**
|
|
2136
2232
|
* 房间中心点信息
|
|
2137
2233
|
*
|
|
@@ -2241,6 +2337,8 @@ export declare type RuntimeConfig = {
|
|
|
2241
2337
|
editingVirtualWallIds: string[]
|
|
2242
2338
|
/** 正在编辑的定点清扫ID列表 */
|
|
2243
2339
|
editingSpotIds: string[]
|
|
2340
|
+
/** 正在编辑的房间锚点ID列表(独立于 editingSpotIds,互不影响) */
|
|
2341
|
+
editingRoomAnchorIds: string[]
|
|
2244
2342
|
/** 正在编辑的途径点ID列表 */
|
|
2245
2343
|
editingWayPointIds: string[]
|
|
2246
2344
|
/** 正在编辑的地毯ID列表 */
|
|
@@ -2303,6 +2401,16 @@ export declare type SpotConfig = {
|
|
|
2303
2401
|
iconSize: number
|
|
2304
2402
|
/** 图标尺寸是否固定(不跟随地图缩放) */
|
|
2305
2403
|
iconSizeFixed: boolean
|
|
2404
|
+
/**
|
|
2405
|
+
* 图标锚点位置
|
|
2406
|
+
*
|
|
2407
|
+
* 定义中心图标相对于坐标点的对齐方式
|
|
2408
|
+
* - {x: 0, y: 0} 表示左上角
|
|
2409
|
+
* - {x: 0.5, y: 0.5} 表示中心(默认)
|
|
2410
|
+
* - {x: 0.5, y: 1} 表示底部中心(适用于气泡/水滴形状的图标)
|
|
2411
|
+
* - {x: 1, y: 1} 表示右下角
|
|
2412
|
+
*/
|
|
2413
|
+
iconAnchor: Point
|
|
2306
2414
|
/** 尺寸 (米) */
|
|
2307
2415
|
size: number
|
|
2308
2416
|
/** 描边颜色 */
|
|
@@ -2353,8 +2461,10 @@ export declare type SpotConfig = {
|
|
|
2353
2461
|
dashArray: [number, number]
|
|
2354
2462
|
/** 是否显示图标 */
|
|
2355
2463
|
showIcon: boolean
|
|
2356
|
-
/**
|
|
2464
|
+
/** 是否显示框体(边框;同时作为填充的默认开关) */
|
|
2357
2465
|
showFrame: boolean
|
|
2466
|
+
/** 是否显示填充面积(缺省时回退到 showFrame) */
|
|
2467
|
+
showFill?: boolean
|
|
2358
2468
|
}
|
|
2359
2469
|
/** 普通模式样式 */
|
|
2360
2470
|
normal: {
|
|
@@ -2364,8 +2474,10 @@ export declare type SpotConfig = {
|
|
|
2364
2474
|
dashArray: [number, number]
|
|
2365
2475
|
/** 是否显示图标 */
|
|
2366
2476
|
showIcon: boolean
|
|
2367
|
-
/**
|
|
2477
|
+
/** 是否显示框体(边框;同时作为填充的默认开关) */
|
|
2368
2478
|
showFrame: boolean
|
|
2479
|
+
/** 是否显示填充面积(缺省时回退到 showFrame) */
|
|
2480
|
+
showFill?: boolean
|
|
2369
2481
|
}
|
|
2370
2482
|
}
|
|
2371
2483
|
|
|
@@ -2377,6 +2489,12 @@ export declare type SpotParam = {
|
|
|
2377
2489
|
point: Point
|
|
2378
2490
|
/** 可选显示名称 */
|
|
2379
2491
|
name?: string
|
|
2492
|
+
/**
|
|
2493
|
+
* 可选所属房间 ID。设置后该定点即与房间关联:编辑态拖拽被硬约束在该房间内,
|
|
2494
|
+
* 无法拖出房间边界(拖到房间外的位置会被拒绝,停留在最后一个合法位置)。
|
|
2495
|
+
* 不设置则为普通定点,可自由拖拽。
|
|
2496
|
+
*/
|
|
2497
|
+
roomId?: number
|
|
2380
2498
|
}
|
|
2381
2499
|
|
|
2382
2500
|
/** 虚拟墙配置 */
|