@fleet-frontend/mower-maps 0.0.4 → 0.0.5
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
|
@@ -72298,7 +72298,11 @@ const MowerMapRenderer = forwardRef(({ mapRef, mapJson, pathJson, realTimeData,
|
|
|
72298
72298
|
}
|
|
72299
72299
|
}, [mowerPositonConfig]);
|
|
72300
72300
|
useEffect(() => {
|
|
72301
|
-
if (!mapJson ||
|
|
72301
|
+
if (!mapJson ||
|
|
72302
|
+
!pathJson ||
|
|
72303
|
+
!realTimeData ||
|
|
72304
|
+
realTimeData.length === 0 ||
|
|
72305
|
+
!Array.isArray(realTimeData))
|
|
72302
72306
|
return;
|
|
72303
72307
|
// 根据后端推送的实时数据,进行不同处理
|
|
72304
72308
|
// TODO:需要根据返回的数据,处理车辆的移动位置
|
package/dist/index.js
CHANGED
|
@@ -72300,7 +72300,11 @@ const MowerMapRenderer = React.forwardRef(({ mapRef, mapJson, pathJson, realTime
|
|
|
72300
72300
|
}
|
|
72301
72301
|
}, [mowerPositonConfig]);
|
|
72302
72302
|
React.useEffect(() => {
|
|
72303
|
-
if (!mapJson ||
|
|
72303
|
+
if (!mapJson ||
|
|
72304
|
+
!pathJson ||
|
|
72305
|
+
!realTimeData ||
|
|
72306
|
+
realTimeData.length === 0 ||
|
|
72307
|
+
!Array.isArray(realTimeData))
|
|
72304
72308
|
return;
|
|
72305
72309
|
// 根据后端推送的实时数据,进行不同处理
|
|
72306
72310
|
// TODO:需要根据返回的数据,处理车辆的移动位置
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MowerMapRenderer.d.ts","sourceRoot":"","sources":["../../src/render/MowerMapRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAsBf,OAAO,EAGL,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAI3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,GAAG,CAAC;KACb;CACF;AAyED,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"MowerMapRenderer.d.ts","sourceRoot":"","sources":["../../src/render/MowerMapRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAON,MAAM,OAAO,CAAC;AAsBf,OAAO,EAGL,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAI3B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,GAAG,CAAC;KACb;CACF;AAyED,eAAO,MAAM,gBAAgB,mGAwc5B,CAAC;AAIF,eAAe,gBAAgB,CAAC;AAChC,YAAY,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,CAAC"}
|