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; k += 2;
break; break;
case DrawOPS.curveTo: case DrawOPS.curveTo:
Util.applyTransformToBezierInPlace(buffer.subarray(k), transform); Util.applyTransformToBezier(buffer.subarray(k), transform);
k += 6; k += 6;
break; break;
} }

View File

@ -748,7 +748,7 @@ class Util {
} }
// For 2d affine transforms // 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) { for (let i = 0; i < 6; i += 2) {
const pI = p[i]; const pI = p[i];
const pI1 = p[i + 1]; const pI1 = p[i + 1];