polotno-node 2.2.1 → 2.3.0

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.
Files changed (2) hide show
  1. package/instance.js +10 -0
  2. package/package.json +1 -1
package/instance.js CHANGED
@@ -104,6 +104,16 @@ module.exports.createInstance = async ({
104
104
  }
105
105
  });
106
106
  }
107
+ if (args[1]?.textVerticalResizeEnabled) {
108
+ await page.evaluate(() => {
109
+ if (
110
+ window.config &&
111
+ window.config.unstable_setTextVerticalResizeEnabled
112
+ ) {
113
+ window.config.unstable_setTextVerticalResizeEnabled(true);
114
+ }
115
+ });
116
+ }
107
117
  await page.evaluate(() => {
108
118
  if (window.config?.onLoadError) {
109
119
  window.config.onLoadError((error) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polotno-node",
3
- "version": "2.2.1",
3
+ "version": "2.3.0",
4
4
  "description": "Polotno workflow from NodeJS",
5
5
  "main": "index.js",
6
6
  "scripts": {