@carto/api-client 0.5.24 → 0.5.25
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 +3 -1
- package/build/api-client.cjs +1 -1
- package/build/api-client.cjs.map +1 -1
- package/build/api-client.js +1 -1
- package/build/api-client.js.map +1 -1
- package/package.json +1 -1
- package/src/fetch-map/layer-map.ts +2 -1
package/build/api-client.js
CHANGED
|
@@ -9513,7 +9513,7 @@ function domainFromAttribute(attribute, scaleType, scaleLength) {
|
|
|
9513
9513
|
if (!attribute.categories) {
|
|
9514
9514
|
return [0, 1];
|
|
9515
9515
|
}
|
|
9516
|
-
return attribute.categories.map((c) => c.category).filter((c) => c !== void 0 && c !== null);
|
|
9516
|
+
return attribute.categories.map((c) => c.category).filter((c) => c !== void 0 && c !== null).slice(0, scaleLength);
|
|
9517
9517
|
}
|
|
9518
9518
|
if (scaleType === "quantile" && attribute.quantiles) {
|
|
9519
9519
|
const quantiles = "global" in attribute.quantiles ? attribute.quantiles.global : attribute.quantiles;
|