Home > composition-plot > ColorMapLegend
Concrete class that draws a legend bar for a colormap a continuous range
Signature:
export declare class ColorMapLegend extends BaseLegend
Extends: BaseLegend
Constructor | Modifiers | Description |
---|---|---|
(constructor)(container) | The ColorMapLegend constructor |
Property | Modifiers | Type | Description |
---|---|---|---|
digits | number | ||
inverted | boolean | ||
range | Vec2 |
Method | Modifiers | Description |
---|---|---|
draw() | Re-draw the graphical elements | |
setDigits(digits) | Set the number of decimal digits used in the tick labels | |
setInverted(inverted) | Set wheter the direction of the legend should be MAX -> MIN | |
setRange(range) | Set the numerical range |