@ray-js/robot-map-sdk 0.0.3-beta-46 → 0.0.3-beta-48
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 +186 -4
- package/dist/index.rjs.js +1 -1
- package/dist-app/assets/{index-D7rAw74M.js → index-CEcWH0u1.js} +1 -1
- package/dist-app/index.html +1 -1
- package/dist-docs/404.html +2 -2
- package/dist-docs/assets/{app.CJ8ECKcv.js → app.CVw_yIwi.js} +1 -1
- package/dist-docs/assets/chunks/@localSearchIndexroot.DjxfmlX5.js +1 -0
- package/dist-docs/assets/chunks/{VPLocalSearchBox.DfrYeRqe.js → VPLocalSearchBox.CZ0OWFmB.js} +1 -1
- package/dist-docs/assets/chunks/{theme.DdrVMIxK.js → theme.DXGZ88M3.js} +2 -2
- package/dist-docs/assets/{guide_advanced-usage.md.Bf3DpyeN.js → guide_advanced-usage.md.Bt5ROSu8.js} +52 -3
- package/dist-docs/assets/{guide_advanced-usage.md.Bf3DpyeN.lean.js → guide_advanced-usage.md.Bt5ROSu8.lean.js} +1 -1
- package/dist-docs/assets/{guide_getting-started.md.C1MIVXEZ.js → guide_getting-started.md.1lsSKoUd.js} +1 -1
- package/dist-docs/assets/{reference_callbacks.md.-S6uhkXO.js → reference_callbacks.md.DgCt5RdP.js} +2 -2
- package/dist-docs/assets/{reference_callbacks.md.-S6uhkXO.lean.js → reference_callbacks.md.DgCt5RdP.lean.js} +1 -1
- package/dist-docs/assets/reference_config.md.DXceIM-V.js +61 -0
- package/dist-docs/assets/reference_config.md.DXceIM-V.lean.js +1 -0
- package/dist-docs/assets/{reference_data.md.B8JfrRhl.js → reference_data.md.DciSLVC8.js} +10 -3
- package/dist-docs/assets/{reference_data.md.B8JfrRhl.lean.js → reference_data.md.DciSLVC8.lean.js} +1 -1
- package/dist-docs/assets/{reference_methods.md.CO0IvYMn.js → reference_methods.md.DxIWUIJ-.js} +3 -3
- package/dist-docs/assets/{reference_methods.md.CO0IvYMn.lean.js → reference_methods.md.DxIWUIJ-.lean.js} +1 -1
- package/dist-docs/assets/reference_runtime.md.BA81waFW.js +19 -0
- package/dist-docs/assets/{reference_runtime.md.BMm5Nj3U.lean.js → reference_runtime.md.BA81waFW.lean.js} +1 -1
- package/dist-docs/assets/{reference_types.md.DkIhhJD0.js → reference_types.md.4zpYEKU_.js} +7 -2
- package/dist-docs/assets/{reference_types.md.DkIhhJD0.lean.js → reference_types.md.4zpYEKU_.lean.js} +1 -1
- package/dist-docs/guide/advanced-usage.html +55 -6
- 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 +5 -5
- package/dist-docs/reference/data.html +13 -6
- package/dist-docs/reference/methods.html +6 -6
- package/dist-docs/reference/runtime.html +5 -5
- package/dist-docs/reference/types.html +10 -5
- package/dist-docs/reference/utils.html +3 -3
- package/package.json +1 -1
- package/dist-docs/assets/chunks/@localSearchIndexroot.COeMXGcL.js +0 -1
- package/dist-docs/assets/reference_config.md.DjhHk1V8.js +0 -61
- package/dist-docs/assets/reference_config.md.DjhHk1V8.lean.js +0 -1
- package/dist-docs/assets/reference_runtime.md.BMm5Nj3U.js +0 -19
- /package/dist-docs/assets/{guide_getting-started.md.C1MIVXEZ.lean.js → guide_getting-started.md.1lsSKoUd.lean.js} +0 -0
package/dist/constant/methods.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=["areRoomsAdjacent","getForbiddenSweepZones","getForbiddenMopZones","getCleanZones","getVirtualWalls","getSpots","getViewportCenterPoint","getMapCenterPoint","getWallPointsByViewportCenter","getForbiddenSweepZonePointsByViewportCenter","getForbiddenMopZonePointsByViewportCenter","getCleanZonePointsByViewportCenter","getSpotPointByViewportCenter","getEffectiveDividerPoints","getDividerEndPoints","isNearChargerOrRobot","isPointInAnyRoom","resetPanZoom","snapshot","snapshotByData"],o=["onMapFirstDrawed","onMapDrawed","onPathDrawed","onRoomPropertiesDrawed","onClickRoom","onClickRoomProperties","onRemoveForbiddenSweepZone","onRemoveForbiddenMopZone","onRemoveCleanZone","onRemoveVirtualWall","onUpdateForbiddenSweepZone","onUpdateForbiddenMopZone","onUpdateCleanZone","onUpdateVirtualWall","onUpdateSpot","onUpdateDivider","onClickForbiddenSweepZone","onClickForbiddenMopZone","onClickCleanZone","onClickVirtualWall","onClickSpot","onClickDetectedObject","onClickCustomElement"];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","resetPanZoom","snapshot","snapshotByData"],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"];export{e as MAP_API_METHODS,o as MAP_CALLBACK_METHODS};
|
package/dist/index.d.ts
CHANGED
|
@@ -202,8 +202,14 @@ export declare type AppConfig = {
|
|
|
202
202
|
containerHeight: number
|
|
203
203
|
/** 描边宽度 */
|
|
204
204
|
strokeWidth: number
|
|
205
|
-
/**
|
|
206
|
-
|
|
205
|
+
/**
|
|
206
|
+
* 描边颜色
|
|
207
|
+
*
|
|
208
|
+
* 支持以下值:
|
|
209
|
+
* - 颜色值(ColorSource):固定颜色,如 '#ffffff'
|
|
210
|
+
* - 'auto':自动跟随 selectionIndicatorBackground 的颜色
|
|
211
|
+
*/
|
|
212
|
+
strokeColor: ColorSource | 'auto'
|
|
207
213
|
/** 边框圆角 */
|
|
208
214
|
borderRadius: number
|
|
209
215
|
/** X轴偏移 */
|
|
@@ -643,6 +649,8 @@ export declare type ControlsConfig = {
|
|
|
643
649
|
textFontFamily: string
|
|
644
650
|
/** 文本字体粗细 */
|
|
645
651
|
textFontWeight: TextStyleFontWeight
|
|
652
|
+
/** 单位 */
|
|
653
|
+
unit: MeasurementUnit
|
|
646
654
|
/** 单位标签 */
|
|
647
655
|
unitLabel: string
|
|
648
656
|
/** 禁扫区域配置 */
|
|
@@ -655,6 +663,7 @@ export declare type ControlsConfig = {
|
|
|
655
663
|
virtualWall: VirtualWallConfig
|
|
656
664
|
/** 定点清扫配置 */
|
|
657
665
|
spot: SpotConfig
|
|
666
|
+
wayPoint: WayPointConfig
|
|
658
667
|
}
|
|
659
668
|
|
|
660
669
|
declare class ControlsManager {
|
|
@@ -663,6 +672,7 @@ declare class ControlsManager {
|
|
|
663
672
|
private cleanZoneMap;
|
|
664
673
|
private virtualWallMap;
|
|
665
674
|
private spotMap;
|
|
675
|
+
private wayPointMap;
|
|
666
676
|
private divider;
|
|
667
677
|
private unsubscribeFns;
|
|
668
678
|
constructor();
|
|
@@ -798,6 +808,43 @@ declare class ControlsManager {
|
|
|
798
808
|
* 比较两个定点清扫数据是否相等
|
|
799
809
|
*/
|
|
800
810
|
private isSpotDataEqual;
|
|
811
|
+
/**
|
|
812
|
+
* 绘制途径点
|
|
813
|
+
* @param wayPoints 途径点数组
|
|
814
|
+
*/
|
|
815
|
+
drawWayPoints(wayPoints: WayPointParam[]): void;
|
|
816
|
+
/**
|
|
817
|
+
* 清除所有途径点
|
|
818
|
+
*/
|
|
819
|
+
clearAllWayPoints(): void;
|
|
820
|
+
/**
|
|
821
|
+
* 获取所有途径点数据
|
|
822
|
+
*/
|
|
823
|
+
getWayPoints(): WayPointParam[];
|
|
824
|
+
/**
|
|
825
|
+
* 添加新途径点到 LAYER_CONTROLS
|
|
826
|
+
*/
|
|
827
|
+
private addNewWayPoint;
|
|
828
|
+
/**
|
|
829
|
+
* 移除途径点
|
|
830
|
+
*/
|
|
831
|
+
private removeWayPoint;
|
|
832
|
+
/**
|
|
833
|
+
* 获取途径点数据
|
|
834
|
+
*/
|
|
835
|
+
private getWayPointsData;
|
|
836
|
+
/**
|
|
837
|
+
* 清除所有途径点
|
|
838
|
+
*/
|
|
839
|
+
private clearAllWayPointsInternal;
|
|
840
|
+
/**
|
|
841
|
+
* 更新途径点编辑状态
|
|
842
|
+
*/
|
|
843
|
+
private updateWayPointsEditState;
|
|
844
|
+
/**
|
|
845
|
+
* 比较两个途径点数据是否相等
|
|
846
|
+
*/
|
|
847
|
+
private isWayPointDataEqual;
|
|
801
848
|
/**
|
|
802
849
|
* 处理分割房间ID变化
|
|
803
850
|
*/
|
|
@@ -1416,6 +1463,11 @@ declare class Interaction extends Container {
|
|
|
1416
1463
|
lastTapPosition: Point | null;
|
|
1417
1464
|
tapDistanceThreshold: number;
|
|
1418
1465
|
tapDetectionEnabled: boolean;
|
|
1466
|
+
private mapClickStartPosition;
|
|
1467
|
+
private mapClickStartTime;
|
|
1468
|
+
private readonly mapClickTimeThreshold;
|
|
1469
|
+
private readonly mapClickMoveThreshold;
|
|
1470
|
+
private shouldSuppressMapClick;
|
|
1419
1471
|
private isGestureHijacked;
|
|
1420
1472
|
private hijackedPointerId;
|
|
1421
1473
|
private isHijackPaused;
|
|
@@ -1423,6 +1475,7 @@ declare class Interaction extends Container {
|
|
|
1423
1475
|
private viewportBounds;
|
|
1424
1476
|
private boundResetAnimation;
|
|
1425
1477
|
private debouncedStopWheelRender;
|
|
1478
|
+
private debouncedLogWheelScale;
|
|
1426
1479
|
private interactionState;
|
|
1427
1480
|
private throttledAntiScale;
|
|
1428
1481
|
constructor();
|
|
@@ -1463,6 +1516,10 @@ declare class Interaction extends Container {
|
|
|
1463
1516
|
* 销毁时清理事件监听
|
|
1464
1517
|
*/
|
|
1465
1518
|
destroy(): void;
|
|
1519
|
+
/**
|
|
1520
|
+
* 处理抑制地图点击事件
|
|
1521
|
+
*/
|
|
1522
|
+
private handleSuppressMapClick;
|
|
1466
1523
|
/**
|
|
1467
1524
|
* 处理手势劫持
|
|
1468
1525
|
*/
|
|
@@ -1485,6 +1542,7 @@ declare class Interaction extends Container {
|
|
|
1485
1542
|
private onPointerDown;
|
|
1486
1543
|
private onPointerUp;
|
|
1487
1544
|
private detectDoubleTap;
|
|
1545
|
+
private detectMapClick;
|
|
1488
1546
|
private handleDoubleTap;
|
|
1489
1547
|
private onPointerMove;
|
|
1490
1548
|
private applyPan;
|
|
@@ -1507,9 +1565,9 @@ declare type Managers = {
|
|
|
1507
1565
|
roomsManager: RoomManager;
|
|
1508
1566
|
};
|
|
1509
1567
|
|
|
1510
|
-
export declare const MAP_API_METHODS: readonly ["areRoomsAdjacent", "getForbiddenSweepZones", "getForbiddenMopZones", "getCleanZones", "getVirtualWalls", "getSpots", "getViewportCenterPoint", "getMapCenterPoint", "getWallPointsByViewportCenter", "getForbiddenSweepZonePointsByViewportCenter", "getForbiddenMopZonePointsByViewportCenter", "getCleanZonePointsByViewportCenter", "getSpotPointByViewportCenter", "getEffectiveDividerPoints", "getDividerEndPoints", "isNearChargerOrRobot", "isPointInAnyRoom", "resetPanZoom", "snapshot", "snapshotByData"];
|
|
1568
|
+
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", "resetPanZoom", "snapshot", "snapshotByData"];
|
|
1511
1569
|
|
|
1512
|
-
export declare const MAP_CALLBACK_METHODS: readonly ["onMapFirstDrawed", "onMapDrawed", "onPathDrawed", "onRoomPropertiesDrawed", "onClickRoom", "onClickRoomProperties", "onRemoveForbiddenSweepZone", "onRemoveForbiddenMopZone", "onRemoveCleanZone", "onRemoveVirtualWall", "onUpdateForbiddenSweepZone", "onUpdateForbiddenMopZone", "onUpdateCleanZone", "onUpdateVirtualWall", "onUpdateSpot", "onUpdateDivider", "onClickForbiddenSweepZone", "onClickForbiddenMopZone", "onClickCleanZone", "onClickVirtualWall", "onClickSpot", "onClickDetectedObject", "onClickCustomElement"];
|
|
1570
|
+
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"];
|
|
1513
1571
|
|
|
1514
1572
|
/**
|
|
1515
1573
|
* 地图 API 接口定义
|
|
@@ -1856,6 +1914,11 @@ declare class MapApplication extends Application implements MapApi {
|
|
|
1856
1914
|
* @param spots - 定点清扫参数数组
|
|
1857
1915
|
*/
|
|
1858
1916
|
drawSpots(spots: SpotParam[]): void;
|
|
1917
|
+
/**
|
|
1918
|
+
* 绘制途径点
|
|
1919
|
+
* @param wayPoints - 途径点参数数组
|
|
1920
|
+
*/
|
|
1921
|
+
drawWayPoints(wayPoints: WayPointParam[]): void;
|
|
1859
1922
|
/**
|
|
1860
1923
|
* 绘制检测到的物体
|
|
1861
1924
|
* @param objects - 检测物体参数数组
|
|
@@ -1896,6 +1959,12 @@ declare class MapApplication extends Application implements MapApi {
|
|
|
1896
1959
|
* @returns 定点清扫数据数组
|
|
1897
1960
|
*/
|
|
1898
1961
|
getSpots(): SpotParam[];
|
|
1962
|
+
/**
|
|
1963
|
+
* 获取当前地图上所有途径点数据
|
|
1964
|
+
*
|
|
1965
|
+
* @returns 途径点数据数组
|
|
1966
|
+
*/
|
|
1967
|
+
getWayPoints(): WayPointParam[];
|
|
1899
1968
|
/**
|
|
1900
1969
|
* 获取分割线有效端点
|
|
1901
1970
|
* @returns 分割线有效端点
|
|
@@ -2335,6 +2404,24 @@ export declare interface MapCallbacks {
|
|
|
2335
2404
|
*
|
|
2336
2405
|
*/
|
|
2337
2406
|
onUpdateSpot?: (spot: SpotParam) => void;
|
|
2407
|
+
/**
|
|
2408
|
+
* 更新途径点的回调
|
|
2409
|
+
*
|
|
2410
|
+
* 当用户操作途径点位置后触发。
|
|
2411
|
+
*
|
|
2412
|
+
* @param wayPoint - 更新后的途径点数据
|
|
2413
|
+
*
|
|
2414
|
+
*/
|
|
2415
|
+
onUpdateWayPoint?: (wayPoint: WayPointParam) => void;
|
|
2416
|
+
/**
|
|
2417
|
+
* 点击途径点的回调
|
|
2418
|
+
*
|
|
2419
|
+
* 当用户点击途径点时触发。
|
|
2420
|
+
*
|
|
2421
|
+
* @param wayPoint - 被点击的途径点数据
|
|
2422
|
+
*
|
|
2423
|
+
*/
|
|
2424
|
+
onClickWayPoint?: (wayPoint: WayPointParam) => void;
|
|
2338
2425
|
/**
|
|
2339
2426
|
* 点击禁扫区域回调
|
|
2340
2427
|
*
|
|
@@ -2407,6 +2494,16 @@ export declare interface MapCallbacks {
|
|
|
2407
2494
|
*
|
|
2408
2495
|
*/
|
|
2409
2496
|
onUpdateDivider?: (divider: Point[]) => void;
|
|
2497
|
+
/**
|
|
2498
|
+
* 地图点击回调
|
|
2499
|
+
*
|
|
2500
|
+
* 当启用地图点击捕获(enableMapClickCapture)后,用户点击地图时触发。
|
|
2501
|
+
* 返回点击位置的地图坐标(基于原点坐标系)。
|
|
2502
|
+
*
|
|
2503
|
+
* @param point - 点击位置的地图坐标
|
|
2504
|
+
*
|
|
2505
|
+
*/
|
|
2506
|
+
onClickMap?: (point: Point) => void;
|
|
2410
2507
|
}
|
|
2411
2508
|
|
|
2412
2509
|
/**
|
|
@@ -2602,6 +2699,9 @@ export declare type MapState = {
|
|
|
2602
2699
|
*/
|
|
2603
2700
|
export declare type MapType = 'structured' | 'raster'
|
|
2604
2701
|
|
|
2702
|
+
/** 测量单位 */
|
|
2703
|
+
export declare type MeasurementUnit = 'meter' | 'feet' | 'centimeter'
|
|
2704
|
+
|
|
2605
2705
|
declare class Obstacle extends Graphics {
|
|
2606
2706
|
constructor();
|
|
2607
2707
|
/**
|
|
@@ -3259,6 +3359,10 @@ export declare type RuntimeConfig = {
|
|
|
3259
3359
|
editingVirtualWallIds: string[]
|
|
3260
3360
|
/** 正在编辑的定点清扫ID列表 */
|
|
3261
3361
|
editingSpotIds: string[]
|
|
3362
|
+
/** 正在编辑的途径点ID列表 */
|
|
3363
|
+
editingWayPointIds: string[]
|
|
3364
|
+
/** 启用地图点击坐标捕获 */
|
|
3365
|
+
enableMapClickCapture: boolean
|
|
3262
3366
|
/** 地图旋转角度(度) */
|
|
3263
3367
|
mapRotation: number
|
|
3264
3368
|
/** 房间属性折叠的房间ID列表 */
|
|
@@ -3369,6 +3473,8 @@ export declare type SpotConfig = {
|
|
|
3369
3473
|
strokeWidth: number
|
|
3370
3474
|
/** 填充颜色 */
|
|
3371
3475
|
fillColor: ColorSource
|
|
3476
|
+
/** 是否显示文本 */
|
|
3477
|
+
showText: boolean
|
|
3372
3478
|
/** 文本颜色 */
|
|
3373
3479
|
textColor: ColorSource
|
|
3374
3480
|
/** 文本位置 */
|
|
@@ -3382,6 +3488,8 @@ export declare type SpotConfig = {
|
|
|
3382
3488
|
isDashed: boolean
|
|
3383
3489
|
/** 虚线数组 */
|
|
3384
3490
|
dashArray: [number, number]
|
|
3491
|
+
/** 是否显示图标 */
|
|
3492
|
+
showIcon: boolean
|
|
3385
3493
|
}
|
|
3386
3494
|
/** 普通模式样式 */
|
|
3387
3495
|
normal: {
|
|
@@ -3389,6 +3497,8 @@ export declare type SpotConfig = {
|
|
|
3389
3497
|
isDashed: boolean
|
|
3390
3498
|
/** 虚线数组 */
|
|
3391
3499
|
dashArray: [number, number]
|
|
3500
|
+
/** 是否显示图标 */
|
|
3501
|
+
showIcon: boolean
|
|
3392
3502
|
}
|
|
3393
3503
|
}
|
|
3394
3504
|
|
|
@@ -3493,6 +3603,78 @@ export declare type VirtualWallParam = {
|
|
|
3493
3603
|
points: Point[]
|
|
3494
3604
|
}
|
|
3495
3605
|
|
|
3606
|
+
/** 途径点配置 */
|
|
3607
|
+
export declare type WayPointConfig = {
|
|
3608
|
+
/** 是否显示序号 */
|
|
3609
|
+
showOrder: boolean
|
|
3610
|
+
/** 编辑模式样式 */
|
|
3611
|
+
editing: {
|
|
3612
|
+
/** 图标资源路径 */
|
|
3613
|
+
iconSrc: string
|
|
3614
|
+
/** 图标大小 */
|
|
3615
|
+
iconSize: number
|
|
3616
|
+
/** 序号文本样式 */
|
|
3617
|
+
orderText: {
|
|
3618
|
+
/** 字体大小 */
|
|
3619
|
+
fontSize: number
|
|
3620
|
+
/** 字体名称 */
|
|
3621
|
+
fontFamily: string
|
|
3622
|
+
/** 字体粗细 */
|
|
3623
|
+
fontWeight: TextStyleFontWeight
|
|
3624
|
+
/** 字体颜色 */
|
|
3625
|
+
color: ColorSource
|
|
3626
|
+
}
|
|
3627
|
+
/** 序号容器样式 */
|
|
3628
|
+
orderContainer: {
|
|
3629
|
+
/** 容器大小(圆形直径) */
|
|
3630
|
+
size: number
|
|
3631
|
+
/** 背景颜色 */
|
|
3632
|
+
backgroundColor: ColorSource
|
|
3633
|
+
/** 垂直偏移量 */
|
|
3634
|
+
offsetY: number
|
|
3635
|
+
/** 水平偏移量 */
|
|
3636
|
+
offsetX: number
|
|
3637
|
+
}
|
|
3638
|
+
}
|
|
3639
|
+
/** 普通模式样式 */
|
|
3640
|
+
normal: {
|
|
3641
|
+
/** 图标资源路径 */
|
|
3642
|
+
iconSrc: string
|
|
3643
|
+
/** 图标大小 */
|
|
3644
|
+
iconSize: number
|
|
3645
|
+
/** 序号文本样式 */
|
|
3646
|
+
orderText: {
|
|
3647
|
+
/** 字体大小 */
|
|
3648
|
+
fontSize: number
|
|
3649
|
+
/** 字体名称 */
|
|
3650
|
+
fontFamily: string
|
|
3651
|
+
/** 字体粗细 */
|
|
3652
|
+
fontWeight: TextStyleFontWeight
|
|
3653
|
+
/** 字体颜色 */
|
|
3654
|
+
color: ColorSource
|
|
3655
|
+
}
|
|
3656
|
+
/** 序号容器样式 */
|
|
3657
|
+
orderContainer: {
|
|
3658
|
+
/** 容器大小(圆形直径) */
|
|
3659
|
+
size: number
|
|
3660
|
+
/** 背景颜色 */
|
|
3661
|
+
backgroundColor: ColorSource
|
|
3662
|
+
/** 垂直偏移量 */
|
|
3663
|
+
offsetY: number
|
|
3664
|
+
/** 水平偏移量 */
|
|
3665
|
+
offsetX: number
|
|
3666
|
+
}
|
|
3667
|
+
}
|
|
3668
|
+
}
|
|
3669
|
+
|
|
3670
|
+
/** 途径点参数 */
|
|
3671
|
+
export declare type WayPointParam = {
|
|
3672
|
+
/** 途径点ID */
|
|
3673
|
+
id: string
|
|
3674
|
+
/** 点坐标 */
|
|
3675
|
+
point: Point
|
|
3676
|
+
}
|
|
3677
|
+
|
|
3496
3678
|
/** 区域配置 */
|
|
3497
3679
|
export declare type ZoneConfig = {
|
|
3498
3680
|
/** 最小尺寸 (米) */
|