From 51996d352d31dddbdcee161fb088fac54428ed85 Mon Sep 17 00:00:00 2001 From: Ruslan Gadeev Date: Mon, 29 Sep 2025 19:27:12 +0300 Subject: [PATCH 1/3] Fix typo in image.class.ts documentation Changed "toBGR converts an Image from RGB color mode to RGB" to "toBGR converts an Image from RGB color mode to BGR" --- core/shared/lib/objects/image.class.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/shared/lib/objects/image.class.ts b/core/shared/lib/objects/image.class.ts index 467b5643..4de59a65 100644 --- a/core/shared/lib/objects/image.class.ts +++ b/core/shared/lib/objects/image.class.ts @@ -65,7 +65,7 @@ export class Image { } /** - * {@link toBGR} converts an {@link Image} from RGB color mode to RGB + * {@link toBGR} converts an {@link Image} from RGB color mode to BGR */ public async toBGR(): Promise { if (this.colorMode === ColorMode.BGR) { From 702051625db38b3fc0d5f3bbe4e68c88c9d9c05e Mon Sep 17 00:00:00 2001 From: Ruslan Gadeev Date: Wed, 1 Oct 2025 21:15:27 +0300 Subject: [PATCH 2/3] docs: fix typo in screen-test README --- examples/screen-test/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/screen-test/README.md b/examples/screen-test/README.md index 31e336f2..8bbb9092 100644 --- a/examples/screen-test/README.md +++ b/examples/screen-test/README.md @@ -52,7 +52,7 @@ Following this scheme loading of platform specific images would be possible with ## [`find`](https://nut-tree.github.io/apidoc/classes/screen.html#find) `find` takes a filename relative to the configured [resourceDirectory](#resourcedirectory) and tries to find a match on the main screen. -It is possible to override the the [configured matching confidence](#confidence) and search region providing [LocationParameters](https://nut-tree.github.io/apidoc/classes/locationparameters.html). +It is possible to override the [configured matching confidence](#confidence) and search region providing [LocationParameters](https://nut-tree.github.io/apidoc/classes/locationparameters.html). In case of a match, the corresponding [Region](https://nut-tree.github.io/apidoc/classes/region.html) on screen is returned. ```js From a6d7bffedde7c4c2dab3acaee28907f66be1389c Mon Sep 17 00:00:00 2001 From: Ruslan Gadeev Date: Wed, 1 Oct 2025 21:21:14 +0300 Subject: [PATCH 3/3] docs: fix typos in ScreenClass documentation --- core/nut.js/lib/screen.class.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/nut.js/lib/screen.class.ts b/core/nut.js/lib/screen.class.ts index 6b3c71d0..07828912 100644 --- a/core/nut.js/lib/screen.class.ts +++ b/core/nut.js/lib/screen.class.ts @@ -139,9 +139,9 @@ export class ScreenClass { } /** - * {@link width} returns the main screen width + * {@link width} returns the main screen width * This refers to the hardware resolution. - * Screens with higher pixel density (e.g. retina displays in MacBooks) might have a higher width in in actual pixels + * Screens with higher pixel density (e.g. retina displays in MacBooks) might have a higher width in actual pixels */ public width() { this.providerRegistry.getLogProvider().debug(`Fetching screen width`); @@ -149,9 +149,9 @@ export class ScreenClass { } /** - * {@link height} returns the main screen height + * {@link height} returns the main screen height * This refers to the hardware resolution. - * Screens with higher pixel density (e.g. retina displays in MacBooks) might have a higher height in in actual pixels + * Screens with higher pixel density (e.g. retina displays in MacBooks) might have a higher height in actual pixels */ public height() { this.providerRegistry.getLogProvider().debug(`Fetching screen height`);