@gooddata/react-components
Version:
GoodData.UI - A powerful JavaScript library for building analytical applications
36 lines (35 loc) • 1.68 kB
TypeScript
import { VisualizationObject, Localization } from "@gooddata/typings";
import IVisualizationObjectContent = VisualizationObject.IVisualizationObjectContent;
/**
* The function fills the titles of the measures that does not have it set.
*
* The derived measures
* have the title built from the current name of the master measure and suffix based on the derived measure type.
*
* The arithmetic measures
* have the title built from the current names of the referenced master measures and type of the arithmetic
* operation.
*
* @param {VisualizationObject.IVisualizationObjectContent} mdObject - metadata object that must be processed.
* @param {Localization.ILocale} locale - locale used for localization of the measure titles.
* @param {number} maxArithmeticMeasureTitleLength - maximum length of generated arithmetic measures titles.
* Longer names will be shortened. Default value is 50 characters.
*
* @returns {VisualizationObject.IVisualizationObjectContent}
*
* @internal
*/
export declare function fillMissingTitles(mdObject: IVisualizationObjectContent, locale: Localization.ILocale, maxArithmeticMeasureTitleLength?: number): IVisualizationObjectContent;
/**
* This function ignores the titles of simple measures.
*
* For simple measures, their titles are removed.
* For adhoc or non-simple measures, their titles are left intact.
*
* @param {VisualizationObject.IVisualizationObjectContent} mdObject - metadata object that must be processed.
*
* @returns {VisualizationObject.IVisualizationObjectContent}
*
* @internal
*/
export declare function ignoreTitlesForSimpleMeasures(mdObject: IVisualizationObjectContent): IVisualizationObjectContent;