|
@@ -260,7 +260,7 @@ class TextAnnotation extends BaseAnnotation {
|
|
|
|
|
|
this.eventBus._off('markupUpdate', this.onUpdateMarkup)
|
|
this.eventBus._off('markupUpdate', this.onUpdateMarkup)
|
|
this.ctx.clearRect(this.rect.left * this.ratio, this.rect.top * this.ratio, this.rect.width * this.ratio, this.rect.height * this.ratio)
|
|
this.ctx.clearRect(this.rect.left * this.ratio, this.rect.top * this.ratio, this.rect.width * this.ratio, this.rect.height * this.ratio)
|
|
- this.ctx.putImageData(this.baseImageData, 0, 0, this.rect.left * this.ratio, this.rect.top * this.ratio, Math.round(this.rect.width * this.ratio + this.lineWidth + 2), Math.round(this.rect.height * this.ratio + this.lineWidth + 2))
|
|
|
|
|
|
+ this.ctx.putImageData(this.baseImageData, 0, 0, this.rect.left * this.ratio, this.rect.top * this.ratio, Math.round(this.rect.width * this.ratio + this.lineWidth + 20), Math.round(this.rect.height * this.ratio + this.lineWidth + 20))
|
|
this.eventBus.dispatch('markupUpdate', {
|
|
this.eventBus.dispatch('markupUpdate', {
|
|
name: this.annotation.name,
|
|
name: this.annotation.name,
|
|
pageIndex: this.page,
|
|
pageIndex: this.page,
|
|
@@ -330,7 +330,7 @@ class TextAnnotation extends BaseAnnotation {
|
|
) return
|
|
) return
|
|
|
|
|
|
this.ctx.clearRect(this.rect.left * this.ratio, this.rect.top * this.ratio, this.rect.width * this.ratio, this.rect.height * this.ratio)
|
|
this.ctx.clearRect(this.rect.left * this.ratio, this.rect.top * this.ratio, this.rect.width * this.ratio, this.rect.height * this.ratio)
|
|
- this.ctx.putImageData(this.baseImageData, 0, 0, this.rect.left * this.ratio, this.rect.top * this.ratio, Math.round(this.rect.width * this.ratio + this.lineWidth + 2), Math.round(this.rect.height * this.ratio + this.lineWidth + 2))
|
|
|
|
|
|
+ this.ctx.putImageData(this.baseImageData, 0, 0, this.rect.left * this.ratio, this.rect.top * this.ratio, Math.round(this.rect.width * this.ratio + this.lineWidth + 20), Math.round(this.rect.height * this.ratio + this.lineWidth + 20))
|
|
this.drawCanvas(this.positionArray)
|
|
this.drawCanvas(this.positionArray)
|
|
}
|
|
}
|
|
|
|
|