From 19c3072d135eb53b1ff198ab8771a164583bf8bf Mon Sep 17 00:00:00 2001 From: MultiMote <contact@mmote.ru> Date: Mon, 27 Jan 2025 11:38:40 +0300 Subject: [PATCH] Update docs --- src/utils.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index 283b36f..c5dd9aa 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -79,15 +79,19 @@ export class Utils { * * For `split` mode: * - * If data length is more than `printhead size / 8`, counts are [0, LL, HH] of total `non-zero` bit count - * - * Otherwise data splitted to the three chunks (last chunk sizes can be lesser, base chunk size is `printhead size / 8 / 3`) + * Data splitted to the three chunks (last chunk sizes can be lesser, base chunk size is `printhead size / 8 / 3`) * and `non-zero` bit count calculated from each chunk. * + * If data size is more than `printheadPixels / 8`, only `total` mode can be used. + * * For `total` mode: * * Return total number of pixel in little-endian format: `[0, LL, HH]` * + * For `auto` mode: + * + * By default `split` mode used. If it is not available, `total` mode used. + * **/ public static countPixelsForBitmapPacket( buf: Uint8Array,