We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e0c798 commit 6ec30d9Copy full SHA for 6ec30d9
2 files changed
api/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@gkd-kit/api",
3
- "version": "0.9.0",
+ "version": "0.9.1",
4
"description": "a typescript kit for gkd",
5
"type": "module",
6
"main": "./src/index.ts",
api/src/index.ts
@@ -829,7 +829,7 @@ export type Position = {
829
*
830
* 其中 random 是 0-1 的随机数, 需要注意 random 在单个表达式中是单个固定值, 即表达式 'random-random'=0
831
832
- * 其中 screenWidth/screenHeight 是实时屏幕宽高, 屏幕发生旋转时,screenWidth/screenHeight 的值会交换
+ * 其中 screenWidth/screenHeight 是实时屏幕宽高, 屏幕发生旋转时,screenWidth/screenHeight 也会变化
833
834
* @example
835
* 2.5 // ✅
@@ -856,6 +856,8 @@ export type Position = {
856
857
/**
858
* 距离屏幕左侧的距离
859
+ *
860
+ * 需要注意的是,如果是小窗或分屏模式下,使用 x/y 定位时,坐标是相对于整个屏幕的,因此可能会导致点击位置在应用窗口外部
861
*/
862
x?: string | number;
863
0 commit comments