qr-secure-send 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.html +11 -11
- package/package.json +1 -1
package/index.html
CHANGED
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
button.secondary:hover { background: #30363d; }
|
|
74
74
|
|
|
75
75
|
#qr-output { text-align: center; margin-top: 1rem; }
|
|
76
|
-
#qr-output canvas { border-radius: 8px; max-width: 100%; }
|
|
76
|
+
#qr-output canvas { border-radius: 8px; max-width: 100%; image-rendering: pixelated; }
|
|
77
77
|
|
|
78
78
|
#scanner-region { width: 100%; border-radius: 8px; overflow: hidden; position: relative; }
|
|
79
79
|
#scanner-region video { width: 100%; border-radius: 8px; display: block; }
|
|
@@ -244,15 +244,15 @@
|
|
|
244
244
|
const VERSION_TABLE = [
|
|
245
245
|
null, // index 0 unused
|
|
246
246
|
[16,10,1,16,0,0],[28,16,1,28,0,0],[44,26,1,44,0,0],[64,18,2,32,0,0],
|
|
247
|
-
[86,24,2,43,0,0],[108,16,
|
|
248
|
-
[182,22,
|
|
249
|
-
[334,22,
|
|
250
|
-
[507,28,
|
|
251
|
-
[714,
|
|
252
|
-
[1000,
|
|
253
|
-
[1267,
|
|
254
|
-
[1631,28,
|
|
255
|
-
[1992,28,
|
|
247
|
+
[86,24,2,43,0,0],[108,16,4,27,0,0],[124,18,4,31,0,0],[154,22,2,38,2,39],
|
|
248
|
+
[182,22,3,36,2,37],[216,26,4,43,1,44],[254,30,1,50,4,51],[290,22,6,36,2,37],
|
|
249
|
+
[334,22,8,37,1,38],[365,24,4,40,5,41],[415,24,5,41,5,42],[453,28,7,45,3,46],
|
|
250
|
+
[507,28,10,46,1,47],[563,26,9,43,4,44],[627,26,3,44,11,45],[669,26,3,41,13,42],
|
|
251
|
+
[714,26,17,42,0,0],[782,28,17,46,0,0],[860,28,4,47,14,48],[914,28,6,45,14,46],
|
|
252
|
+
[1000,28,8,47,13,48],[1062,28,19,46,4,47],[1128,28,22,45,3,46],[1193,28,3,45,23,46],
|
|
253
|
+
[1267,28,21,45,7,46],[1373,28,19,47,10,48],[1455,28,2,46,29,47],[1541,28,10,46,23,47],
|
|
254
|
+
[1631,28,14,46,21,47],[1725,28,14,46,23,47],[1812,28,12,47,26,48],[1914,28,6,47,34,48],
|
|
255
|
+
[1992,28,29,46,14,47],[2102,28,13,46,32,47],[2216,28,40,47,7,48],[2334,28,18,47,31,48]
|
|
256
256
|
];
|
|
257
257
|
|
|
258
258
|
// Byte-mode capacity per version at EC level M
|
|
@@ -715,7 +715,7 @@
|
|
|
715
715
|
|
|
716
716
|
function toCanvas(container, text, options = {}) {
|
|
717
717
|
const { matrix, size } = encode(text);
|
|
718
|
-
const scale = Math.max(
|
|
718
|
+
const scale = Math.max(2, Math.floor((options.width || 320) / size));
|
|
719
719
|
const margin = (options.margin !== undefined ? options.margin : 2) * scale;
|
|
720
720
|
|
|
721
721
|
const canvas = document.createElement("canvas");
|