mirror of
https://github.com/astefanutti/decktape.git
synced 2024-11-30 10:34:30 +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) {
|
||||
options.size = typeof plugin.size === 'function'
|
||||
? await plugin.size()
|
||||
// TODO: per-plugin default size
|
||||
: { width: 1280, height: 720 };
|
||||
}
|
||||
await page.setViewport(options.size);
|
||||
|
@ -29,6 +29,10 @@ class Shower {
|
||||
});
|
||||
}
|
||||
|
||||
size() {
|
||||
return { width: 1024, height: 640 };
|
||||
}
|
||||
|
||||
slideCount() {
|
||||
// FIXME: this does not take fragments into account which ideally should be deactivated
|
||||
return this.page.evaluate(_ => decktape.shower.getSlidesCount());
|
||||
|
Loading…
Reference in New Issue
Block a user