screenshotone-api-sdk 1.0.24 → 1.0.25
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
|
@@ -42,6 +42,10 @@ export declare class TakeOptions {
|
|
|
42
42
|
* It determines the behavior of what to do when selector is not found.
|
|
43
43
|
*/
|
|
44
44
|
errorOnSelectorNotFound(errorOn: boolean): this;
|
|
45
|
+
/**
|
|
46
|
+
* Capture beyond the viewport.
|
|
47
|
+
*/
|
|
48
|
+
captureBeyondViewport(beyond: boolean): this;
|
|
45
49
|
/**
|
|
46
50
|
* When reduced_motion set to `true`,
|
|
47
51
|
* the API will request the site to minimize the amount of non-essential motion it uses.
|
package/dist/main.js
CHANGED
|
@@ -123,6 +123,13 @@ class TakeOptions {
|
|
|
123
123
|
this.put("error_on_selector_not_found", errorOn ? "true" : "false");
|
|
124
124
|
return this;
|
|
125
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* Capture beyond the viewport.
|
|
128
|
+
*/
|
|
129
|
+
captureBeyondViewport(beyond) {
|
|
130
|
+
this.put("capture_beyond_viewport", beyond ? "true" : "false");
|
|
131
|
+
return this;
|
|
132
|
+
}
|
|
126
133
|
/**
|
|
127
134
|
* When reduced_motion set to `true`,
|
|
128
135
|
* the API will request the site to minimize the amount of non-essential motion it uses.
|
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -121,6 +121,15 @@ export class TakeOptions {
|
|
|
121
121
|
return this;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
/**
|
|
125
|
+
* Capture beyond the viewport.
|
|
126
|
+
*/
|
|
127
|
+
captureBeyondViewport(beyond: boolean) {
|
|
128
|
+
this.put("capture_beyond_viewport", beyond ? "true" : "false");
|
|
129
|
+
|
|
130
|
+
return this;
|
|
131
|
+
}
|
|
132
|
+
|
|
124
133
|
/**
|
|
125
134
|
* When reduced_motion set to `true`,
|
|
126
135
|
* the API will request the site to minimize the amount of non-essential motion it uses.
|