@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.
package/build/api-client.js
CHANGED
|
@@ -10504,7 +10504,8 @@ async function build(cell) {
|
|
|
10504
10504
|
for (const [key, frame] of Object.entries(mapping)) {
|
|
10505
10505
|
const img = images[key];
|
|
10506
10506
|
if (!img) continue;
|
|
10507
|
-
|
|
10507
|
+
const srcWidth = img.width;
|
|
10508
|
+
ctx.imageSmoothingEnabled = srcWidth > cell;
|
|
10508
10509
|
if ("imageSmoothingQuality" in ctx) ctx.imageSmoothingQuality = "high";
|
|
10509
10510
|
ctx.save();
|
|
10510
10511
|
ctx.beginPath();
|