ms-types 0.0.38 → 0.0.39
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/package.json +1 -1
- package/types/image.d.ts +3 -11
package/package.json
CHANGED
package/types/image.d.ts
CHANGED
|
@@ -203,18 +203,10 @@ declare namespace image {
|
|
|
203
203
|
* @param method 方法
|
|
204
204
|
* @returns 图片数组
|
|
205
205
|
* @example
|
|
206
|
-
* const
|
|
207
|
-
* if (
|
|
208
|
-
*
|
|
209
|
-
* if (templateImageId) {
|
|
210
|
-
* const points = image.findImage(imageId, templateImageId, 0, 0, 100, 100, 0.8, 1, 0)
|
|
211
|
-
* if (points.length > 0) {
|
|
212
|
-
* logger.info("找到图片")
|
|
213
|
-
* }
|
|
214
|
-
* }
|
|
215
|
-
* image.release(templateImageId)
|
|
206
|
+
* const points = image.findImage("screen", "template.png", 0, 0, 100, 100, 0.8, 1, 5)
|
|
207
|
+
* if (points.length > 0) {
|
|
208
|
+
* logger.info("找到图片")
|
|
216
209
|
* }
|
|
217
|
-
* image.release(imageId)
|
|
218
210
|
*/
|
|
219
211
|
function findImage(
|
|
220
212
|
imageId: string,
|