Barcode Generation

This commit is contained in:
CAnetzberger
2022-02-21 15:01:43 +01:00
parent aa6c93f3f6
commit 79ec11e25c
224 changed files with 22474 additions and 95 deletions

27
node_modules/jsbarcode/bin/help/optionsFromStrings.js generated vendored Executable file
View File

@@ -0,0 +1,27 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = optionsFromStrings;
// Convert string to integers/booleans where it should be
function optionsFromStrings(options) {
var intOptions = ["width", "height", "textMargin", "fontSize", "margin", "marginTop", "marginBottom", "marginLeft", "marginRight"];
for (var intOption in intOptions) {
if (intOptions.hasOwnProperty(intOption)) {
intOption = intOptions[intOption];
if (typeof options[intOption] === "string") {
options[intOption] = parseInt(options[intOption], 10);
}
}
}
if (typeof options["displayValue"] === "string") {
options["displayValue"] = options["displayValue"] != "false";
}
return options;
}