polotno-node 2.9.29 → 2.9.31

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,7 +201,7 @@ const url = await instance.jsonToPDFDataURL(json, {
201
201
 
202
202
  ### `attrs.skipFontError`
203
203
 
204
- If `skipFontError` is true, it will not throw error font is not loaded or not defined. By default it is `false`.
204
+ If `skipFontError` is true, it will not throw error font is not loaded or not defined. By default it is `false`, so it will throw error.
205
205
 
206
206
  ```js
207
207
  const url = await instance.jsonToPDFDataURL(json, {
@@ -209,6 +209,16 @@ const url = await instance.jsonToPDFDataURL(json, {
209
209
  });
210
210
  ```
211
211
 
212
+ ### `attrs.skipImageError`
213
+
214
+ If `skipImageError` is true, it will not throw error an can't be loaded. By default it is `false`, so it will throw error.
215
+
216
+ ```js
217
+ const url = await instance.jsonToPDFDataURL(json, {
218
+ skipImageError: true,
219
+ });
220
+ ```
221
+
212
222
  ### `attrs.textOverflow`
213
223
 
214
224
  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: