device-shots 0.5.1 → 0.5.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -482,8 +482,8 @@ async function frameAndroidScreenshot(inputPath, outputPath) {
482
482
  if (!match) return false;
483
483
  const width = parseInt(match[1], 10);
484
484
  const height = parseInt(match[2], 10);
485
- const padding = Math.round(width * 0.025);
486
- const radius = Math.round(width * 0.04);
485
+ const padding = 40;
486
+ const radius = 70;
487
487
  const totalW = width + padding * 2;
488
488
  const totalH = height + padding * 2;
489
489
  const uid = Date.now();
@@ -842,7 +842,7 @@ async function frameCommand(dir, options) {
842
842
  var program = new Command();
843
843
  program.name("device-shots").description(
844
844
  "Capture and frame mobile app screenshots from iOS simulators and Android emulators"
845
- ).version("0.5.1");
845
+ ).version("0.5.3");
846
846
  program.command("capture").description("Capture screenshots from running devices").argument("[name]", "Screenshot name").option("-b, --bundle-id <id>", "App bundle ID").option("-o, --output <dir>", "Output directory").option("-p, --platform <platform>", "ios, android, or both").option("--no-frame", "Skip framing after capture").option("--time <time>", "Status bar time", "9:41").action(async (name, opts) => {
847
847
  await captureCommand({ name, ...opts });
848
848
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "device-shots",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "Capture and frame mobile app screenshots from iOS simulators and Android emulators",
5
5
  "type": "module",
6
6
  "bin": {