mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
perf: 导出PPTX文件支持文字透明度、图片透明度
This commit is contained in:
parent
3861a8ef62
commit
7f5dee88b6
@ -291,6 +291,7 @@ export default () => {
|
|||||||
angle: 45,
|
angle: 45,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (el.opacity !== undefined) options.transparency = (1 - el.opacity) * 100
|
||||||
|
|
||||||
pptxSlide.addText(textProps, options)
|
pptxSlide.addText(textProps, options)
|
||||||
}
|
}
|
||||||
@ -315,6 +316,7 @@ export default () => {
|
|||||||
if (index !== -1) options.hyperlink = { slide: index + 1 }
|
if (index !== -1) options.hyperlink = { slide: index + 1 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (el.filters?.opacity) options.transparency = 100 - parseInt(el.filters?.opacity)
|
||||||
|
|
||||||
pptxSlide.addImage(options)
|
pptxSlide.addImage(options)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user