mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-08-07 06:47:24 +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
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user