File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " capture-template" ,
3
- "version" : " 1.0.6 " ,
3
+ "version" : " 1.0.7 " ,
4
4
"description" : " This library is responsible for expanding a template web page and then capturing it PNG or PDF." ,
5
5
"main" : " build/index.js" ,
6
6
"types" : " build/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -159,10 +159,10 @@ export class WebPageRenderer implements IWebPageRenderer {
159
159
return {
160
160
bodyWidth : body . scrollWidth ,
161
161
bodyHeight : body . scrollHeight ,
162
- x : rect . left ,
163
- y : rect . top ,
164
- height : rect . bottom - rect . top ,
165
- width : rect . right - rect . left ,
162
+ x : Math . ceil ( rect . left ) ,
163
+ y : Math . ceil ( rect . top ) ,
164
+ height : Math . ceil ( rect . bottom - rect . top ) ,
165
+ width : Math . ceil ( rect . right - rect . left ) ,
166
166
} ;
167
167
} ,
168
168
options . captureSelector || options . waitSelector ,
You can’t perform that action at this time.
0 commit comments