screenshotone-api-sdk 1.1.17 → 1.1.18
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 +10 -0
package/dist/@types/main.d.ts
CHANGED
|
@@ -152,6 +152,10 @@ export declare class TakeOptions {
|
|
|
152
152
|
* Sets the algorithm to use for full page screenshot—"by_sections" or ""/"default".
|
|
153
153
|
*/
|
|
154
154
|
fullPageAlgorithm(algorithm: string): TakeOptions;
|
|
155
|
+
/**
|
|
156
|
+
* Set `true` to scroll the page to the bottom.
|
|
157
|
+
*/
|
|
158
|
+
fullPageScroll(scroll: boolean): TakeOptions;
|
|
155
159
|
/**
|
|
156
160
|
* Sets response format, one of: "png", "jpeg", "webp", "jpg", "gif", "jp2", "tiff", "avif", "heif", "pdf", "html".
|
|
157
161
|
*/
|
package/dist/main.js
CHANGED
|
@@ -308,6 +308,13 @@ class TakeOptions {
|
|
|
308
308
|
this.put("full_page_algorithm", algorithm);
|
|
309
309
|
return this;
|
|
310
310
|
}
|
|
311
|
+
/**
|
|
312
|
+
* Set `true` to scroll the page to the bottom.
|
|
313
|
+
*/
|
|
314
|
+
fullPageScroll(scroll) {
|
|
315
|
+
this.put("full_page_scroll", scroll ? "true" : "false");
|
|
316
|
+
return this;
|
|
317
|
+
}
|
|
311
318
|
/**
|
|
312
319
|
* Sets response format, one of: "png", "jpeg", "webp", "jpg", "gif", "jp2", "tiff", "avif", "heif", "pdf", "html".
|
|
313
320
|
*/
|
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -392,6 +392,16 @@ export class TakeOptions {
|
|
|
392
392
|
return this;
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Set `true` to scroll the page to the bottom.
|
|
398
|
+
*/
|
|
399
|
+
fullPageScroll(scroll: boolean): TakeOptions {
|
|
400
|
+
this.put("full_page_scroll", scroll ? "true" : "false");
|
|
401
|
+
|
|
402
|
+
return this;
|
|
403
|
+
}
|
|
404
|
+
|
|
395
405
|
/**
|
|
396
406
|
* Sets response format, one of: "png", "jpeg", "webp", "jpg", "gif", "jp2", "tiff", "avif", "heif", "pdf", "html".
|
|
397
407
|
*/
|