|
|
|
@ -28,7 +28,8 @@ export abstract class AbstractRichText {
|
|
|
|
color?: string
|
|
|
|
color?: string
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
const isFirstRecord = !this.fillRect.width
|
|
|
|
const isFirstRecord = !this.fillRect.width
|
|
|
|
if (!isFirstRecord && this.fillColor && this.fillColor !== color) {
|
|
|
|
// 颜色不同时立即绘制
|
|
|
|
|
|
|
|
if (!isFirstRecord && this.fillColor !== color) {
|
|
|
|
this.render(ctx)
|
|
|
|
this.render(ctx)
|
|
|
|
this.clearFillInfo()
|
|
|
|
this.clearFillInfo()
|
|
|
|
// 重新记录
|
|
|
|
// 重新记录
|
|
|
|
|