@carto/api-client 0.5.24 → 0.5.25-alpha.d96c26c.111
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/CHANGELOG.md +5 -1
- package/build/api-client.cjs +4 -3
- package/build/api-client.cjs.map +1 -1
- package/build/api-client.d.cts +7 -0
- package/build/api-client.d.ts +7 -0
- package/build/api-client.js +4 -3
- package/build/api-client.js.map +1 -1
- package/package.json +1 -1
- package/src/fetch-map/layer-map.ts +2 -1
- package/src/widget-sources/types.ts +9 -1
- package/src/widget-sources/widget-remote-source.ts +4 -4
package/CHANGELOG.md
CHANGED
package/build/api-client.cjs
CHANGED
|
@@ -6664,7 +6664,7 @@ var WidgetRemoteSource = class extends WidgetSource {
|
|
|
6664
6664
|
spatialFiltersMode,
|
|
6665
6665
|
...params
|
|
6666
6666
|
} = options;
|
|
6667
|
-
const { columns, dataType, featureIds, z, limit, tileResolution } = params;
|
|
6667
|
+
const { columns, dataType, featureIds, z, limit, tileResolution, offset } = params;
|
|
6668
6668
|
return executeModel({
|
|
6669
6669
|
model: "pick",
|
|
6670
6670
|
source: {
|
|
@@ -6677,12 +6677,13 @@ var WidgetRemoteSource = class extends WidgetSource {
|
|
|
6677
6677
|
dataType,
|
|
6678
6678
|
featureIds,
|
|
6679
6679
|
z,
|
|
6680
|
+
offset,
|
|
6680
6681
|
limit: limit || 1e3,
|
|
6681
6682
|
tileResolution: tileResolution || DEFAULT_TILE_RESOLUTION
|
|
6682
6683
|
},
|
|
6683
6684
|
opts: { signal, headers: this.props.headers }
|
|
6684
6685
|
// Avoid `normalizeObjectKeys()`, which changes column names.
|
|
6685
|
-
}).then(({ rows }) => ({ rows }));
|
|
6686
|
+
}).then(({ rows, metadata }) => ({ rows, metadata }));
|
|
6686
6687
|
}
|
|
6687
6688
|
async getFormula(options) {
|
|
6688
6689
|
const {
|
|
@@ -9860,7 +9861,7 @@ function domainFromAttribute(attribute, scaleType, scaleLength) {
|
|
|
9860
9861
|
if (!attribute.categories) {
|
|
9861
9862
|
return [0, 1];
|
|
9862
9863
|
}
|
|
9863
|
-
return attribute.categories.map((c) => c.category).filter((c) => c !== void 0 && c !== null);
|
|
9864
|
+
return attribute.categories.map((c) => c.category).filter((c) => c !== void 0 && c !== null).slice(0, scaleLength);
|
|
9864
9865
|
}
|
|
9865
9866
|
if (scaleType === "quantile" && attribute.quantiles) {
|
|
9866
9867
|
const quantiles = "global" in attribute.quantiles ? attribute.quantiles.global : attribute.quantiles;
|