@fleet-frontend/mower-maps 0.0.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/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/3900c861790f0a9d.png +0 -0
- package/dist/config/constants.d.ts +122 -0
- package/dist/config/constants.d.ts.map +1 -0
- package/dist/config/edit.d.ts +48 -0
- package/dist/config/edit.d.ts.map +1 -0
- package/dist/config/index.d.ts +21 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/styles.d.ts +25 -0
- package/dist/config/styles.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +6837 -0
- package/dist/index.js +6842 -0
- package/dist/processor/MapDataProcessor.d.ts +31 -0
- package/dist/processor/MapDataProcessor.d.ts.map +1 -0
- package/dist/processor/PathDataProcessor.d.ts +28 -0
- package/dist/processor/PathDataProcessor.d.ts.map +1 -0
- package/dist/processor/builder/AntennaDataBuilder.d.ts +18 -0
- package/dist/processor/builder/AntennaDataBuilder.d.ts.map +1 -0
- package/dist/processor/builder/BoundaryDataBuilder.d.ts +17 -0
- package/dist/processor/builder/BoundaryDataBuilder.d.ts.map +1 -0
- package/dist/processor/builder/ChannelDataBuilder.d.ts +48 -0
- package/dist/processor/builder/ChannelDataBuilder.d.ts.map +1 -0
- package/dist/processor/builder/ChargingPileDataBuilder.d.ts +16 -0
- package/dist/processor/builder/ChargingPileDataBuilder.d.ts.map +1 -0
- package/dist/processor/builder/ObstacleDataBuilder.d.ts +20 -0
- package/dist/processor/builder/ObstacleDataBuilder.d.ts.map +1 -0
- package/dist/processor/builder/PathDataBuilder.d.ts +35 -0
- package/dist/processor/builder/PathDataBuilder.d.ts.map +1 -0
- package/dist/processor/builder/PointDataBuilder.d.ts +11 -0
- package/dist/processor/builder/PointDataBuilder.d.ts.map +1 -0
- package/dist/processor/builder/SvgElementDataBuilder.d.ts +16 -0
- package/dist/processor/builder/SvgElementDataBuilder.d.ts.map +1 -0
- package/dist/processor/builder/VisionOffDataBuilder.d.ts +20 -0
- package/dist/processor/builder/VisionOffDataBuilder.d.ts.map +1 -0
- package/dist/processor/builder/index.d.ts +10 -0
- package/dist/processor/builder/index.d.ts.map +1 -0
- package/dist/processor/index.d.ts +4 -0
- package/dist/processor/index.d.ts.map +1 -0
- package/dist/render/AntennaManager.d.ts +118 -0
- package/dist/render/AntennaManager.d.ts.map +1 -0
- package/dist/render/BoundaryLabelsManager.d.ts +145 -0
- package/dist/render/BoundaryLabelsManager.d.ts.map +1 -0
- package/dist/render/ChargingPileManager.d.ts +77 -0
- package/dist/render/ChargingPileManager.d.ts.map +1 -0
- package/dist/render/MowerMapOverlay.d.ts +105 -0
- package/dist/render/MowerMapOverlay.d.ts.map +1 -0
- package/dist/render/MowerMapRenderer.d.ts +11 -0
- package/dist/render/MowerMapRenderer.d.ts.map +1 -0
- package/dist/render/MowerPostionManager.d.ts +91 -0
- package/dist/render/MowerPostionManager.d.ts.map +1 -0
- package/dist/render/SvgMapView.d.ts +196 -0
- package/dist/render/SvgMapView.d.ts.map +1 -0
- package/dist/render/layers/AntennaLayer.d.ts +21 -0
- package/dist/render/layers/AntennaLayer.d.ts.map +1 -0
- package/dist/render/layers/BaseLayer.d.ts +56 -0
- package/dist/render/layers/BaseLayer.d.ts.map +1 -0
- package/dist/render/layers/BoundaryBorderLayer.d.ts +34 -0
- package/dist/render/layers/BoundaryBorderLayer.d.ts.map +1 -0
- package/dist/render/layers/BoundaryLayer.d.ts +21 -0
- package/dist/render/layers/BoundaryLayer.d.ts.map +1 -0
- package/dist/render/layers/ChannelLayer.d.ts +23 -0
- package/dist/render/layers/ChannelLayer.d.ts.map +1 -0
- package/dist/render/layers/ChargingPileLayer.d.ts +21 -0
- package/dist/render/layers/ChargingPileLayer.d.ts.map +1 -0
- package/dist/render/layers/DrawLayer.d.ts +39 -0
- package/dist/render/layers/DrawLayer.d.ts.map +1 -0
- package/dist/render/layers/ObstacleLayer.d.ts +18 -0
- package/dist/render/layers/ObstacleLayer.d.ts.map +1 -0
- package/dist/render/layers/PathLayer.d.ts +24 -0
- package/dist/render/layers/PathLayer.d.ts.map +1 -0
- package/dist/render/layers/PointLayer.d.ts +18 -0
- package/dist/render/layers/PointLayer.d.ts.map +1 -0
- package/dist/render/layers/SvgElementLayer.d.ts +23 -0
- package/dist/render/layers/SvgElementLayer.d.ts.map +1 -0
- package/dist/render/layers/VisionOffLayer.d.ts +17 -0
- package/dist/render/layers/VisionOffLayer.d.ts.map +1 -0
- package/dist/render/layers/index.d.ts +5 -0
- package/dist/render/layers/index.d.ts.map +1 -0
- package/dist/render/layers/types.d.ts +79 -0
- package/dist/render/layers/types.d.ts.map +1 -0
- package/dist/store/useSubBoundaryBorderStore.d.ts +11 -0
- package/dist/store/useSubBoundaryBorderStore.d.ts.map +1 -0
- package/dist/types/antenna.d.ts +15 -0
- package/dist/types/antenna.d.ts.map +1 -0
- package/dist/types/common.d.ts +26 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/edit.d.ts +34 -0
- package/dist/types/edit.d.ts.map +1 -0
- package/dist/types/elements.d.ts +67 -0
- package/dist/types/elements.d.ts.map +1 -0
- package/dist/types/index.d.ts +12 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/map.d.ts +41 -0
- package/dist/types/map.d.ts.map +1 -0
- package/dist/types/path.d.ts +43 -0
- package/dist/types/path.d.ts.map +1 -0
- package/dist/types/realTime.d.ts +20 -0
- package/dist/types/realTime.d.ts.map +1 -0
- package/dist/types/renderer.d.ts +94 -0
- package/dist/types/renderer.d.ts.map +1 -0
- package/dist/types/ui.d.ts +35 -0
- package/dist/types/ui.d.ts.map +1 -0
- package/dist/utils/boundaryUtils.d.ts +85 -0
- package/dist/utils/boundaryUtils.d.ts.map +1 -0
- package/dist/utils/coordinates.d.ts +23 -0
- package/dist/utils/coordinates.d.ts.map +1 -0
- package/dist/utils/display.d.ts +2 -0
- package/dist/utils/display.d.ts.map +1 -0
- package/dist/utils/formatUtils.d.ts +62 -0
- package/dist/utils/formatUtils.d.ts.map +1 -0
- package/dist/utils/handleRealTime.d.ts +16 -0
- package/dist/utils/handleRealTime.d.ts.map +1 -0
- package/dist/utils/index.d.ts +10 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/mapBounds.d.ts +41 -0
- package/dist/utils/mapBounds.d.ts.map +1 -0
- package/dist/utils/math.d.ts +11 -0
- package/dist/utils/math.d.ts.map +1 -0
- package/dist/utils/mower.d.ts +9 -0
- package/dist/utils/mower.d.ts.map +1 -0
- package/dist/utils/pathSegments.d.ts +21 -0
- package/dist/utils/pathSegments.d.ts.map +1 -0
- package/package.json +85 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseLayer } from './BaseLayer';
|
|
2
|
+
/**
|
|
3
|
+
* 充电桩图层
|
|
4
|
+
* 专门处理充电桩元素的渲染
|
|
5
|
+
*/
|
|
6
|
+
export declare class ChargingPileLayer extends BaseLayer {
|
|
7
|
+
constructor();
|
|
8
|
+
/**
|
|
9
|
+
* SVG渲染方法
|
|
10
|
+
*/
|
|
11
|
+
drawSVG(svgGroup: SVGGElement): void;
|
|
12
|
+
/**
|
|
13
|
+
* 渲染充电桩元素
|
|
14
|
+
*/
|
|
15
|
+
private renderChargingPile;
|
|
16
|
+
/**
|
|
17
|
+
* 添加充电桩SVG原生动画
|
|
18
|
+
*/
|
|
19
|
+
private addChargingPileAnimation;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=ChargingPileLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChargingPileLayer.d.ts","sourceRoot":"","sources":["../../../src/render/layers/ChargingPileLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAIxC;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,SAAS;;IAM9C;;OAEG;IACI,OAAO,CAAC,QAAQ,EAAE,WAAW,GAAG,IAAI;IAa3C;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAgC1B;;OAEG;IACH,OAAO,CAAC,wBAAwB;CA8BjC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { BaseLayer } from './BaseLayer';
|
|
2
|
+
import { DrawElement } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* DrawLayer 绘制图层
|
|
5
|
+
* 负责管理和渲染各种类型的矢量图形元素
|
|
6
|
+
* 使用具体的图层类来处理不同类型的渲染
|
|
7
|
+
*/
|
|
8
|
+
export declare class DrawLayer extends BaseLayer {
|
|
9
|
+
private channelLayer;
|
|
10
|
+
private pathLayer;
|
|
11
|
+
private boundaryLayer;
|
|
12
|
+
private boundaryBorderLayer;
|
|
13
|
+
private obstacleLayer;
|
|
14
|
+
private chargingPileLayer;
|
|
15
|
+
private pointLayer;
|
|
16
|
+
private svgElementLayer;
|
|
17
|
+
private visionOffLayer;
|
|
18
|
+
private antennaLayer;
|
|
19
|
+
constructor();
|
|
20
|
+
addClipPath(element: DrawElement): void;
|
|
21
|
+
/**
|
|
22
|
+
* 添加元素时,分发到相应的具体图层
|
|
23
|
+
*/
|
|
24
|
+
addElement(element: DrawElement): void;
|
|
25
|
+
/**
|
|
26
|
+
* 添加多个元素时,确保每个元素都被正确分发到具体图层
|
|
27
|
+
*/
|
|
28
|
+
addElements(elements: DrawElement[]): void;
|
|
29
|
+
/**
|
|
30
|
+
* 清空所有元素
|
|
31
|
+
*/
|
|
32
|
+
clearElements(): void;
|
|
33
|
+
/**
|
|
34
|
+
* SVG渲染方法 - 使用具体图层渲染
|
|
35
|
+
*/
|
|
36
|
+
drawSVG(svgGroup: SVGGElement, scale?: number): void;
|
|
37
|
+
getLayers(): BaseLayer[];
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=DrawLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrawLayer.d.ts","sourceRoot":"","sources":["../../../src/render/layers/DrawLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQxC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAKtC;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,SAAS;IACtC,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,SAAS,CAAY;IAC7B,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,mBAAmB,CAAsB;IACjD,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,iBAAiB,CAAoB;IAC7C,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,YAAY,CAAe;;IA4B5B,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAK9C;;OAEG;IACI,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAsC7C;;OAEG;IACI,WAAW,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,IAAI;IAOjD;;OAEG;IACI,aAAa,IAAI,IAAI;IAkB5B;;OAEG;IACI,OAAO,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,GAAE,MAAU,GAAG,IAAI;IAkBvD,SAAS,IAAI,SAAS,EAAE;CAchC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseLayer } from './BaseLayer';
|
|
2
|
+
/**
|
|
3
|
+
* 障碍物图层
|
|
4
|
+
* 专门处理障碍物元素的渲染
|
|
5
|
+
*/
|
|
6
|
+
export declare class ObstacleLayer extends BaseLayer {
|
|
7
|
+
level: number;
|
|
8
|
+
constructor();
|
|
9
|
+
/**
|
|
10
|
+
* SVG渲染方法
|
|
11
|
+
*/
|
|
12
|
+
drawSVG(svgGroup: SVGGElement): void;
|
|
13
|
+
/**
|
|
14
|
+
* 渲染障碍物元素
|
|
15
|
+
*/
|
|
16
|
+
private renderObstacle;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=ObstacleLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObstacleLayer.d.ts","sourceRoot":"","sources":["../../../src/render/layers/ObstacleLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC;;;GAGG;AACH,qBAAa,aAAc,SAAQ,SAAS;IAC1C,KAAK,EAAE,MAAM,CAAK;;IAMlB;;OAEG;IACI,OAAO,CAAC,QAAQ,EAAE,WAAW,GAAG,IAAI;IAa3C;;OAEG;IACH,OAAO,CAAC,cAAc;CAwBvB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BaseLayer } from './BaseLayer';
|
|
2
|
+
/**
|
|
3
|
+
* 路径图层
|
|
4
|
+
* 专门处理路径元素的渲染
|
|
5
|
+
*/
|
|
6
|
+
export declare class PathLayer extends BaseLayer {
|
|
7
|
+
level: number;
|
|
8
|
+
scale: number;
|
|
9
|
+
lineScale: number;
|
|
10
|
+
constructor();
|
|
11
|
+
/**
|
|
12
|
+
* 创建所有分区并集的 clipPath
|
|
13
|
+
*/
|
|
14
|
+
private createUnionClipPath;
|
|
15
|
+
/**
|
|
16
|
+
* SVG渲染方法
|
|
17
|
+
*/
|
|
18
|
+
drawSVG(svgGroup: SVGGElement, scale: number, lineScale: number): void;
|
|
19
|
+
/**
|
|
20
|
+
* 渲染单个路径到指定的组中
|
|
21
|
+
*/
|
|
22
|
+
private renderPathToGroup;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=PathLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PathLayer.d.ts","sourceRoot":"","sources":["../../../src/render/layers/PathLayer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC;;;GAGG;AACH,qBAAa,SAAU,SAAQ,SAAS;IACtC,KAAK,EAAE,MAAM,CAAK;IAClB,KAAK,EAAE,MAAM,CAAK;IAClB,SAAS,EAAE,MAAM,CAAK;;IAMtB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IA2C3B;;OAEG;IACI,OAAO,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAwB7E;;OAEG;IACH,OAAO,CAAC,iBAAiB;CAmC1B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseLayer } from './BaseLayer';
|
|
2
|
+
/**
|
|
3
|
+
* 点图层
|
|
4
|
+
* 专门处理点元素的渲染
|
|
5
|
+
*/
|
|
6
|
+
export declare class PointLayer extends BaseLayer {
|
|
7
|
+
level: number;
|
|
8
|
+
constructor();
|
|
9
|
+
/**
|
|
10
|
+
* SVG渲染方法
|
|
11
|
+
*/
|
|
12
|
+
drawSVG(svgGroup: SVGGElement): void;
|
|
13
|
+
/**
|
|
14
|
+
* 渲染点元素
|
|
15
|
+
*/
|
|
16
|
+
private renderPoint;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=PointLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PointLayer.d.ts","sourceRoot":"","sources":["../../../src/render/layers/PointLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC;;;GAGG;AACH,qBAAa,UAAW,SAAQ,SAAS;IACvC,KAAK,EAAE,MAAM,CAAM;;IAMnB;;OAEG;IACI,OAAO,CAAC,QAAQ,EAAE,WAAW,GAAG,IAAI;IAa3C;;OAEG;IACH,OAAO,CAAC,WAAW;CAwBpB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseLayer } from './BaseLayer';
|
|
2
|
+
/**
|
|
3
|
+
* SVG元素图层
|
|
4
|
+
* 专门处理SVG元素的渲染
|
|
5
|
+
*/
|
|
6
|
+
export declare class SvgElementLayer extends BaseLayer {
|
|
7
|
+
level: number;
|
|
8
|
+
scale: number;
|
|
9
|
+
constructor();
|
|
10
|
+
/**
|
|
11
|
+
* SVG渲染方法
|
|
12
|
+
*/
|
|
13
|
+
drawSVG(svgGroup: SVGGElement): void;
|
|
14
|
+
/**
|
|
15
|
+
* 渲染SVG元素
|
|
16
|
+
*/
|
|
17
|
+
private renderSvgElement;
|
|
18
|
+
/**
|
|
19
|
+
* 渲染SVG占位符
|
|
20
|
+
*/
|
|
21
|
+
private renderSvgPlaceholder;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=SvgElementLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SvgElementLayer.d.ts","sourceRoot":"","sources":["../../../src/render/layers/SvgElementLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,SAAS;IAC5C,KAAK,EAAE,MAAM,CAAK;IAClB,KAAK,EAAE,MAAM,CAAK;;IAMlB;;OAEG;IACI,OAAO,CAAC,QAAQ,EAAE,WAAW,GAAG,IAAI;IAkB3C;;OAEG;IACH,OAAO,CAAC,gBAAgB;IA8DxB;;OAEG;IACH,OAAO,CAAC,oBAAoB;CAgB7B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseLayer } from './BaseLayer';
|
|
2
|
+
/**
|
|
3
|
+
* 边界图层
|
|
4
|
+
* 专门处理边界元素的渲染
|
|
5
|
+
*/
|
|
6
|
+
export declare class VisionOffLayer extends BaseLayer {
|
|
7
|
+
constructor();
|
|
8
|
+
/**
|
|
9
|
+
* SVG渲染方法
|
|
10
|
+
*/
|
|
11
|
+
drawSVG(svgGroup: SVGGElement): void;
|
|
12
|
+
/**
|
|
13
|
+
* 渲染边界元素
|
|
14
|
+
*/
|
|
15
|
+
private renderVisionOffArea;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=VisionOffLayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisionOffLayer.d.ts","sourceRoot":"","sources":["../../../src/render/layers/VisionOffLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC;;;GAGG;AACH,qBAAa,cAAe,SAAQ,SAAS;;IAO3C;;OAEG;IACI,OAAO,CAAC,QAAQ,EAAE,WAAW,GAAG,IAAI;IAa3C;;OAEG;IACH,OAAO,CAAC,mBAAmB;CA0B5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/render/layers/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 绘制元素接口
|
|
3
|
+
*/
|
|
4
|
+
export interface DrawElement {
|
|
5
|
+
type: 'path' | 'boundary' | 'boundary_border' | 'obstacle' | 'charging_pile' | 'point' | 'svg' | 'channel' | 'vision_off_area' | 'antenna';
|
|
6
|
+
coordinates: number[][];
|
|
7
|
+
style: {
|
|
8
|
+
strokeColor?: string;
|
|
9
|
+
fillColor?: string;
|
|
10
|
+
lineWidth?: number;
|
|
11
|
+
lineDash?: number[];
|
|
12
|
+
strokeDasharray?: string;
|
|
13
|
+
opacity?: number;
|
|
14
|
+
radius?: number;
|
|
15
|
+
};
|
|
16
|
+
metadata?: any;
|
|
17
|
+
originalData?: any;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 图层接口
|
|
21
|
+
*/
|
|
22
|
+
export interface ILayer {
|
|
23
|
+
setLevel(level: number): void;
|
|
24
|
+
getLevel(): number;
|
|
25
|
+
setVisible(visible: boolean): void;
|
|
26
|
+
isVisible(): boolean;
|
|
27
|
+
drawSVG(svgGroup: SVGGElement, scale: number): void;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* 元素样式类型定义
|
|
31
|
+
*/
|
|
32
|
+
export interface PathStyle {
|
|
33
|
+
strokeColor?: string;
|
|
34
|
+
lineWidth?: number;
|
|
35
|
+
lineDash?: number[];
|
|
36
|
+
strokeDasharray?: string;
|
|
37
|
+
opacity?: number;
|
|
38
|
+
}
|
|
39
|
+
export interface BoundaryStyle {
|
|
40
|
+
strokeColor?: string;
|
|
41
|
+
fillColor?: string;
|
|
42
|
+
lineWidth?: number;
|
|
43
|
+
opacity?: number;
|
|
44
|
+
}
|
|
45
|
+
export interface ObstacleStyle {
|
|
46
|
+
strokeColor?: string;
|
|
47
|
+
fillColor?: string;
|
|
48
|
+
lineWidth?: number;
|
|
49
|
+
opacity?: number;
|
|
50
|
+
}
|
|
51
|
+
export interface ChargingPileStyle {
|
|
52
|
+
strokeColor?: string;
|
|
53
|
+
fillColor?: string;
|
|
54
|
+
lineWidth?: number;
|
|
55
|
+
radius?: number;
|
|
56
|
+
opacity?: number;
|
|
57
|
+
}
|
|
58
|
+
export interface SvgElementStyle {
|
|
59
|
+
strokeColor?: string;
|
|
60
|
+
fillColor?: string;
|
|
61
|
+
opacity?: number;
|
|
62
|
+
}
|
|
63
|
+
export interface SvgElementMetadata {
|
|
64
|
+
svg: string;
|
|
65
|
+
scale: number;
|
|
66
|
+
direction: number;
|
|
67
|
+
}
|
|
68
|
+
export interface AntennaStyle {
|
|
69
|
+
strokeColor?: string;
|
|
70
|
+
fillColor?: string;
|
|
71
|
+
opacity?: number;
|
|
72
|
+
radius?: number;
|
|
73
|
+
}
|
|
74
|
+
export interface AntennaMetadata {
|
|
75
|
+
antennaId: number;
|
|
76
|
+
online: boolean;
|
|
77
|
+
size?: number;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/render/layers/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EACA,MAAM,GACN,UAAU,GACV,iBAAiB,GACjB,UAAU,GACV,eAAe,GACf,OAAO,GACP,KAAK,GACL,SAAS,GACT,iBAAiB,GACjB,SAAS,CAAC;IACd,WAAW,EAAE,MAAM,EAAE,EAAE,CAAC;IACxB,KAAK,EAAE;QACL,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,IAAI,MAAM,CAAC;IACnB,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACnC,SAAS,IAAI,OAAO,CAAC;IACrB,OAAO,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACrD;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DrawElement } from '../render/layers';
|
|
2
|
+
interface SubBoundaryBorderStore {
|
|
3
|
+
subBoundaryBorder: Record<string, DrawElement>;
|
|
4
|
+
setSubBoundaryBorder: (subBoundaryBorder: Record<string, DrawElement>) => void;
|
|
5
|
+
addSubBoundaryBorder: (key: string, element: DrawElement) => void;
|
|
6
|
+
addMultipleSubBoundaryBorders: (borders: Record<string, DrawElement>) => void;
|
|
7
|
+
clearSubBoundaryBorder: () => void;
|
|
8
|
+
}
|
|
9
|
+
declare const useSubBoundaryBorderStore: import("zustand").UseBoundStore<import("zustand").StoreApi<SubBoundaryBorderStore>>;
|
|
10
|
+
export default useSubBoundaryBorderStore;
|
|
11
|
+
//# sourceMappingURL=useSubBoundaryBorderStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSubBoundaryBorderStore.d.ts","sourceRoot":"","sources":["../../src/store/useSubBoundaryBorderStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C,UAAU,sBAAsB;IAC9B,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAC/C,oBAAoB,EAAE,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,KAAK,IAAI,CAAC;IAC/E,oBAAoB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IAClE,6BAA6B,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,KAAK,IAAI,CAAC;IAC9E,sBAAsB,EAAE,MAAM,IAAI,CAAC;CACpC;AAED,QAAA,MAAM,yBAAyB,qFA2B5B,CAAC;AAEJ,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 天线相关类型定义
|
|
3
|
+
*/
|
|
4
|
+
export interface AntennaData {
|
|
5
|
+
id: number;
|
|
6
|
+
location_x: number;
|
|
7
|
+
location_y: number;
|
|
8
|
+
pn: string;
|
|
9
|
+
status: number;
|
|
10
|
+
timestamp: string;
|
|
11
|
+
type: number;
|
|
12
|
+
valid: number;
|
|
13
|
+
version: string;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=antenna.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"antenna.d.ts","sourceRoot":"","sources":["../../src/types/antenna.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 通用类型定义
|
|
3
|
+
*/
|
|
4
|
+
export interface Position {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
}
|
|
8
|
+
export interface LatLng {
|
|
9
|
+
lat: number;
|
|
10
|
+
lng: number;
|
|
11
|
+
}
|
|
12
|
+
export type ElementType = 'BOUNDARY' | 'OBSTACLE' | 'VISION_OFF_AREA' | 'CHARGING_PILE' | 'TUNNEL' | 'TUNNEL_TO_CHARGING_PILE' | 'TIME_LIMIT_OBSTACLE';
|
|
13
|
+
export interface ColorMap {
|
|
14
|
+
BOUNDARY: string;
|
|
15
|
+
OBSTACLE: string;
|
|
16
|
+
VISION_OFF_AREA: string;
|
|
17
|
+
CHARGING_PILE: string;
|
|
18
|
+
TUNNEL: string;
|
|
19
|
+
TUNNEL_TO_CHARGING_PILE: string;
|
|
20
|
+
PATH_EDGE: string;
|
|
21
|
+
PATH_MOWING: string;
|
|
22
|
+
PATH_TRANS: string;
|
|
23
|
+
NAV_POS: string;
|
|
24
|
+
TIME_LIMIT_OBSTACLE: string;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAGD,MAAM,MAAM,WAAW,GACnB,UAAU,GACV,UAAU,GACV,iBAAiB,GACjB,eAAe,GACf,QAAQ,GACR,yBAAyB,GACzB,qBAAqB,CAAC;AAG1B,MAAM,WAAW,QAAQ;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,uBAAuB,EAAE,MAAM,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,EAAE,MAAM,CAAC;CAC7B"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { MapData } from './map';
|
|
2
|
+
export interface EditData {
|
|
3
|
+
originalBounds: any;
|
|
4
|
+
finalBounds: any;
|
|
5
|
+
latLngOffset: {
|
|
6
|
+
lat: number;
|
|
7
|
+
lng: number;
|
|
8
|
+
};
|
|
9
|
+
rotation: number;
|
|
10
|
+
}
|
|
11
|
+
export interface SaveData {
|
|
12
|
+
mapData: MapData;
|
|
13
|
+
editData: EditData;
|
|
14
|
+
timestamp: string;
|
|
15
|
+
}
|
|
16
|
+
export interface EditConfig {
|
|
17
|
+
rotateIcon?: string;
|
|
18
|
+
dragIcon?: string;
|
|
19
|
+
borderColor?: string;
|
|
20
|
+
handleSize?: number;
|
|
21
|
+
}
|
|
22
|
+
export interface EditEventHandlers {
|
|
23
|
+
onEditStart?: () => void;
|
|
24
|
+
onEditEnd?: () => void;
|
|
25
|
+
onSave?: (data: SaveData) => void;
|
|
26
|
+
onCancel?: () => void;
|
|
27
|
+
}
|
|
28
|
+
export interface EditState {
|
|
29
|
+
isEditing: boolean;
|
|
30
|
+
isDragging: boolean;
|
|
31
|
+
isRotating: boolean;
|
|
32
|
+
hasChanges: boolean;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=edit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../src/types/edit.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGhC,MAAM,WAAW,QAAQ;IACvB,cAAc,EAAE,GAAG,CAAC;IACpB,WAAW,EAAE,GAAG,CAAC;IACjB,YAAY,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAGD,MAAM,WAAW,UAAU;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAGD,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 地图元素类型定义
|
|
3
|
+
*/
|
|
4
|
+
export interface BaseMapElement {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
type: string;
|
|
8
|
+
}
|
|
9
|
+
export interface BoundaryElement extends BaseMapElement {
|
|
10
|
+
area: number;
|
|
11
|
+
avai_segs: number;
|
|
12
|
+
base_angle: number;
|
|
13
|
+
edge_vf: number;
|
|
14
|
+
height_set: number;
|
|
15
|
+
mow_edge: number;
|
|
16
|
+
obstacle_mow_edge: number;
|
|
17
|
+
points: number[][];
|
|
18
|
+
rec_base_angle: number;
|
|
19
|
+
type: 'BOUNDARY';
|
|
20
|
+
}
|
|
21
|
+
export interface ChargingPileTunnel {
|
|
22
|
+
id: number;
|
|
23
|
+
name: string;
|
|
24
|
+
points: number[][];
|
|
25
|
+
tunnel_type: number;
|
|
26
|
+
type: 'TUNNEL_TO_CHARGING_PILE';
|
|
27
|
+
}
|
|
28
|
+
export interface ChargingPileElement extends BaseMapElement {
|
|
29
|
+
center_offset: number;
|
|
30
|
+
direction: number;
|
|
31
|
+
length: number;
|
|
32
|
+
nav_pos: [number, number];
|
|
33
|
+
position: [number, number];
|
|
34
|
+
tunnel: ChargingPileTunnel;
|
|
35
|
+
type: 'CHARGING_PILE';
|
|
36
|
+
width: number;
|
|
37
|
+
}
|
|
38
|
+
export interface TunnelElement extends BaseMapElement {
|
|
39
|
+
connection: [number, number];
|
|
40
|
+
points: number[][];
|
|
41
|
+
type: 'TUNNEL';
|
|
42
|
+
}
|
|
43
|
+
export type MapElement = BoundaryElement | ChargingPileElement | TunnelElement;
|
|
44
|
+
export interface ObstacleData extends BaseMapElement {
|
|
45
|
+
area: number;
|
|
46
|
+
points: number[][];
|
|
47
|
+
type: 'OBSTACLE';
|
|
48
|
+
}
|
|
49
|
+
export interface VisionOffAreaData extends BaseMapElement {
|
|
50
|
+
points: number[][];
|
|
51
|
+
type: 'VISION_OFF_AREA';
|
|
52
|
+
}
|
|
53
|
+
export interface TimeLimitObstacleData extends BaseMapElement {
|
|
54
|
+
center: [number, number];
|
|
55
|
+
create_ts: number;
|
|
56
|
+
direction: number;
|
|
57
|
+
expiration_ts: number;
|
|
58
|
+
scale: number;
|
|
59
|
+
svg: string;
|
|
60
|
+
type: 'TIME_LIMIT_OBSTACLE';
|
|
61
|
+
}
|
|
62
|
+
export interface TunnelData extends BaseMapElement {
|
|
63
|
+
connection: number[];
|
|
64
|
+
points: number[][];
|
|
65
|
+
type: 'TUNNEL';
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=elements.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../src/types/elements.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAGD,MAAM,WAAW,eAAgB,SAAQ,cAAc;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,UAAU,CAAC;CAClB;AAGD,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,yBAAyB,CAAC;CACjC;AAGD,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC3B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAc,SAAQ,cAAc;IACnD,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC;IACnB,IAAI,EAAE,QAAQ,CAAC;CAChB;AAGD,MAAM,MAAM,UAAU,GAAG,eAAe,GAAG,mBAAmB,GAAG,aAAa,CAAC;AAG/E,MAAM,WAAW,YAAa,SAAQ,cAAc;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC;IACnB,IAAI,EAAE,UAAU,CAAC;CAClB;AAGD,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACvD,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC;IACnB,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAGD,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IAC3D,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,qBAAqB,CAAC;CAC7B;AAGD,MAAM,WAAW,UAAW,SAAQ,cAAc;IAChD,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC;IACnB,IAAI,EAAE,QAAQ,CAAC;CAChB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 类型定义导出文件
|
|
3
|
+
*/
|
|
4
|
+
export * from './antenna';
|
|
5
|
+
export * from './common';
|
|
6
|
+
export * from './elements';
|
|
7
|
+
export * from './map';
|
|
8
|
+
export * from './path';
|
|
9
|
+
export * from './ui';
|
|
10
|
+
export * from './edit';
|
|
11
|
+
export * from './renderer';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 主要地图类型定义
|
|
3
|
+
*/
|
|
4
|
+
import { MapElement, ObstacleData, VisionOffAreaData, TimeLimitObstacleData, TunnelData } from './elements';
|
|
5
|
+
import { AntennaData } from './antenna';
|
|
6
|
+
export interface SubMap {
|
|
7
|
+
id: number;
|
|
8
|
+
name: string;
|
|
9
|
+
area: number;
|
|
10
|
+
type: string;
|
|
11
|
+
group_id: number;
|
|
12
|
+
contain_obstacles_id: number[];
|
|
13
|
+
elements: MapElement[];
|
|
14
|
+
}
|
|
15
|
+
export interface MapData {
|
|
16
|
+
id: number;
|
|
17
|
+
name: string;
|
|
18
|
+
area: number;
|
|
19
|
+
type: string;
|
|
20
|
+
uid: number;
|
|
21
|
+
version?: string;
|
|
22
|
+
feature: number;
|
|
23
|
+
antena_deleted: number;
|
|
24
|
+
map_circle_center: number[];
|
|
25
|
+
map_circle_radius: number;
|
|
26
|
+
map_width: number;
|
|
27
|
+
map_height: number;
|
|
28
|
+
center_gps: number[];
|
|
29
|
+
origin_gps: number[];
|
|
30
|
+
ne_gps: number[];
|
|
31
|
+
sw_gps: number[];
|
|
32
|
+
first_mow?: string;
|
|
33
|
+
need_test?: number;
|
|
34
|
+
sub_maps: SubMap[];
|
|
35
|
+
antennas?: AntennaData[];
|
|
36
|
+
obstacles?: ObstacleData[];
|
|
37
|
+
vision_off_areas?: VisionOffAreaData[];
|
|
38
|
+
time_limit_obstacles?: TimeLimitObstacleData[];
|
|
39
|
+
tunnels?: TunnelData[];
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=map.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../src/types/map.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC5G,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB;AAGD,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IACzB,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,gBAAgB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACvC,oBAAoB,CAAC,EAAE,qBAAqB,EAAE,CAAC;IAC/C,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;CACxB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 路径相关类型定义
|
|
3
|
+
*/
|
|
4
|
+
import { Position, LatLng } from './common';
|
|
5
|
+
export interface PathDataItem {
|
|
6
|
+
deviceName: string;
|
|
7
|
+
productKey: string;
|
|
8
|
+
sn: string;
|
|
9
|
+
timestamp: number;
|
|
10
|
+
mcVersion: string;
|
|
11
|
+
vehicleState: string;
|
|
12
|
+
longitude: number;
|
|
13
|
+
latitude: number;
|
|
14
|
+
postureX: number;
|
|
15
|
+
postureY: number;
|
|
16
|
+
postureTheta: number;
|
|
17
|
+
dataTransferTime: number;
|
|
18
|
+
isFloatingPoint: string;
|
|
19
|
+
pathType: string;
|
|
20
|
+
knifeRotation: string;
|
|
21
|
+
partitionId: string;
|
|
22
|
+
}
|
|
23
|
+
export interface PartitionPathData {
|
|
24
|
+
area?: number;
|
|
25
|
+
finishedArea?: number;
|
|
26
|
+
partitionPercentage?: number;
|
|
27
|
+
partitionId?: number;
|
|
28
|
+
endTimeAlias?: number;
|
|
29
|
+
startTime?: number;
|
|
30
|
+
endTime?: number;
|
|
31
|
+
list: PathDataItem[];
|
|
32
|
+
}
|
|
33
|
+
export interface PathData {
|
|
34
|
+
[partitionId: string]: PartitionPathData;
|
|
35
|
+
}
|
|
36
|
+
export interface MowerPath {
|
|
37
|
+
positions: Position[];
|
|
38
|
+
latLngPositions?: LatLng[];
|
|
39
|
+
timestamp: Date;
|
|
40
|
+
mowerId?: string;
|
|
41
|
+
pathColor?: string;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=path.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../src/types/path.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAG5C,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAGD,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,YAAY,EAAE,CAAC;CACtB;AAGD,MAAM,WAAW,QAAQ;IACvB,CAAC,WAAW,EAAE,MAAM,GAAG,iBAAiB,CAAC;CAC1C;AAGD,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface RealTimeLocationType {
|
|
2
|
+
type: number;
|
|
3
|
+
time?: number;
|
|
4
|
+
longitude?: string;
|
|
5
|
+
latitude?: string;
|
|
6
|
+
postureX?: string;
|
|
7
|
+
postureY?: string;
|
|
8
|
+
postureTheta?: string;
|
|
9
|
+
rtk?: string;
|
|
10
|
+
vehicleState?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface RealTimeProcessType {
|
|
13
|
+
type: number;
|
|
14
|
+
time?: number;
|
|
15
|
+
mowingPercentage?: number;
|
|
16
|
+
mapWorkPosition?: string;
|
|
17
|
+
subtotalArea?: string;
|
|
18
|
+
mowingWeekArea?: string;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=realTime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realTime.d.ts","sourceRoot":"","sources":["../../src/types/realTime.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|