@carto/api-client 0.5.32-alpha.72cdcfe.130 → 0.5.32-alpha.b3291bf.129

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.
@@ -10869,7 +10869,8 @@ async function build(cell) {
10869
10869
  for (const [key, frame] of Object.entries(mapping)) {
10870
10870
  const img = images[key];
10871
10871
  if (!img) continue;
10872
- ctx.imageSmoothingEnabled = /^(diag-|cross-hatch)/.test(key);
10872
+ const srcWidth = img.width;
10873
+ ctx.imageSmoothingEnabled = srcWidth > cell;
10873
10874
  if ("imageSmoothingQuality" in ctx) ctx.imageSmoothingQuality = "high";
10874
10875
  ctx.save();
10875
10876
  ctx.beginPath();