@carto/api-client 0.5.1-alpha.1 → 0.5.1-alpha.2
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/build/api-client.cjs +11 -2
- package/build/api-client.cjs.map +1 -1
- package/build/api-client.d.cts +2 -0
- package/build/api-client.d.ts +2 -0
- package/build/api-client.js +11 -2
- package/build/api-client.js.map +1 -1
- package/build/worker.js +11 -2
- package/build/worker.js.map +1 -1
- package/package.json +1 -1
- package/src/filters/tileFeatures.ts +2 -0
- package/src/utils.ts +27 -0
- package/src/widget-sources/widget-tileset-source-impl.ts +7 -3
package/build/api-client.cjs
CHANGED
|
@@ -11148,6 +11148,16 @@ function isEmptyObject(object) {
|
|
|
11148
11148
|
}
|
|
11149
11149
|
var isObject2 = (x) => x !== null && typeof x === "object";
|
|
11150
11150
|
var isPureObject = (x) => isObject2(x) && x.constructor === {}.constructor;
|
|
11151
|
+
function assignOptional(target, ...sources) {
|
|
11152
|
+
for (const source of sources) {
|
|
11153
|
+
for (const key in source) {
|
|
11154
|
+
if (source[key] !== void 0) {
|
|
11155
|
+
target[key] = source[key];
|
|
11156
|
+
}
|
|
11157
|
+
}
|
|
11158
|
+
}
|
|
11159
|
+
return target;
|
|
11160
|
+
}
|
|
11151
11161
|
|
|
11152
11162
|
// src/filters/tileFeatures.ts
|
|
11153
11163
|
function tileFeatures({
|
|
@@ -12746,8 +12756,7 @@ var WidgetTilesetSourceImpl = class extends WidgetSource {
|
|
|
12746
12756
|
return;
|
|
12747
12757
|
}
|
|
12748
12758
|
this._features = tileFeatures({
|
|
12749
|
-
...this.props,
|
|
12750
|
-
...this._tileFeatureExtractOptions,
|
|
12759
|
+
...assignOptional({}, this.props, this._tileFeatureExtractOptions),
|
|
12751
12760
|
tiles: this._tiles,
|
|
12752
12761
|
spatialFilter
|
|
12753
12762
|
});
|