red-agate-barcode
Version:
red-agate barcode tag library.
69 lines • 1.86 kB
JavaScript
// Copyright (c) 2017, Shellyl_N and Authors
// license: ISC
// https://github.com/shellyln
export const charactersMap = new Map([
["0", { index: 0, pattern: "144" }],
["1", { index: 1, pattern: "114" }],
["2", { index: 2, pattern: "132" }],
["3", { index: 3, pattern: "312" }],
["4", { index: 4, pattern: "123" }],
["5", { index: 5, pattern: "141" }],
["6", { index: 6, pattern: "321" }],
["7", { index: 7, pattern: "213" }],
["8", { index: 8, pattern: "231" }],
["9", { index: 9, pattern: "411" }],
["-", { index: 10, pattern: "414" }],
["A", { index: 11, pattern: "324" }],
["B", { index: 12, pattern: "342" }],
["C", { index: 13, pattern: "234" }],
["D", { index: 14, pattern: "432" }],
["E", { index: 15, pattern: "243" }],
["F", { index: 16, pattern: "423" }],
["G", { index: 17, pattern: "441" }],
["H", { index: 18, pattern: "111" }],
["[", { index: 19, pattern: "13" }],
["]", { index: 38, pattern: "31" }] // stop
]);
export const reverseMap = new Map();
for (const e of charactersMap.entries())
reverseMap.set(e[1].index, e[0]);
export const fullAsciiMap = new Map([
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
]);
//# sourceMappingURL=JapanPostal.data.js.map