polotno-node 2.8.1 → 2.9.1

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/index.html CHANGED
@@ -8,7 +8,7 @@
8
8
  }
9
9
  </style>
10
10
  <meta name="viewport" content="width=device-width, initial-scale=1" />
11
- <script type="module" crossorigin src="./assets/index-1AcU7sVo.js"></script>
11
+ <script type="module" crossorigin src="./assets/index-oLGWJLYu.js"></script>
12
12
  </head>
13
13
  <body>
14
14
  <div id="root"></div>
package/instance.js CHANGED
@@ -124,6 +124,13 @@ module.exports.createInstance = async ({
124
124
  }
125
125
  });
126
126
  }
127
+ if (args[1]?.textOverflow) {
128
+ await page.evaluate((overflow) => {
129
+ if (window.config && window.config.unstable_setTextOverflow) {
130
+ window.config.unstable_setTextOverflow(overflow);
131
+ }
132
+ }, args[1].textOverflow);
133
+ }
127
134
  await page.evaluate(() => {
128
135
  if (window.config?.onLoadError) {
129
136
  window.config.onLoadError((error) => {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "polotno-node",
3
- "version": "2.8.1",
3
+ "version": "2.9.1",
4
4
  "description": "Polotno workflow from NodeJS",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "test": "ava",
7
+ "test": "ava --timeout=30s --concurrency 3",
8
8
  "build": "rm -rf ./dist && npx vite build ./client/ --base=./ --outDir ../dist",
9
9
  "dev": "vite ./client.html"
10
10
  },
@@ -27,7 +27,7 @@
27
27
  "gifencoder": "^2.0.1",
28
28
  "pixelmatch": "^5.3.0",
29
29
  "pngjs": "^7.0.0",
30
- "polotno": "^2.4.7",
30
+ "polotno": "^2.4.9",
31
31
  "react": "^18.2.0",
32
32
  "react-dom": "^18.2.0",
33
33
  "vite": "^5.0.12"