polotno-node 2.9.7 → 2.9.8
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 +9 -1
- package/dist/assets/{index-30-BPj2-.js → index-DsJ35GHi.js} +106 -68
- package/dist/index.html +1 -1
- package/instance.js +31 -0
- package/package.json +2 -2
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
|
|
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`.
|