@ray-js/robot-map-sdk 0.0.5-beta.1 → 0.0.5-beta.2
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 +56 -6
- package/dist/index.rjs.js +1 -1
- package/dist-app/assets/{index-DQW_UsEo.js → index-DXwi5Z5p.js} +1 -1
- package/dist-app/index.html +1 -1
- package/dist-docs/404.html +2 -2
- package/dist-docs/assets/{app.DNnKzlMv.js → app.ImNciwLP.js} +1 -1
- package/dist-docs/assets/chunks/@localSearchIndexroot.BnEnKmCZ.js +1 -0
- package/dist-docs/assets/chunks/{VPLocalSearchBox.DWdvNJl1.js → VPLocalSearchBox.BRkuUFv4.js} +1 -1
- package/dist-docs/assets/chunks/{theme.BuR8lIdF.js → theme.8Y64nJoP.js} +2 -2
- package/dist-docs/assets/{guide_advanced-usage.md.BEPxsaJf.js → guide_advanced-usage.md.DO2hzf-K.js} +24 -2
- package/dist-docs/assets/{guide_advanced-usage.md.BEPxsaJf.lean.js → guide_advanced-usage.md.DO2hzf-K.lean.js} +1 -1
- package/dist-docs/assets/{guide_getting-started.md.ao36ql6D.js → guide_getting-started.md.BA1taIq8.js} +1 -1
- package/dist-docs/assets/{reference_callbacks.md.DgCt5RdP.js → reference_callbacks.md.B9JgcUCR.js} +2 -2
- package/dist-docs/assets/{reference_callbacks.md.DgCt5RdP.lean.js → reference_callbacks.md.B9JgcUCR.lean.js} +1 -1
- package/dist-docs/assets/{reference_methods.md.Cl2prV6n.js → reference_methods.md.DGVZpJAe.js} +2 -2
- package/dist-docs/assets/reference_methods.md.DGVZpJAe.lean.js +1 -0
- package/dist-docs/guide/advanced-usage.html +27 -5
- package/dist-docs/guide/concepts.html +3 -3
- package/dist-docs/guide/getting-started.html +5 -5
- package/dist-docs/hashmap.json +1 -1
- package/dist-docs/index.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 +5 -5
- 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/package.json +1 -1
- package/dist-docs/assets/chunks/@localSearchIndexroot.DQN_056y.js +0 -1
- package/dist-docs/assets/reference_methods.md.Cl2prV6n.lean.js +0 -1
- /package/dist-docs/assets/{guide_getting-started.md.ao36ql6D.lean.js → guide_getting-started.md.BA1taIq8.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"],o=["onMapFirstDrawed","onMapDrawed","onPathDrawed","onRoomPropertiesDrawed","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"];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"],o=["onMapFirstDrawed","onMapDrawed","onPathDrawed","onRoomPropertiesDrawed","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"];export{e as MAP_API_METHODS,o as MAP_CALLBACK_METHODS};
|
package/dist/index.d.ts
CHANGED
|
@@ -2078,7 +2078,10 @@ declare class Heatmap extends Container {
|
|
|
2078
2078
|
y: number;
|
|
2079
2079
|
signal: number;
|
|
2080
2080
|
hasPoint: boolean;
|
|
2081
|
-
}>>, useGradient?: boolean, heatmapAlpha?: number
|
|
2081
|
+
}>>, useGradient?: boolean, heatmapAlpha?: number, offset?: {
|
|
2082
|
+
x: number;
|
|
2083
|
+
y: number;
|
|
2084
|
+
}): void;
|
|
2082
2085
|
/**
|
|
2083
2086
|
* 裁剪热力图 仅显示房间区域
|
|
2084
2087
|
* 根据roomFill图层的子元素 组合Graphics生成大Graphics裁剪
|
|
@@ -2097,6 +2100,16 @@ declare class Heatmap extends Container {
|
|
|
2097
2100
|
* @returns 渐变热力图mesh
|
|
2098
2101
|
*/
|
|
2099
2102
|
private gradientDrawing;
|
|
2103
|
+
/**
|
|
2104
|
+
* 更新位置
|
|
2105
|
+
* @param x
|
|
2106
|
+
* @param y
|
|
2107
|
+
*/
|
|
2108
|
+
updatePositionByOrigin(x: number, y: number): void;
|
|
2109
|
+
/**
|
|
2110
|
+
* 销毁热力图
|
|
2111
|
+
*/
|
|
2112
|
+
destroy(): void;
|
|
2100
2113
|
}
|
|
2101
2114
|
|
|
2102
2115
|
declare class HeatmapManager {
|
|
@@ -2121,7 +2134,7 @@ declare class HeatmapManager {
|
|
|
2121
2134
|
* @returns
|
|
2122
2135
|
*/
|
|
2123
2136
|
draw({ mapData, heatmapPoints, useGradient, }: {
|
|
2124
|
-
mapData:
|
|
2137
|
+
mapData: MapDataSource;
|
|
2125
2138
|
heatmapPoints: HeatmapPoint[];
|
|
2126
2139
|
useGradient?: boolean;
|
|
2127
2140
|
}): void;
|
|
@@ -2130,12 +2143,22 @@ declare class HeatmapManager {
|
|
|
2130
2143
|
* @param pointsTopLeftOrigin 热力图路径点
|
|
2131
2144
|
* @returns 信号网格
|
|
2132
2145
|
*/
|
|
2133
|
-
calculateInterpolatedSignal(pointsTopLeftOrigin: HeatmapPoint[]): {
|
|
2146
|
+
calculateInterpolatedSignal(pointsTopLeftOrigin: HeatmapPoint[], mapData: MapDataSource): {
|
|
2134
2147
|
x: number;
|
|
2135
2148
|
y: number;
|
|
2136
2149
|
signal: number;
|
|
2137
2150
|
hasPoint: boolean;
|
|
2138
2151
|
}[][];
|
|
2152
|
+
/**
|
|
2153
|
+
* 更新热力图位置
|
|
2154
|
+
* @param x
|
|
2155
|
+
* @param y
|
|
2156
|
+
*/
|
|
2157
|
+
updatePositionByOrigin(x: number, y: number): void;
|
|
2158
|
+
/**
|
|
2159
|
+
* 销毁热力图
|
|
2160
|
+
*/
|
|
2161
|
+
destroy(): void;
|
|
2139
2162
|
}
|
|
2140
2163
|
|
|
2141
2164
|
/** 热力图点 */
|
|
@@ -2276,6 +2299,10 @@ declare class Interaction extends Container {
|
|
|
2276
2299
|
*/
|
|
2277
2300
|
private updateInteractionMode;
|
|
2278
2301
|
setupInteraction(): void;
|
|
2302
|
+
/**
|
|
2303
|
+
* 处理全局取消或失去焦点事件
|
|
2304
|
+
*/
|
|
2305
|
+
private handleGlobalCancel;
|
|
2279
2306
|
resetPan(targetPosition: {
|
|
2280
2307
|
x: number;
|
|
2281
2308
|
y: number;
|
|
@@ -2324,6 +2351,10 @@ declare class Interaction extends Container {
|
|
|
2324
2351
|
* 退出手势劫持模式
|
|
2325
2352
|
*/
|
|
2326
2353
|
private exitGestureHijacked;
|
|
2354
|
+
/**
|
|
2355
|
+
* 强制结束当前正在进行的手势交互
|
|
2356
|
+
*/
|
|
2357
|
+
forceEndGesture(): void;
|
|
2327
2358
|
/**
|
|
2328
2359
|
* 暂停手势劫持(双指模式)
|
|
2329
2360
|
*/
|
|
@@ -2363,9 +2394,9 @@ declare type Managers = {
|
|
|
2363
2394
|
editControlManager: EditControlManager;
|
|
2364
2395
|
};
|
|
2365
2396
|
|
|
2366
|
-
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"];
|
|
2397
|
+
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"];
|
|
2367
2398
|
|
|
2368
|
-
export declare const MAP_CALLBACK_METHODS: readonly ["onMapFirstDrawed", "onMapDrawed", "onPathDrawed", "onRoomPropertiesDrawed", "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"];
|
|
2399
|
+
export declare const MAP_CALLBACK_METHODS: readonly ["onMapFirstDrawed", "onMapDrawed", "onPathDrawed", "onRoomPropertiesDrawed", "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"];
|
|
2369
2400
|
|
|
2370
2401
|
/**
|
|
2371
2402
|
* 地图 API 接口定义
|
|
@@ -2382,6 +2413,12 @@ export declare interface MapApi {
|
|
|
2382
2413
|
* 将地图的缩放和平移状态重置到初始位置,使地图完整显示在视口中。
|
|
2383
2414
|
*/
|
|
2384
2415
|
resetPanZoom(): void;
|
|
2416
|
+
/**
|
|
2417
|
+
* 强制结束当前正在进行的手势交互
|
|
2418
|
+
*
|
|
2419
|
+
* 当小程序侧检测到 touchend 或其他需要强制结束手势的情况时调用。
|
|
2420
|
+
*/
|
|
2421
|
+
forceEndGesture(): void;
|
|
2385
2422
|
/**
|
|
2386
2423
|
* 获取当前地图上所有禁扫区域数据
|
|
2387
2424
|
*
|
|
@@ -2717,7 +2754,7 @@ declare class MapApplication extends Application implements MapApi {
|
|
|
2717
2754
|
*
|
|
2718
2755
|
*/
|
|
2719
2756
|
drawHeatmap({ mapData, heatmapPoints, useGradient, }: {
|
|
2720
|
-
mapData:
|
|
2757
|
+
mapData: MapDataSource;
|
|
2721
2758
|
heatmapPoints: HeatmapPoint[];
|
|
2722
2759
|
useGradient?: boolean;
|
|
2723
2760
|
}): void;
|
|
@@ -2824,6 +2861,12 @@ declare class MapApplication extends Application implements MapApi {
|
|
|
2824
2861
|
* 将地图的缩放和平移状态重置到初始位置,使地图完整显示在视口中。
|
|
2825
2862
|
*/
|
|
2826
2863
|
resetPanZoom(): void;
|
|
2864
|
+
/**
|
|
2865
|
+
* 强制结束当前正在进行的手势交互
|
|
2866
|
+
*
|
|
2867
|
+
* 当小程序侧检测到 touchend 或其他需要强制结束手势的情况时调用。
|
|
2868
|
+
*/
|
|
2869
|
+
forceEndGesture(): void;
|
|
2827
2870
|
/**
|
|
2828
2871
|
* 将地图适配到视图中,居中并缩放
|
|
2829
2872
|
* @param mapBounds 地图边界信息
|
|
@@ -3407,6 +3450,13 @@ export declare interface MapCallbacks {
|
|
|
3407
3450
|
*
|
|
3408
3451
|
*/
|
|
3409
3452
|
onUpdateCustomCarpet?: (carpet: CustomCarpetParam) => void;
|
|
3453
|
+
onGestureStart?: () => void;
|
|
3454
|
+
/**
|
|
3455
|
+
* 手势交互结束回调
|
|
3456
|
+
*
|
|
3457
|
+
* 当用户结束手势交互时触发。
|
|
3458
|
+
*/
|
|
3459
|
+
onGestureEnd?: () => void;
|
|
3410
3460
|
}
|
|
3411
3461
|
|
|
3412
3462
|
/**
|