fix: 临时处理(导入PPTX文件带来的异常数据,#255)

This commit is contained in:
pipipi-pikachu 2024-03-09 14:43:32 +08:00
parent 49a03325e8
commit 17ab32a439

View File

@ -490,6 +490,7 @@ export default () => {
else if (el.type === 'shape') {
if (el.special) {
const svgRef = document.querySelector(`.thumbnail-list .base-element-${el.id} svg`) as HTMLElement
if (svgRef.clientWidth < 1 || svgRef.clientHeight < 1) continue // 临时处理导入PPTX文件带来的异常数据
const base64SVG = svg2Base64(svgRef)
const options: pptxgen.ImageProps = {