/*!
 * SAPUI5
 * (c) Copyright 2009-2026 SAP SE. All rights reserved.
 */

sap.ui.define(function() {
	"use strict";

	/**
	 * @class Provides methods set global formatter for VizFrame.
	 *
	 * @static
	 * @public
	 * @since 1.24.0
	 * @alias sap.viz.ui5.api.env.Format
	 */
	var Format = {};

	/**
	 * Customize the global numeric formatter. If you set a formatter, it will
	 * replace the existing formatter. This function will take effect globally.
	 *
	 *
	 * Example:
	 * <pre>
	 * var customerFormatter = {
	 *     format : function(value, pattern) {
	 *         // add your codes here to convert number value to formatted string
	 *         // according to the pattern string
	 *         return formattedString;
	 *     }
	 * };
	 * sap.viz.ui5.api.env.Format.numericFormatter(customerFormatter);
	 * </pre>
	 *
	 * @param {function}
	 *            formatter
	 * @returns {sap.viz.ui5.api.env.Format}
	 * @public
	 */
	Format.numericFormatter = function(formatter) {
		return sap.viz.api.env.Format.numericFormatter.apply(null, arguments);
	};



	return Format;

}, /* bExport= */ true);
