UNPKG

red-agate-barcode

Version:

red-agate barcode tag library.

27 lines 1.49 kB
"use strict"; // Copyright (c) 2017, Shellyl_N and Authors // license: ISC // https://github.com/shellyln Object.defineProperty(exports, "__esModule", { value: true }); exports.alnumModeCharMap = exports.numberModeCharMap = exports.ecLevelMap = exports.QrDataChunkType = void 0; var QrDataChunkType; (function (QrDataChunkType) { QrDataChunkType[QrDataChunkType["Control"] = 0] = "Control"; QrDataChunkType[QrDataChunkType["Number"] = 1] = "Number"; QrDataChunkType[QrDataChunkType["Alnum"] = 2] = "Alnum"; QrDataChunkType[QrDataChunkType["Binary"] = 3] = "Binary"; })(QrDataChunkType = exports.QrDataChunkType || (exports.QrDataChunkType = {})); exports.ecLevelMap = new Map([ ["L", 1], ["M", 0], ["Q", 3], ["H", 2] ]); exports.numberModeCharMap = new Map([ ["0", 0], ["1", 1], ["2", 2], ["3", 3], ["4", 4], ["5", 5], ["6", 6], ["7", 7], ["8", 8], ["9", 9] ]); exports.alnumModeCharMap = new Map([ ["0", 0], ["1", 1], ["2", 2], ["3", 3], ["4", 4], ["5", 5], ["6", 6], ["7", 7], ["8", 8], ["9", 9], ["A", 10], ["B", 11], ["C", 12], ["D", 13], ["E", 14], ["F", 15], ["G", 16], ["H", 17], ["I", 18], ["J", 19], ["K", 20], ["L", 21], ["M", 22], ["N", 23], ["O", 24], ["P", 25], ["Q", 26], ["R", 27], ["S", 28], ["T", 29], ["U", 30], ["V", 31], ["W", 32], ["X", 33], ["Y", 34], ["Z", 35], [" ", 36], ["$", 37], ["%", 38], ["*", 39], ["+", 40], ["-", 41], [".", 42], ["/", 43], [",", 44] ]); //# sourceMappingURL=Qr.defs.js.map