@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.d.cts
CHANGED
|
@@ -1408,6 +1408,8 @@ type TileFeatures = {
|
|
|
1408
1408
|
/** @privateRemarks Source: @carto/react-core */
|
|
1409
1409
|
type TileFeatureExtractOptions = {
|
|
1410
1410
|
storeGeometry?: boolean;
|
|
1411
|
+
spatialDataType?: SpatialDataType;
|
|
1412
|
+
spatialDataColumn?: string;
|
|
1411
1413
|
uniqueIdProperty?: string;
|
|
1412
1414
|
};
|
|
1413
1415
|
/** @privateRemarks Source: @carto/react-core */
|
package/build/api-client.d.ts
CHANGED
|
@@ -1408,6 +1408,8 @@ type TileFeatures = {
|
|
|
1408
1408
|
/** @privateRemarks Source: @carto/react-core */
|
|
1409
1409
|
type TileFeatureExtractOptions = {
|
|
1410
1410
|
storeGeometry?: boolean;
|
|
1411
|
+
spatialDataType?: SpatialDataType;
|
|
1412
|
+
spatialDataColumn?: string;
|
|
1411
1413
|
uniqueIdProperty?: string;
|
|
1412
1414
|
};
|
|
1413
1415
|
/** @privateRemarks Source: @carto/react-core */
|
package/build/api-client.js
CHANGED
|
@@ -10950,6 +10950,16 @@ function isEmptyObject(object) {
|
|
|
10950
10950
|
}
|
|
10951
10951
|
var isObject2 = (x) => x !== null && typeof x === "object";
|
|
10952
10952
|
var isPureObject = (x) => isObject2(x) && x.constructor === {}.constructor;
|
|
10953
|
+
function assignOptional(target, ...sources) {
|
|
10954
|
+
for (const source of sources) {
|
|
10955
|
+
for (const key in source) {
|
|
10956
|
+
if (source[key] !== void 0) {
|
|
10957
|
+
target[key] = source[key];
|
|
10958
|
+
}
|
|
10959
|
+
}
|
|
10960
|
+
}
|
|
10961
|
+
return target;
|
|
10962
|
+
}
|
|
10953
10963
|
|
|
10954
10964
|
// src/filters/tileFeatures.ts
|
|
10955
10965
|
function tileFeatures({
|
|
@@ -12485,8 +12495,7 @@ var WidgetTilesetSourceImpl = class extends WidgetSource {
|
|
|
12485
12495
|
return;
|
|
12486
12496
|
}
|
|
12487
12497
|
this._features = tileFeatures({
|
|
12488
|
-
...this.props,
|
|
12489
|
-
...this._tileFeatureExtractOptions,
|
|
12498
|
+
...assignOptional({}, this.props, this._tileFeatureExtractOptions),
|
|
12490
12499
|
tiles: this._tiles,
|
|
12491
12500
|
spatialFilter
|
|
12492
12501
|
});
|