@shotstack/shotstack-canvas 1.9.4 → 1.9.5

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.
@@ -3827,8 +3827,8 @@ async function createTextEngine(opts = {}) {
3827
3827
  width: (asset.width ?? width) - padding.left - padding.right,
3828
3828
  height: (asset.height ?? height) - padding.top - padding.bottom
3829
3829
  };
3830
- const contentW = canvasW;
3831
- const contentH = canvasH;
3830
+ const contentW = asset.width ?? width;
3831
+ const contentH = asset.height ?? height;
3832
3832
  let ops0;
3833
3833
  try {
3834
3834
  ops0 = await buildDrawOps({
@@ -3783,8 +3783,8 @@ async function createTextEngine(opts = {}) {
3783
3783
  width: (asset.width ?? width) - padding.left - padding.right,
3784
3784
  height: (asset.height ?? height) - padding.top - padding.bottom
3785
3785
  };
3786
- const contentW = canvasW;
3787
- const contentH = canvasH;
3786
+ const contentW = asset.width ?? width;
3787
+ const contentH = asset.height ?? height;
3788
3788
  let ops0;
3789
3789
  try {
3790
3790
  ops0 = await buildDrawOps({
package/dist/entry.web.js CHANGED
@@ -3532,8 +3532,8 @@ async function createTextEngine(opts = {}) {
3532
3532
  width: (asset.width ?? width) - padding.left - padding.right,
3533
3533
  height: (asset.height ?? height) - padding.top - padding.bottom
3534
3534
  };
3535
- const contentW = canvasW;
3536
- const contentH = canvasH;
3535
+ const contentW = asset.width ?? width;
3536
+ const contentH = asset.height ?? height;
3537
3537
  let ops0;
3538
3538
  try {
3539
3539
  ops0 = await buildDrawOps({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shotstack/shotstack-canvas",
3
- "version": "1.9.4",
3
+ "version": "1.9.5",
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",