@bettergi/utils 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/dist/game.d.ts +0 -1
- package/dist/game.js +0 -1
- package/dist/ocr.d.ts +0 -2
- package/dist/ocr.js +0 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
本项目是一个为[Better Genshin Impact](https://github.com/babalae/better-genshin-impact) 设计的 JavaScript
|
|
1
|
+
本项目是一个为[Better Genshin Impact](https://github.com/babalae/better-genshin-impact) 设计的 JavaScript 开发工具集,旨在帮助开发者简化代码、不用重复造轮子。工具函数支持按需引入,轻量依赖。
|
|
2
2
|
|
|
3
3
|
## 安装
|
|
4
4
|
|
|
5
|
+
### 使用 npm
|
|
6
|
+
|
|
5
7
|
```shell
|
|
6
8
|
npm install @bettergi/utils
|
|
7
9
|
```
|
|
8
10
|
|
|
11
|
+
### 使用 pnpm
|
|
12
|
+
|
|
13
|
+
```shell
|
|
14
|
+
pnpm install @bettergi/utils
|
|
15
|
+
```
|
|
16
|
+
|
|
9
17
|
## 函数清单
|
|
10
18
|
|
|
11
19
|
### 游戏内操作
|
package/dist/game.d.ts
CHANGED
package/dist/game.js
CHANGED
package/dist/ocr.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import "@bettergi/types/csharp/BetterGenshinImpact/GameTask/Model/Area/ImageRegion";
|
|
2
|
-
import "@bettergi/types/csharp/BetterGenshinImpact/GameTask/Model/Area/Region";
|
|
3
1
|
type Direction = "north" | "north-east" | "east" | "south-east" | "south" | "south-west" | "west" | "north-west";
|
|
4
2
|
/**
|
|
5
3
|
* 在整个画面内搜索图片
|
package/dist/ocr.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import "@bettergi/types/csharp/BetterGenshinImpact/GameTask/Model/Area/ImageRegion";
|
|
2
|
-
import "@bettergi/types/csharp/BetterGenshinImpact/GameTask/Model/Area/Region";
|
|
3
1
|
import { waitUntil } from "./flow";
|
|
4
2
|
import { mouseScrollDownLines } from "./mouse";
|
|
5
3
|
const findFirst = (ir, ro, predicate) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bettergi/utils",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.9",
|
|
4
|
+
"description": "开发 BetterGI 脚本常用工具集",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Bread Grocery<https://github.com/breadgrocery>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"build": "tsc"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@bettergi/types": "^0.0.
|
|
36
|
+
"@bettergi/types": "^0.0.13",
|
|
37
37
|
"typescript": "5.6.3"
|
|
38
38
|
}
|
|
39
39
|
}
|