feat: 增加竖向纸张尺寸(#155)

This commit is contained in:
pipipi-pikachu 2023-12-27 20:37:01 +08:00
parent 40778513d9
commit 1e03c658ae
2 changed files with 5 additions and 0 deletions

View File

@ -363,6 +363,10 @@ export default () => {
pptx.defineLayout({ name: 'A3', width: 10, height: 7.0710678 })
pptx.layout = 'A3'
}
else if (viewportRatio.value === 1.41421356) {
pptx.defineLayout({ name: 'A3_V', width: 10, height: 14.1421356 })
pptx.layout = 'A3_V'
}
else pptx.layout = 'LAYOUT_16x9'
if (masterOverwrite) {

View File

@ -113,6 +113,7 @@
{ label: '宽屏 16 : 10', value: 0.625 },
{ label: '标准 4 : 3', value: 0.75 },
{ label: '纸张 A3 / A4', value: 0.70710678 },
{ label: '竖向 A3 / A4', value: 1.41421356 },
]"
/>
</div>