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