@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
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Mower Maps
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
暂无
|
|
Binary file
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 地图渲染相关常量配置
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* 缩放因子 - 将米转换为像素
|
|
6
|
+
* 与Python代码中的SVG比例一致
|
|
7
|
+
*/
|
|
8
|
+
export declare const SCALE_FACTOR = 50;
|
|
9
|
+
/**
|
|
10
|
+
* 默认线宽设置
|
|
11
|
+
*/
|
|
12
|
+
export declare const DEFAULT_LINE_WIDTHS: {
|
|
13
|
+
readonly BOUNDARY: 2;
|
|
14
|
+
readonly OBSTACLE: 2;
|
|
15
|
+
readonly CHARGING_PILE: 2;
|
|
16
|
+
readonly PATH: 6;
|
|
17
|
+
readonly PATH_TRANS: 6;
|
|
18
|
+
readonly VISION_OFF_AREA: 2;
|
|
19
|
+
readonly TUNNEL: 2;
|
|
20
|
+
readonly TIME_LIMIT_OBSTACLE: 2;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* 默认透明度设置
|
|
24
|
+
*/
|
|
25
|
+
export declare const DEFAULT_OPACITIES: {
|
|
26
|
+
readonly FULL: 1;
|
|
27
|
+
readonly HIGH: 0.8;
|
|
28
|
+
readonly MEDIUM: 0.6;
|
|
29
|
+
readonly LOW: 0.4;
|
|
30
|
+
readonly VERY_LOW: 0.2;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* 默认半径设置
|
|
34
|
+
*/
|
|
35
|
+
export declare const DEFAULT_RADII: {
|
|
36
|
+
readonly CHARGING_PILE: 19;
|
|
37
|
+
readonly NAV_POS: 3;
|
|
38
|
+
readonly POINT_SMALL: 2;
|
|
39
|
+
readonly POINT_MEDIUM: 4;
|
|
40
|
+
readonly POINT_LARGE: 6;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* 图层等级
|
|
44
|
+
*/
|
|
45
|
+
export declare const LAYER_LEVELS: {
|
|
46
|
+
readonly CHANNEL: 1;
|
|
47
|
+
readonly BOUNDARY: 2;
|
|
48
|
+
readonly PATH: 3;
|
|
49
|
+
readonly BOUNDARY_BORDER: 4;
|
|
50
|
+
readonly OBSTACLE: 5;
|
|
51
|
+
readonly CHARGING_PILE: 8;
|
|
52
|
+
readonly POINT: 11;
|
|
53
|
+
readonly SVG: 6;
|
|
54
|
+
readonly VISION_OFF_AREA: 7;
|
|
55
|
+
};
|
|
56
|
+
export declare enum RobotStatus {
|
|
57
|
+
PARKED = 1,
|
|
58
|
+
CHARGING = 2,
|
|
59
|
+
STANDBY = 3,
|
|
60
|
+
MOWING = 4,
|
|
61
|
+
WORKING = 5,
|
|
62
|
+
MAPPING = 6,
|
|
63
|
+
ERROR = 7,
|
|
64
|
+
UPGRADING = 8,
|
|
65
|
+
DISCONNECTED = 9,
|
|
66
|
+
UNKNOWN = -1,
|
|
67
|
+
TASK_DELAY = 10
|
|
68
|
+
}
|
|
69
|
+
export declare enum RTK_STATE {
|
|
70
|
+
LOW_RTK = 1,
|
|
71
|
+
MIDDLE_RTK = 2,
|
|
72
|
+
HIGH_RTK = 3,
|
|
73
|
+
NO_POSTURE = 10,
|
|
74
|
+
OUT_OF_RANGE = 11,
|
|
75
|
+
OFF_LINE = 19
|
|
76
|
+
}
|
|
77
|
+
export declare enum REAL_TIME_DATA_TYPE {
|
|
78
|
+
LOCATION = 1,
|
|
79
|
+
PROCESS = 2
|
|
80
|
+
}
|
|
81
|
+
export declare const ISOLATED_BOUNDARY_SVG = "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<g opacity=\"0.6\">\n<rect width=\"24\" height=\"24\" rx=\"12\" fill=\"#1E1E1F\" fill-opacity=\"0.5\"/>\n<path d=\"M8.20573 12.4961C6.739 11.1707 4.85775 11.2284 3.60938 11.1707C6.17744 13.0156 6.05584 15.7887 5.67404 16.9446H14.327C13.837 13.1673 15.5321 10.1289 16.4408 9.08187C15.0342 9.46118 13.5794 10.8303 13.0278 11.4674C12.8102 8.94572 13.992 5.97489 14.61 4.80469C12.5235 5.92214 11.0501 8.26056 10.4938 9.56261C9.22803 7.5947 6.83894 7.17806 5.883 6.9432C8.20573 10.2373 8.00039 11.1707 8.20573 12.4961Z\" fill=\"white\"/>\n<mask id=\"path-3-outside-1_9822_43516\" maskUnits=\"userSpaceOnUse\" x=\"13.2344\" y=\"7.20545\" width=\"12.0208\" height=\"12.0208\" fill=\"black\">\n<rect fill=\"white\" x=\"13.2344\" y=\"7.20545\" width=\"12.0208\" height=\"12.0208\"/>\n<path d=\"M20.6852 11.1208C19.9042 10.3398 18.6378 10.3398 17.8568 11.1208L17.2733 11.7043C16.6707 12.3069 16.5358 13.1973 16.8631 13.9319L17.5916 13.2034C17.5657 12.9181 17.6619 12.6236 17.8803 12.4052L18.5674 11.7181C18.9579 11.3276 19.5911 11.3276 19.9816 11.7181L20.4056 12.1421C20.7959 12.5326 20.796 13.1658 20.4056 13.5563L19.7185 14.2434C19.5128 14.449 19.2393 14.5457 18.9699 14.5348L18.2235 15.2812C18.9538 15.596 19.8325 15.4565 20.429 14.86L21.0125 14.2765C21.7935 13.4955 21.7936 12.2291 21.0125 11.4481L20.6852 11.1208Z\"/>\n</mask>\n<path d=\"M20.6852 11.1208C19.9042 10.3398 18.6378 10.3398 17.8568 11.1208L17.2733 11.7043C16.6707 12.3069 16.5358 13.1973 16.8631 13.9319L17.5916 13.2034C17.5657 12.9181 17.6619 12.6236 17.8803 12.4052L18.5674 11.7181C18.9579 11.3276 19.5911 11.3276 19.9816 11.7181L20.4056 12.1421C20.7959 12.5326 20.796 13.1658 20.4056 13.5563L19.7185 14.2434C19.5128 14.449 19.2393 14.5457 18.9699 14.5348L18.2235 15.2812C18.9538 15.596 19.8325 15.4565 20.429 14.86L21.0125 14.2765C21.7935 13.4955 21.7936 12.2291 21.0125 11.4481L20.6852 11.1208Z\" fill=\"white\"/>\n<path d=\"M20.6852 11.1208L21.7458 10.0601L21.7459 10.0601L20.6852 11.1208ZM17.8568 11.1208L16.7961 10.0601L16.7962 10.0601L17.8568 11.1208ZM17.2733 11.7043L16.2126 10.6437L16.2126 10.6436L17.2733 11.7043ZM16.8631 13.9319L17.9238 14.9926L16.381 16.5354L15.493 14.5425L16.8631 13.9319ZM17.5916 13.2034L19.0855 13.0678L19.149 13.7674L18.6523 14.2641L17.5916 13.2034ZM20.4056 12.1421L21.4662 11.0814L21.4665 11.0817L20.4056 12.1421ZM18.9699 14.5348L17.9093 13.4741L18.3741 13.0093L19.0309 13.036L18.9699 14.5348ZM18.2235 15.2812L17.6298 16.6587L15.5997 15.7837L17.1628 14.2206L18.2235 15.2812ZM20.429 14.86L21.4897 15.9207L21.4897 15.9207L20.429 14.86ZM21.0125 14.2765L22.0732 15.3371L22.0732 15.3372L21.0125 14.2765ZM20.6852 11.1208L19.6246 12.1815C19.4294 11.9862 19.1127 11.9863 18.9174 12.1815L17.8568 11.1208L16.7962 10.0601C18.163 8.69337 20.379 8.6934 21.7458 10.0601L20.6852 11.1208ZM17.8568 11.1208L18.9175 12.1814L18.334 12.7649L17.2733 11.7043L16.2126 10.6436L16.7961 10.0601L17.8568 11.1208ZM17.2733 11.7043L18.334 12.7649C18.1877 12.9112 18.1488 13.1318 18.2333 13.3214L16.8631 13.9319L15.493 14.5425C14.9228 13.2629 15.1537 11.7026 16.2126 10.6437L17.2733 11.7043ZM16.8631 13.9319L15.8025 12.8713L16.531 12.1428L17.5916 13.2034L18.6523 14.2641L17.9238 14.9926L16.8631 13.9319ZM17.5916 13.2034L16.0978 13.339C16.0334 12.6302 16.2727 11.8914 16.8196 11.3445L17.8803 12.4052L18.9409 13.4658C19.051 13.3558 19.098 13.206 19.0855 13.0678L17.5916 13.2034ZM17.8803 12.4052L16.8196 11.3445L17.5067 10.6574L18.5674 11.7181L19.628 12.7788L18.9409 13.4658L17.8803 12.4052ZM18.5674 11.7181L17.5067 10.6574C18.483 9.68112 20.0659 9.68112 21.0422 10.6574L19.9816 11.7181L18.9209 12.7788C19.1162 12.974 19.4328 12.974 19.628 12.7788L18.5674 11.7181ZM19.9816 11.7181L21.0422 10.6574L21.4662 11.0814L20.4056 12.1421L19.3449 13.2027L18.9209 12.7788L19.9816 11.7181ZM20.4056 12.1421L21.4665 11.0817C22.4419 12.0577 22.4428 13.6404 21.4662 14.617L20.4056 13.5563L19.3449 12.4956C19.1493 12.6913 19.1498 13.0076 19.3446 13.2024L20.4056 12.1421ZM20.4056 13.5563L21.4662 14.617L20.7791 15.304L19.7185 14.2434L18.6578 13.1827L19.3449 12.4956L20.4056 13.5563ZM19.7185 14.2434L20.7791 15.304C20.2628 15.8204 19.5762 16.0607 18.909 16.0335L18.9699 14.5348L19.0309 13.036C18.9025 13.0308 18.7629 13.0777 18.6578 13.1827L19.7185 14.2434ZM18.9699 14.5348L20.0306 15.5954L19.2841 16.3419L18.2235 15.2812L17.1628 14.2206L17.9093 13.4741L18.9699 14.5348ZM18.2235 15.2812L18.8172 13.9037C19.0042 13.9843 19.2223 13.9455 19.3684 13.7993L20.429 14.86L21.4897 15.9207C20.4427 16.9676 18.9034 17.2077 17.6298 16.6587L18.2235 15.2812ZM20.429 14.86L19.3684 13.7994L19.9519 13.2159L21.0125 14.2765L22.0732 15.3372L21.4897 15.9207L20.429 14.86ZM21.0125 14.2765L19.9518 13.2159C20.1471 13.0206 20.1471 12.704 19.9519 12.5088L21.0125 11.4481L22.0732 10.3874C23.4401 11.7543 23.4399 13.9703 22.0732 15.3371L21.0125 14.2765ZM21.0125 11.4481L19.9519 12.5088L19.6246 12.1814L20.6852 11.1208L21.7459 10.0601L22.0732 10.3874L21.0125 11.4481Z\" fill=\"#8E8E8F\" mask=\"url(#path-3-outside-1_9822_43516)\"/>\n<mask id=\"path-5-outside-2_9822_43516\" maskUnits=\"userSpaceOnUse\" x=\"9.22265\" y=\"10.388\" width=\"12.7279\" height=\"12.7279\" fill=\"black\">\n<rect fill=\"white\" x=\"9.22265\" y=\"10.388\" width=\"12.7279\" height=\"12.7279\"/>\n<path d=\"M16.1708 14.5077C15.4353 14.1778 14.5422 14.3133 13.9383 14.9172L13.3548 15.5007C12.574 16.2818 12.5738 17.5481 13.3548 18.3291L13.6821 18.6564C14.4631 19.4374 15.7295 19.4373 16.5105 18.6564L17.094 18.0729C17.6895 17.4775 17.8299 16.6003 17.5173 15.8708L16.7743 16.6138C16.7828 16.8803 16.6863 17.1494 16.4829 17.3527L15.7952 18.0405C15.4046 18.4309 14.7714 18.431 14.3809 18.0405L13.957 17.6165C13.5667 17.226 13.5666 16.5927 13.957 16.2023L14.6447 15.5145C14.8654 15.2939 15.1639 15.1979 15.452 15.2266L16.1708 14.5077Z\"/>\n</mask>\n<path d=\"M16.1708 14.5077C15.4353 14.1778 14.5422 14.3133 13.9383 14.9172L13.3548 15.5007C12.574 16.2818 12.5738 17.5481 13.3548 18.3291L13.6821 18.6564C14.4631 19.4374 15.7295 19.4373 16.5105 18.6564L17.094 18.0729C17.6895 17.4775 17.8299 16.6003 17.5173 15.8708L16.7743 16.6138C16.7828 16.8803 16.6863 17.1494 16.4829 17.3527L15.7952 18.0405C15.4046 18.4309 14.7714 18.431 14.3809 18.0405L13.957 17.6165C13.5667 17.226 13.5666 16.5927 13.957 16.2023L14.6447 15.5145C14.8654 15.2939 15.1639 15.1979 15.452 15.2266L16.1708 14.5077Z\" fill=\"white\"/>\n<path d=\"M16.1708 14.5077L16.7847 13.1391L18.7701 14.0297L17.2315 15.5684L16.1708 14.5077ZM13.3548 15.5007L12.294 14.4402L12.2941 14.44L13.3548 15.5007ZM16.5105 18.6564L17.5712 19.7171L17.5711 19.7172L16.5105 18.6564ZM17.5173 15.8708L16.4567 14.8102L18.0236 13.2433L18.8962 15.2802L17.5173 15.8708ZM16.7743 16.6138L15.2751 16.6613L15.2545 16.0123L15.7137 15.5532L16.7743 16.6138ZM15.7952 18.0405L16.8558 19.1011L16.8556 19.1013L15.7952 18.0405ZM13.957 17.6165L12.8963 18.6772L12.8959 18.6767L13.957 17.6165ZM13.957 16.2023L12.8961 15.1418L12.8963 15.1416L13.957 16.2023ZM15.452 15.2266L16.5126 16.2872L16.0102 16.7896L15.3032 16.7192L15.452 15.2266ZM16.1708 14.5077L15.5569 15.8763C15.3688 15.792 15.1469 15.8299 14.999 15.9779L13.9383 14.9172L12.8776 13.8565C13.9375 12.7967 15.5018 12.5636 16.7847 13.1391L16.1708 14.5077ZM13.9383 14.9172L14.999 15.9779L14.4155 16.5614L13.3548 15.5007L12.2941 14.44L12.8776 13.8565L13.9383 14.9172ZM13.3548 15.5007L14.4156 16.5612C14.2202 16.7567 14.2204 17.0734 14.4155 17.2685L13.3548 18.3291L12.2941 19.3898C10.9272 18.0229 10.9277 15.8069 12.294 14.4402L13.3548 15.5007ZM13.3548 18.3291L14.4155 17.2685L14.7428 17.5958L13.6821 18.6564L12.6215 19.7171L12.2941 19.3898L13.3548 18.3291ZM13.6821 18.6564L14.7428 17.5958C14.9378 17.7908 15.2546 17.791 15.45 17.5956L16.5105 18.6564L17.5711 19.7172C16.2044 21.0836 13.9884 21.084 12.6215 19.7171L13.6821 18.6564ZM16.5105 18.6564L15.4499 17.5958L16.0334 17.0123L17.094 18.0729L18.1547 19.1336L17.5712 19.7171L16.5105 18.6564ZM17.094 18.0729L16.0334 17.0123C16.1795 16.8662 16.2185 16.6481 16.1385 16.4615L17.5173 15.8708L18.8962 15.2802C19.4413 16.5526 19.1996 18.0887 18.1547 19.1336L17.094 18.0729ZM17.5173 15.8708L18.578 16.9315L17.835 17.6745L16.7743 16.6138L15.7137 15.5532L16.4567 14.8102L17.5173 15.8708ZM16.7743 16.6138L18.2736 16.5664C18.2945 17.226 18.0544 17.9026 17.5436 18.4134L16.4829 17.3527L15.4223 16.2921C15.3182 16.3961 15.2711 16.5346 15.2751 16.6613L16.7743 16.6138ZM16.4829 17.3527L17.5436 18.4134L16.8558 19.1011L15.7952 18.0405L14.7345 16.9798L15.4223 16.2921L16.4829 17.3527ZM15.7952 18.0405L16.8556 19.1013C15.8795 20.0771 14.2967 20.0776 13.3203 19.1011L14.3809 18.0405L15.4416 16.9798C15.2461 16.7844 14.9297 16.7847 14.7347 16.9797L15.7952 18.0405ZM14.3809 18.0405L13.3203 19.1011L12.8963 18.6772L13.957 17.6165L15.0176 16.5558L15.4416 16.9798L14.3809 18.0405ZM13.957 17.6165L12.8959 18.6767C11.9207 17.7008 11.92 16.1182 12.8961 15.1418L13.957 16.2023L15.0178 17.2628C15.2133 17.0672 15.2128 16.7512 15.018 16.5563L13.957 17.6165ZM13.957 16.2023L12.8963 15.1416L13.5841 14.4539L14.6447 15.5145L15.7054 16.5752L15.0176 17.2629L13.957 16.2023ZM14.6447 15.5145L13.5841 14.4539C14.1364 13.9015 14.8848 13.6626 15.6007 13.734L15.452 15.2266L15.3032 16.7192C15.443 16.7331 15.5943 16.6862 15.7054 16.5752L14.6447 15.5145ZM15.452 15.2266L14.3913 14.1659L15.1101 13.4471L16.1708 14.5077L17.2315 15.5684L16.5126 16.2872L15.452 15.2266Z\" fill=\"#8E8E8F\" mask=\"url(#path-5-outside-2_9822_43516)\"/>\n<path d=\"M20.6852 11.1208C19.9042 10.3398 18.6378 10.3398 17.8568 11.1208L17.2733 11.7043C16.6707 12.3069 16.5358 13.1973 16.8631 13.9319L17.5916 13.2034C17.5657 12.9181 17.6619 12.6236 17.8803 12.4052L18.5674 11.7181C18.9579 11.3276 19.5911 11.3276 19.9816 11.7181L20.4056 12.1421C20.7959 12.5326 20.796 13.1658 20.4056 13.5563L19.7185 14.2434C19.5128 14.449 19.2393 14.5457 18.9699 14.5348L18.2235 15.2812C18.9538 15.596 19.8325 15.4565 20.429 14.86L21.0125 14.2765C21.7935 13.4955 21.7936 12.2291 21.0125 11.4481L20.6852 11.1208Z\" fill=\"white\"/>\n<rect width=\"2.59942\" height=\"2.97264\" rx=\"1\" transform=\"matrix(-0.707107 -0.707107 -0.707107 0.707107 21.1133 12.8486)\" fill=\"#8E8E8F\"/>\n<rect width=\"1.91578\" height=\"4.24403\" transform=\"matrix(-0.707107 -0.707107 -0.707107 0.707107 19.6992 13.8066)\" fill=\"#8E8E8F\"/>\n<rect width=\"2.59942\" height=\"2.97264\" rx=\"1\" transform=\"matrix(-0.707107 -0.707107 -0.707107 0.707107 17.3125 16.6455)\" fill=\"#8E8E8F\"/>\n</g>\n</svg>";
|
|
82
|
+
/**
|
|
83
|
+
* 割草任务在任意位置开始(不在充电桩上),如果是开始新的割草任务,下述字段一般均为0,如果从断点处开始,下述字段则表示断点位置(区、块、行、行上路程)
|
|
84
|
+
*/
|
|
85
|
+
export declare const ACTION_INIT = 0;
|
|
86
|
+
/**
|
|
87
|
+
* 割草任务在充电桩开始,如果是开始新的割草任务,下述字段一般均为0,如果从断点处开始,下述字段则表示断点位置(区、块、行、行上路程)
|
|
88
|
+
*/
|
|
89
|
+
export declare const ACTION_INIT_IN_PILE = 1;
|
|
90
|
+
/**
|
|
91
|
+
* 出充电桩,如果是开始新的割草任务,下述四字段一般均为0,如果从断点处开始,下述四字段则表示断点位置(区、块、行、行上路程),四字段之后的则表示出桩任务的内部状态(INIT, OUT, TRNASFER, END, EXCEPTION)
|
|
92
|
+
*/
|
|
93
|
+
export declare const ACTION_OUT_PILE = 2;
|
|
94
|
+
/**
|
|
95
|
+
* 从地图上某位置(桩前导航点或者任意开始位置)行走到开始割草的位置,如果是开始新的割草任务,下述字段一般均为0,如果从断点处开始,下述字段则表示断点位置(区、块、行、行上路程)
|
|
96
|
+
*/
|
|
97
|
+
export declare const ACTION_INIT_SUB_MAP_TRANSFER = 3;
|
|
98
|
+
/**
|
|
99
|
+
* 从一个区域转移到另一个区域的任务,下述四个字段可以在路径中唯一确定转移时的位置(前置区域、转移路径序号、转移路径线序号、转移路径线上行走的距离)
|
|
100
|
+
*/
|
|
101
|
+
export declare const ACTION_SUB_MAP_TRANSFER = 4;
|
|
102
|
+
/**
|
|
103
|
+
* 遍历割草任务,下述四个字段可以在路径中唯一确定遍历的位置(当前区域、当前块、当前行、在当前行上的路程)
|
|
104
|
+
*/
|
|
105
|
+
export declare const ACTION_BLOCK_COVER = 5;
|
|
106
|
+
/**
|
|
107
|
+
* 遍历割草块转移任务(在同一区域中的一个块转移到下一个块),下述四个字段可以在路径中唯一确定转移的位置(当前区域、前置块、当前转移路径线序号、在当前线上的路程)
|
|
108
|
+
*/
|
|
109
|
+
export declare const ACTION_BLOCK_TRANSFER = 6;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
*/
|
|
113
|
+
export declare const ACTION_BLOCK_TEMP_TRANSFER_ROW = 7;
|
|
114
|
+
/**
|
|
115
|
+
* 边界割草任务(割草任务内部的巡边任务)
|
|
116
|
+
*/
|
|
117
|
+
export declare const ACTION_BOUNDARY_TASK = 8;
|
|
118
|
+
/**
|
|
119
|
+
* 结束
|
|
120
|
+
*/
|
|
121
|
+
export declare const ACTION_END = 10;
|
|
122
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/config/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,eAAO,MAAM,YAAY,KAAK,CAAC;AAE/B;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;CAStB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;CAMhB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;CAUf,CAAC;AAEX,oBAAY,WAAW;IACrB,MAAM,IAAI;IACV,QAAQ,IAAI;IACZ,OAAO,IAAI;IACX,MAAM,IAAI;IACV,OAAO,IAAI;IACX,OAAO,IAAI;IACX,KAAK,IAAI;IACT,SAAS,IAAI;IACb,YAAY,IAAI;IAChB,OAAO,KAAK;IACZ,UAAU,KAAK;CAEhB;AAGD,oBAAY,SAAS;IACnB,OAAO,IAAI;IACX,UAAU,IAAI;IACd,QAAQ,IAAI;IACZ,UAAU,KAAK;IACf,YAAY,KAAK;IACjB,QAAQ,KAAK;CACd;AAED,oBAAY,mBAAmB;IAC7B,QAAQ,IAAI;IACZ,OAAO,IAAI;CACZ;AAED,eAAO,MAAM,qBAAqB,sqUAqB3B,CAAC;AAER;;GAEG;AACH,eAAO,MAAM,WAAW,IAAI,CAAC;AAC7B;;GAEG;AACH,eAAO,MAAM,mBAAmB,IAAI,CAAC;AACrC;;GAEG;AACH,eAAO,MAAM,eAAe,IAAI,CAAC;AACjC;;GAEG;AACH,eAAO,MAAM,4BAA4B,IAAI,CAAC;AAC9C;;GAEG;AACH,eAAO,MAAM,uBAAuB,IAAI,CAAC;AACzC;;GAEG;AACH,eAAO,MAAM,kBAAkB,IAAI,CAAC;AACpC;;GAEG;AACH,eAAO,MAAM,qBAAqB,IAAI,CAAC;AACvC;;GAEG;AACH,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAChD;;GAEG;AACH,eAAO,MAAM,oBAAoB,IAAI,CAAC;AACtC;;GAEG;AACH,eAAO,MAAM,UAAU,KAAK,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare const DEFAULT_ROTATE_ICON = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<g clip-path=\"url(#clip0_8198_30743)\">\n<path d=\"M20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10C0 4.47715 4.47715 0 10 0C15.5228 0 20 4.47715 20 10Z\" fill=\"url(#paint0_linear_8198_30743)\"/>\n<path d=\"M11.4894 14.7176C10.4257 14.9506 9.31616 14.8595 8.30481 14.4558C7.29342 14.0521 6.4264 13.3535 5.81555 12.4519C5.24299 11.6068 4.92013 10.6187 4.88196 9.60134L4.87805 9.39724C4.87805 8.94523 5.24441 8.57892 5.69641 8.57888C6.12014 8.57888 6.46888 8.90061 6.51087 9.31325L6.51477 9.39724L6.52551 9.68142C6.57513 10.3429 6.79716 10.9821 7.17102 11.534C7.54479 12.0855 8.05583 12.528 8.65149 12.8191L8.91223 12.9343C9.61943 13.2166 10.395 13.2809 11.1388 13.1179L11.4142 13.0467C11.6075 12.9889 11.795 12.9149 11.9757 12.8279L10.8282 12.3865C10.4074 12.2245 10.1977 11.7518 10.3595 11.3308C10.5215 10.9099 10.9941 10.7003 11.4152 10.8621L13.9562 11.8386C14.3773 12.0005 14.5878 12.4732 14.4259 12.8943C14.3891 12.9901 14.3364 13.0752 14.2716 13.1472L14.2726 13.1482C13.5227 13.9377 12.5531 14.4845 11.4894 14.7176Z\" fill=\"white\"/>\n<path d=\"M8.51062 4.54807C9.57433 4.31505 10.6838 4.40612 11.6952 4.80979C12.7066 5.21356 13.5736 5.91214 14.1844 6.8137C14.757 7.65884 15.0799 8.64688 15.118 9.66429L15.1219 9.86839C15.1219 10.3204 14.7556 10.6867 14.3036 10.6867C13.8799 10.6867 13.5311 10.365 13.4891 9.95237L13.4852 9.86839L13.4745 9.58421C13.4249 8.92272 13.2028 8.28348 12.829 7.73167C12.4552 7.18008 11.9442 6.73767 11.3485 6.44651L11.0878 6.33128C10.3806 6.04903 9.60501 5.98477 8.8612 6.14768L8.58581 6.21897C8.39252 6.27673 8.20502 6.35068 8.02429 6.43772L9.17175 6.87913C9.59256 7.04116 9.8023 7.51383 9.6405 7.93479C9.47855 8.35574 9.00587 8.56537 8.58484 8.40354L6.04382 7.42698C5.6227 7.26512 5.41224 6.79244 5.57409 6.37132C5.61094 6.27552 5.66365 6.19044 5.72839 6.11839L5.72742 6.11741C6.47734 5.32789 7.44693 4.78114 8.51062 4.54807Z\" fill=\"white\"/>\n</g>\n<defs>\n<linearGradient id=\"paint0_linear_8198_30743\" x1=\"17.7273\" y1=\"16.3636\" x2=\"-1.21533\" y2=\"2.08814e-07\" gradientUnits=\"userSpaceOnUse\">\n<stop stop-color=\"#F16629\"/>\n<stop offset=\"1\" stop-color=\"#F1A129\"/>\n</linearGradient>\n<clipPath id=\"clip0_8198_30743\">\n<rect width=\"20\" height=\"20\" fill=\"white\" transform=\"matrix(-1 0 0 1 20 0)\"/>\n</clipPath>\n</defs>\n</svg>";
|
|
2
|
+
export declare const DEFAULT_DRAG_ICON = "\n<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<circle cx=\"10\" cy=\"10\" r=\"10\" fill=\"url(#paint0_linear_8198_30757)\"/>\n<path d=\"M16.1809 10.757C16.4931 10.4447 16.4931 9.93758 16.1809 9.6252C16.148 9.59243 16.1121 9.56417 16.0754 9.53828L14.4162 7.87813C14.1038 7.56598 13.5957 7.5658 13.2834 7.87813C12.9714 8.19048 12.9723 8.69763 13.2844 9.00996L13.6662 9.3918H10.7063V6.41719L11.092 6.80293C11.4044 7.11535 11.9104 7.11535 12.2229 6.80293C12.535 6.4905 12.5352 5.98441 12.2229 5.67207L10.4729 3.92207C10.1605 3.60984 9.6534 3.60984 9.34102 3.92207C9.30678 3.95637 9.27693 3.99397 9.2502 4.03243L7.59493 5.6877C7.28276 6.00011 7.28267 6.50621 7.59493 6.81856C7.90728 7.13081 8.41338 7.13073 8.72578 6.81856L9.10664 6.4377V9.3918H6.13789L6.51875 9.01094C6.83106 8.69853 6.83108 8.19247 6.51875 7.88008C6.20635 7.56783 5.70028 7.5678 5.38789 7.88008L3.63692 9.63008C3.32468 9.94247 3.32468 10.4495 3.63692 10.7619C3.66972 10.7947 3.70576 10.8229 3.74239 10.8488L5.40254 12.509C5.7149 12.8209 6.22206 12.821 6.53438 12.509C6.84635 12.1967 6.84631 11.6895 6.53438 11.3772L6.14864 10.9914H9.10664V13.9641L8.72676 13.5842C8.41434 13.2718 7.90735 13.2718 7.59493 13.5842C7.28308 13.8966 7.28286 14.4028 7.59493 14.715L9.3459 16.465C9.65829 16.7773 10.1644 16.7773 10.4768 16.465C10.5111 16.4307 10.5418 16.3932 10.5686 16.3547L12.2229 14.6994C12.5353 14.387 12.5353 13.881 12.2229 13.5686C11.9104 13.2565 11.4043 13.2563 11.092 13.5686L10.7063 13.9543V10.9914H13.6848L13.3 11.3762C12.9876 11.6886 12.9876 12.1946 13.3 12.507C13.6124 12.8193 14.1185 12.8194 14.4309 12.507L16.1809 10.757Z\" fill=\"white\"/>\n<defs>\n<linearGradient id=\"paint0_linear_8198_30757\" x1=\"17.7273\" y1=\"16.3636\" x2=\"-1.21533\" y2=\"2.08814e-07\" gradientUnits=\"userSpaceOnUse\">\n<stop stop-color=\"#F16629\"/>\n<stop offset=\"1\" stop-color=\"#F1A129\"/>\n</linearGradient>\n</defs>\n</svg>";
|
|
3
|
+
export declare const EDIT_STYLES: {
|
|
4
|
+
readonly BORDER_COLOR: "#F16629";
|
|
5
|
+
readonly BORDER_STYLE: "2px dashed #F16629";
|
|
6
|
+
readonly HANDLE_SIZE: 20;
|
|
7
|
+
readonly BORDER_RADIUS: "2px";
|
|
8
|
+
readonly Z_INDEX: {
|
|
9
|
+
readonly EDIT_CONTAINER: "1000";
|
|
10
|
+
readonly HANDLE: "1001";
|
|
11
|
+
readonly SUCCESS_MESSAGE: "10000";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare const EDIT_BEHAVIOR: {
|
|
15
|
+
readonly ROTATION_THROTTLE_MS: 16;
|
|
16
|
+
readonly SUCCESS_MESSAGE_DURATION_MS: 3000;
|
|
17
|
+
};
|
|
18
|
+
export declare const DEFAULT_MAP_CONFIG: {
|
|
19
|
+
readonly showScale: true;
|
|
20
|
+
readonly fitToView: true;
|
|
21
|
+
readonly initialZoom: 1;
|
|
22
|
+
readonly enableDrag: true;
|
|
23
|
+
readonly width: 800;
|
|
24
|
+
readonly height: 600;
|
|
25
|
+
readonly backgroundColor: "#f5f5f5";
|
|
26
|
+
readonly borderRadius: "8px";
|
|
27
|
+
readonly border: "1px solid #ddd";
|
|
28
|
+
readonly useGoogleMaps: true;
|
|
29
|
+
};
|
|
30
|
+
export declare const DEFAULT_PATH_CONFIG: {
|
|
31
|
+
readonly lineWidth: 2;
|
|
32
|
+
readonly showEdgePaths: true;
|
|
33
|
+
readonly showTransPaths: true;
|
|
34
|
+
readonly showMowingPaths: true;
|
|
35
|
+
readonly edgePathColor: "#ff6b6b";
|
|
36
|
+
readonly transPathColor: "#ffd93d";
|
|
37
|
+
readonly mowingPathColor: "#45b7d1";
|
|
38
|
+
readonly edgePathOpacity: 1;
|
|
39
|
+
readonly transPathOpacity: 0.6;
|
|
40
|
+
readonly mowingPathOpacity: 1;
|
|
41
|
+
};
|
|
42
|
+
export declare const DEFAULT_ANTENNA_CONFIG: {
|
|
43
|
+
readonly show: true;
|
|
44
|
+
readonly size: 30;
|
|
45
|
+
readonly antennaOneStatus: true;
|
|
46
|
+
readonly antennaTwoStatus: true;
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=edit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../src/config/edit.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,g3EAgBzB,CAAC;AAGR,eAAO,MAAM,iBAAiB,25DAUvB,CAAC;AAGR,eAAO,MAAM,WAAW;;;;;;;;;;CAUd,CAAC;AAGX,eAAO,MAAM,aAAa;;;CAGhB,CAAC;AAGX,eAAO,MAAM,kBAAkB;;;;;;;;;;;CAWrB,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;;;;CAWtB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './constants';
|
|
2
|
+
export * from './styles';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated 使用独立的配置常量代替类方法
|
|
5
|
+
* 地图配置类(向后兼容)
|
|
6
|
+
*/
|
|
7
|
+
export declare class MapConfig {
|
|
8
|
+
static readonly DEFAULT_STYLES: {
|
|
9
|
+
readonly BOUNDARY: import("../render/layers").BoundaryStyle;
|
|
10
|
+
readonly BOUNDARY_BORDER: import("../render/layers").BoundaryStyle;
|
|
11
|
+
readonly VISION_OFF_AREA: import("../render/layers").BoundaryStyle;
|
|
12
|
+
readonly OBSTACLE: import("../render/layers").ObstacleStyle;
|
|
13
|
+
readonly CHARGING_PILE: import("../render/layers").ChargingPileStyle;
|
|
14
|
+
readonly DOODLE: import("../render/layers").SvgElementStyle;
|
|
15
|
+
readonly PATH_EDGE: import("../render/layers").PathStyle;
|
|
16
|
+
readonly CHANNEL: import("../render/layers").PathStyle;
|
|
17
|
+
readonly ANTENNA: import("../render/layers").AntennaStyle;
|
|
18
|
+
};
|
|
19
|
+
static readonly SCALE_FACTOR = 50;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAC;AAG5B,cAAc,UAAU,CAAC;AAMzB;;;GAGG;AACH,qBAAa,SAAS;IACpB,MAAM,CAAC,QAAQ,CAAC,cAAc;;;;;;;;;;MAAkB;IAChD,MAAM,CAAC,QAAQ,CAAC,YAAY,MAAgB;CAC7C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PathStyle, BoundaryStyle, ObstacleStyle, ChargingPileStyle, SvgElementStyle, AntennaStyle } from '../render/layers/types';
|
|
2
|
+
/**
|
|
3
|
+
* 边界相关样式配置
|
|
4
|
+
*/
|
|
5
|
+
export declare const BOUNDARY_STYLES: BoundaryStyle;
|
|
6
|
+
export declare const BOUNDARY_BORDER_STYLES: BoundaryStyle;
|
|
7
|
+
export declare const VISION_OFF_AREA_STYLES: BoundaryStyle;
|
|
8
|
+
export declare const OBSTACLE_STYLES: ObstacleStyle;
|
|
9
|
+
export declare const CHARGING_PILE_STYLES: ChargingPileStyle;
|
|
10
|
+
export declare const DOODLE_STYLES: SvgElementStyle;
|
|
11
|
+
export declare const PATH_EDGE_STYLES: PathStyle;
|
|
12
|
+
export declare const CHANNEL_STYLES: PathStyle;
|
|
13
|
+
export declare const ANTENNA_STYLES: AntennaStyle;
|
|
14
|
+
export declare const DEFAULT_STYLES: {
|
|
15
|
+
readonly BOUNDARY: BoundaryStyle;
|
|
16
|
+
readonly BOUNDARY_BORDER: BoundaryStyle;
|
|
17
|
+
readonly VISION_OFF_AREA: BoundaryStyle;
|
|
18
|
+
readonly OBSTACLE: ObstacleStyle;
|
|
19
|
+
readonly CHARGING_PILE: ChargingPileStyle;
|
|
20
|
+
readonly DOODLE: SvgElementStyle;
|
|
21
|
+
readonly PATH_EDGE: PathStyle;
|
|
22
|
+
readonly CHANNEL: PathStyle;
|
|
23
|
+
readonly ANTENNA: AntennaStyle;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/config/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,YAAY,EACb,MAAM,wBAAwB,CAAC;AAGhC;;GAEG;AACH,eAAO,MAAM,eAAe,EAKvB,aAAa,CAAC;AAEnB,eAAO,MAAM,sBAAsB,EAK9B,aAAa,CAAC;AAEnB,eAAO,MAAM,sBAAsB,EAK9B,aAAa,CAAC;AAEnB,eAAO,MAAM,eAAe,EAKvB,aAAa,CAAC;AAEnB,eAAO,MAAM,oBAAoB,EAM5B,iBAAiB,CAAC;AAEvB,eAAO,MAAM,aAAa,EAKrB,eAAe,CAAA;AAEpB,eAAO,MAAM,gBAAgB,EAIxB,SAAS,CAAC;AAEf,eAAO,MAAM,cAAc,EAItB,SAAS,CAAC;AAEf,eAAO,MAAM,cAAc,EAKtB,YAAY,CAAC;AAGlB,eAAO,MAAM,cAAc;;;;;;;;;;CAUjB,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as MowerMapRenderer } from './render/MowerMapRenderer';
|
|
2
|
+
export type { MapConfig, PathConfig, AntennaConfig, MowerPositonConfig, MowerMapRendererProps, MowerMapRendererRef, DragState, DragCallbacks } from './types/renderer';
|
|
3
|
+
export { MapDataProcessor, PathDataProcessor, } from './processor';
|
|
4
|
+
export type { PathConfig as DataPathConfig } from './processor';
|
|
5
|
+
export { calculateMapGpsCenter } from './utils/mapBounds';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAGxE,YAAY,EACV,SAAS,EACT,UAAU,EACV,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,SAAS,EACT,aAAa,EACd,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,aAAa,CAAC;AAErB,YAAY,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,aAAa,CAAC;AAGhE,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC"}
|