@uxbertlabs/reportly 1.0.11 → 1.0.12
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/features/screenshot.d.ts.map +1 -1
- package/dist/reportly.cjs.js +7 -1
- package/dist/reportly.cjs.js.map +1 -1
- package/dist/reportly.esm.js +7 -1
- package/dist/reportly.esm.js.map +1 -1
- package/dist/reportly.js +7 -1
- package/dist/reportly.js.map +1 -1
- package/dist/reportly.min.js +1 -1
- package/dist/reportly.min.js.map +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"screenshot.d.ts","sourceRoot":"","sources":["../../src/features/screenshot.ts"],"names":[],"mappings":"AAGA,cAAM,UAAU;IACd,OAAO,CAAC,iBAAiB,CAAgB;;IAKzC,OAAO,CAAC,IAAI;IAGN,OAAO,CAAC,IAAI,GAAE,UAAU,GAAG,UAAuB,GAAG,OAAO,CAAC,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"screenshot.d.ts","sourceRoot":"","sources":["../../src/features/screenshot.ts"],"names":[],"mappings":"AAGA,cAAM,UAAU;IACd,OAAO,CAAC,iBAAiB,CAAgB;;IAKzC,OAAO,CAAC,IAAI;IAGN,OAAO,CAAC,IAAI,GAAE,UAAU,GAAG,UAAuB,GAAG,OAAO,CAAC,MAAM,CAAC;IA8H1E,OAAO,CAAC,kBAAkB;IAS1B,OAAO,CAAC,kBAAkB;IAY1B,aAAa,IAAI,MAAM,GAAG,IAAI;IAI9B,KAAK,IAAI,IAAI;CAGd;AAED,eAAe,UAAU,CAAC"}
|
package/dist/reportly.cjs.js
CHANGED
@@ -9512,9 +9512,15 @@ class Screenshot {
|
|
9512
9512
|
logging: false,
|
9513
9513
|
width: fullPageWidth,
|
9514
9514
|
height: fullPageHeight,
|
9515
|
-
onclone: async () => {
|
9515
|
+
onclone: async (domDoc) => {
|
9516
9516
|
// Wait 1 second after cloning to let animations complete
|
9517
9517
|
await this.wait(1000);
|
9518
|
+
// scroll over the dome from top to bottom
|
9519
|
+
domDoc.defaultView?.scrollTo(0, 0);
|
9520
|
+
await this.wait(500);
|
9521
|
+
domDoc.defaultView?.scrollTo(0, fullPageHeight);
|
9522
|
+
await this.wait(500);
|
9523
|
+
domDoc.defaultView?.scrollTo(0, 0);
|
9518
9524
|
},
|
9519
9525
|
ignoreElements: (element) => {
|
9520
9526
|
// Skip cross-origin images that might cause issues
|