polotno-node 2.9.7 → 2.9.9

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
@@ -165,12 +165,20 @@ const url = await instance.jsonToDataURL(json, { pixelRatio: 0.2 });
165
165
 
166
166
  ### `attrs.assetLoadTimeout`
167
167
 
168
- You can add `assetLoadTimeout` attribute to `attrs` object. It will be used to set timeout for loading assets (images, fonts, etc). By default it is 30000ms.
168
+ You can add `assetLoadTimeout` attribute to `attrs` object. It will be used to set timeout for loading assets. By default it is 30000ms.
169
169
 
170
170
  ```js
171
171
  const url = await instance.jsonToPDFDataURL(json, { assetLoadTimeout: 60000 });
172
172
  ```
173
173
 
174
+ ### `attrs.assetFontTimeout`
175
+
176
+ Timeout for loading fonts. By default it is 6000ms.
177
+
178
+ ```js
179
+ const url = await instance.jsonToPDFDataURL(json, { assetFontTimeout: 10000 });
180
+ ```
181
+
174
182
  ### `attrs.htmlTextRenderEnabled`
175
183
 
176
184
  Enabled experimental HTML text rendering. By default it is `false`.