import '../../../../../../../_virtual/_commonjsHelpers.mjs';
import { __exports as optionsFromStrings$1 } from '../../../../../../../_virtual/optionsFromStrings2.mjs';

"use strict";

Object.defineProperty(optionsFromStrings$1, "__esModule", {
	value: true
});
var _default = optionsFromStrings$1.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;
}

export { _default as default };
//# sourceMappingURL=optionsFromStrings.mjs.map
