Skip to content

Commit 6ec30d9

Browse files
committed
fix: update version to 0.9.1 and improve comments in index.ts
1 parent 1e0c798 commit 6ec30d9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

api/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)