datastake-daf 0.6.397 → 0.6.398
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/components/index.js
CHANGED
|
@@ -14098,8 +14098,9 @@ const determineHasChildren = ({
|
|
|
14098
14098
|
|
|
14099
14099
|
const sortByPosition = (items, getConfig) => {
|
|
14100
14100
|
return items.sort((a, b) => {
|
|
14101
|
-
|
|
14102
|
-
const
|
|
14101
|
+
var _getConfig, _getConfig2;
|
|
14102
|
+
const positionA = ((_getConfig = getConfig(a)) === null || _getConfig === void 0 ? void 0 : _getConfig.position) || 0;
|
|
14103
|
+
const positionB = ((_getConfig2 = getConfig(b)) === null || _getConfig2 === void 0 ? void 0 : _getConfig2.position) || 0;
|
|
14103
14104
|
return positionA - positionB;
|
|
14104
14105
|
});
|
|
14105
14106
|
};
|
|
@@ -14116,7 +14117,7 @@ const resolveDynamicLabel = (labelConfig, item, defaultLabel) => {
|
|
|
14116
14117
|
const parts = labelKey.split(' is ');
|
|
14117
14118
|
if (parts.length === 2) {
|
|
14118
14119
|
const [conditionKey, conditionValue] = parts;
|
|
14119
|
-
if (item
|
|
14120
|
+
if ((item === null || item === void 0 ? void 0 : item[conditionKey]) === conditionValue) {
|
|
14120
14121
|
return labelConfig[labelKey];
|
|
14121
14122
|
}
|
|
14122
14123
|
}
|
|
@@ -18802,15 +18803,11 @@ const useMap$1 = ({
|
|
|
18802
18803
|
}
|
|
18803
18804
|
}
|
|
18804
18805
|
|
|
18805
|
-
//
|
|
18806
|
-
|
|
18807
|
-
|
|
18808
|
-
|
|
18809
|
-
|
|
18810
|
-
polylinesRef.current = [];
|
|
18811
|
-
}
|
|
18812
|
-
// if (mapRef) {
|
|
18813
|
-
// mapRef.removeLayer(polygonLayer);
|
|
18806
|
+
// if (mapRef && polylinesRef.current.length) {
|
|
18807
|
+
// polylinesRef.current.forEach((polyline) => {
|
|
18808
|
+
// mapRef.removeLayer(polyline);
|
|
18809
|
+
// });
|
|
18810
|
+
// polylinesRef.current = [];
|
|
18814
18811
|
// }
|
|
18815
18812
|
}, [allData]);
|
|
18816
18813
|
React.useEffect(() => {
|
package/package.json
CHANGED
|
@@ -269,15 +269,11 @@ export const useMap = ({
|
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
//
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
polylinesRef.current = [];
|
|
278
|
-
}
|
|
279
|
-
// if (mapRef) {
|
|
280
|
-
// mapRef.removeLayer(polygonLayer);
|
|
272
|
+
// if (mapRef && polylinesRef.current.length) {
|
|
273
|
+
// polylinesRef.current.forEach((polyline) => {
|
|
274
|
+
// mapRef.removeLayer(polyline);
|
|
275
|
+
// });
|
|
276
|
+
// polylinesRef.current = [];
|
|
281
277
|
// }
|
|
282
278
|
}, [allData]);
|
|
283
279
|
|