@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/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "homepage": "https://github.com/CartoDB/carto-api-client#readme",
9
9
  "author": "Don McCurdy <donmccurdy@carto.com>",
10
10
  "packageManager": "yarn@4.3.1",
11
- "version": "0.5.32-alpha.72cdcfe.130",
11
+ "version": "0.5.32-alpha.b3291bf.129",
12
12
  "license": "MIT",
13
13
  "publishConfig": {
14
14
  "access": "public"
@@ -228,10 +228,9 @@ async function build(cell: number): Promise<AssembledAtlas> {
228
228
  for (const [key, frame] of Object.entries(mapping)) {
229
229
  const img = images[key];
230
230
  if (!img) continue;
231
- // Two art classes: diagonal tiles rely on baked anti-aliasing, which nearest
232
- // scaling turns into hard blocks scale them smoothly. Axis-aligned tiles have
233
- // exact hard edges on texel boundaries — nearest is lossless, smoothing blurs.
234
- ctx.imageSmoothingEnabled = /^(diag-|cross-hatch)/.test(key);
231
+ // Smooth downscale for high-res art; nearest upscale for pixel-art sources.
232
+ const srcWidth = (img as ImageBitmap | HTMLImageElement).width;
233
+ ctx.imageSmoothingEnabled = srcWidth > cell;
235
234
  if ('imageSmoothingQuality' in ctx) ctx.imageSmoothingQuality = 'high';
236
235
  ctx.save();
237
236
  ctx.beginPath();