shareneus 1.5.98 → 1.6.0
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.
|
@@ -320,7 +320,9 @@ function buildBarcodeStack(code) {
|
|
|
320
320
|
return [
|
|
321
321
|
{
|
|
322
322
|
svg,
|
|
323
|
-
width:
|
|
323
|
+
width: 92,
|
|
324
|
+
fontSize: 8,
|
|
325
|
+
alignment: 'center',
|
|
324
326
|
margin: [0, 0, 0, 0]
|
|
325
327
|
}
|
|
326
328
|
];
|
|
@@ -446,13 +448,13 @@ function textToSvgBarcode(text) {
|
|
|
446
448
|
const svgElement = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
447
449
|
(0, jsbarcode_1.default)(svgElement, text, {
|
|
448
450
|
format: "CODE128",
|
|
449
|
-
width:
|
|
450
|
-
height:
|
|
451
|
+
width: 1,
|
|
452
|
+
height: 18,
|
|
451
453
|
margin: 0,
|
|
452
454
|
marginTop: 0,
|
|
453
455
|
displayValue: true,
|
|
454
|
-
fontSize:
|
|
455
|
-
textMargin:
|
|
456
|
+
fontSize: 8,
|
|
457
|
+
textMargin: 1,
|
|
456
458
|
fontOptions: 'bold'
|
|
457
459
|
});
|
|
458
460
|
return svgElement.outerHTML;
|