Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
veasion committed Aug 2, 2024
1 parent dcf7525 commit 9289432
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/ppt2svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ function Ppt2Svg(_svg, svgWidth, svgHeight) {
}
let property = obj.extInfo.property
let anchor = scaleAnchor(property.anchor)
let wordWrap = property.textWordWrap
let wordWrap = property.textWordWrap ?? true
let textInsets = property.textInsets || [0, 0, 0, 0]
let isVertical = property.textDirection && property.textDirection.indexOf('VERTICAL') > -1
let verticalAlignment = property.textVerticalAlignment
Expand Down Expand Up @@ -1319,7 +1319,7 @@ function Ppt2Svg(_svg, svgWidth, svgHeight) {
textarea.style.left = (rect.x + scrollX) + 'px'
textarea.style.top = (rect.y + scrollY) + 'px'
let isMultiLine = rect.height >= fontSize * 2
let textWordWrap = textObj.extInfo.property.textWordWrap
let textWordWrap = textObj.extInfo.property.textWordWrap ?? true
if (isMultiLine) {
textarea.style.width = rect.width + 'px'
textarea.style.height = (rect.height + fontSize * 2) + 'px'
Expand Down

0 comments on commit 9289432

Please sign in to comment.