Merge pull request #20361 from nicolo-ribaudo/reset-setTextMatrix
Reset `sameLineText` dependencies data on `setTextMatrix`
This commit is contained in:
commit
745e42701f
@ -1843,7 +1843,9 @@ class CanvasGraphics {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setTextMatrix(opIdx, matrix) {
|
setTextMatrix(opIdx, matrix) {
|
||||||
this.dependencyTracker?.recordSimpleData("textMatrix", opIdx);
|
this.dependencyTracker
|
||||||
|
?.resetIncrementalData("sameLineText")
|
||||||
|
.recordSimpleData("textMatrix", opIdx);
|
||||||
const { current } = this;
|
const { current } = this;
|
||||||
current.textMatrix = matrix;
|
current.textMatrix = matrix;
|
||||||
current.textMatrixScale = Math.hypot(matrix[0], matrix[1]);
|
current.textMatrixScale = Math.hypot(matrix[0], matrix[1]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user