File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @gkd-kit/api" ,
3- "version" : " 0.9.0 " ,
3+ "version" : " 0.9.1 " ,
44 "description" : " a typescript kit for gkd" ,
55 "type" : " module" ,
66 "main" : " ./src/index.ts" ,
Original file line number Diff line number Diff line change @@ -829,7 +829,7 @@ export type Position = {
829829 *
830830 * 其中 random 是 0-1 的随机数, 需要注意 random 在单个表达式中是单个固定值, 即表达式 'random-random'=0
831831 *
832- * 其中 screenWidth/screenHeight 是实时屏幕宽高, 屏幕发生旋转时,screenWidth/screenHeight 的值会交换
832+ * 其中 screenWidth/screenHeight 是实时屏幕宽高, 屏幕发生旋转时,screenWidth/screenHeight 也会变化
833833 *
834834 * @example
835835 * 2.5 // ✅
@@ -856,6 +856,8 @@ export type Position = {
856856
857857 /**
858858 * 距离屏幕左侧的距离
859+ *
860+ * 需要注意的是,如果是小窗或分屏模式下,使用 x/y 定位时,坐标是相对于整个屏幕的,因此可能会导致点击位置在应用窗口外部
859861 */
860862 x ?: string | number ;
861863
You can’t perform that action at this time.
0 commit comments