emf-converter 4.8.18 → 4.8.19

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
@@ -32547,6 +32547,7 @@ function drawSourceMapped(target, decoded, req, offsetX, offsetY, mode, brushOrg
32547
32547
  }
32548
32548
  canvasPutImageData(tile.ctx, createImageDataCompat(px.data, px.width, px.height), 0, 0);
32549
32549
  target.save();
32550
+ target.setTransform(1, 0, 0, 1, 0, 0);
32550
32551
  target.globalCompositeOperation = "source-over";
32551
32552
  canvasDrawImage(target, tile.canvas, Math.round(dLeft), Math.round(dTop), px.width, px.height);
32552
32553
  target.restore();
@@ -32586,9 +32587,12 @@ function decodeSource(rCtx, req, rotated = false) {
32586
32587
  function fillRectWith(ctx, style, gco, req) {
32587
32588
  const prevGco = ctx.globalCompositeOperation;
32588
32589
  const prevFill = ctx.fillStyle;
32590
+ ctx.save();
32591
+ ctx.setTransform(1, 0, 0, 1, 0, 0);
32589
32592
  ctx.globalCompositeOperation = gco;
32590
32593
  ctx.fillStyle = style;
32591
32594
  ctx.fillRect(req.dx, req.dy, req.dw, req.dh);
32595
+ ctx.restore();
32592
32596
  ctx.globalCompositeOperation = prevGco;
32593
32597
  ctx.fillStyle = prevFill;
32594
32598
  }
package/dist/browser.mjs CHANGED
@@ -32545,6 +32545,7 @@ function drawSourceMapped(target, decoded, req, offsetX, offsetY, mode, brushOrg
32545
32545
  }
32546
32546
  canvasPutImageData(tile.ctx, createImageDataCompat(px.data, px.width, px.height), 0, 0);
32547
32547
  target.save();
32548
+ target.setTransform(1, 0, 0, 1, 0, 0);
32548
32549
  target.globalCompositeOperation = "source-over";
32549
32550
  canvasDrawImage(target, tile.canvas, Math.round(dLeft), Math.round(dTop), px.width, px.height);
32550
32551
  target.restore();
@@ -32584,9 +32585,12 @@ function decodeSource(rCtx, req, rotated = false) {
32584
32585
  function fillRectWith(ctx, style, gco, req) {
32585
32586
  const prevGco = ctx.globalCompositeOperation;
32586
32587
  const prevFill = ctx.fillStyle;
32588
+ ctx.save();
32589
+ ctx.setTransform(1, 0, 0, 1, 0, 0);
32587
32590
  ctx.globalCompositeOperation = gco;
32588
32591
  ctx.fillStyle = style;
32589
32592
  ctx.fillRect(req.dx, req.dy, req.dw, req.dh);
32593
+ ctx.restore();
32590
32594
  ctx.globalCompositeOperation = prevGco;
32591
32595
  ctx.fillStyle = prevFill;
32592
32596
  }
package/dist/index.js CHANGED
@@ -32548,6 +32548,7 @@ function drawSourceMapped(target, decoded, req, offsetX, offsetY, mode, brushOrg
32548
32548
  }
32549
32549
  canvasPutImageData(tile.ctx, createImageDataCompat(px.data, px.width, px.height), 0, 0);
32550
32550
  target.save();
32551
+ target.setTransform(1, 0, 0, 1, 0, 0);
32551
32552
  target.globalCompositeOperation = "source-over";
32552
32553
  canvasDrawImage(target, tile.canvas, Math.round(dLeft), Math.round(dTop), px.width, px.height);
32553
32554
  target.restore();
@@ -32587,9 +32588,12 @@ function decodeSource(rCtx, req, rotated = false) {
32587
32588
  function fillRectWith(ctx, style, gco, req) {
32588
32589
  const prevGco = ctx.globalCompositeOperation;
32589
32590
  const prevFill = ctx.fillStyle;
32591
+ ctx.save();
32592
+ ctx.setTransform(1, 0, 0, 1, 0, 0);
32590
32593
  ctx.globalCompositeOperation = gco;
32591
32594
  ctx.fillStyle = style;
32592
32595
  ctx.fillRect(req.dx, req.dy, req.dw, req.dh);
32596
+ ctx.restore();
32593
32597
  ctx.globalCompositeOperation = prevGco;
32594
32598
  ctx.fillStyle = prevFill;
32595
32599
  }
package/dist/index.mjs CHANGED
@@ -32546,6 +32546,7 @@ function drawSourceMapped(target, decoded, req, offsetX, offsetY, mode, brushOrg
32546
32546
  }
32547
32547
  canvasPutImageData(tile.ctx, createImageDataCompat(px.data, px.width, px.height), 0, 0);
32548
32548
  target.save();
32549
+ target.setTransform(1, 0, 0, 1, 0, 0);
32549
32550
  target.globalCompositeOperation = "source-over";
32550
32551
  canvasDrawImage(target, tile.canvas, Math.round(dLeft), Math.round(dTop), px.width, px.height);
32551
32552
  target.restore();
@@ -32585,9 +32586,12 @@ function decodeSource(rCtx, req, rotated = false) {
32585
32586
  function fillRectWith(ctx, style, gco, req) {
32586
32587
  const prevGco = ctx.globalCompositeOperation;
32587
32588
  const prevFill = ctx.fillStyle;
32589
+ ctx.save();
32590
+ ctx.setTransform(1, 0, 0, 1, 0, 0);
32588
32591
  ctx.globalCompositeOperation = gco;
32589
32592
  ctx.fillStyle = style;
32590
32593
  ctx.fillRect(req.dx, req.dy, req.dw, req.dh);
32594
+ ctx.restore();
32591
32595
  ctx.globalCompositeOperation = prevGco;
32592
32596
  ctx.fillStyle = prevFill;
32593
32597
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emf-converter",
3
- "version": "4.8.18",
3
+ "version": "4.8.19",
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",