@ray-js/robot-map 0.0.5-beta.21 → 0.0.5-beta.23
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/lib/props.d.ts +19 -1
- package/package.json +2 -2
package/lib/props.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DeepPartialAppConfig, DeepPartialRuntimeConfig, RoomProperty, ZoneParam, VirtualWallParam, DetectedObjectParam, CustomElementParam, MapState, PathState, Point, RoomData, SpotParam, WayPointParam, CustomCarpetParam } from '@ray-js/robot-map-sdk';
|
|
1
|
+
import { DeepPartialAppConfig, DeepPartialRuntimeConfig, RoomProperty, ZoneParam, VirtualWallParam, DetectedObjectParam, CustomElementParam, MapState, PathState, Point, RoomData, SpotParam, WayPointParam, CustomCarpetParam, IconPoint } from '@ray-js/robot-map-sdk';
|
|
2
2
|
import { MapApi } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* 机器人地图组件属性接口
|
|
@@ -355,6 +355,24 @@ export interface RobotMapProps {
|
|
|
355
355
|
* @param.en point - Clicked point data
|
|
356
356
|
*/
|
|
357
357
|
onClickMap?: (point: Point) => void;
|
|
358
|
+
/**
|
|
359
|
+
* @description.zh 点击机器人回调
|
|
360
|
+
* @description.en Callback when clicking robot
|
|
361
|
+
* @description.zh 当用户点击机器人时触发。
|
|
362
|
+
* @description.en Triggered when user clicks robot.
|
|
363
|
+
* @param.zh robot - 被点击的机器人数据
|
|
364
|
+
* @param.en robot - Clicked robot data
|
|
365
|
+
*/
|
|
366
|
+
onClickRobot?: (robot: IconPoint) => void;
|
|
367
|
+
/**
|
|
368
|
+
* @description.zh 点击充电桩回调
|
|
369
|
+
* @description.en Callback when clicking charging station
|
|
370
|
+
* @description.zh 当用户点击充电桩时触发。
|
|
371
|
+
* @description.en Triggered when user clicks charging station.
|
|
372
|
+
* @param.zh chargingStation - 被点击的充电桩数据
|
|
373
|
+
* @param.en chargingStation - Clicked charging station data
|
|
374
|
+
*/
|
|
375
|
+
onClickChargingStation?: (chargingStation: IconPoint) => void;
|
|
358
376
|
/**
|
|
359
377
|
* @description.zh 手势开始回调
|
|
360
378
|
* @description.en Callback when gesture starts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/robot-map",
|
|
3
|
-
"version": "0.0.5-beta.
|
|
3
|
+
"version": "0.0.5-beta.23",
|
|
4
4
|
"description": "机器人地图组件",
|
|
5
5
|
"main": "lib/index",
|
|
6
6
|
"files": [
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@ray-js/ray": "^1.7.39"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@ray-js/robot-map-sdk": "0.0.6-beta.
|
|
36
|
+
"@ray-js/robot-map-sdk": "0.0.6-beta.9",
|
|
37
37
|
"clsx": "^1.2.1",
|
|
38
38
|
"nanoid": "^5.1.6"
|
|
39
39
|
},
|