@ray-js/robot-map-sdk 0.0.14-beta.3 → 0.0.14-beta.5
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 +1 -1
- package/dist/index.d.ts +224 -206
- package/dist/index.rjs.js +1 -1
- package/dist-app/assets/{index-CgXc-gf1.js → index-DkctDXPP.js} +1 -1
- package/dist-app/index.html +1 -1
- package/dist-docs/404.html +2 -2
- package/dist-docs/assets/{app.B-cJvUCw.js → app.BUmD6Vxj.js} +1 -1
- package/dist-docs/assets/chunks/@localSearchIndexroot.B4q8-ZG9.js +1 -0
- package/dist-docs/assets/chunks/{BitmapFont.CqQVBHFj.js → BitmapFont.BrIzlOIW.js} +1 -1
- package/dist-docs/assets/chunks/{BufferResource.B2VSGaWU.js → BufferResource.COixOmAa.js} +1 -1
- package/dist-docs/assets/chunks/{CanvasRenderer.CZO0PMWy.js → CanvasRenderer.AJZQ5kNh.js} +1 -1
- package/dist-docs/assets/chunks/{RenderTargetSystem.p9lXtNJj.js → RenderTargetSystem.D9L4DY-z.js} +1 -1
- package/dist-docs/assets/chunks/{VPLocalSearchBox.D1PfgbSt.js → VPLocalSearchBox.BcIzulCn.js} +1 -1
- package/dist-docs/assets/chunks/{WebGLRenderer.0K1DT-Es.js → WebGLRenderer.C1UT4_Sf.js} +1 -1
- package/dist-docs/assets/chunks/{WebGPURenderer.COUGZ4Th.js → WebGPURenderer.BGf12giD.js} +1 -1
- package/dist-docs/assets/chunks/{browserAll.C5bQpkD7.js → browserAll.A8YysdLT.js} +1 -1
- package/dist-docs/assets/chunks/{index.C-AiaySA.js → index.tAXumaXj.js} +45 -45
- package/dist-docs/assets/chunks/{theme.C-O3vTBh.js → theme.DlUWvF3L.js} +3 -3
- package/dist-docs/assets/chunks/{webworkerAll.EzKpjJ2M.js → webworkerAll.BBKdt9Wn.js} +1 -1
- package/dist-docs/assets/{guide_getting-started.md.B9WvxLmT.js → guide_getting-started.md.BHbOm955.js} +1 -1
- package/dist-docs/assets/plans_2026-03-10-testing-rollout-next-steps-plan.md.CGR6uZic.js +17 -0
- package/dist-docs/assets/plans_2026-03-10-testing-rollout-next-steps-plan.md.CGR6uZic.lean.js +1 -0
- package/dist-docs/assets/records_bugs_2026-03-26-fix-pixi-gc-deprecation-warning-bugfix.md.DaCuhvTA.js +1 -0
- package/dist-docs/assets/records_bugs_2026-03-26-fix-pixi-gc-deprecation-warning-bugfix.md.DaCuhvTA.lean.js +1 -0
- package/dist-docs/assets/records_bugs_2026-03-26-fix-room-floor-type-auto-gc-bugfix.md.DeytN_el.js +1 -0
- package/dist-docs/assets/records_bugs_2026-03-26-fix-room-floor-type-auto-gc-bugfix.md.DeytN_el.lean.js +1 -0
- package/dist-docs/assets/records_plans_2026-03-05-testing-infrastructure-design.md.DLHGz5Ez.js +77 -0
- package/dist-docs/assets/records_plans_2026-03-05-testing-infrastructure-design.md.DLHGz5Ez.lean.js +1 -0
- package/dist-docs/assets/{reference_callbacks.md.BIwuGR3s.js → reference_callbacks.md.DdQU431C.js} +2 -2
- package/dist-docs/assets/{reference_callbacks.md.BIwuGR3s.lean.js → reference_callbacks.md.DdQU431C.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/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 +41 -0
- package/dist-docs/plans/2026-03-11-simulator-logger-dump-implementation-plan.html +3 -3
- package/dist-docs/records/bugs/2026-02-28-fix-pixi-bindgroup-webgpu-snapshot-whitescreen-bugfix.html +3 -3
- package/dist-docs/records/bugs/2026-03-10-events-drawer-toolbar-scroll-bugfix.html +3 -3
- package/dist-docs/records/bugs/2026-03-10-simulator-initial-render-layout-bugfix.html +3 -3
- package/dist-docs/records/bugs/2026-03-10-simulator-wheel-scroll-leak-bugfix.html +3 -3
- package/dist-docs/records/bugs/2026-03-11-docs-server-bin-clean-bugfix.html +3 -3
- package/dist-docs/records/bugs/2026-03-11-render-result-runtime-sync-bugfix.html +3 -3
- package/dist-docs/records/bugs/2026-03-26-fix-pixi-gc-deprecation-warning-bugfix.html +25 -0
- package/dist-docs/records/bugs/2026-03-26-fix-room-floor-type-auto-gc-bugfix.html +25 -0
- package/dist-docs/records/plans/2026-03-02-furniture-feature-plan.html +3 -3
- package/dist-docs/records/plans/2026-03-05-testing-infrastructure-design.html +101 -0
- package/dist-docs/records/plans/2026-03-10-simulator-events-console-plan.html +3 -3
- package/dist-docs/records/plans/2026-03-10-simulator-last-successful-combo-cache-plan.html +3 -3
- package/dist-docs/records/plans/2026-03-10-simulator-map-parsed-view-plan.html +3 -3
- package/dist-docs/records/plans/2026-03-10-simulator-map-playground-refactor-plan.html +3 -3
- package/dist-docs/records/plans/2026-03-10-simulator-playground-plan.html +3 -3
- package/dist-docs/records/plans/2026-03-10-simulator-runtime-controls-plan.html +3 -3
- package/dist-docs/records/plans/2026-03-11-docs-cli-ui-polish-plan.html +3 -3
- package/dist-docs/records/plans/2026-03-11-simulator-logger-dump-plan.html +3 -3
- package/dist-docs/records/plans/2026-03-11-simulator-src-migration-implementation.html +3 -3
- package/dist-docs/records/plans/2026-03-11-simulator-src-migration-plan.html +3 -3
- package/dist-docs/records/plans/2026-03-11-simulator-style-tokenization-plan.html +3 -3
- package/dist-docs/reference/callbacks.html +5 -5
- 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 +8 -3
- package/dist-docs/assets/chunks/@localSearchIndexroot.CrYZjrrp.js +0 -1
- /package/dist-docs/assets/{guide_getting-started.md.B9WvxLmT.lean.js → guide_getting-started.md.BHbOm955.lean.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1416,327 +1416,345 @@ export declare type MapApplicationInstance = {
|
|
|
1416
1416
|
}
|
|
1417
1417
|
|
|
1418
1418
|
/**
|
|
1419
|
-
* 地图事件回调接口
|
|
1420
|
-
*
|
|
1421
|
-
* 定义了地图组件的所有事件回调函数,用于处理地图的各种交互和状态变化。
|
|
1422
|
-
*
|
|
1423
|
-
*
|
|
1419
|
+
* @description.zh 地图事件回调接口
|
|
1420
|
+
* @description.en Map event callbacks interface
|
|
1421
|
+
* @description.zh 定义了地图组件的所有事件回调函数,用于处理地图的各种交互和状态变化。
|
|
1422
|
+
* @description.en Defines all event callback functions for the map component to handle various interactions and state changes.
|
|
1424
1423
|
*/
|
|
1425
1424
|
export declare interface MapCallbacks {
|
|
1426
1425
|
/**
|
|
1427
|
-
* 地图首次绘制完成回调
|
|
1428
|
-
*
|
|
1429
|
-
* 当地图首次加载并绘制完成后触发,通常用于移除Loading
|
|
1430
|
-
*
|
|
1431
|
-
*
|
|
1432
|
-
* @param mapState -
|
|
1426
|
+
* @description.zh 地图首次绘制完成回调
|
|
1427
|
+
* @description.en Callback when the map is first drawn
|
|
1428
|
+
* @description.zh 当地图首次加载并绘制完成后触发,通常用于移除Loading状态。与 onMapDrawed 不同,此回调只在首次绘制时触发一次。
|
|
1429
|
+
* @description.en Triggered when the map is first loaded and drawn, usually used to remove the loading state. Unlike onMapDrawed, this callback is only triggered once on the first draw.
|
|
1430
|
+
* @param.zh mapState - 地图状态信息,包含地图ID、原点、尺寸等信息
|
|
1431
|
+
* @param.en mapState - Map state information including map ID, origin, dimensions, etc.
|
|
1433
1432
|
*/
|
|
1434
1433
|
onMapFirstDrawed?: (mapState: MapState) => void;
|
|
1435
1434
|
/**
|
|
1436
|
-
* 地图绘制完成回调
|
|
1437
|
-
*
|
|
1438
|
-
* 当地图数据解析并绘制完成后触发。
|
|
1439
|
-
*
|
|
1440
|
-
* @param mapState - 地图状态信息,包含地图ID、原点、尺寸等信息
|
|
1441
|
-
*
|
|
1435
|
+
* @description.zh 地图绘制完成回调
|
|
1436
|
+
* @description.en Callback when the map is drawn
|
|
1437
|
+
* @description.zh 当地图数据解析并绘制完成后触发。
|
|
1438
|
+
* @description.en Triggered when map data is parsed and drawn.
|
|
1439
|
+
* @param.zh mapState - 地图状态信息,包含地图ID、原点、尺寸等信息
|
|
1440
|
+
* @param.en mapState - Map state information including map ID, origin, dimensions, etc.
|
|
1442
1441
|
*/
|
|
1443
1442
|
onMapDrawed?: (mapState: MapState) => void;
|
|
1444
1443
|
/**
|
|
1445
|
-
* 路径绘制完成回调
|
|
1446
|
-
*
|
|
1447
|
-
* 当机器人路径数据绘制完成后触发。
|
|
1448
|
-
*
|
|
1449
|
-
* @param pathState - 路径状态信息,包含路径ID、类型、机器人位置等
|
|
1450
|
-
*
|
|
1444
|
+
* @description.zh 路径绘制完成回调
|
|
1445
|
+
* @description.en Callback when the path is drawn
|
|
1446
|
+
* @description.zh 当机器人路径数据绘制完成后触发。
|
|
1447
|
+
* @description.en Triggered when robot path data is drawn.
|
|
1448
|
+
* @param.zh pathState - 路径状态信息,包含路径ID、类型、机器人位置等
|
|
1449
|
+
* @param.en pathState - Path state information including path ID, type, robot position, etc.
|
|
1451
1450
|
*/
|
|
1452
1451
|
onPathDrawed?: (pathState: PathState) => void;
|
|
1453
1452
|
/**
|
|
1454
|
-
* 房间信息绘制完成回调
|
|
1455
|
-
*
|
|
1456
|
-
* 当房间属性信息绘制完成后触发。
|
|
1457
|
-
*
|
|
1458
|
-
* @param rooms - 房间属性信息数组
|
|
1459
|
-
*
|
|
1453
|
+
* @description.zh 房间信息绘制完成回调
|
|
1454
|
+
* @description.en Callback when room properties are drawn
|
|
1455
|
+
* @description.zh 当房间属性信息绘制完成后触发。
|
|
1456
|
+
* @description.en Triggered when room property information is drawn.
|
|
1457
|
+
* @param.zh rooms - 房间属性信息数组
|
|
1458
|
+
* @param.en rooms - Array of room property information
|
|
1460
1459
|
*/
|
|
1461
1460
|
onRoomPropertiesDrawed?: (rooms: RoomProperty[]) => void;
|
|
1462
1461
|
/**
|
|
1463
|
-
* 点击房间回调
|
|
1464
|
-
*
|
|
1465
|
-
* 当用户点击地图上的房间区域时触发。
|
|
1466
|
-
*
|
|
1467
|
-
* @param room - 被点击的房间信息
|
|
1468
|
-
*
|
|
1462
|
+
* @description.zh 点击房间回调
|
|
1463
|
+
* @description.en Callback when clicking on a room
|
|
1464
|
+
* @description.zh 当用户点击地图上的房间区域时触发。
|
|
1465
|
+
* @description.en Triggered when user clicks on a room area on the map.
|
|
1466
|
+
* @param.zh room - 被点击的房间信息
|
|
1467
|
+
* @param.en room - Clicked room information
|
|
1469
1468
|
*/
|
|
1470
1469
|
onClickRoom?: (room: RoomData) => void;
|
|
1471
1470
|
/**
|
|
1472
|
-
* 点击房间信息回调
|
|
1473
|
-
*
|
|
1474
|
-
* 当用户点击房间的属性信息图标时触发。
|
|
1475
|
-
*
|
|
1476
|
-
* @param room - 被点击的房间信息
|
|
1477
|
-
*
|
|
1471
|
+
* @description.zh 点击房间信息回调
|
|
1472
|
+
* @description.en Callback when clicking on room properties
|
|
1473
|
+
* @description.zh 当用户点击房间的属性信息图标时触发。
|
|
1474
|
+
* @description.en Triggered when user clicks on the room property information icon.
|
|
1475
|
+
* @param.zh room - 被点击的房间信息
|
|
1476
|
+
* @param.en room - Clicked room information
|
|
1478
1477
|
*/
|
|
1479
1478
|
onClickRoomProperties?: (room: RoomData) => void;
|
|
1480
1479
|
/**
|
|
1481
|
-
* 点击禁扫区域删除按钮的回调
|
|
1482
|
-
*
|
|
1483
|
-
* 当用户点击禁扫区域删除按钮时触发。
|
|
1484
|
-
*
|
|
1485
|
-
* @param id - 被删除的禁扫区域ID
|
|
1486
|
-
*
|
|
1480
|
+
* @description.zh 点击禁扫区域删除按钮的回调
|
|
1481
|
+
* @description.en Callback when clicking the delete button of forbidden sweep zone
|
|
1482
|
+
* @description.zh 当用户点击禁扫区域删除按钮时触发。
|
|
1483
|
+
* @description.en Triggered when user clicks the delete button of forbidden sweep zone.
|
|
1484
|
+
* @param.zh id - 被删除的禁扫区域ID
|
|
1485
|
+
* @param.en id - ID of the deleted forbidden sweep zone
|
|
1487
1486
|
*/
|
|
1488
1487
|
onRemoveForbiddenSweepZone?: (id: string) => void;
|
|
1489
1488
|
/**
|
|
1490
|
-
* 点击禁拖区域删除按钮的回调
|
|
1491
|
-
*
|
|
1492
|
-
* 当用户点击禁拖区域删除按钮时触发。
|
|
1493
|
-
*
|
|
1494
|
-
* @param id - 被删除的禁拖区域ID
|
|
1495
|
-
*
|
|
1489
|
+
* @description.zh 点击禁拖区域删除按钮的回调
|
|
1490
|
+
* @description.en Callback when clicking the delete button of forbidden mop zone
|
|
1491
|
+
* @description.zh 当用户点击禁拖区域删除按钮时触发。
|
|
1492
|
+
* @description.en Triggered when user clicks the delete button of forbidden mop zone.
|
|
1493
|
+
* @param.zh id - 被删除的禁拖区域ID
|
|
1494
|
+
* @param.en id - ID of the deleted forbidden mop zone
|
|
1496
1495
|
*/
|
|
1497
1496
|
onRemoveForbiddenMopZone?: (id: string) => void;
|
|
1498
1497
|
/**
|
|
1499
|
-
* 点击清扫区域删除按钮的回调
|
|
1500
|
-
*
|
|
1501
|
-
* 当用户点击清扫区域删除按钮时触发。
|
|
1502
|
-
*
|
|
1503
|
-
* @param id - 被删除的清扫区域ID
|
|
1504
|
-
*
|
|
1498
|
+
* @description.zh 点击清扫区域删除按钮的回调
|
|
1499
|
+
* @description.en Callback when clicking the delete button of clean zone
|
|
1500
|
+
* @description.zh 当用户点击清扫区域删除按钮时触发。
|
|
1501
|
+
* @description.en Triggered when user clicks the delete button of clean zone.
|
|
1502
|
+
* @param.zh id - 被删除的清扫区域ID
|
|
1503
|
+
* @param.en id - ID of the deleted clean zone
|
|
1505
1504
|
*/
|
|
1506
1505
|
onRemoveCleanZone?: (id: string) => void;
|
|
1507
1506
|
/**
|
|
1508
|
-
* 点击虚拟墙删除按钮的回调
|
|
1509
|
-
*
|
|
1510
|
-
* 当用户点击虚拟墙删除按钮时触发。
|
|
1511
|
-
*
|
|
1512
|
-
* @param id - 被删除的虚拟墙ID
|
|
1513
|
-
*
|
|
1507
|
+
* @description.zh 点击虚拟墙删除按钮的回调
|
|
1508
|
+
* @description.en Callback when clicking the delete button of virtual wall
|
|
1509
|
+
* @description.zh 当用户点击虚拟墙删除按钮时触发。
|
|
1510
|
+
* @description.en Triggered when user clicks the delete button of virtual wall.
|
|
1511
|
+
* @param.zh id - 被删除的虚拟墙ID
|
|
1512
|
+
* @param.en id - ID of the deleted virtual wall
|
|
1514
1513
|
*/
|
|
1515
1514
|
onRemoveVirtualWall?: (id: string) => void;
|
|
1516
1515
|
/**
|
|
1517
|
-
* 更新禁扫区域的回调
|
|
1518
|
-
*
|
|
1519
|
-
* 当用户操作禁扫区域(如拖拽、缩放)后触发。
|
|
1520
|
-
*
|
|
1521
|
-
* @param zone - 更新后的禁扫区域数据
|
|
1522
|
-
*
|
|
1516
|
+
* @description.zh 更新禁扫区域的回调
|
|
1517
|
+
* @description.en Callback when updating forbidden sweep zone
|
|
1518
|
+
* @description.zh 当用户操作禁扫区域(如拖拽、缩放)后触发。
|
|
1519
|
+
* @description.en Triggered when user operates forbidden sweep zone (such as dragging, scaling).
|
|
1520
|
+
* @param.zh zone - 更新后的禁扫区域数据
|
|
1521
|
+
* @param.en zone - Updated forbidden sweep zone data
|
|
1523
1522
|
*/
|
|
1524
1523
|
onUpdateForbiddenSweepZone?: (zone: ZoneParam) => void;
|
|
1525
1524
|
/**
|
|
1526
|
-
* 更新禁拖区域的回调
|
|
1527
|
-
*
|
|
1528
|
-
* 当用户操作禁拖区域(如拖拽、缩放)后触发。
|
|
1529
|
-
*
|
|
1530
|
-
* @param zone - 更新后的禁拖区域数据
|
|
1531
|
-
*
|
|
1525
|
+
* @description.zh 更新禁拖区域的回调
|
|
1526
|
+
* @description.en Callback when updating forbidden mop zone
|
|
1527
|
+
* @description.zh 当用户操作禁拖区域(如拖拽、缩放)后触发。
|
|
1528
|
+
* @description.en Triggered when user operates forbidden mop zone (such as dragging, scaling).
|
|
1529
|
+
* @param.zh zone - 更新后的禁拖区域数据
|
|
1530
|
+
* @param.en zone - Updated forbidden mop zone data
|
|
1532
1531
|
*/
|
|
1533
1532
|
onUpdateForbiddenMopZone?: (zone: ZoneParam) => void;
|
|
1534
1533
|
/**
|
|
1535
|
-
* 更新清扫区域的回调
|
|
1536
|
-
*
|
|
1537
|
-
* 当用户操作清扫区域(如拖拽、缩放)后触发。
|
|
1538
|
-
*
|
|
1539
|
-
* @param zone - 更新后的清扫区域数据
|
|
1540
|
-
*
|
|
1534
|
+
* @description.zh 更新清扫区域的回调
|
|
1535
|
+
* @description.en Callback when updating clean zone
|
|
1536
|
+
* @description.zh 当用户操作清扫区域(如拖拽、缩放)后触发。
|
|
1537
|
+
* @description.en Triggered when user operates clean zone (such as dragging, scaling).
|
|
1538
|
+
* @param.zh zone - 更新后的清扫区域数据
|
|
1539
|
+
* @param.en zone - Updated clean zone data
|
|
1541
1540
|
*/
|
|
1542
1541
|
onUpdateCleanZone?: (zone: ZoneParam) => void;
|
|
1543
1542
|
/**
|
|
1544
|
-
* 更新虚拟墙的回调
|
|
1545
|
-
*
|
|
1546
|
-
* 当用户操作虚拟墙(如拖拽、旋转)后触发。
|
|
1547
|
-
*
|
|
1548
|
-
* @param wall - 更新后的虚拟墙数据
|
|
1549
|
-
*
|
|
1543
|
+
* @description.zh 更新虚拟墙的回调
|
|
1544
|
+
* @description.en Callback when updating virtual wall
|
|
1545
|
+
* @description.zh 当用户操作虚拟墙(如拖拽、旋转)后触发。
|
|
1546
|
+
* @description.en Triggered when user operates virtual wall (such as dragging, rotating).
|
|
1547
|
+
* @param.zh wall - 更新后的虚拟墙数据
|
|
1548
|
+
* @param.en wall - Updated virtual wall data
|
|
1550
1549
|
*/
|
|
1551
1550
|
onUpdateVirtualWall?: (wall: VirtualWallParam) => void;
|
|
1552
1551
|
/**
|
|
1553
|
-
* 更新定点清扫的回调
|
|
1554
|
-
*
|
|
1555
|
-
* 当用户操作定点清扫位置后触发。
|
|
1556
|
-
*
|
|
1557
|
-
* @param spot - 更新后的定点清扫数据
|
|
1558
|
-
*
|
|
1552
|
+
* @description.zh 更新定点清扫的回调
|
|
1553
|
+
* @description.en Callback when updating spot clean
|
|
1554
|
+
* @description.zh 当用户操作定点清扫位置后触发。
|
|
1555
|
+
* @description.en Triggered when user operates spot clean position.
|
|
1556
|
+
* @param.zh spot - 更新后的定点清扫数据
|
|
1557
|
+
* @param.en spot - Updated spot clean data
|
|
1559
1558
|
*/
|
|
1560
1559
|
onUpdateSpot?: (spot: SpotParam) => void;
|
|
1561
1560
|
/**
|
|
1562
|
-
*
|
|
1563
|
-
*
|
|
1564
|
-
*
|
|
1565
|
-
*
|
|
1566
|
-
* @param wayPoint -
|
|
1567
|
-
*
|
|
1561
|
+
* @description.zh 更新途经点的回调
|
|
1562
|
+
* @description.en Callback when updating way point
|
|
1563
|
+
* @description.zh 当用户操作途经点后触发。
|
|
1564
|
+
* @description.en Triggered when user operates way point.
|
|
1565
|
+
* @param.zh wayPoint - 更新后的途经点数据
|
|
1566
|
+
* @param.en wayPoint - Updated way point data
|
|
1568
1567
|
*/
|
|
1569
1568
|
onUpdateWayPoint?: (wayPoint: WayPointParam) => void;
|
|
1570
1569
|
/**
|
|
1571
|
-
*
|
|
1572
|
-
*
|
|
1573
|
-
*
|
|
1574
|
-
*
|
|
1575
|
-
* @param wayPoint -
|
|
1576
|
-
*
|
|
1570
|
+
* @description.zh 点击途经点回调
|
|
1571
|
+
* @description.en Callback when clicking way point
|
|
1572
|
+
* @description.zh 当用户点击途经点时触发。
|
|
1573
|
+
* @description.en Triggered when user clicks way point.
|
|
1574
|
+
* @param.zh wayPoint - 被点击的途经点数据
|
|
1575
|
+
* @param.en wayPoint - Clicked way point data
|
|
1577
1576
|
*/
|
|
1578
1577
|
onClickWayPoint?: (wayPoint: WayPointParam) => void;
|
|
1579
1578
|
/**
|
|
1580
|
-
* 点击禁扫区域回调
|
|
1581
|
-
*
|
|
1582
|
-
* 当用户点击禁扫区域时触发。
|
|
1583
|
-
*
|
|
1584
|
-
* @param zone - 被点击的禁扫区域数据
|
|
1585
|
-
*
|
|
1579
|
+
* @description.zh 点击禁扫区域回调
|
|
1580
|
+
* @description.en Callback when clicking forbidden sweep zone
|
|
1581
|
+
* @description.zh 当用户点击禁扫区域时触发。
|
|
1582
|
+
* @description.en Triggered when user clicks forbidden sweep zone.
|
|
1583
|
+
* @param.zh zone - 被点击的禁扫区域数据
|
|
1584
|
+
* @param.en zone - Clicked forbidden sweep zone data
|
|
1586
1585
|
*/
|
|
1587
1586
|
onClickForbiddenSweepZone?: (zone: ZoneParam) => void;
|
|
1588
1587
|
/**
|
|
1589
|
-
* 点击禁拖区域回调
|
|
1590
|
-
*
|
|
1591
|
-
* 当用户点击禁拖区域时触发。
|
|
1592
|
-
*
|
|
1593
|
-
* @param zone - 被点击的禁拖区域数据
|
|
1594
|
-
*
|
|
1588
|
+
* @description.zh 点击禁拖区域回调
|
|
1589
|
+
* @description.en Callback when clicking forbidden mop zone
|
|
1590
|
+
* @description.zh 当用户点击禁拖区域时触发。
|
|
1591
|
+
* @description.en Triggered when user clicks forbidden mop zone.
|
|
1592
|
+
* @param.zh zone - 被点击的禁拖区域数据
|
|
1593
|
+
* @param.en zone - Clicked forbidden mop zone data
|
|
1595
1594
|
*/
|
|
1596
1595
|
onClickForbiddenMopZone?: (zone: ZoneParam) => void;
|
|
1597
1596
|
/**
|
|
1598
|
-
* 点击清扫区域回调
|
|
1599
|
-
*
|
|
1600
|
-
* 当用户点击清扫区域时触发。
|
|
1601
|
-
*
|
|
1602
|
-
* @param zone - 被点击的清扫区域数据
|
|
1603
|
-
*
|
|
1597
|
+
* @description.zh 点击清扫区域回调
|
|
1598
|
+
* @description.en Callback when clicking clean zone
|
|
1599
|
+
* @description.zh 当用户点击清扫区域时触发。
|
|
1600
|
+
* @description.en Triggered when user clicks clean zone.
|
|
1601
|
+
* @param.zh zone - 被点击的清扫区域数据
|
|
1602
|
+
* @param.en zone - Clicked clean zone data
|
|
1604
1603
|
*/
|
|
1605
1604
|
onClickCleanZone?: (zone: ZoneParam) => void;
|
|
1606
1605
|
/**
|
|
1607
|
-
* 点击虚拟墙回调
|
|
1608
|
-
*
|
|
1609
|
-
* 当用户点击虚拟墙时触发。
|
|
1610
|
-
*
|
|
1611
|
-
* @param wall - 被点击的虚拟墙数据
|
|
1612
|
-
*
|
|
1606
|
+
* @description.zh 点击虚拟墙回调
|
|
1607
|
+
* @description.en Callback when clicking virtual wall
|
|
1608
|
+
* @description.zh 当用户点击虚拟墙时触发。
|
|
1609
|
+
* @description.en Triggered when user clicks virtual wall.
|
|
1610
|
+
* @param.zh wall - 被点击的虚拟墙数据
|
|
1611
|
+
* @param.en wall - Clicked virtual wall data
|
|
1613
1612
|
*/
|
|
1614
1613
|
onClickVirtualWall?: (wall: VirtualWallParam) => void;
|
|
1615
1614
|
/**
|
|
1616
|
-
* 点击定点清扫回调
|
|
1617
|
-
*
|
|
1618
|
-
* 当用户点击定点清扫点时触发。
|
|
1619
|
-
*
|
|
1620
|
-
* @param spot - 被点击的定点清扫数据
|
|
1621
|
-
*
|
|
1615
|
+
* @description.zh 点击定点清扫回调
|
|
1616
|
+
* @description.en Callback when clicking spot clean
|
|
1617
|
+
* @description.zh 当用户点击定点清扫点时触发。
|
|
1618
|
+
* @description.en Triggered when user clicks spot clean point.
|
|
1619
|
+
* @param.zh spot - 被点击的定点清扫数据
|
|
1620
|
+
* @param.en spot - Clicked spot clean data
|
|
1622
1621
|
*/
|
|
1623
1622
|
onClickSpot?: (spot: SpotParam) => void;
|
|
1624
1623
|
/**
|
|
1625
|
-
* 点击检测物体回调
|
|
1626
|
-
*
|
|
1627
|
-
* 当用户点击地图上的检测物体时触发。
|
|
1628
|
-
*
|
|
1629
|
-
* @param object - 被点击的检测物体数据
|
|
1630
|
-
*
|
|
1624
|
+
* @description.zh 点击检测物体回调
|
|
1625
|
+
* @description.en Callback when clicking detected object
|
|
1626
|
+
* @description.zh 当用户点击地图上的检测物体时触发。
|
|
1627
|
+
* @description.en Triggered when user clicks detected object on the map.
|
|
1628
|
+
* @param.zh object - 被点击的检测物体数据
|
|
1629
|
+
* @param.en object - Clicked detected object data
|
|
1631
1630
|
*/
|
|
1632
1631
|
onClickDetectedObject?: (object: DetectedObjectParam) => void;
|
|
1633
1632
|
/**
|
|
1634
|
-
* 点击自定义元素回调
|
|
1635
|
-
*
|
|
1636
|
-
* 当用户点击自定义元素时触发。
|
|
1637
|
-
*
|
|
1638
|
-
* @param element - 被点击的自定义元素数据
|
|
1639
|
-
*
|
|
1633
|
+
* @description.zh 点击自定义元素回调
|
|
1634
|
+
* @description.en Callback when clicking custom element
|
|
1635
|
+
* @description.zh 当用户点击自定义元素时触发。
|
|
1636
|
+
* @description.en Triggered when user clicks custom element.
|
|
1637
|
+
* @param.zh element - 被点击的自定义元素数据
|
|
1638
|
+
* @param.en element - Clicked custom element data
|
|
1640
1639
|
*/
|
|
1641
1640
|
onClickCustomElement?: (element: CustomElementParam) => void;
|
|
1642
1641
|
/**
|
|
1643
|
-
* 更新分割线回调
|
|
1644
|
-
*
|
|
1645
|
-
* 当用户操作分割线(如拖拽端点、移动整条线)后触发。
|
|
1646
|
-
*
|
|
1647
|
-
* @param divider - 更新后的分割线数据
|
|
1648
|
-
*
|
|
1642
|
+
* @description.zh 更新分割线回调
|
|
1643
|
+
* @description.en Callback when updating divider
|
|
1644
|
+
* @description.zh 当用户操作分割线(如拖拽端点、移动整条线)后触发。
|
|
1645
|
+
* @description.en Triggered when user operates divider (such as dragging endpoints, moving the entire line).
|
|
1646
|
+
* @param.zh divider - 更新后的分割线数据
|
|
1647
|
+
* @param.en divider - Updated divider data
|
|
1649
1648
|
*/
|
|
1650
1649
|
onUpdateDivider?: (divider: Point[]) => void;
|
|
1651
1650
|
/**
|
|
1652
|
-
*
|
|
1653
|
-
*
|
|
1654
|
-
* 当启用地图点击捕获(enableMapClickCapture
|
|
1655
|
-
*
|
|
1656
|
-
*
|
|
1657
|
-
* @param point -
|
|
1658
|
-
*
|
|
1651
|
+
* @description.zh 点击地图回调
|
|
1652
|
+
* @description.en Callback when clicking map
|
|
1653
|
+
* @description.zh 当启用地图点击捕获(enableMapClickCapture)后,用户点击地图时触发。返回点击位置的地图坐标(基于机器坐标系)。
|
|
1654
|
+
* @description.en Triggered when map click capture is enabled (enableMapClickCapture) and user clicks the map. Returns map coordinates of the click position (based on machine coordinate system).
|
|
1655
|
+
* @param.zh point - 点击位置的地图坐标
|
|
1656
|
+
* @param.en point - Map coordinates of the click position
|
|
1659
1657
|
*/
|
|
1660
1658
|
onClickMap?: (point: Point) => void;
|
|
1661
1659
|
/**
|
|
1662
|
-
* 点击地毯回调
|
|
1663
|
-
*
|
|
1664
|
-
* 当用户点击地毯区域时触发(需要启用 carpet.enableEdit)。
|
|
1665
|
-
*
|
|
1666
|
-
* @param carpet -
|
|
1667
|
-
*
|
|
1660
|
+
* @description.zh 点击地毯回调
|
|
1661
|
+
* @description.en Callback when clicking carpet
|
|
1662
|
+
* @description.zh 当用户点击地毯区域时触发(需要启用 carpet.enableEdit)。
|
|
1663
|
+
* @description.en Triggered when user clicks carpet area (requires carpet.enableEdit to be enabled).
|
|
1664
|
+
* @param.zh carpet - 被点击的地毯信息
|
|
1665
|
+
* @param.en carpet - Clicked carpet information
|
|
1668
1666
|
*/
|
|
1669
1667
|
onClickCarpet?: (carpet: {
|
|
1670
1668
|
id: string;
|
|
1671
1669
|
}) => void;
|
|
1672
1670
|
/**
|
|
1673
|
-
* 删除地图地毯回调
|
|
1674
|
-
*
|
|
1675
|
-
* 当用户删除地图中的地毯时触发。
|
|
1676
|
-
*
|
|
1677
|
-
* @param carpet - 被删除的地毯信息
|
|
1678
|
-
*
|
|
1671
|
+
* @description.zh 删除地图地毯回调
|
|
1672
|
+
* @description.en Callback when deleting map carpet
|
|
1673
|
+
* @description.zh 当用户删除地图中的地毯时触发。
|
|
1674
|
+
* @description.en Triggered when user deletes a carpet from the map.
|
|
1675
|
+
* @param.zh carpet - 被删除的地毯信息
|
|
1676
|
+
* @param.en carpet - Deleted carpet information
|
|
1679
1677
|
*/
|
|
1680
1678
|
onDeleteCarpet?: (carpet: {
|
|
1681
1679
|
id: string;
|
|
1682
1680
|
}) => void;
|
|
1683
1681
|
/**
|
|
1684
|
-
* 删除自定义地毯回调
|
|
1685
|
-
*
|
|
1686
|
-
* 当用户删除自定义地毯时触发。
|
|
1687
|
-
*
|
|
1688
|
-
* @param carpet - 被删除的自定义地毯信息
|
|
1689
|
-
*
|
|
1682
|
+
* @description.zh 删除自定义地毯回调
|
|
1683
|
+
* @description.en Callback when deleting custom carpet
|
|
1684
|
+
* @description.zh 当用户删除自定义地毯时触发。
|
|
1685
|
+
* @description.en Triggered when user deletes a custom carpet.
|
|
1686
|
+
* @param.zh carpet - 被删除的自定义地毯信息
|
|
1687
|
+
* @param.en carpet - Deleted custom carpet information
|
|
1690
1688
|
*/
|
|
1691
1689
|
onDeleteCustomCarpet?: (carpet: {
|
|
1692
1690
|
id: string;
|
|
1693
1691
|
}) => void;
|
|
1694
1692
|
/**
|
|
1695
|
-
* 更新自定义地毯回调
|
|
1696
|
-
*
|
|
1697
|
-
* 当用户编辑自定义地毯(移动、旋转、缩放)后触发。
|
|
1698
|
-
*
|
|
1699
|
-
* @param carpet - 更新后的自定义地毯数据
|
|
1700
|
-
*
|
|
1693
|
+
* @description.zh 更新自定义地毯回调
|
|
1694
|
+
* @description.en Callback when updating custom carpet
|
|
1695
|
+
* @description.zh 当用户编辑自定义地毯(移动、旋转、缩放)后触发。
|
|
1696
|
+
* @description.en Triggered when user edits custom carpet (move, rotate, scale).
|
|
1697
|
+
* @param.zh carpet - 更新后的自定义地毯数据
|
|
1698
|
+
* @param.en carpet - Updated custom carpet data
|
|
1701
1699
|
*/
|
|
1702
1700
|
onUpdateCustomCarpet?: (carpet: CustomCarpetParam) => void;
|
|
1703
1701
|
/**
|
|
1704
|
-
*
|
|
1705
|
-
*
|
|
1706
|
-
* @
|
|
1702
|
+
* @description.zh 删除家具回调
|
|
1703
|
+
* @description.en Callback when removing furniture
|
|
1704
|
+
* @description.zh 当用户点击家具删除按钮时触发。
|
|
1705
|
+
* @description.en Triggered when user clicks the delete button of furniture.
|
|
1706
|
+
* @param.zh id - 被删除的家具ID
|
|
1707
|
+
* @param.en id - ID of the removed furniture
|
|
1707
1708
|
*/
|
|
1708
1709
|
onRemoveFurniture?: (id: string) => void;
|
|
1709
1710
|
/**
|
|
1710
|
-
*
|
|
1711
|
-
*
|
|
1712
|
-
* 当用户操作家具(如拖拽、缩放、旋转)后触发。
|
|
1713
|
-
*
|
|
1714
|
-
* @param furniture - 更新后的家具数据
|
|
1711
|
+
* @description.zh 更新家具回调
|
|
1712
|
+
* @description.en Callback when updating furniture
|
|
1713
|
+
* @description.zh 当用户操作家具(如拖拽、缩放、旋转)后触发。
|
|
1714
|
+
* @description.en Triggered when user operates furniture (such as dragging, scaling, rotating).
|
|
1715
|
+
* @param.zh furniture - 更新后的家具数据
|
|
1716
|
+
* @param.en furniture - Updated furniture data
|
|
1715
1717
|
*/
|
|
1716
1718
|
onUpdateFurniture?: (furniture: FurnitureParam) => void;
|
|
1717
1719
|
/**
|
|
1718
|
-
* 点击家具回调
|
|
1719
|
-
*
|
|
1720
|
-
* @
|
|
1720
|
+
* @description.zh 点击家具回调
|
|
1721
|
+
* @description.en Callback when clicking furniture
|
|
1722
|
+
* @description.zh 当用户点击家具时触发。
|
|
1723
|
+
* @description.en Triggered when user clicks furniture.
|
|
1724
|
+
* @param.zh furniture - 被点击的家具数据
|
|
1725
|
+
* @param.en furniture - Clicked furniture data
|
|
1721
1726
|
*/
|
|
1722
1727
|
onClickFurniture?: (furniture: FurnitureParam) => void;
|
|
1728
|
+
/**
|
|
1729
|
+
* @description.zh 手势开始回调
|
|
1730
|
+
* @description.en Callback when gesture starts
|
|
1731
|
+
* @description.zh 当用户开始与地图上的控制元素(如禁区、虚拟墙等)进行手势交互时触发。通常用于在小程序层动态切换组件显隐,避免 Native 组件干扰手势。
|
|
1732
|
+
* @description.en Triggered when user starts gesture interaction with control elements on the map (such as forbidden zones, virtual walls, etc.). Usually used to dynamically toggle component visibility in the mini program layer to avoid native component interference with gestures.
|
|
1733
|
+
*/
|
|
1723
1734
|
onGestureStart?: () => void;
|
|
1724
1735
|
/**
|
|
1725
|
-
*
|
|
1726
|
-
*
|
|
1727
|
-
* 当用户结束手势交互时触发。
|
|
1736
|
+
* @description.zh 手势结束回调
|
|
1737
|
+
* @description.en Callback when gesture ends
|
|
1738
|
+
* @description.zh 当用户结束手势交互时触发。
|
|
1739
|
+
* @description.en Triggered when user ends gesture interaction.
|
|
1728
1740
|
*/
|
|
1729
1741
|
onGestureEnd?: () => void;
|
|
1730
1742
|
/**
|
|
1731
|
-
* 点击机器人回调
|
|
1732
|
-
*
|
|
1733
|
-
* @
|
|
1743
|
+
* @description.zh 点击机器人回调
|
|
1744
|
+
* @description.en Callback when clicking robot
|
|
1745
|
+
* @description.zh 当用户点击机器人时触发。
|
|
1746
|
+
* @description.en Triggered when user clicks robot.
|
|
1747
|
+
* @param.zh point - 机器人当前位置和朝向
|
|
1748
|
+
* @param.en point - Robot current position and orientation
|
|
1734
1749
|
*/
|
|
1735
1750
|
onClickRobot?: (point: IconPoint) => void;
|
|
1736
1751
|
/**
|
|
1737
|
-
* 点击充电桩回调
|
|
1738
|
-
*
|
|
1739
|
-
* @
|
|
1752
|
+
* @description.zh 点击充电桩回调
|
|
1753
|
+
* @description.en Callback when clicking charging station
|
|
1754
|
+
* @description.zh 当用户点击充电桩时触发。
|
|
1755
|
+
* @description.en Triggered when user clicks charging station.
|
|
1756
|
+
* @param.zh point - 充电桩当前位置和朝向
|
|
1757
|
+
* @param.en point - Charging station current position and orientation
|
|
1740
1758
|
*/
|
|
1741
1759
|
onClickChargingStation?: (point: IconPoint) => void;
|
|
1742
1760
|
}
|