emf-converter 4.8.16 → 4.8.17

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 CHANGED
@@ -20651,10 +20651,10 @@ function resampleImage(rgba, width, height, spec, surface) {
20651
20651
  wu.length = 0;
20652
20652
  wv.length = 0;
20653
20653
  for (let t = iu0; t <= iu1; t++) {
20654
- wu.push(fu.weight(t, cu));
20654
+ wu.push(integerBicubic ? Math.round(fu.weight(t, cu) * 65536) / 65536 : fu.weight(t, cu));
20655
20655
  }
20656
20656
  for (let t = iv0; t <= iv1; t++) {
20657
- wv.push(fv.weight(t, cv));
20657
+ wv.push(integerBicubic ? Math.round(fv.weight(t, cv) * 65536) / 65536 : fv.weight(t, cv));
20658
20658
  }
20659
20659
  return blendSeparable(rgba, width, box, iu0, wu, iv0, wv, kernel === "bicubic", edge, integerBicubic);
20660
20660
  };
package/dist/browser.mjs CHANGED
@@ -20649,10 +20649,10 @@ function resampleImage(rgba, width, height, spec, surface) {
20649
20649
  wu.length = 0;
20650
20650
  wv.length = 0;
20651
20651
  for (let t = iu0; t <= iu1; t++) {
20652
- wu.push(fu.weight(t, cu));
20652
+ wu.push(integerBicubic ? Math.round(fu.weight(t, cu) * 65536) / 65536 : fu.weight(t, cu));
20653
20653
  }
20654
20654
  for (let t = iv0; t <= iv1; t++) {
20655
- wv.push(fv.weight(t, cv));
20655
+ wv.push(integerBicubic ? Math.round(fv.weight(t, cv) * 65536) / 65536 : fv.weight(t, cv));
20656
20656
  }
20657
20657
  return blendSeparable(rgba, width, box, iu0, wu, iv0, wv, kernel === "bicubic", edge, integerBicubic);
20658
20658
  };
package/dist/index.js CHANGED
@@ -20652,10 +20652,10 @@ function resampleImage(rgba, width, height, spec, surface) {
20652
20652
  wu.length = 0;
20653
20653
  wv.length = 0;
20654
20654
  for (let t = iu0; t <= iu1; t++) {
20655
- wu.push(fu.weight(t, cu));
20655
+ wu.push(integerBicubic ? Math.round(fu.weight(t, cu) * 65536) / 65536 : fu.weight(t, cu));
20656
20656
  }
20657
20657
  for (let t = iv0; t <= iv1; t++) {
20658
- wv.push(fv.weight(t, cv));
20658
+ wv.push(integerBicubic ? Math.round(fv.weight(t, cv) * 65536) / 65536 : fv.weight(t, cv));
20659
20659
  }
20660
20660
  return blendSeparable(rgba, width, box, iu0, wu, iv0, wv, kernel === "bicubic", edge, integerBicubic);
20661
20661
  };
package/dist/index.mjs CHANGED
@@ -20650,10 +20650,10 @@ function resampleImage(rgba, width, height, spec, surface) {
20650
20650
  wu.length = 0;
20651
20651
  wv.length = 0;
20652
20652
  for (let t = iu0; t <= iu1; t++) {
20653
- wu.push(fu.weight(t, cu));
20653
+ wu.push(integerBicubic ? Math.round(fu.weight(t, cu) * 65536) / 65536 : fu.weight(t, cu));
20654
20654
  }
20655
20655
  for (let t = iv0; t <= iv1; t++) {
20656
- wv.push(fv.weight(t, cv));
20656
+ wv.push(integerBicubic ? Math.round(fv.weight(t, cv) * 65536) / 65536 : fv.weight(t, cv));
20657
20657
  }
20658
20658
  return blendSeparable(rgba, width, box, iu0, wu, iv0, wv, kernel === "bicubic", edge, integerBicubic);
20659
20659
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emf-converter",
3
- "version": "4.8.16",
3
+ "version": "4.8.17",
4
4
  "description": "Convert EMF/WMF metafile binaries to PNG data URLs or SVG (markup, data URL, React/JSX)",
5
5
  "keywords": [
6
6
  "canvas",