mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
feat: 添加A3/A4的预设画布尺寸
This commit is contained in:
parent
5d0e1d90a8
commit
0701663e5e
@ -380,6 +380,10 @@ export default () => {
|
||||
|
||||
if (viewportRatio.value === 0.625) pptx.layout = 'LAYOUT_16x10'
|
||||
else if (viewportRatio.value === 0.75) pptx.layout = 'LAYOUT_4x3'
|
||||
else if (viewportRatio.value === 0.70710678) {
|
||||
pptx.defineLayout({ name: 'A3', width: 10, height: 7.0710678 })
|
||||
pptx.layout = 'A3'
|
||||
}
|
||||
else pptx.layout = 'LAYOUT_16x9'
|
||||
|
||||
if (masterOverwrite) {
|
||||
|
@ -103,6 +103,7 @@
|
||||
<SelectOption :value="0.5625">宽屏 16 : 9</SelectOption>
|
||||
<SelectOption :value="0.625">宽屏 16 :10</SelectOption>
|
||||
<SelectOption :value="0.75">标准 4 :3</SelectOption>
|
||||
<SelectOption :value="0.70710678">A3 / A4</SelectOption>
|
||||
</Select>
|
||||
</div>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user