fix: richtext elements boundary render error

This commit is contained in:
Hufe921
2024-02-20 19:45:12 +08:00
parent 72a22b5e61
commit 956035b0e3
@@ -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()
// 重新记录 // 重新记录