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:
parent
c852e877d8
commit
4262603b06
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue