datastake-daf 0.6.401 → 0.6.402

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.
@@ -17422,6 +17422,12 @@ const StakeholderMarker = dt.div`
17422
17422
  height: 25px;
17423
17423
  }
17424
17424
 
17425
+ &.unselected {
17426
+ box-shadow: none;
17427
+ background: #38425066;
17428
+ border-color: white;
17429
+ }
17430
+
17425
17431
  &.depot {
17426
17432
  background-color: var(--volcano-60);
17427
17433
  box-shadow: 0 12px 8px rgba(0, 0, 0, 0.15);
@@ -18802,12 +18808,7 @@ const useMap$1 = ({
18802
18808
  setData(null);
18803
18809
  }
18804
18810
  }
18805
- if (polylinesRef.current.length && type === "chain") {
18806
- polylinesRef.current.forEach(polyline => {
18807
- mapRef.removeLayer(polyline);
18808
- });
18809
- }
18810
- }, [allData, type]);
18811
+ }, [allData]);
18811
18812
  React.useEffect(() => {
18812
18813
  if (allData) {
18813
18814
  setData(filterValidGPS$1(allData));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.401",
3
+ "version": "0.6.402",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -24,6 +24,12 @@ export const StakeholderMarker = styled.div`
24
24
  height: 25px;
25
25
  }
26
26
 
27
+ &.unselected {
28
+ box-shadow: none;
29
+ background: #38425066;
30
+ border-color: white;
31
+ }
32
+
27
33
  &.depot {
28
34
  background-color: var(--volcano-60);
29
35
  box-shadow: 0 12px 8px rgba(0, 0, 0, 0.15);
@@ -268,13 +268,7 @@ export const useMap = ({
268
268
  setData(null);
269
269
  }
270
270
  }
271
-
272
- if (polylinesRef.current.length && type === "chain") {
273
- polylinesRef.current.forEach((polyline) => {
274
- mapRef.removeLayer(polyline);
275
- });
276
- }
277
- }, [allData, type]);
271
+ }, [allData]);
278
272
 
279
273
  useEffect(() => {
280
274
  if (allData) {