Commit 985aecee authored by wjf's avatar wjf

l

parent 9b741a76
......@@ -451,8 +451,13 @@ export class TextField extends Sprite {
ctx.textAlign = s._textAlign || TEXT_ALIGN.LEFT;
//暂时没开放
ctx.textBaseline = "top";
if (s._textAlpha === 1) {
ctx.fillStyle = s._fillColor;
} else {
ctx.fillStyle = getRGBA(s._fillColor, s._textAlpha)
}
}
/**
* 获取当前文本中单行文字的宽,注意是文字的不是文本框的宽
......
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