mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 临时处理(导入PPTX文件带来的异常数据,#255)
This commit is contained in:
parent
49a03325e8
commit
17ab32a439
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user