mirror of
https://github.com/astefanutti/decktape.git
synced 2024-09-19 18:38:59 +03:00
Default size to 16:10 ratio for Shower presentations
This commit is contained in:
parent
8cdc8706a0
commit
20a3873032
@ -245,7 +245,6 @@ async function configurePage(plugin, page) {
|
|||||||
if (!options.size) {
|
if (!options.size) {
|
||||||
options.size = typeof plugin.size === 'function'
|
options.size = typeof plugin.size === 'function'
|
||||||
? await plugin.size()
|
? await plugin.size()
|
||||||
// TODO: per-plugin default size
|
|
||||||
: { width: 1280, height: 720 };
|
: { width: 1280, height: 720 };
|
||||||
}
|
}
|
||||||
await page.setViewport(options.size);
|
await page.setViewport(options.size);
|
||||||
|
@ -29,6 +29,10 @@ class Shower {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
size() {
|
||||||
|
return { width: 1024, height: 640 };
|
||||||
|
}
|
||||||
|
|
||||||
slideCount() {
|
slideCount() {
|
||||||
// FIXME: this does not take fragments into account which ideally should be deactivated
|
// FIXME: this does not take fragments into account which ideally should be deactivated
|
||||||
return this.page.evaluate(_ => decktape.shower.getSlidesCount());
|
return this.page.evaluate(_ => decktape.shower.getSlidesCount());
|
||||||
|
Loading…
Reference in New Issue
Block a user