@ray-js/robot-map-sdk 0.0.16-beta.6 → 0.0.16-beta.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/constant/methods.js +1 -1
- package/dist/index.d.ts +95 -58
- package/dist/index.rjs.js +1 -1
- package/dist-app/assets/{index-B1qsN3Md.js → index-B3zkQ5D_.js} +1 -1
- 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.ByFtf7S3.js → app.D_pgzwpi.js} +1 -1
- package/dist-docs/assets/chunks/@localSearchIndexroot.Bxg7d_Ma.js +1 -0
- package/dist-docs/assets/chunks/{BitmapFont.CxzI5juo.js → BitmapFont.BWTZYR59.js} +1 -1
- package/dist-docs/assets/chunks/{BufferResource.DHAX0dLK.js → BufferResource.DxLmzngT.js} +1 -1
- package/dist-docs/assets/chunks/{CanvasRenderer.D5NS4GmW.js → CanvasRenderer.B780wi8d.js} +1 -1
- package/dist-docs/assets/chunks/{RenderTargetSystem.CcMP0blc.js → RenderTargetSystem.Cy74iJ0h.js} +1 -1
- package/dist-docs/assets/chunks/{VPLocalSearchBox.QeMPtZZ2.js → VPLocalSearchBox.D7WdA-jS.js} +1 -1
- package/dist-docs/assets/chunks/{WebGLRenderer.DjvikWe1.js → WebGLRenderer.x_Y_nV_1.js} +1 -1
- package/dist-docs/assets/chunks/{WebGPURenderer.WuGRbgwP.js → WebGPURenderer.BkDIETNL.js} +1 -1
- package/dist-docs/assets/chunks/{browserAll.BoE1srum.js → browserAll.3VWA8hZP.js} +1 -1
- package/dist-docs/assets/chunks/{index.DF9JqE9W.js → index.CB5jCxJS.js} +45 -45
- package/dist-docs/assets/chunks/json-editor-vue.BBNO6uif.js +3882 -0
- package/dist-docs/assets/chunks/theme.5NpS0Xfn.js +4 -0
- package/dist-docs/assets/chunks/{webworkerAll.C7VOGNTT.js → webworkerAll.D9dXk2PR.js} +1 -1
- package/dist-docs/assets/{guide_getting-started.md.Ciz_rolL.js → guide_getting-started.md.BsqJ9E9q.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-docs/assets/chunks/@localSearchIndexroot.CyHa6iJo.js +0 -1
- package/dist-docs/assets/chunks/json-editor-vue.CBQvp8j1.js +0 -3882
- package/dist-docs/assets/chunks/theme.DjNI0QHl.js +0 -4
- /package/dist-docs/assets/{guide_getting-started.md.Ciz_rolL.lean.js → guide_getting-started.md.BsqJ9E9q.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"
|
|
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
|
@@ -746,7 +746,7 @@ export declare type ControlRenderItem =
|
|
|
746
746
|
| 'cleanZone'
|
|
747
747
|
| 'virtualWall'
|
|
748
748
|
| 'spot'
|
|
749
|
-
| '
|
|
749
|
+
| 'roomAnchor'
|
|
750
750
|
| 'wayPoint'
|
|
751
751
|
| 'divider'
|
|
752
752
|
// Allow any string for custom zone types while keeping IDE autocomplete
|
|
@@ -801,8 +801,12 @@ export declare type ControlsConfig = {
|
|
|
801
801
|
virtualWall: VirtualWallConfig
|
|
802
802
|
/** 定点清扫配置 */
|
|
803
803
|
spot: SpotConfig
|
|
804
|
-
/**
|
|
805
|
-
|
|
804
|
+
/**
|
|
805
|
+
* 房间锚点配置。房间锚点是一路由外侧主动上报的独立数据源(类似禁区/划框),
|
|
806
|
+
* 复用定点(Spot)渲染,但拥有独立配置:默认尖端对齐坐标、默认不展示,
|
|
807
|
+
* 需 `show` 为 true 才渲染。不影响普通定点(controls.spot)的行为。
|
|
808
|
+
*/
|
|
809
|
+
roomAnchor: RoomAnchorConfig
|
|
806
810
|
wayPoint: WayPointConfig
|
|
807
811
|
}
|
|
808
812
|
|
|
@@ -1086,9 +1090,9 @@ export declare type LoggerPayload = {
|
|
|
1086
1090
|
ts: number
|
|
1087
1091
|
}
|
|
1088
1092
|
|
|
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"];
|
|
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"];
|
|
1090
1094
|
|
|
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"
|
|
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"];
|
|
1092
1096
|
|
|
1093
1097
|
/**
|
|
1094
1098
|
* 地图 API 接口定义
|
|
@@ -1233,6 +1237,15 @@ export declare interface MapApi {
|
|
|
1233
1237
|
* @returns 定点清扫数据数组
|
|
1234
1238
|
*/
|
|
1235
1239
|
getSpots(): SpotParam[];
|
|
1240
|
+
/**
|
|
1241
|
+
* 获取当前地图上所有房间锚点数据
|
|
1242
|
+
*
|
|
1243
|
+
* 房间锚点是由外侧主动上报的独立数据源,与定点相互独立。返回值以数据缓存为准,
|
|
1244
|
+
* 不受 `controls.roomAnchor.show` 当前显隐状态影响。
|
|
1245
|
+
*
|
|
1246
|
+
* @returns 房间锚点数据数组
|
|
1247
|
+
*/
|
|
1248
|
+
getRoomAnchors(): RoomAnchorParam[];
|
|
1236
1249
|
/**
|
|
1237
1250
|
* 获取当前地图上所有家具数据
|
|
1238
1251
|
*
|
|
@@ -1701,6 +1714,15 @@ export declare interface MapCallbacks {
|
|
|
1701
1714
|
* @param.en spot - Updated spot clean data
|
|
1702
1715
|
*/
|
|
1703
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;
|
|
1704
1726
|
/**
|
|
1705
1727
|
* @description.zh 更新途经点的回调
|
|
1706
1728
|
* @description.en Callback when updating way point
|
|
@@ -1765,23 +1787,14 @@ export declare interface MapCallbacks {
|
|
|
1765
1787
|
*/
|
|
1766
1788
|
onClickSpot?: (spot: SpotParam) => void;
|
|
1767
1789
|
/**
|
|
1768
|
-
* @description.zh
|
|
1769
|
-
* @description.en Callback when
|
|
1770
|
-
* @description.zh
|
|
1771
|
-
* @description.en Triggered when user
|
|
1772
|
-
* @param.zh
|
|
1773
|
-
* @param.en
|
|
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
|
|
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
|
|
1783
1796
|
*/
|
|
1784
|
-
|
|
1797
|
+
onClickRoomAnchor?: (point: RoomAnchorParam) => void;
|
|
1785
1798
|
/**
|
|
1786
1799
|
* @description.zh 点击检测物体回调
|
|
1787
1800
|
* @description.en Callback when clicking detected object
|
|
@@ -2117,39 +2130,6 @@ export declare type ProcessedRasterData = {
|
|
|
2117
2130
|
totalPixels: number
|
|
2118
2131
|
}
|
|
2119
2132
|
|
|
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
|
-
|
|
2153
2133
|
/**
|
|
2154
2134
|
* 点阵房间数据
|
|
2155
2135
|
*/
|
|
@@ -2211,6 +2191,43 @@ export declare type Room = {
|
|
|
2211
2191
|
colorIndex?: number
|
|
2212
2192
|
}
|
|
2213
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
|
+
|
|
2214
2231
|
/**
|
|
2215
2232
|
* 房间中心点信息
|
|
2216
2233
|
*
|
|
@@ -2320,8 +2337,8 @@ export declare type RuntimeConfig = {
|
|
|
2320
2337
|
editingVirtualWallIds: string[]
|
|
2321
2338
|
/** 正在编辑的定点清扫ID列表 */
|
|
2322
2339
|
editingSpotIds: string[]
|
|
2323
|
-
/**
|
|
2324
|
-
|
|
2340
|
+
/** 正在编辑的房间锚点ID列表(独立于 editingSpotIds,互不影响) */
|
|
2341
|
+
editingRoomAnchorIds: string[]
|
|
2325
2342
|
/** 正在编辑的途径点ID列表 */
|
|
2326
2343
|
editingWayPointIds: string[]
|
|
2327
2344
|
/** 正在编辑的地毯ID列表 */
|
|
@@ -2384,6 +2401,16 @@ export declare type SpotConfig = {
|
|
|
2384
2401
|
iconSize: number
|
|
2385
2402
|
/** 图标尺寸是否固定(不跟随地图缩放) */
|
|
2386
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
|
|
2387
2414
|
/** 尺寸 (米) */
|
|
2388
2415
|
size: number
|
|
2389
2416
|
/** 描边颜色 */
|
|
@@ -2434,8 +2461,10 @@ export declare type SpotConfig = {
|
|
|
2434
2461
|
dashArray: [number, number]
|
|
2435
2462
|
/** 是否显示图标 */
|
|
2436
2463
|
showIcon: boolean
|
|
2437
|
-
/**
|
|
2464
|
+
/** 是否显示框体(边框;同时作为填充的默认开关) */
|
|
2438
2465
|
showFrame: boolean
|
|
2466
|
+
/** 是否显示填充面积(缺省时回退到 showFrame) */
|
|
2467
|
+
showFill?: boolean
|
|
2439
2468
|
}
|
|
2440
2469
|
/** 普通模式样式 */
|
|
2441
2470
|
normal: {
|
|
@@ -2445,8 +2474,10 @@ export declare type SpotConfig = {
|
|
|
2445
2474
|
dashArray: [number, number]
|
|
2446
2475
|
/** 是否显示图标 */
|
|
2447
2476
|
showIcon: boolean
|
|
2448
|
-
/**
|
|
2477
|
+
/** 是否显示框体(边框;同时作为填充的默认开关) */
|
|
2449
2478
|
showFrame: boolean
|
|
2479
|
+
/** 是否显示填充面积(缺省时回退到 showFrame) */
|
|
2480
|
+
showFill?: boolean
|
|
2450
2481
|
}
|
|
2451
2482
|
}
|
|
2452
2483
|
|
|
@@ -2458,6 +2489,12 @@ export declare type SpotParam = {
|
|
|
2458
2489
|
point: Point
|
|
2459
2490
|
/** 可选显示名称 */
|
|
2460
2491
|
name?: string
|
|
2492
|
+
/**
|
|
2493
|
+
* 可选所属房间 ID。设置后该定点即与房间关联:编辑态拖拽被硬约束在该房间内,
|
|
2494
|
+
* 无法拖出房间边界(拖到房间外的位置会被拒绝,停留在最后一个合法位置)。
|
|
2495
|
+
* 不设置则为普通定点,可自由拖拽。
|
|
2496
|
+
*/
|
|
2497
|
+
roomId?: number
|
|
2461
2498
|
}
|
|
2462
2499
|
|
|
2463
2500
|
/** 虚拟墙配置 */
|