FormatConditionRangeGenerator Class

Declaration

export class FormatConditionRangeGenerator

Methods

calculateRangePercentValues(segmentCount) Method

Declaration

static calculateRangePercentValues(segmentCount: number): Array<number>

Parameters

Name Type Description
segmentCount number

Returns

Type Description
Array<number>

compareValues(val1, val2, changeType) Method

Declaration

static compareValues(val1: any, val2: any, changeType: boolean): number

Parameters

Name Type Description
val1 any
val2 any
changeType boolean

Returns

Type Description
number

generateGradientByStyles(condition, styles, segmentNumber) Method

Declaration

static generateGradientByStyles(condition: FormatConditionRangeGradient, styles: Array<StyleSettingsBase>, segmentNumber: number): void

Parameters

Name Type Description
condition FormatConditionRangeGradient
styles Array<StyleSettingsBase>
segmentNumber number

generateGradientByType(condition, type, segmentNumber) Method

Declaration

static generateGradientByType(condition: FormatConditionRangeGradient, type: FormatConditionRangeGradientPredefinedType, segmentNumber: number, isBar?: boolean): void

Parameters

Name Type Description
condition FormatConditionRangeGradient
type FormatConditionRangeGradientPredefinedType
segmentNumber number

Optional Parameters

Name Type Default Description
isBar boolean null

generateGradientColors(gradientType, count) Method

Declaration

static generateGradientColors(gradientType: FormatConditionRangeGradientPredefinedType, count: number): Array<Color>

Parameters

Name Type Description
gradientType FormatConditionRangeGradientPredefinedType
count number

Returns

Type Description
Array<Color>

generateRangeSet(condition, type) Method

Declaration

static generateRangeSet(condition: FormatConditionRangeSet, type: FormatConditionRangeSetPredefinedType): void

Parameters

Name Type Description
condition FormatConditionRangeSet
type FormatConditionRangeSetPredefinedType

getGradientPredefinedType(actualStyles, func) Method

Declaration

static getGradientPredefinedType(actualStyles: Array<StyleSettingsBase>, func: (type: FormatConditionRangeGradientPredefinedType) => FormatConditionRangeBase): FormatConditionRangeGradientPredefinedType

Parameters

Name Type Description
actualStyles Array<StyleSettingsBase>
func (type: FormatConditionRangeGradientPredefinedType) => FormatConditionRangeBase

Returns

Type Description
FormatConditionRangeGradientPredefinedType

getPredefinedType(actualStyles, func) Method

Declaration

static getPredefinedType(actualStyles: Array<StyleSettingsBase>, func: (type: FormatConditionRangeSetPredefinedType) => FormatConditionRangeBase): FormatConditionRangeSetPredefinedType

Parameters

Name Type Description
actualStyles Array<StyleSettingsBase>
func (type: FormatConditionRangeSetPredefinedType) => FormatConditionRangeBase

Returns

Type Description
FormatConditionRangeSetPredefinedType