Merge pull request #20361 from nicolo-ribaudo/reset-setTextMatrix

Reset `sameLineText` dependencies data on `setTextMatrix`
This commit is contained in:
calixteman 2025-10-16 09:00:46 +02:00 committed by GitHub
commit 745e42701f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1843,7 +1843,9 @@ class CanvasGraphics {
}
setTextMatrix(opIdx, matrix) {
this.dependencyTracker?.recordSimpleData("textMatrix", opIdx);
this.dependencyTracker
?.resetIncrementalData("sameLineText")
.recordSimpleData("textMatrix", opIdx);
const { current } = this;
current.textMatrix = matrix;
current.textMatrixScale = Math.hypot(matrix[0], matrix[1]);