emf-converter 4.4.15 → 4.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +1 -1
- package/dist/browser.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -30649,7 +30649,7 @@ function stretchHalftone(src, sx, sy, sw, sh, dw, dh, adjust, adjustAfterSamplin
|
|
|
30649
30649
|
const reducing = W < SW && H < SH;
|
|
30650
30650
|
const mixed = W > SW && H < SH || W < SW && H > SH;
|
|
30651
30651
|
const nearestMixed = mixed && (!adjust || adjustAfterSampling) && (W < SW && W * 2 > SW || H < SH && H * 2 > SH);
|
|
30652
|
-
const nativeMixed = mixed && (!adjust || adjustAfterSampling) && Math.min(SW, W) >= 2 && Math.min(SH, H) >= 2 && (W
|
|
30652
|
+
const nativeMixed = mixed && (!adjust || adjustAfterSampling) && Math.min(SW, W) >= 2 && Math.min(SH, H) >= 2 && (W > SW && H * 2 <= SH || H > SH && W * 2 <= SW);
|
|
30653
30653
|
if ((enlarging || nearestMixed) && !directDib) {
|
|
30654
30654
|
halftoneDespeckle(rect, SW, SH);
|
|
30655
30655
|
}
|
package/dist/browser.mjs
CHANGED
|
@@ -30647,7 +30647,7 @@ function stretchHalftone(src, sx, sy, sw, sh, dw, dh, adjust, adjustAfterSamplin
|
|
|
30647
30647
|
const reducing = W < SW && H < SH;
|
|
30648
30648
|
const mixed = W > SW && H < SH || W < SW && H > SH;
|
|
30649
30649
|
const nearestMixed = mixed && (!adjust || adjustAfterSampling) && (W < SW && W * 2 > SW || H < SH && H * 2 > SH);
|
|
30650
|
-
const nativeMixed = mixed && (!adjust || adjustAfterSampling) && Math.min(SW, W) >= 2 && Math.min(SH, H) >= 2 && (W
|
|
30650
|
+
const nativeMixed = mixed && (!adjust || adjustAfterSampling) && Math.min(SW, W) >= 2 && Math.min(SH, H) >= 2 && (W > SW && H * 2 <= SH || H > SH && W * 2 <= SW);
|
|
30651
30651
|
if ((enlarging || nearestMixed) && !directDib) {
|
|
30652
30652
|
halftoneDespeckle(rect, SW, SH);
|
|
30653
30653
|
}
|
package/dist/index.js
CHANGED
|
@@ -30650,7 +30650,7 @@ function stretchHalftone(src, sx, sy, sw, sh, dw, dh, adjust, adjustAfterSamplin
|
|
|
30650
30650
|
const reducing = W < SW && H < SH;
|
|
30651
30651
|
const mixed = W > SW && H < SH || W < SW && H > SH;
|
|
30652
30652
|
const nearestMixed = mixed && (!adjust || adjustAfterSampling) && (W < SW && W * 2 > SW || H < SH && H * 2 > SH);
|
|
30653
|
-
const nativeMixed = mixed && (!adjust || adjustAfterSampling) && Math.min(SW, W) >= 2 && Math.min(SH, H) >= 2 && (W
|
|
30653
|
+
const nativeMixed = mixed && (!adjust || adjustAfterSampling) && Math.min(SW, W) >= 2 && Math.min(SH, H) >= 2 && (W > SW && H * 2 <= SH || H > SH && W * 2 <= SW);
|
|
30654
30654
|
if ((enlarging || nearestMixed) && !directDib) {
|
|
30655
30655
|
halftoneDespeckle(rect, SW, SH);
|
|
30656
30656
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -30648,7 +30648,7 @@ function stretchHalftone(src, sx, sy, sw, sh, dw, dh, adjust, adjustAfterSamplin
|
|
|
30648
30648
|
const reducing = W < SW && H < SH;
|
|
30649
30649
|
const mixed = W > SW && H < SH || W < SW && H > SH;
|
|
30650
30650
|
const nearestMixed = mixed && (!adjust || adjustAfterSampling) && (W < SW && W * 2 > SW || H < SH && H * 2 > SH);
|
|
30651
|
-
const nativeMixed = mixed && (!adjust || adjustAfterSampling) && Math.min(SW, W) >= 2 && Math.min(SH, H) >= 2 && (W
|
|
30651
|
+
const nativeMixed = mixed && (!adjust || adjustAfterSampling) && Math.min(SW, W) >= 2 && Math.min(SH, H) >= 2 && (W > SW && H * 2 <= SH || H > SH && W * 2 <= SW);
|
|
30652
30652
|
if ((enlarging || nearestMixed) && !directDib) {
|
|
30653
30653
|
halftoneDespeckle(rect, SW, SH);
|
|
30654
30654
|
}
|