@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.
- package/dist/entry.node.cjs +2 -2
- package/dist/entry.node.js +2 -2
- package/dist/entry.web.js +2 -2
- package/package.json +1 -1
package/dist/entry.node.cjs
CHANGED
|
@@ -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 =
|
|
3831
|
-
const contentH =
|
|
3830
|
+
const contentW = asset.width ?? width;
|
|
3831
|
+
const contentH = asset.height ?? height;
|
|
3832
3832
|
let ops0;
|
|
3833
3833
|
try {
|
|
3834
3834
|
ops0 = await buildDrawOps({
|
package/dist/entry.node.js
CHANGED
|
@@ -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 =
|
|
3787
|
-
const contentH =
|
|
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 =
|
|
3536
|
-
const contentH =
|
|
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