Skip to content

Commit 8490a3f

Browse files
committed
Update README and docstrings
1 parent 1ffaef6 commit 8490a3f

File tree

6 files changed

+35
-17
lines changed

6 files changed

+35
-17
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@ jobs:
5454
strategy:
5555
matrix:
5656
os: [ ubuntu-latest, windows-latest, macos-latest ]
57-
node: [ 12, 14, 16 ]
58-
exclude:
59-
- os: ubuntu-latest
60-
node: 14
57+
node: [ 14 ]
6158
runs-on: ${{matrix.os}}
6259
steps:
6360
- name: Set up Git repository

.github/workflows/snapshot_release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [ ubuntu-latest, windows-latest, macos-latest ]
15-
node: [ 12, 14, 16 ]
15+
node: [ 14 ]
1616
runs-on: ${{matrix.os}}
1717
steps:
1818
- name: Set up Git repository

.github/workflows/tagged_release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [ ubuntu-latest, windows-latest, macos-latest ]
12-
node: [ 12, 14, 16 ]
12+
node: [ 14 ]
1313
runs-on: ${{matrix.os}}
1414
steps:
1515
- name: Set up Git repository

README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,28 @@
1414

1515
[![Downloads per month](https://img.shields.io/npm/dm/@nut-tree/nut-js)](https://www.npmjs.com/package/@nut-tree/nut-js)
1616

17-
<p align="center">
17+
<p style="text-align: center">
1818
Native UI testing / automation with node.js
1919
</p>
2020
<br/>
21-
<p align="center">
22-
<a target="_blank" href="https://github.com/justadudewhohacks/opencv4nodejs">
23-
<img src="https://img.shields.io/badge/Built_with-opencv4nodejs-C86414.svg?style=flat-square" alt="Built with opencv4nodejs" /></a>
24-
</p>
21+
22+
## Attention
23+
24+
nut.js is currently under heavy development towards a new major release!
25+
26+
Be prepared for awesome new features like
27+
28+
- slimmed down base installation
29+
- a plugin system
30+
- Apple Silicon compatibility
31+
32+
and of course
33+
34+
- lots of bugs fixed
2535

2636
# About
2737

28-
<p align="center">
38+
<p style="text-align: center">
2939
<img src="https://github.com/nut-tree/nut.js/raw/master/.gfx/nut.png" alt="logo" width="200"/>
3040
</p>
3141

lib/provider/image-finder.interface.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import { MatchRequest } from "../match-request.class";
22
import { MatchResult } from "../match-result.class";
33

44
/**
5-
* A Finder should provide an abstraction layer to perform
6-
* image processing and matching via a 3rd part library
5+
* An ImageFinder should provide an abstraction layer to perform image matching
76
*
87
* @interface ImageFinderInterface
98
*/
@@ -12,8 +11,8 @@ export interface ImageFinderInterface {
1211
* findMatch should provide an abstraction to search for an image needle
1312
* in another image haystack
1413
*
15-
* @param {MatchRequest} matchRequest A matchrequest containing needed matching data
16-
* @returns {Promise<MatchResult>} A matchresult containing the match probability and location
14+
* @param {MatchRequest} matchRequest A {@link MatchRequest} containing needed matching data
15+
* @returns {Promise<MatchResult>} A {@link MatchResult} holding the match probability and location
1716
* @memberof ImageFinderInterface
1817
*/
1918
findMatch(matchRequest: MatchRequest): Promise<MatchResult>;
@@ -23,7 +22,7 @@ export interface ImageFinderInterface {
2322
* in another image haystack
2423
*
2524
* @param {MatchRequest} matchRequest A matchrequest containing needed matching data
26-
* @returns {Promise<MatchResult[]>} A list of matchresults containing the match probability and location
25+
* @returns {Promise<MatchResult[]>} A list of {@link MatchResult}s holding the match probability and location
2726
* @memberof ImageFinderInterface
2827
*/
2928
findMatches(matchRequest: MatchRequest): Promise<MatchResult[]>;

lib/provider/image-processor.interface.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@ import {Point} from "../point.class";
22
import {RGBA} from "../rgba.class";
33
import {Image} from "../image.class";
44

5+
/**
6+
* An ImageProcessor should provide an abstraction layer to perform
7+
* image processing via a 3rd part library
8+
*
9+
* @interface ImageFinderInterface
10+
*/
511
export interface ImageProcessor {
12+
13+
/**
14+
* {@link colorAt} returns a pixels {@link RGBA} value
15+
* @param image The {@link Image} to query color information from
16+
* @param location The {@link Point} where to query color information
17+
*/
618
colorAt(image: Image | Promise<Image>, location: Point | Promise<Point>): Promise<RGBA>;
719
}

0 commit comments

Comments
 (0)