@fleet-frontend/mower-maps 0.2.0-beta.22 → 0.2.0-beta.24

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
@@ -8761,7 +8761,7 @@ class SvgMapView {
8761
8761
  svg.style.width = '100%';
8762
8762
  svg.style.height = '100%';
8763
8763
  svg.style.background = 'transparent';
8764
- svg.style.overflow = 'visible';
8764
+ svg.style.overflow = 'hidden';
8765
8765
  return svg;
8766
8766
  }
8767
8767
  /**
@@ -18323,7 +18323,7 @@ const DoodleTransformWrapper = ({ data, isSelected = false, isSelectedWithoutOpe
18323
18323
  justifyContent: 'center',
18324
18324
  gap: '10px',
18325
18325
  color: '#325069',
18326
- }, children: jsxs("div", { children: ["Remaining Time: ", remainingTime] }) }) }) }))] }));
18326
+ }, children: jsxs("div", { children: ["Remaining time: ", remainingTime] }) }) }) }))] }));
18327
18327
  };
18328
18328
  useEffect(() => {
18329
18329
  const isMove = isDragging || isRotating || isScaling;
@@ -20905,11 +20905,15 @@ modelType, mapRef, mapJson, pathJson, realTimeData, antennaConfig, onMapLoad, on
20905
20905
  });
20906
20906
  MowerMapRenderer.displayName = 'MowerMapRenderer';
20907
20907
 
20908
- const BoundarySvgRender = React__default.memo(({ mapJson, id, maxWidth = 300 }) => {
20908
+ const BoundarySvgRender = React__default.memo(({ mapJson, unStructMapData, id, maxWidth = 300 }) => {
20909
20909
  const svgElementData = useMemo(() => {
20910
+ if (unStructMapData) {
20911
+ const data = UnifiedMapDataProcessor.processUnstructMapData(unStructMapData, DEFAULT_STYLES) || {};
20912
+ return data;
20913
+ }
20910
20914
  const data = UnifiedMapDataProcessor.processMapData(mapJson, DEFAULT_STYLES) || {};
20911
20915
  return data;
20912
- }, [mapJson, DEFAULT_STYLES]);
20916
+ }, [mapJson, unStructMapData, DEFAULT_STYLES]);
20913
20917
  const boundaryInfo = useMemo(() => {
20914
20918
  const boundary = svgElementData.boundary.find((item) => item.id === id);
20915
20919
  return boundary;
package/dist/index.js CHANGED
@@ -8781,7 +8781,7 @@ class SvgMapView {
8781
8781
  svg.style.width = '100%';
8782
8782
  svg.style.height = '100%';
8783
8783
  svg.style.background = 'transparent';
8784
- svg.style.overflow = 'visible';
8784
+ svg.style.overflow = 'hidden';
8785
8785
  return svg;
8786
8786
  }
8787
8787
  /**
@@ -18343,7 +18343,7 @@ const DoodleTransformWrapper = ({ data, isSelected = false, isSelectedWithoutOpe
18343
18343
  justifyContent: 'center',
18344
18344
  gap: '10px',
18345
18345
  color: '#325069',
18346
- }, children: jsxRuntime.jsxs("div", { children: ["Remaining Time: ", remainingTime] }) }) }) }))] }));
18346
+ }, children: jsxRuntime.jsxs("div", { children: ["Remaining time: ", remainingTime] }) }) }) }))] }));
18347
18347
  };
18348
18348
  React.useEffect(() => {
18349
18349
  const isMove = isDragging || isRotating || isScaling;
@@ -20925,11 +20925,15 @@ modelType, mapRef, mapJson, pathJson, realTimeData, antennaConfig, onMapLoad, on
20925
20925
  });
20926
20926
  MowerMapRenderer.displayName = 'MowerMapRenderer';
20927
20927
 
20928
- const BoundarySvgRender = React.memo(({ mapJson, id, maxWidth = 300 }) => {
20928
+ const BoundarySvgRender = React.memo(({ mapJson, unStructMapData, id, maxWidth = 300 }) => {
20929
20929
  const svgElementData = React.useMemo(() => {
20930
+ if (unStructMapData) {
20931
+ const data = UnifiedMapDataProcessor.processUnstructMapData(unStructMapData, DEFAULT_STYLES) || {};
20932
+ return data;
20933
+ }
20930
20934
  const data = UnifiedMapDataProcessor.processMapData(mapJson, DEFAULT_STYLES) || {};
20931
20935
  return data;
20932
- }, [mapJson, DEFAULT_STYLES]);
20936
+ }, [mapJson, unStructMapData, DEFAULT_STYLES]);
20933
20937
  const boundaryInfo = React.useMemo(() => {
20934
20938
  const boundary = svgElementData.boundary.find((item) => item.id === id);
20935
20939
  return boundary;
@@ -1,10 +1,12 @@
1
1
  import { MapData } from '../types';
2
2
  import React from 'react';
3
+ import { UnstructMapData } from '../types';
3
4
  interface BoundarySvgRenderProps {
4
5
  mapJson: MapData;
6
+ unStructMapData: UnstructMapData;
5
7
  id: number;
6
8
  maxWidth?: number;
7
9
  }
8
- declare const BoundarySvgRender: React.MemoExoticComponent<({ mapJson, id, maxWidth }: BoundarySvgRenderProps) => import("react/jsx-runtime").JSX.Element>;
10
+ declare const BoundarySvgRender: React.MemoExoticComponent<({ mapJson, unStructMapData, id, maxWidth }: BoundarySvgRenderProps) => import("react/jsx-runtime").JSX.Element>;
9
11
  export default BoundarySvgRender;
10
12
  //# sourceMappingURL=BoundarySvgRender.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BoundarySvgRender.d.ts","sourceRoot":"","sources":["../../src/render/BoundarySvgRender.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAKnC,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,sBAAsB;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,QAAA,MAAM,iBAAiB,wDAAgD,sBAAsB,6CAiG3F,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"BoundarySvgRender.d.ts","sourceRoot":"","sources":["../../src/render/BoundarySvgRender.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAKnC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,UAAU,sBAAsB;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,eAAe,CAAC;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,QAAA,MAAM,iBAAiB,yEAC8B,sBAAsB,6CAuG1E,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fleet-frontend/mower-maps",
3
- "version": "0.2.0-beta.22",
3
+ "version": "0.2.0-beta.24",
4
4
  "type": "module",
5
5
  "description": "a mower maps in google maps",
6
6
  "main": "dist/index.js",