screenshotone-api-sdk 1.1.8 → 1.1.9
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 +16 -0
- package/dist/main.js +28 -0
- package/package.json +1 -1
- package/src/main.ts +36 -0
package/dist/@types/main.d.ts
CHANGED
|
@@ -199,6 +199,22 @@ export declare class TakeOptions {
|
|
|
199
199
|
* Sets the height of the browser viewport (pixels).
|
|
200
200
|
*/
|
|
201
201
|
viewportHeight(viewportHeight: number): TakeOptions;
|
|
202
|
+
/**
|
|
203
|
+
* The clip_x option specifies only the top coordinate (x) of the area to clip.
|
|
204
|
+
*/
|
|
205
|
+
clipX(clipX: number): TakeOptions;
|
|
206
|
+
/**
|
|
207
|
+
* The clip_y option specifies only the top coordinate (y) of the area to clip.
|
|
208
|
+
*/
|
|
209
|
+
clipY(clipY: number): TakeOptions;
|
|
210
|
+
/**
|
|
211
|
+
* The clip_width option specifies only the width of the area to clip.
|
|
212
|
+
*/
|
|
213
|
+
clipWidth(clipWidth: number): TakeOptions;
|
|
214
|
+
/**
|
|
215
|
+
* The clip_height option specifies only the width of the area to clip.
|
|
216
|
+
*/
|
|
217
|
+
clipHeight(clipHeight: number): TakeOptions;
|
|
202
218
|
/**
|
|
203
219
|
* Sets the device scale factor. Acceptable value is one of: 1, 2 or 3.
|
|
204
220
|
*/
|
package/dist/main.js
CHANGED
|
@@ -376,6 +376,34 @@ class TakeOptions {
|
|
|
376
376
|
this.put("viewport_height", viewportHeight.toString());
|
|
377
377
|
return this;
|
|
378
378
|
}
|
|
379
|
+
/**
|
|
380
|
+
* The clip_x option specifies only the top coordinate (x) of the area to clip.
|
|
381
|
+
*/
|
|
382
|
+
clipX(clipX) {
|
|
383
|
+
this.put("clip_x", clipX.toString());
|
|
384
|
+
return this;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* The clip_y option specifies only the top coordinate (y) of the area to clip.
|
|
388
|
+
*/
|
|
389
|
+
clipY(clipY) {
|
|
390
|
+
this.put("clip_y", clipY.toString());
|
|
391
|
+
return this;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* The clip_width option specifies only the width of the area to clip.
|
|
395
|
+
*/
|
|
396
|
+
clipWidth(clipWidth) {
|
|
397
|
+
this.put("clip_width", clipWidth.toString());
|
|
398
|
+
return this;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* The clip_height option specifies only the width of the area to clip.
|
|
402
|
+
*/
|
|
403
|
+
clipHeight(clipHeight) {
|
|
404
|
+
this.put("clip_height", clipHeight.toString());
|
|
405
|
+
return this;
|
|
406
|
+
}
|
|
379
407
|
/**
|
|
380
408
|
* Sets the device scale factor. Acceptable value is one of: 1, 2 or 3.
|
|
381
409
|
*/
|
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -470,6 +470,42 @@ export class TakeOptions {
|
|
|
470
470
|
return this;
|
|
471
471
|
}
|
|
472
472
|
|
|
473
|
+
/**
|
|
474
|
+
* The clip_x option specifies only the top coordinate (x) of the area to clip.
|
|
475
|
+
*/
|
|
476
|
+
clipX(clipX: number): TakeOptions {
|
|
477
|
+
this.put("clip_x", clipX.toString());
|
|
478
|
+
|
|
479
|
+
return this;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* The clip_y option specifies only the top coordinate (y) of the area to clip.
|
|
484
|
+
*/
|
|
485
|
+
clipY(clipY: number): TakeOptions {
|
|
486
|
+
this.put("clip_y", clipY.toString());
|
|
487
|
+
|
|
488
|
+
return this;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* The clip_width option specifies only the width of the area to clip.
|
|
493
|
+
*/
|
|
494
|
+
clipWidth(clipWidth: number): TakeOptions {
|
|
495
|
+
this.put("clip_width", clipWidth.toString());
|
|
496
|
+
|
|
497
|
+
return this;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* The clip_height option specifies only the width of the area to clip.
|
|
502
|
+
*/
|
|
503
|
+
clipHeight(clipHeight: number): TakeOptions {
|
|
504
|
+
this.put("clip_height", clipHeight.toString());
|
|
505
|
+
|
|
506
|
+
return this;
|
|
507
|
+
}
|
|
508
|
+
|
|
473
509
|
/**
|
|
474
510
|
* Sets the device scale factor. Acceptable value is one of: 1, 2 or 3.
|
|
475
511
|
*/
|