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/README.md CHANGED
@@ -201,6 +201,19 @@ const url = await instance.jsonToPDFDataURL(json, {
201
201
  });
202
202
  ```
203
203
 
204
+ ### `attrs.textOverflow`
205
+
206
+ Control behavior of text on its overflow. Default is `change-font-size`. It means it will automatically reduce font size to fit text into the box. Other options are:
207
+
208
+ - `resize` (change text element height to make text fit)
209
+ - `ellipsis` (add ellipsis to the end of the text)
210
+
211
+ ```js
212
+ const url = await instance.jsonToPDFDataURL(json, {
213
+ textOverflow: 'resize',
214
+ });
215
+ ```
216
+
204
217
  ### `instance.run()`
205
218
 
206
219
  Run any Polotno store API directly inside web-page context.