@fleet-frontend/mower-maps 0.2.0-beta.44 → 0.2.0-beta.45

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/index.esm.js CHANGED
@@ -15417,7 +15417,7 @@ function createPathSegmentsByType(list) {
15417
15417
  /**
15418
15418
  * 计算地图边界
15419
15419
  */
15420
- function calculateMapBounds(mapData) {
15420
+ function calculateMapBounds(mapData, ignoreVisionOffAreas = false) {
15421
15421
  let minX = Infinity;
15422
15422
  let minY = Infinity;
15423
15423
  let maxX = -Infinity;
@@ -15447,7 +15447,7 @@ function calculateMapBounds(mapData) {
15447
15447
  allElements.push(...mapData.tunnels);
15448
15448
  if (mapData.time_limit_obstacles)
15449
15449
  allElements.push(...mapData.time_limit_obstacles);
15450
- if (mapData.vision_off_areas)
15450
+ if (!ignoreVisionOffAreas && mapData.vision_off_areas)
15451
15451
  allElements.push(...mapData.vision_off_areas);
15452
15452
  // 计算元素边界
15453
15453
  for (const element of allElements) {
@@ -22464,7 +22464,7 @@ const CommonContextProvider = CommonContext.Provider;
22464
22464
  const useCommonContext = () => useContext(CommonContext);
22465
22465
 
22466
22466
  const ChannelClipPath = React__default.memo(() => {
22467
- const { svgViewBox } = useCommonContext();
22467
+ const { svgViewBox, sn } = useCommonContext();
22468
22468
  const { svgElementDatas } = useSvgEditContext();
22469
22469
  const boundaryData = svgElementDatas?.[DataType.BOUNDARY] || [];
22470
22470
  const [minX, minY, maxX, maxY] = useMemo(() => {
@@ -22641,7 +22641,7 @@ const ChannelClipPath = React__default.memo(() => {
22641
22641
  });
22642
22642
  return baseD;
22643
22643
  }, [boundaryData, minX, minY, maxX, maxY]);
22644
- return (jsx("defs", { children: jsx("clipPath", { id: "channel-clip-path", fillRule: "evenodd", children: jsx("path", { d: d }) }) }));
22644
+ return (jsx("defs", { children: jsx("clipPath", { id: `channel-clip-path-${sn}`, fillRule: "evenodd", children: jsx("path", { d: d }) }) }));
22645
22645
  });
22646
22646
 
22647
22647
  /**
@@ -24345,6 +24345,7 @@ const BoundaryElement = ({ data }) => {
24345
24345
  };
24346
24346
 
24347
24347
  const ChannelElement = ({ data }) => {
24348
+ const { sn } = useCommonContext();
24348
24349
  const points = data.points;
24349
24350
  const style = data.style;
24350
24351
  let pathData = `M ${points[0][0]} ${points[0][1]}`;
@@ -24354,7 +24355,7 @@ const ChannelElement = ({ data }) => {
24354
24355
  const topLineWidth = dp2px(style.lineWidth).toString();
24355
24356
  const bottomLineWidth = dp2px(style.bottomLineWidth).toString();
24356
24357
  const dashLength = dp2px(style.lineWidth);
24357
- return (jsxs("g", { id: data.id.toString(), children: [jsx("path", { d: pathData, fill: "none", stroke: "#8498A9", strokeWidth: bottomLineWidth, strokeLinejoin: "round", opacity: style.opacity || 1, style: { clipPath: 'url(#channel-clip-path)' } }), jsx("path", { d: pathData, fill: "none", stroke: "#FFFFFF", strokeWidth: topLineWidth, strokeLinejoin: "round", strokeDasharray: `${dashLength * 2} ${dashLength}`, opacity: style.opacity || 1, style: { clipPath: 'url(#channel-clip-path)' } })] }));
24358
+ return (jsxs("g", { id: data.id.toString(), children: [jsx("path", { d: pathData, fill: "none", stroke: "#8498A9", strokeWidth: bottomLineWidth, strokeLinejoin: "round", opacity: style.opacity || 1, style: { clipPath: `url(#channel-clip-path-${sn})` } }), jsx("path", { d: pathData, fill: "none", stroke: "#FFFFFF", strokeWidth: topLineWidth, strokeLinejoin: "round", strokeDasharray: `${dashLength * 2} ${dashLength}`, opacity: style.opacity || 1, style: { clipPath: `url(#channel-clip-path-${sn})` } })] }));
24358
24359
  };
24359
24360
 
24360
24361
  /**
@@ -26428,6 +26429,7 @@ function transformSvgPath(pathData, center, scale, direction, originalWidth, ori
26428
26429
  }
26429
26430
  const PathElement = forwardRef(({ mapConfig, pathData, mowPartitionData }, ref) => {
26430
26431
  const { svgViewElementDatas = {}, currentMowingPartitionId, processStateIsMowing, } = useSvgEditContext();
26432
+ const { sn } = useCommonContext();
26431
26433
  const { pathElementDates, updatePathData, updatePathDataByMowingPosition } = usePathElement({
26432
26434
  pathData,
26433
26435
  mapConfig,
@@ -26451,7 +26453,7 @@ const PathElement = forwardRef(({ mapConfig, pathData, mowPartitionData }, ref)
26451
26453
  boundarys?.forEach((item) => {
26452
26454
  const id = item?.id;
26453
26455
  const points = item?.points;
26454
- const clipPathId = `clip-partition-${id}`;
26456
+ const clipPathId = `clip-partition-${sn}-${id}`;
26455
26457
  // clipPath的path路径
26456
26458
  let d = '';
26457
26459
  // 1. 该分区的外圈边界(顺时针)
@@ -27010,7 +27012,6 @@ const useBoundaryLabels = ({ mapData, pathData, unitType, viewBox, mowPartitionD
27010
27012
  const coverageText = `Coverage: ${finishedArea.value}/${totalArea.value}`;
27011
27013
  const isMowing = mowingIds.includes(boundary.id);
27012
27014
  const dateText = formatBoundaryDateText(isMowing ? Date.now() / 1000 : boundary.endTime || 0);
27013
- // console.log('-------->', boundary);
27014
27015
  results.push({
27015
27016
  id: boundary.id,
27016
27017
  name: boundary.name,
@@ -27115,6 +27116,7 @@ const BoundaryLabels = React__default.memo(({ editMap, mapData, pathData, unitTy
27115
27116
  left: `${item.leftPct}%`,
27116
27117
  top: `${item.topPct}%`,
27117
27118
  pointerEvents: onlyRead ? 'none' : 'auto',
27119
+ zIndex: expandedId === item.id ? 9999 : containerZIndex,
27118
27120
  }, onClick: (e) => {
27119
27121
  e.stopPropagation();
27120
27122
  if (onlyRead)
@@ -29142,9 +29144,8 @@ modelType, showStraddleBoundaryBorder = true, mapRef, mapJson, pathJson, realTim
29142
29144
  curMowPartitionData = mowingPartition;
29143
29145
  }
29144
29146
  const positionData = realTimeData?.find((item) => item?.type === RealTimeDataType.LOCATION);
29145
- const statusData = realTimeData?.find((item) => item?.type === RealTimeDataType.STATUS);
29146
- if (statusData || positionData) {
29147
- const currentStatus = statusData?.vehicleState || positionData?.vehicleState;
29147
+ if (positionData) {
29148
+ const currentStatus = positionData?.vehicleState;
29148
29149
  if (currentStatus === RobotStatus.WORKING) {
29149
29150
  // 兜底收不到割草地块的实时数据,使用状态来兜底
29150
29151
  setMowingPartitions(undefined);
@@ -29345,7 +29346,7 @@ modelType, showStraddleBoundaryBorder = true, mapRef, mapJson, pathJson, realTim
29345
29346
  // svgEditMapRef?.current?.adjustSvgSize?.(layout);
29346
29347
  setOverlayLayout(layout);
29347
29348
  }
29348
- }, map: mapRef, mapPaneName: 'overlayMouseTarget', bounds: bounds, rotate: drag?.rotation, children: [jsx(MapDrag, { map: mapRef, dragCallbacks: dragCallbacks, onBoundaryLabelsCollapse: () => { }, onTransformChange: handleDragMove, isDragMap: dragMap, canRotateMap: canRotateMap }), jsx(MowPartitionContextProvider, { value: mowPartitionValue, children: jsx(SvgMapComponent, { editMap: editMap, ref: svgMapRef, pathData: pathJson, mapConfig: mergedMapConfig, mowPartitionData: mowPartitionData }) }), jsx(MowerPosition, { editMap: editMap, mowerPositionData: mowerPositionData, viewBox: svgViewBox || null, modelType: modelType, hasEdger: edger, mapData: mapJson, mapConfig: mergedMapConfig, realTimeData: realTimeData, onMowingPositionChange: onMowingPositionChange }), jsx(CharginPile, { mapData: mapJson, mapConfig: mergedMapConfig, viewBox: svgViewBox || null, rotation: drag?.rotation }), jsx(BoundaryLabels, { editMap: editMap, mapData: mapJson, onlyRead: onlyRead, pathData: pathJson, unitType: unitType, viewBox: svgViewBox || null, rotation: drag?.rotation, mowPartitionData: null, realTimeData: realTimeData }), jsx(Antennas, { editMap: editMap, antennaConfig: antennaConfig || [], layout: overlayLayout || undefined, viewBox: svgViewBox || null, rotation: drag?.rotation, onlyRead: onlyRead }), jsx(SvgEditMap, { editMap: editMap, ref: svgEditMapRef, mapConfig: mergedMapConfig, onEditInfoMapChange: onEditInfoMapChange })] })] }) }) }));
29349
+ }, map: mapRef, mapPaneName: 'overlayMouseTarget', bounds: bounds, rotate: drag?.rotation, children: [jsx(MapDrag, { map: mapRef, dragCallbacks: dragCallbacks, onBoundaryLabelsCollapse: () => { }, onTransformChange: handleDragMove, isDragMap: dragMap, canRotateMap: canRotateMap }), jsx(MowPartitionContextProvider, { value: mowPartitionValue, children: jsx(SvgMapComponent, { editMap: editMap, ref: svgMapRef, pathData: pathJson, mapConfig: mergedMapConfig, mowPartitionData: mowPartitionData }) }), jsx(MowerPosition, { editMap: editMap, mowerPositionData: mowerPositionData, viewBox: svgViewBox || null, modelType: modelType, hasEdger: edger, mapData: mapJson, mapConfig: mergedMapConfig, realTimeData: realTimeData, onMowingPositionChange: onMowingPositionChange }), jsx(CharginPile, { mapData: mapJson, mapConfig: mergedMapConfig, viewBox: svgViewBox || null, rotation: drag?.rotation }), jsx(BoundaryLabels, { editMap: editMap, mapData: mapJson, onlyRead: onlyRead, pathData: pathJson, unitType: unitType, viewBox: svgViewBox || null, rotation: drag?.rotation, mowPartitionData: mowPartitionData, realTimeData: realTimeData }), jsx(Antennas, { editMap: editMap, antennaConfig: antennaConfig || [], layout: overlayLayout || undefined, viewBox: svgViewBox || null, rotation: drag?.rotation, onlyRead: onlyRead }), jsx(SvgEditMap, { editMap: editMap, ref: svgEditMapRef, mapConfig: mergedMapConfig, onEditInfoMapChange: onEditInfoMapChange })] })] }) }) }));
29349
29350
  });
29350
29351
  MowerMapRenderer.displayName = 'MowerMapRenderer';
29351
29352
 
package/dist/index.js CHANGED
@@ -15437,7 +15437,7 @@ function createPathSegmentsByType(list) {
15437
15437
  /**
15438
15438
  * 计算地图边界
15439
15439
  */
15440
- function calculateMapBounds(mapData) {
15440
+ function calculateMapBounds(mapData, ignoreVisionOffAreas = false) {
15441
15441
  let minX = Infinity;
15442
15442
  let minY = Infinity;
15443
15443
  let maxX = -Infinity;
@@ -15467,7 +15467,7 @@ function calculateMapBounds(mapData) {
15467
15467
  allElements.push(...mapData.tunnels);
15468
15468
  if (mapData.time_limit_obstacles)
15469
15469
  allElements.push(...mapData.time_limit_obstacles);
15470
- if (mapData.vision_off_areas)
15470
+ if (!ignoreVisionOffAreas && mapData.vision_off_areas)
15471
15471
  allElements.push(...mapData.vision_off_areas);
15472
15472
  // 计算元素边界
15473
15473
  for (const element of allElements) {
@@ -22484,7 +22484,7 @@ const CommonContextProvider = CommonContext.Provider;
22484
22484
  const useCommonContext = () => React.useContext(CommonContext);
22485
22485
 
22486
22486
  const ChannelClipPath = React.memo(() => {
22487
- const { svgViewBox } = useCommonContext();
22487
+ const { svgViewBox, sn } = useCommonContext();
22488
22488
  const { svgElementDatas } = useSvgEditContext();
22489
22489
  const boundaryData = svgElementDatas?.[exports.DataType.BOUNDARY] || [];
22490
22490
  const [minX, minY, maxX, maxY] = React.useMemo(() => {
@@ -22661,7 +22661,7 @@ const ChannelClipPath = React.memo(() => {
22661
22661
  });
22662
22662
  return baseD;
22663
22663
  }, [boundaryData, minX, minY, maxX, maxY]);
22664
- return (jsxRuntime.jsx("defs", { children: jsxRuntime.jsx("clipPath", { id: "channel-clip-path", fillRule: "evenodd", children: jsxRuntime.jsx("path", { d: d }) }) }));
22664
+ return (jsxRuntime.jsx("defs", { children: jsxRuntime.jsx("clipPath", { id: `channel-clip-path-${sn}`, fillRule: "evenodd", children: jsxRuntime.jsx("path", { d: d }) }) }));
22665
22665
  });
22666
22666
 
22667
22667
  /**
@@ -24365,6 +24365,7 @@ const BoundaryElement = ({ data }) => {
24365
24365
  };
24366
24366
 
24367
24367
  const ChannelElement = ({ data }) => {
24368
+ const { sn } = useCommonContext();
24368
24369
  const points = data.points;
24369
24370
  const style = data.style;
24370
24371
  let pathData = `M ${points[0][0]} ${points[0][1]}`;
@@ -24374,7 +24375,7 @@ const ChannelElement = ({ data }) => {
24374
24375
  const topLineWidth = dp2px(style.lineWidth).toString();
24375
24376
  const bottomLineWidth = dp2px(style.bottomLineWidth).toString();
24376
24377
  const dashLength = dp2px(style.lineWidth);
24377
- return (jsxRuntime.jsxs("g", { id: data.id.toString(), children: [jsxRuntime.jsx("path", { d: pathData, fill: "none", stroke: "#8498A9", strokeWidth: bottomLineWidth, strokeLinejoin: "round", opacity: style.opacity || 1, style: { clipPath: 'url(#channel-clip-path)' } }), jsxRuntime.jsx("path", { d: pathData, fill: "none", stroke: "#FFFFFF", strokeWidth: topLineWidth, strokeLinejoin: "round", strokeDasharray: `${dashLength * 2} ${dashLength}`, opacity: style.opacity || 1, style: { clipPath: 'url(#channel-clip-path)' } })] }));
24378
+ return (jsxRuntime.jsxs("g", { id: data.id.toString(), children: [jsxRuntime.jsx("path", { d: pathData, fill: "none", stroke: "#8498A9", strokeWidth: bottomLineWidth, strokeLinejoin: "round", opacity: style.opacity || 1, style: { clipPath: `url(#channel-clip-path-${sn})` } }), jsxRuntime.jsx("path", { d: pathData, fill: "none", stroke: "#FFFFFF", strokeWidth: topLineWidth, strokeLinejoin: "round", strokeDasharray: `${dashLength * 2} ${dashLength}`, opacity: style.opacity || 1, style: { clipPath: `url(#channel-clip-path-${sn})` } })] }));
24378
24379
  };
24379
24380
 
24380
24381
  /**
@@ -26448,6 +26449,7 @@ function transformSvgPath(pathData, center, scale, direction, originalWidth, ori
26448
26449
  }
26449
26450
  const PathElement = React.forwardRef(({ mapConfig, pathData, mowPartitionData }, ref) => {
26450
26451
  const { svgViewElementDatas = {}, currentMowingPartitionId, processStateIsMowing, } = useSvgEditContext();
26452
+ const { sn } = useCommonContext();
26451
26453
  const { pathElementDates, updatePathData, updatePathDataByMowingPosition } = usePathElement({
26452
26454
  pathData,
26453
26455
  mapConfig,
@@ -26471,7 +26473,7 @@ const PathElement = React.forwardRef(({ mapConfig, pathData, mowPartitionData },
26471
26473
  boundarys?.forEach((item) => {
26472
26474
  const id = item?.id;
26473
26475
  const points = item?.points;
26474
- const clipPathId = `clip-partition-${id}`;
26476
+ const clipPathId = `clip-partition-${sn}-${id}`;
26475
26477
  // clipPath的path路径
26476
26478
  let d = '';
26477
26479
  // 1. 该分区的外圈边界(顺时针)
@@ -27030,7 +27032,6 @@ const useBoundaryLabels = ({ mapData, pathData, unitType, viewBox, mowPartitionD
27030
27032
  const coverageText = `Coverage: ${finishedArea.value}/${totalArea.value}`;
27031
27033
  const isMowing = mowingIds.includes(boundary.id);
27032
27034
  const dateText = formatBoundaryDateText(isMowing ? Date.now() / 1000 : boundary.endTime || 0);
27033
- // console.log('-------->', boundary);
27034
27035
  results.push({
27035
27036
  id: boundary.id,
27036
27037
  name: boundary.name,
@@ -27135,6 +27136,7 @@ const BoundaryLabels = React.memo(({ editMap, mapData, pathData, unitType, langu
27135
27136
  left: `${item.leftPct}%`,
27136
27137
  top: `${item.topPct}%`,
27137
27138
  pointerEvents: onlyRead ? 'none' : 'auto',
27139
+ zIndex: expandedId === item.id ? 9999 : containerZIndex,
27138
27140
  }, onClick: (e) => {
27139
27141
  e.stopPropagation();
27140
27142
  if (onlyRead)
@@ -29162,9 +29164,8 @@ modelType, showStraddleBoundaryBorder = true, mapRef, mapJson, pathJson, realTim
29162
29164
  curMowPartitionData = mowingPartition;
29163
29165
  }
29164
29166
  const positionData = realTimeData?.find((item) => item?.type === RealTimeDataType.LOCATION);
29165
- const statusData = realTimeData?.find((item) => item?.type === RealTimeDataType.STATUS);
29166
- if (statusData || positionData) {
29167
- const currentStatus = statusData?.vehicleState || positionData?.vehicleState;
29167
+ if (positionData) {
29168
+ const currentStatus = positionData?.vehicleState;
29168
29169
  if (currentStatus === RobotStatus.WORKING) {
29169
29170
  // 兜底收不到割草地块的实时数据,使用状态来兜底
29170
29171
  setMowingPartitions(undefined);
@@ -29365,7 +29366,7 @@ modelType, showStraddleBoundaryBorder = true, mapRef, mapJson, pathJson, realTim
29365
29366
  // svgEditMapRef?.current?.adjustSvgSize?.(layout);
29366
29367
  setOverlayLayout(layout);
29367
29368
  }
29368
- }, map: mapRef, mapPaneName: 'overlayMouseTarget', bounds: bounds, rotate: drag?.rotation, children: [jsxRuntime.jsx(MapDrag, { map: mapRef, dragCallbacks: dragCallbacks, onBoundaryLabelsCollapse: () => { }, onTransformChange: handleDragMove, isDragMap: dragMap, canRotateMap: canRotateMap }), jsxRuntime.jsx(MowPartitionContextProvider, { value: mowPartitionValue, children: jsxRuntime.jsx(SvgMapComponent, { editMap: editMap, ref: svgMapRef, pathData: pathJson, mapConfig: mergedMapConfig, mowPartitionData: mowPartitionData }) }), jsxRuntime.jsx(MowerPosition, { editMap: editMap, mowerPositionData: mowerPositionData, viewBox: svgViewBox || null, modelType: modelType, hasEdger: edger, mapData: mapJson, mapConfig: mergedMapConfig, realTimeData: realTimeData, onMowingPositionChange: onMowingPositionChange }), jsxRuntime.jsx(CharginPile, { mapData: mapJson, mapConfig: mergedMapConfig, viewBox: svgViewBox || null, rotation: drag?.rotation }), jsxRuntime.jsx(BoundaryLabels, { editMap: editMap, mapData: mapJson, onlyRead: onlyRead, pathData: pathJson, unitType: unitType, viewBox: svgViewBox || null, rotation: drag?.rotation, mowPartitionData: null, realTimeData: realTimeData }), jsxRuntime.jsx(Antennas, { editMap: editMap, antennaConfig: antennaConfig || [], layout: overlayLayout || undefined, viewBox: svgViewBox || null, rotation: drag?.rotation, onlyRead: onlyRead }), jsxRuntime.jsx(SvgEditMap, { editMap: editMap, ref: svgEditMapRef, mapConfig: mergedMapConfig, onEditInfoMapChange: onEditInfoMapChange })] })] }) }) }));
29369
+ }, map: mapRef, mapPaneName: 'overlayMouseTarget', bounds: bounds, rotate: drag?.rotation, children: [jsxRuntime.jsx(MapDrag, { map: mapRef, dragCallbacks: dragCallbacks, onBoundaryLabelsCollapse: () => { }, onTransformChange: handleDragMove, isDragMap: dragMap, canRotateMap: canRotateMap }), jsxRuntime.jsx(MowPartitionContextProvider, { value: mowPartitionValue, children: jsxRuntime.jsx(SvgMapComponent, { editMap: editMap, ref: svgMapRef, pathData: pathJson, mapConfig: mergedMapConfig, mowPartitionData: mowPartitionData }) }), jsxRuntime.jsx(MowerPosition, { editMap: editMap, mowerPositionData: mowerPositionData, viewBox: svgViewBox || null, modelType: modelType, hasEdger: edger, mapData: mapJson, mapConfig: mergedMapConfig, realTimeData: realTimeData, onMowingPositionChange: onMowingPositionChange }), jsxRuntime.jsx(CharginPile, { mapData: mapJson, mapConfig: mergedMapConfig, viewBox: svgViewBox || null, rotation: drag?.rotation }), jsxRuntime.jsx(BoundaryLabels, { editMap: editMap, mapData: mapJson, onlyRead: onlyRead, pathData: pathJson, unitType: unitType, viewBox: svgViewBox || null, rotation: drag?.rotation, mowPartitionData: mowPartitionData, realTimeData: realTimeData }), jsxRuntime.jsx(Antennas, { editMap: editMap, antennaConfig: antennaConfig || [], layout: overlayLayout || undefined, viewBox: svgViewBox || null, rotation: drag?.rotation, onlyRead: onlyRead }), jsxRuntime.jsx(SvgEditMap, { editMap: editMap, ref: svgEditMapRef, mapConfig: mergedMapConfig, onEditInfoMapChange: onEditInfoMapChange })] })] }) }) }));
29369
29370
  });
29370
29371
  MowerMapRenderer.displayName = 'MowerMapRenderer';
29371
29372
 
@@ -1 +1 @@
1
- {"version":3,"file":"MowerMapRenderer.d.ts","sourceRoot":"","sources":["../../src/render/MowerMapRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAuBf,OAAO,EAGL,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AA0B3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,GAAG,CAAC;KACb;CACF;AA8FD,eAAO,MAAM,gBAAgB,mGAotB5B,CAAC;AAIF,eAAe,gBAAgB,CAAC;AAChC,YAAY,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"MowerMapRenderer.d.ts","sourceRoot":"","sources":["../../src/render/MowerMapRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAQN,MAAM,OAAO,CAAC;AAuBf,OAAO,EAGL,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AA0B3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,GAAG,CAAC;KACb;CACF;AA8FD,eAAO,MAAM,gBAAgB,mGAitB5B,CAAC;AAIF,eAAe,gBAAgB,CAAC;AAChC,YAAY,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/render/boundaryLabels/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGvC,UAAU,mBAAmB;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACzE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAChD,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,cAAc,+IAYf,mBAAmB,6CA8EvB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/render/boundaryLabels/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAEzE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA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AM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,iBAAiB,GAAI,qFAQ/B,wBAAwB;;;CAuG1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/render/svgElement/ChannelElement/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,UAAU,mBAAmB;IAC3B,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,QAAA,MAAM,cAAc,GAAI,UAAU,mBAAmB,4CAoCpD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/render/svgElement/ChannelElement/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIlD,UAAU,mBAAmB;IAC3B,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,QAAA,MAAM,cAAc,GAAI,UAAU,mBAAmB,4CAqCpD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/render/svgElement/PathElement/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EAGR,qBAAqB,EACrB,WAAW,EACZ,MAAM,gBAAgB,CAAC;AAGxB,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,gBAAgB,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;CACjD;AAED,MAAM,WAAW,cAAc;IAC7B,cAAc,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACvF,8BAA8B,EAAE,CAAC,QAAQ,EAAE;QACzC,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,YAAY,CAAC,EAAE,WAAW,CAAC;KAC5B,KAAK,IAAI,CAAC;CACZ;AAuED,QAAA,MAAM,WAAW,6GA8OhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/render/svgElement/PathElement/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EAGR,qBAAqB,EACrB,WAAW,EACZ,MAAM,gBAAgB,CAAC;AAIxB,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,gBAAgB,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;CACjD;AAED,MAAM,WAAW,cAAc;IAC7B,cAAc,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,CAAC,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACvF,8BAA8B,EAAE,CAAC,QAAQ,EAAE;QACzC,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,YAAY,CAAC,EAAE,WAAW,CAAC;KAC5B,KAAK,IAAI,CAAC;CACZ;AAuED,QAAA,MAAM,WAAW,6GA+OhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"boundaryUtils.d.ts","sourceRoot":"","sources":["../../src/utils/boundaryUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,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O,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,YAAY,EAAE,CAgG1F;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,GAAG,SAAS,EAC9B,UAAU,EAAE,MAAM,GACjB,YAAY,GAAG,IAAI,CAQrB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CAGzD;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAEnE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,YAAY,GAAG,MAAM,CAUlE;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAElE;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,YAAY,EAAE,CAG3F;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,YAAY,EAAE,CAG5F"}
@@ -3,7 +3,7 @@ import { MapData } from '../types';
3
3
  /**
4
4
  * 计算地图边界
5
5
  */
6
- export declare function calculateMapBounds(mapData: MapData): MapBounds;
6
+ export declare function calculateMapBounds(mapData: MapData, ignoreVisionOffAreas?: boolean): MapBounds;
7
7
  /**
8
8
  * 计算所有地块围成的边界
9
9
  * @param bounds
@@ -1 +1 @@
1
- {"version":3,"file":"mapBounds.d.ts","sourceRoot":"","sources":["../../src/utils/mapBounds.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,EAAmB,OAAO,EAAE,MAAM,UAAU,CAAC;AAEpD;;GAEG;AACH,wB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,OAAO,GAAG,SAAS,CAgDnE;AAED,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,OAAO,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAShF;AACD;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,CAOzE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,GAAG,KAAK,CAKxD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAKlF;AAiBD;;;;GAIG;AAEH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG;IAC1D,EAAE,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrB,EAAE,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtB,GAAG,IAAI,CA4EP;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAoDpF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fleet-frontend/mower-maps",
3
- "version": "0.2.0-beta.44",
3
+ "version": "0.2.0-beta.45",
4
4
  "type": "module",
5
5
  "description": "a mower maps in google maps",
6
6
  "main": "dist/index.js",