1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

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.
This commit is contained in:
Jonas Jenwald 2025-04-01 23:03:50 +02:00
parent c852e877d8
commit 4262603b06
2 changed files with 2 additions and 2 deletions

View file

@ -528,7 +528,7 @@ addState(
k += 2;
break;
case DrawOPS.curveTo:
Util.applyTransformToBezierInPlace(buffer.subarray(k), transform);
Util.applyTransformToBezier(buffer.subarray(k), transform);
k += 6;
break;
}

View file

@ -748,7 +748,7 @@ class Util {
}
// For 2d affine transforms
static applyTransformToBezierInPlace(p, [m0, m1, m2, m3, m4, m5]) {
static applyTransformToBezier(p, [m0, m1, m2, m3, m4, m5]) {
for (let i = 0; i < 6; i += 2) {
const pI = p[i];
const pI1 = p[i + 1];