screenshotone-api-sdk 1.0.35 → 1.0.36

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.
@@ -140,6 +140,10 @@ export declare class TakeOptions {
140
140
  * Renders the full page.
141
141
  */
142
142
  fullPage(fullPage: boolean): TakeOptions;
143
+ /**
144
+ * Max height.
145
+ */
146
+ fullPageMaxHeight(maxHeight: number): TakeOptions;
143
147
  /**
144
148
  * Sets response format, one of: "png", "jpeg", "webp" or "jpg".
145
149
  */
package/dist/main.js CHANGED
@@ -313,6 +313,13 @@ class TakeOptions {
313
313
  this.put("full_page", fullPage ? "true" : "false");
314
314
  return this;
315
315
  }
316
+ /**
317
+ * Max height.
318
+ */
319
+ fullPageMaxHeight(maxHeight) {
320
+ this.put("full_page_max_height", maxHeight.toString());
321
+ return this;
322
+ }
316
323
  /**
317
324
  * Sets response format, one of: "png", "jpeg", "webp" or "jpg".
318
325
  */
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.0.35",
4
+ "version": "1.0.36",
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
@@ -349,6 +349,16 @@ export class TakeOptions {
349
349
  return this;
350
350
  }
351
351
 
352
+ /**
353
+ * Max height.
354
+ */
355
+ fullPageMaxHeight(maxHeight: number): TakeOptions {
356
+ this.put("full_page_max_height", maxHeight.toString());
357
+
358
+ return this;
359
+ }
360
+
361
+
352
362
  /**
353
363
  * Sets response format, one of: "png", "jpeg", "webp" or "jpg".
354
364
  */