ColorScale class for selecting a color from a given palette, or interpolating between adjacent colors in that palette.
Constructors
Section titled "Constructors"IgxCustomPaletteColorScaleComponent
new IgxCustomPaletteColorScaleComponent(): IgxCustomPaletteColorScaleComponent Returns IgxCustomPaletteColorScaleComponent
Properties
Section titled "Properties"ngAcceptInputType_interpolationMode
Section titled "ngAcceptInputType_interpolationMode"ngAcceptInputType_interpolationMode: string | ColorScaleInterpolationMode ngAcceptInputType_maximumValue
Section titled "ngAcceptInputType_maximumValue"ngAcceptInputType_maximumValue: string | number ngAcceptInputType_minimumValue
Section titled "ngAcceptInputType_minimumValue"ngAcceptInputType_minimumValue: string | number ngAcceptInputType_palette
Section titled "ngAcceptInputType_palette"ngAcceptInputType_palette: string | string[] ɵcmp: ɵɵComponentDeclaration<IgxCustomPaletteColorScaleComponent, "igx-custom-palette-color-scale", never, object, object, never, never, true, never> ɵfac: ɵɵFactoryDeclaration<IgxCustomPaletteColorScaleComponent, never> Accessors
Section titled "Accessors"interpolationMode
Section titled "interpolationMode"The approach to use when getting a color from the palette.
get interpolationMode(): ColorScaleInterpolationMode
Returns ColorScaleInterpolationMode
maximumValue
Section titled "maximumValue"The highest value to assign a color. Any given value greater than this value will be made Transparent.
get maximumValue(): number
Returns number
set maximumValue(v: number): void Parameters
- v:
number
Returns void
minimumValue
Section titled "minimumValue"The lowest value to assign a color. Any given value less than this value will be made Transparent.
get minimumValue(): number
Returns number
set minimumValue(v: number): void Parameters
- v:
number
Returns void
palette
Section titled "palette"A list of colors to select from or interpolate between.
get palette(): string[]
Returns string[]
set palette(v: string[]): void Parameters
- v:
string[]
Returns void
propertyUpdated
Section titled "propertyUpdated"Inherited from: IgxColorScaleComponent
Event raised when a property (including "effective" and non-dependency property) value changes.
get propertyUpdated(): EventEmitter<object>
Returns EventEmitter<object>
Methods
Section titled "Methods"findByName
Section titled "findByName"Inherited from: IgxColorScaleComponent
findByName(name: string): any Parameters
- name:
string
Returns any
ngOnInit
Section titled "ngOnInit"Inherited from: IgxColorScaleComponent
ngOnInit(): void Returns void
providePalette
Section titled "providePalette"providePalette(colors: string[]): void Parameters
- colors:
string[]
Returns void
_createFromInternal
Section titled "_createFromInternal"Inherited from: IgxColorScaleComponent
_createFromInternal(internal: any): IgxColorScaleComponent Parameters
- internal:
any
Returns IgxColorScaleComponent
register
Section titled "register"register(): void