device-shots 0.5.1 → 0.5.2
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/dist/index.js +3 -3
- 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 =
|
|
486
|
-
const radius =
|
|
485
|
+
const padding = 26;
|
|
486
|
+
const radius = 44;
|
|
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.
|
|
845
|
+
).version("0.5.2");
|
|
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
|
});
|