Commit db7e6f70 authored by 罗超's avatar 罗超

修复BUG

parent 1b910d8f
......@@ -74,6 +74,7 @@ export const ResolveText = (item: any, index: number,offsetLeft:number,offsetTop
const isVertical = item.layer.adjustments.typeTool.obj.textData.Ornt.value != 'Hrzn'
if(isVertical) {
let checkWord = value[0]+value[value.length-1]
if(checkWord){
let words = checkWord.match(/[\u3002|\uff1f|\uff01|\uff0c|\u3001|\uff1b|\uff1a|\u201c|\u201d|\u2018|\u2019|\uff08|\uff09|\u300a|\u300b|\u3008|\u3009|\u3010|\u3011|\u300e|\u300f|\u300c|\u300d|\ufe43|\ufe44|\u3014|\u3015|\u2026|\u2014|\uff5e|\ufe4f|\uffe5]/g)
if(words&&words.length>0){
domheight += fontSize*words.length*1.4
......@@ -84,6 +85,8 @@ export const ResolveText = (item: any, index: number,offsetLeft:number,offsetTop
}
domLeft -= 10+((leading-1)*fontSize/2)
}
}
else {
domwidth +=fontSize+(value[value.length-1]=='】'?fontSize:0)
domTop -= 10+((leading-1)*fontSize/2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment