@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 +3 -3
- package/package.json +1 -1
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
|
|
1662
|
-
canvas.height = Math.floor(h
|
|
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(
|
|
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