Browse Source

Merge branch 'beta' of https://git.cocorobo.cn/jack/PPT into beta

lsc 2 hours ago
parent
commit
9e56734b1a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/hooks/useImport.ts

+ 1 - 1
src/hooks/useImport.ts

@@ -1437,7 +1437,7 @@ export default () => {
 
                 const pattern: string | undefined = el.fill?.type === 'image' ? el.fill.value.picBase64 : undefined;
                 const fill = el.fill?.type === 'color' ? el.fill.value : '';
-                let style = getStyle(convertFontSizePtToPx(el.content, ratio)) + (el.pathBBox.pWidth ? ";width:" + (el.pathBBox.pWidth) + "px;height:" + (el.pathBBox.pHeight) + "px;" : "") //设置字体的样式等,这里由于不支持的样式在里面会过滤
+                let style = getStyle(convertFontSizePtToPx(el.content, ratio)) + (el.pathBBox.pWidth ? ";width:" + (el.pathBBox.pWidth * ratio) + "px;height:" + (el.pathBBox.pHeight * ratio) + "px;" : "") //设置字体的样式等,这里由于不支持的样式在里面会过滤
                 const element: PPTShapeElement = {
                   type: 'shape',
                   id: nanoid(10),