screenshotone-api-sdk 1.1.20 → 1.1.21
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/@types/main.d.ts +4 -0
- package/dist/main.js +7 -0
- package/package.json +1 -1
- package/src/main.ts +9 -0
package/dist/@types/main.d.ts
CHANGED
|
@@ -156,6 +156,10 @@ export declare class TakeOptions {
|
|
|
156
156
|
* Set `true` to scroll the page to the bottom.
|
|
157
157
|
*/
|
|
158
158
|
fullPageScroll(scroll: boolean): TakeOptions;
|
|
159
|
+
/**
|
|
160
|
+
* Sets the delay between scroll steps.
|
|
161
|
+
*/
|
|
162
|
+
fullPageScrollDelay(delay: number): TakeOptions;
|
|
159
163
|
/**
|
|
160
164
|
* Sets response format, one of: "png", "jpeg", "webp", "jpg", "gif", "jp2", "tiff", "avif", "heif", "pdf", "html".
|
|
161
165
|
*/
|
package/dist/main.js
CHANGED
|
@@ -318,6 +318,13 @@ class TakeOptions {
|
|
|
318
318
|
this.put("full_page_scroll", scroll ? "true" : "false");
|
|
319
319
|
return this;
|
|
320
320
|
}
|
|
321
|
+
/**
|
|
322
|
+
* Sets the delay between scroll steps.
|
|
323
|
+
*/
|
|
324
|
+
fullPageScrollDelay(delay) {
|
|
325
|
+
this.put("full_page_scroll_delay", delay.toString());
|
|
326
|
+
return this;
|
|
327
|
+
}
|
|
321
328
|
/**
|
|
322
329
|
* Sets response format, one of: "png", "jpeg", "webp", "jpg", "gif", "jp2", "tiff", "avif", "heif", "pdf", "html".
|
|
323
330
|
*/
|
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -413,6 +413,15 @@ export class TakeOptions {
|
|
|
413
413
|
return this;
|
|
414
414
|
}
|
|
415
415
|
|
|
416
|
+
/**
|
|
417
|
+
* Sets the delay between scroll steps.
|
|
418
|
+
*/
|
|
419
|
+
fullPageScrollDelay(delay: number): TakeOptions {
|
|
420
|
+
this.put("full_page_scroll_delay", delay.toString());
|
|
421
|
+
|
|
422
|
+
return this;
|
|
423
|
+
}
|
|
424
|
+
|
|
416
425
|
/**
|
|
417
426
|
* Sets response format, one of: "png", "jpeg", "webp", "jpg", "gif", "jp2", "tiff", "avif", "heif", "pdf", "html".
|
|
418
427
|
*/
|