FormatConditionRangeGenerator Class

Declaration

export class FormatConditionRangeGenerator

Methods

calculateRangePercentValues(segmentCount) Method

Declaration

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

Parameters

Name Type
segmentCount number

Returns

Type
Array<number>

compareValues(val1, val2, changeType) Method

Declaration

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

Parameters

Name Type
val1 any
val2 any
changeType boolean

Returns

Type
number

generateGradientByStyles(condition, styles, segmentNumber) Method

Declaration

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

Parameters

Name Type
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
condition FormatConditionRangeGradient
type FormatConditionRangeGradientPredefinedType
segmentNumber number
isBar boolean

generateGradientColors(gradientType, count) Method

Declaration

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

Parameters

Name Type
gradientType FormatConditionRangeGradientPredefinedType
count number

Returns

Type
Array<Color>

generateRangeSet(condition, type) Method

Declaration

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

Parameters

Name Type
condition FormatConditionRangeSet
type FormatConditionRangeSetPredefinedType

getGradientPredefinedType(actualStyles, func) Method

Declaration

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

Parameters

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

Returns

Type
FormatConditionRangeGradientPredefinedType

getPredefinedType(actualStyles, func) Method

Declaration

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

Parameters

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

Returns

Type
FormatConditionRangeSetPredefinedType