Houjie
2025-07-24 52a3ff1bce1417b39f6872d8e8cb378e9c2ccc6f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
 * Symbol Character Placement Program. Adapted from Annex M.1 in ISO/IEC 16022:2000(E).
 */
declare class DefaultPlacement {
    private readonly codewords;
    private readonly numcols;
    private readonly numrows;
    private bits;
    /**
     * Main constructor
     *
     * @param codewords the codewords to place
     * @param numcols   the number of columns
     * @param numrows   the number of rows
     */
    constructor(codewords: string, numcols: number, numrows: number);
    getNumrows(): number;
    getNumcols(): number;
    getBits(): Uint8Array;
    getBit(col: number, row: number): boolean;
    private setBit;
    private noBit;
    place(): void;
    private module;
    /**
     * Places the 8 bits of a utah-shaped symbol character in ECC200.
     *
     * @param row the row
     * @param col the column
     * @param pos character position
     */
    private utah;
    private corner1;
    private corner2;
    private corner3;
    private corner4;
}
export default DefaultPlacement;