Skip to content

Commit 4262603

Browse files
committed
Re-name the Util.applyTransformToBezierInPlace method
Given that all `Util.apply...` methods are now using in/out parameters, we can slightly shorten the name of this one.
1 parent c852e87 commit 4262603

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/operator_list.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ addState(
528528
k += 2;
529529
break;
530530
case DrawOPS.curveTo:
531-
Util.applyTransformToBezierInPlace(buffer.subarray(k), transform);
531+
Util.applyTransformToBezier(buffer.subarray(k), transform);
532532
k += 6;
533533
break;
534534
}

src/shared/util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ class Util {
748748
}
749749

750750
// For 2d affine transforms
751-
static applyTransformToBezierInPlace(p, [m0, m1, m2, m3, m4, m5]) {
751+
static applyTransformToBezier(p, [m0, m1, m2, m3, m4, m5]) {
752752
for (let i = 0; i < 6; i += 2) {
753753
const pI = p[i];
754754
const pI1 = p[i + 1];

0 commit comments

Comments
 (0)