screenshotone-api-sdk 1.1.16 → 1.1.17
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 +4 -0
- package/dist/main.js +7 -0
- package/package.json +1 -1
- package/src/main.ts +9 -0
package/dist/@types/main.d.ts
CHANGED
|
@@ -148,6 +148,10 @@ 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;
|
|
151
155
|
/**
|
|
152
156
|
* Sets response format, one of: "png", "jpeg", "webp", "jpg", "gif", "jp2", "tiff", "avif", "heif", "pdf", "html".
|
|
153
157
|
*/
|
package/dist/main.js
CHANGED
|
@@ -301,6 +301,13 @@ 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
|
+
}
|
|
304
311
|
/**
|
|
305
312
|
* Sets response format, one of: "png", "jpeg", "webp", "jpg", "gif", "jp2", "tiff", "avif", "heif", "pdf", "html".
|
|
306
313
|
*/
|
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -383,6 +383,15 @@ 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
|
+
|
|
386
395
|
/**
|
|
387
396
|
* Sets response format, one of: "png", "jpeg", "webp", "jpg", "gif", "jp2", "tiff", "avif", "heif", "pdf", "html".
|
|
388
397
|
*/
|