From 4262603b0683aff5174c0ccd9ab8035d6c1f6d00 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Tue, 1 Apr 2025 23:03:50 +0200 Subject: [PATCH] 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. --- src/core/operator_list.js | 2 +- src/shared/util.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/operator_list.js b/src/core/operator_list.js index b3e52c299..661c6f4fe 100644 --- a/src/core/operator_list.js +++ b/src/core/operator_list.js @@ -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; } diff --git a/src/shared/util.js b/src/shared/util.js index 56a4feda7..3e3c66409 100644 --- a/src/shared/util.js +++ b/src/shared/util.js @@ -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];