mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 支持导出缺少填充属性的形状(#323)
This commit is contained in:
parent
be5af25aa5
commit
bccb23c559
@ -81,6 +81,11 @@ export default () => {
|
||||
|
||||
// 格式化颜色值为 透明度 + HexString,供pptxgenjs使用
|
||||
const formatColor = (_color: string) => {
|
||||
if (!_color) return {
|
||||
alpha: 0,
|
||||
color: '#000000',
|
||||
}
|
||||
|
||||
const c = tinycolor(_color)
|
||||
const alpha = c.getAlpha()
|
||||
const color = alpha === 0 ? '#ffffff' : c.setAlpha(1).toHexString()
|
||||
|
@ -319,7 +319,7 @@ export default () => {
|
||||
top: el.top,
|
||||
viewBox: [200, 200],
|
||||
path: 'M 0 0 L 200 0 L 200 200 L 0 200 Z',
|
||||
fill: fill || 'none',
|
||||
fill,
|
||||
gradient,
|
||||
fixedRatio: false,
|
||||
rotate: el.rotate,
|
||||
|
@ -43,7 +43,7 @@
|
||||
stroke-linecap="butt"
|
||||
stroke-miterlimit="8"
|
||||
:d="elementInfo.path"
|
||||
:fill="elementInfo.gradient ? `url(#base-gradient-${elementInfo.id})` : elementInfo.fill"
|
||||
:fill="elementInfo.gradient ? `url(#base-gradient-${elementInfo.id})` : (elementInfo.fill || 'none')"
|
||||
:stroke="outlineColor"
|
||||
:stroke-width="outlineWidth"
|
||||
:stroke-dasharray="strokeDashArray"
|
||||
|
@ -53,7 +53,7 @@
|
||||
stroke-linecap="butt"
|
||||
stroke-miterlimit="8"
|
||||
:d="elementInfo.path"
|
||||
:fill="elementInfo.gradient ? `url(#editabel-gradient-${elementInfo.id})` : elementInfo.fill"
|
||||
:fill="elementInfo.gradient ? `url(#editabel-gradient-${elementInfo.id})` : (elementInfo.fill || 'none')"
|
||||
:stroke="outlineColor"
|
||||
:stroke-width="outlineWidth"
|
||||
:stroke-dasharray="strokeDashArray"
|
||||
|
Loading…
x
Reference in New Issue
Block a user