dist/vue-barcode.common.js
function JsBarcode(element, text, options) {
	var api = new API();

	if (typeof element === "undefined") {
		throw Error("No element to render on was provided.");
	}

	// Variables that will be pased through the API calls
	api._renderProperties = getRenderProperties(element);
	api._encodings = [];
	api._options = defaults$1;
	api._errorHandler = new ErrorHandler(api);

	// If text is set, use the simple syntax (render the barcode directly)
	if (typeof text !== "undefined") {
		options = options || {};

		if (!options.format) {
			options.format = autoSelectBarcode();
		}

		api.options(options)[options.format](text, options).render();
	}

	return api;
}
function JsBarcode(element, text, options) {
	var api = new API();

	if (typeof element === "undefined") {
		throw Error("No element to render on was provided.");
	}

	// Variables that will be pased through the API calls
	api._renderProperties = getRenderProperties(element);
	api._encodings = [];
	api._options = defaults$1;
	api._errorHandler = new ErrorHandler(api);

	// If text is set, use the simple syntax (render the barcode directly)
	if (typeof text !== "undefined") {
		options = options || {};

		if (!options.format) {
			options.format = autoSelectBarcode();
		}

		api.options(options)[options.format](text, options).render();
	}

	return api;
}
function JsBarcode ( element , text , options ) { var api = new API ( ) ; if ( typeof element === "undefined" ) { throw Error ( "No element to render on was provided." ) ; } // Variables that will be pased through the API calls api . _renderProperties = getRenderProperties ( element ) ; api . _encodings = [ ] ; api . _options = defaults$1 ; api . _errorHandler = new ErrorHandler ( api ) ; // If text is set, use the simple syntax (render the barcode directly) if ( typeof text !== "undefined" ) { options = options || { } ; if ( ! options . format ) { options . format = autoSelectBarcode ( ) ; } api . options ( options ) [ options . format ] ( text , options ) . render ( ) ; } return api ; }
The first call of the library API Will return an object with all barcodes calls and the data that is used by the renderers
The first call of the library API Will return an object with all barcodes calls and the data that is used by the renderers