screenshotone-api-sdk
Advanced tools
Comparing version 1.1.8 to 1.1.9
@@ -203,2 +203,18 @@ /** | ||
/** | ||
* The clip_x option specifies only the top coordinate (x) of the area to clip. | ||
*/ | ||
clipX(clipX: number): TakeOptions; | ||
/** | ||
* The clip_y option specifies only the top coordinate (y) of the area to clip. | ||
*/ | ||
clipY(clipY: number): TakeOptions; | ||
/** | ||
* The clip_width option specifies only the width of the area to clip. | ||
*/ | ||
clipWidth(clipWidth: number): TakeOptions; | ||
/** | ||
* The clip_height option specifies only the width of the area to clip. | ||
*/ | ||
clipHeight(clipHeight: number): TakeOptions; | ||
/** | ||
* Sets the device scale factor. Acceptable value is one of: 1, 2 or 3. | ||
@@ -205,0 +221,0 @@ */ |
@@ -380,2 +380,30 @@ "use strict"; | ||
/** | ||
* The clip_x option specifies only the top coordinate (x) of the area to clip. | ||
*/ | ||
clipX(clipX) { | ||
this.put("clip_x", clipX.toString()); | ||
return this; | ||
} | ||
/** | ||
* The clip_y option specifies only the top coordinate (y) of the area to clip. | ||
*/ | ||
clipY(clipY) { | ||
this.put("clip_y", clipY.toString()); | ||
return this; | ||
} | ||
/** | ||
* The clip_width option specifies only the width of the area to clip. | ||
*/ | ||
clipWidth(clipWidth) { | ||
this.put("clip_width", clipWidth.toString()); | ||
return this; | ||
} | ||
/** | ||
* The clip_height option specifies only the width of the area to clip. | ||
*/ | ||
clipHeight(clipHeight) { | ||
this.put("clip_height", clipHeight.toString()); | ||
return this; | ||
} | ||
/** | ||
* Sets the device scale factor. Acceptable value is one of: 1, 2 or 3. | ||
@@ -382,0 +410,0 @@ */ |
{ | ||
"name": "screenshotone-api-sdk", | ||
"homepage": "https://screenshotone.com", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"description": "Use ScreenshotOne.com API to generate screenshots of any website.", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -474,2 +474,38 @@ import Big from "big.js"; | ||
/** | ||
* The clip_x option specifies only the top coordinate (x) of the area to clip. | ||
*/ | ||
clipX(clipX: number): TakeOptions { | ||
this.put("clip_x", clipX.toString()); | ||
return this; | ||
} | ||
/** | ||
* The clip_y option specifies only the top coordinate (y) of the area to clip. | ||
*/ | ||
clipY(clipY: number): TakeOptions { | ||
this.put("clip_y", clipY.toString()); | ||
return this; | ||
} | ||
/** | ||
* The clip_width option specifies only the width of the area to clip. | ||
*/ | ||
clipWidth(clipWidth: number): TakeOptions { | ||
this.put("clip_width", clipWidth.toString()); | ||
return this; | ||
} | ||
/** | ||
* The clip_height option specifies only the width of the area to clip. | ||
*/ | ||
clipHeight(clipHeight: number): TakeOptions { | ||
this.put("clip_height", clipHeight.toString()); | ||
return this; | ||
} | ||
/** | ||
* Sets the device scale factor. Acceptable value is one of: 1, 2 or 3. | ||
@@ -476,0 +512,0 @@ */ |
107628
2944