screenshotone-api-sdk
Advanced tools
Comparing version 1.1.11 to 1.1.12
@@ -619,3 +619,7 @@ /** | ||
scrollBack(scrollBack: boolean): AnimateOptions; | ||
scrollBackAfterDuration(duration: number): AnimateOptions; | ||
scrollStartDelay(delay: number): AnimateOptions; | ||
scrollComplete(complete: boolean): AnimateOptions; | ||
scrollBy(pixels: number): AnimateOptions; | ||
toQuery(): URLSearchParams; | ||
} |
@@ -1095,2 +1095,18 @@ "use strict"; | ||
} | ||
scrollBackAfterDuration(duration) { | ||
this.put("scroll_back_after_duration", duration.toString()); | ||
return this; | ||
} | ||
scrollStartDelay(delay) { | ||
this.put("scroll_start_delay", delay.toString()); | ||
return this; | ||
} | ||
scrollComplete(complete) { | ||
this.put("scroll_complete", complete ? "true" : "false"); | ||
return this; | ||
} | ||
scrollBy(pixels) { | ||
this.put("scroll_by", pixels.toString()); | ||
return this; | ||
} | ||
toQuery() { | ||
@@ -1097,0 +1113,0 @@ return new URLSearchParams(this.query.toString()); |
{ | ||
"name": "screenshotone-api-sdk", | ||
"homepage": "https://screenshotone.com", | ||
"version": "1.1.11", | ||
"version": "1.1.12", | ||
"description": "Use ScreenshotOne.com API to generate screenshots of any website.", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -1380,3 +1380,2 @@ import Big from "big.js"; | ||
} | ||
scrollStartImmediately(startImmediately: boolean): AnimateOptions { | ||
@@ -1392,5 +1391,30 @@ this.put( | ||
this.put("scroll_back", scrollBack ? "true" : "false"); | ||
return this; | ||
} | ||
scrollBackAfterDuration(duration: number): AnimateOptions { | ||
this.put("scroll_back_after_duration", duration.toString()); | ||
return this; | ||
} | ||
scrollStartDelay(delay: number): AnimateOptions { | ||
this.put("scroll_start_delay", delay.toString()); | ||
return this; | ||
} | ||
scrollComplete(complete: boolean): AnimateOptions { | ||
this.put("scroll_complete", complete ? "true" : "false"); | ||
return this; | ||
} | ||
scrollBy(pixels: number): AnimateOptions { | ||
this.put("scroll_by", pixels.toString()); | ||
return this; | ||
} | ||
toQuery(): URLSearchParams { | ||
@@ -1397,0 +1421,0 @@ return new URLSearchParams(this.query.toString()); |
109897
3001