composition-plot

Home > composition-plot > ColorMapLegend

ColorMapLegend class

Concrete class that draws a legend bar for a colormap a continuous range

Signature:

export declare class ColorMapLegend extends BaseLegend 

Extends: BaseLegend

Constructors

Constructor Modifiers Description
(constructor)(container)   The ColorMapLegend constructor

Properties

Property Modifiers Type Description
digits   number  
inverted   boolean  
range   Vec2  

Methods

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