@shotstack/shotstack-canvas 1.5.2 → 1.5.3

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/entry.web.js CHANGED
@@ -1658,14 +1658,14 @@ function createWebPainter(canvas) {
1658
1658
  const w = op.width;
1659
1659
  const h = op.height;
1660
1660
  if ("width" in canvas && "height" in canvas) {
1661
- canvas.width = Math.floor(w * dpr);
1662
- canvas.height = Math.floor(h * dpr);
1661
+ canvas.width = Math.floor(w);
1662
+ canvas.height = Math.floor(h);
1663
1663
  }
1664
1664
  if ("style" in canvas) {
1665
1665
  canvas.style.width = `${w}px`;
1666
1666
  canvas.style.height = `${h}px`;
1667
1667
  }
1668
- ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
1668
+ ctx.setTransform(1, 0, 0, 1, 0, 0);
1669
1669
  if (op.clear) ctx.clearRect(0, 0, w, h);
1670
1670
  if (op.bg && op.bg.color) {
1671
1671
  const { color, opacity, radius } = op.bg;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shotstack/shotstack-canvas",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "Text layout & animation engine (HarfBuzz) for Node & Web - fully self-contained.",
5
5
  "type": "module",
6
6
  "main": "./dist/entry.node.cjs",