Skip to content

Commit 6056004

Browse files
yuyutaotaoquanru
authored andcommitted
feat(core): calculate dpr in agent
1 parent 275e0d1 commit 6056004

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/shared/src/types/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export interface Point {
77
}
88

99
export interface Size {
10-
width: number; // The image sent to AI model will be resized to this width. usually you should set it to the logical pixel size
11-
height: number; // The image sent to AI model will be resized to this height. usually you should set it to the logical pixel size
10+
width: number; // The image sent to AI model will be resized to this width, also the coordinates in the action space will be scaled to the range [0, width]. Usually you should set it to the logical pixel size
11+
height: number; // The image sent to AI model will be resized to this height, also the coordinates in the action space will be scaled to the range [0, height]. Usually you should set it to the logical pixel size
1212
dpr?: number; // this is deprecated, do NOT use it
1313
}
1414

0 commit comments

Comments
 (0)