@syncfusion/ej2-maps
Version:
The Maps component is used to visualize the geographical data and represent the statistical data of a particular geographical area on earth with user interactivity, and provides various customizing options
37 lines (36 loc) • 1.71 kB
TypeScript
import { Maps } from '../../index';
import { ShapeSettingsModel, ColorMappingSettingsModel, ColorValue } from '../index';
/**
* ColorMapping class
*/
export declare class ColorMapping {
constructor(maps: Maps);
/**
* To get color based on shape settings.
*
* @param { ShapeSettingsModel } shapeSettings - Specifies the shape settings.
* @param { object } layerData - Specifies the layer data.
* @param { string } color - Specifies the color.
* @returns {object} - Returns the object.
* @private
*/
getShapeColorMapping(shapeSettings: ShapeSettingsModel, layerData: object, color: string): any;
/**
* To color by value and color mapping.
*
* @param {ColorMappingSettingsModel[]} colorMapping - Specifies the color mapping instance.
* @param {number} colorValue - Specifies the color value
* @param {string} equalValue - Specifies the equal value.
* @returns {any} - Returns the color mapping values.
* @private
*/
getColorByValue(colorMapping: ColorMappingSettingsModel[], colorValue: number, equalValue: string): any;
deSaturationColor(colorMapping: ColorMappingSettingsModel, color: string, rangeValue: number, equalValue: string): number;
rgbToHex(r: number, g: number, b: number): string;
componentToHex(value: number): string;
getColor(colorMap: ColorMappingSettingsModel, value: number): string;
getGradientColor(value: number, colorMap: ColorMappingSettingsModel): ColorValue;
getPercentageColor(percent: number, previous: string, next: string): ColorValue;
getPercentage(percent: number, previous: number, next: number): number;
_colorNameToHex(color: string): string;
}