gis-common 1.1.22 → 1.1.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/resource.min.js +38 -5
- package/package.json +1 -1
package/dist/resource.min.js
CHANGED
|
@@ -514,15 +514,48 @@ var MeasureMode = {
|
|
|
514
514
|
return value;
|
|
515
515
|
});
|
|
516
516
|
},
|
|
517
|
-
deleteEmptyProperty: function deleteEmptyProperty(
|
|
517
|
+
deleteEmptyProperty: function deleteEmptyProperty(data) {
|
|
518
518
|
var _this = this;
|
|
519
519
|
|
|
520
|
-
return Object.fromEntries(Object.keys(
|
|
521
|
-
return !_this.isEmpty(
|
|
520
|
+
return Object.fromEntries(Object.keys(data).filter(function (d) {
|
|
521
|
+
return !_this.isEmpty(data[d]);
|
|
522
522
|
}).map(function (i) {
|
|
523
|
-
return [i,
|
|
523
|
+
return [i, data[i]];
|
|
524
524
|
}));
|
|
525
|
-
}
|
|
525
|
+
},
|
|
526
|
+
deepAssign: function (_deepAssign) {
|
|
527
|
+
function deepAssign() {
|
|
528
|
+
return _deepAssign.apply(this, arguments);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
deepAssign.toString = function () {
|
|
532
|
+
return _deepAssign.toString();
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
return deepAssign;
|
|
536
|
+
}(function () {
|
|
537
|
+
var len = arguments.length,
|
|
538
|
+
target = arguments[0];
|
|
539
|
+
if (!this.getDataType(target) === 'Object') {
|
|
540
|
+
target = {};
|
|
541
|
+
}
|
|
542
|
+
for (var i = 1; i < len; i++) {
|
|
543
|
+
var source = arguments[i];
|
|
544
|
+
if (this.getDataType(source) === 'Object') {
|
|
545
|
+
for (var s in source) {
|
|
546
|
+
if (s === '__proto__' || target === source[s]) {
|
|
547
|
+
continue;
|
|
548
|
+
}
|
|
549
|
+
if (this.getDataType(source[s]) === 'Object') {
|
|
550
|
+
target[s] = deepAssign(target[s], source[s]);
|
|
551
|
+
} else {
|
|
552
|
+
target[s] = source[s];
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
return target;
|
|
558
|
+
})
|
|
526
559
|
});
|
|
527
560
|
// CONCATENATED MODULE: ./src/utils/ArrayUtils.js
|
|
528
561
|
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
|