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
import Dimension from '../../Dimension';
import { SymbolShapeHint } from './constants';
/**
 * Symbol info table for DataMatrix.
 */
declare class SymbolInfo {
    private readonly rectangular;
    private readonly dataCapacity;
    private readonly errorCodewords;
    readonly matrixWidth: number;
    readonly matrixHeight: number;
    private readonly dataRegions;
    private readonly rsBlockData;
    private readonly rsBlockError;
    constructor(rectangular: boolean, dataCapacity: number, errorCodewords: number, matrixWidth: number, matrixHeight: number, dataRegions: number, rsBlockData?: number, rsBlockError?: number);
    static lookup(dataCodewords: number, shape?: SymbolShapeHint, minSize?: Dimension, maxSize?: Dimension, fail?: boolean): SymbolInfo;
    private getHorizontalDataRegions;
    private getVerticalDataRegions;
    getSymbolDataWidth(): number;
    getSymbolDataHeight(): number;
    getSymbolWidth(): number;
    getSymbolHeight(): number;
    getCodewordCount(): number;
    getInterleavedBlockCount(): number;
    getDataCapacity(): number;
    getErrorCodewords(): number;
    getDataLengthForInterleavedBlock(index: number): number;
    getErrorLengthForInterleavedBlock(index: number): number;
}
export default SymbolInfo;
export declare const PROD_SYMBOLS: SymbolInfo[];