screenshotone-api-sdk 1.1.16 → 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.
@@ -148,6 +148,14 @@ export declare class TakeOptions {
148
148
  * Max height.
149
149
  */
150
150
  fullPageMaxHeight(maxHeight: number): TakeOptions;
151
+ /**
152
+ * Sets the algorithm to use for full page screenshot—"by_sections" or ""/"default".
153
+ */
154
+ fullPageAlgorithm(algorithm: string): TakeOptions;
155
+ /**
156
+ * Set `true` to scroll the page to the bottom.
157
+ */
158
+ fullPageScroll(scroll: boolean): TakeOptions;
151
159
  /**
152
160
  * Sets response format, one of: "png", "jpeg", "webp", "jpg", "gif", "jp2", "tiff", "avif", "heif", "pdf", "html".
153
161
  */
package/dist/main.js CHANGED
@@ -301,6 +301,20 @@ class TakeOptions {
301
301
  this.put("full_page_max_height", maxHeight.toString());
302
302
  return this;
303
303
  }
304
+ /**
305
+ * Sets the algorithm to use for full page screenshot—"by_sections" or ""/"default".
306
+ */
307
+ fullPageAlgorithm(algorithm) {
308
+ this.put("full_page_algorithm", algorithm);
309
+ return this;
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
+ }
304
318
  /**
305
319
  * Sets response format, one of: "png", "jpeg", "webp", "jpg", "gif", "jp2", "tiff", "avif", "heif", "pdf", "html".
306
320
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "screenshotone-api-sdk",
3
3
  "homepage": "https://screenshotone.com",
4
- "version": "1.1.16",
4
+ "version": "1.1.18",
5
5
  "description": "Use ScreenshotOne.com API to generate screenshots of any website.",
6
6
  "repository": {
7
7
  "type": "git",
package/src/main.ts CHANGED
@@ -383,6 +383,25 @@ export class TakeOptions {
383
383
  return this;
384
384
  }
385
385
 
386
+ /**
387
+ * Sets the algorithm to use for full page screenshot—"by_sections" or ""/"default".
388
+ */
389
+ fullPageAlgorithm(algorithm: string): TakeOptions {
390
+ this.put("full_page_algorithm", algorithm);
391
+
392
+ return this;
393
+ }
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
+
386
405
  /**
387
406
  * Sets response format, one of: "png", "jpeg", "webp", "jpg", "gif", "jp2", "tiff", "avif", "heif", "pdf", "html".
388
407
  */