edsger 0.33.2 → 0.33.3

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.
@@ -268,10 +268,12 @@ export async function generateStoreScreenshots(specs, options) {
268
268
  const sizes = STORE_SCREENSHOT_SIZES[store];
269
269
  for (const [deviceType, size] of Object.entries(sizes)) {
270
270
  try {
271
- const compositionHtml = createCompositionHtml(framedDataUrl, spec, size.width, size.height);
272
271
  // Render at half resolution with 2x scale for retina
273
272
  const renderWidth = Math.round(size.width / 2);
274
273
  const renderHeight = Math.round(size.height / 2);
274
+ // Use render dimensions for CSS layout — the 2x deviceScaleFactor
275
+ // produces the final physical pixel output at full size.width × size.height
276
+ const compositionHtml = createCompositionHtml(framedDataUrl, spec, renderWidth, renderHeight);
275
277
  const compContext = await browser.newContext({
276
278
  viewport: { width: renderWidth, height: renderHeight },
277
279
  deviceScaleFactor: 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edsger",
3
- "version": "0.33.2",
3
+ "version": "0.33.3",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "edsger": "dist/index.js"