Color
Color-related routines.
Constructors
new Color()
new Color():
Color
Returns
Accessors
areaSelection
get
static
areaSelection():number
Returns
number
Source
areaZoom
get
static
areaZoom():number
Returns
number
Source
barChart
get
static
barChart():number
Returns
number
Source
black
get
static
black():number
Returns
number
Source
blue
get
static
blue():number
Returns
number
Source
categoricalPalette
get
static
categoricalPalette():number
[]
Returns the standard palette of the categorical colors used across all visualizations in Datagrok.
Returns
number
[]
Source
categoricalPalettes
get
static
categoricalPalettes():object
Returns the map of existing palettes used in Datagrok.
Returns
object
Source
colSelection
get
static
colSelection():number
Returns
number
Source
currentRow
get
static
currentRow():number
Returns
number
Source
cyan
get
static
cyan():number
Returns
number
Source
darkBlue
get
static
darkBlue():number
Returns
number
Source
darkGray
get
static
darkGray():number
Returns
number
Source
darkGreen
get
static
darkGreen():number
Returns
number
Source
darkOrange
get
static
darkOrange():number
Returns
number
Source
darkRed
get
static
darkRed():number
Returns
number
Source
failure
get
static
failure():number
Returns
number
Source
filteredOutRows
get
static
filteredOutRows():number
Returns
number
Source
filteredRows
get
static
filteredRows():number
Returns
number
Source
gray
get
static
gray():number
Returns
number
Source
green
get
static
green():number
Returns
number
Source
gridWarningBackground
get
static
gridWarningBackground():number
Returns
number
Source
histogramBar
get
static
histogramBar():number
Returns
number
Source
lightBlue
get
static
lightBlue():number
Returns
number
Source
lightGray
get
static
lightGray():number
Returns
number
Source
lightLightGray
get
static
lightLightGray():number
Returns
number
Source
maroon
get
static
maroon():number
Returns
number
Source
missingValueRows
get
static
missingValueRows():number
Returns
number
Source
mouseOverRows
get
static
mouseOverRows():number
Returns
number
Source
navy
get
static
navy():number
Returns
number
Source
olive
get
static
olive():number
Returns
number
Source
orange
get
static
orange():number
Returns
number
Source
purple
get
static
purple():number
Returns
number
Source
red
get
static
red():number
Returns
number
Source
rowSelection
get
static
rowSelection():number
Returns
number
Source
scatterPlotMarker
get
static
scatterPlotMarker():number
Returns
number
Source
scatterPlotSelection
get
static
scatterPlotSelection():number
Returns
number
Source
scatterPlotZoom
get
static
scatterPlotZoom():number
Returns
number
Source
selectedRows
get
static
selectedRows():number
Returns
number
Source
success
get
static
success():number
Returns
number
Source
white
get
static
white():number
Returns
number
Source
whitesmoke
get
static
whitesmoke():number
Returns
number
Source
yellow
get
static
yellow():number
Returns
number
Source
Methods
a()
static
a(c
):number
Returns the Alpha component of the color represented as ARGB-formatted integer.
Parameters
Parameter | Type |
---|---|
c | number |
Returns
number
Source
argb()
static
argb(a
,r
,g
,b
):number
Parameters
Parameter | Type |
---|---|
a | number |
r | number |
g | number |
b | number |
Returns
number
Source
b()
static
b(c
):number
Returns the Blue component of the color represented as ARGB-formatted integer.
Parameters
Parameter | Type |
---|---|
c | number |
Returns
number
Source
darken()
static
darken(color
,diff
):number
Parameters
Parameter | Type |
---|---|
color | number |
diff | number |
Returns
number
Source
fromHtml()
static
fromHtml(htmlColor
):number
Convert HTML-formatted string (such as #ffffff
) to ARGB-fromatted integer color
Parameters
Parameter | Type |
---|---|
htmlColor | string |
Returns
number
Source
g()
static
g(c
):number
Returns the Green component of the color represented as ARGB-formatted integer.
Parameters
Parameter | Type |
---|---|
c | number |
Returns
number
Source
getCategoricalColor()
static
getCategoricalColor(i
):number
Returns i-th categorical color (looping over the palette if needed)
Parameters
Parameter | Type |
---|---|
i | number |
Returns
number
Source
getCategoryColor()
static
getCategoryColor(column
,category
):number
Returns a color associated with the specified category within a column. Returns ARGB-formatted integer. To convert to html color, use toHtml.
Parameters
Parameter | Type |
---|---|
column | Column <any > |
category | any |
Returns
number
Source
getCellColor()
static
getCellColor(cell
):number
Returns a color associated with the specified cell as an ARGB-formatted integer. To convert to html color, use getCellColorHtml or toHtml.
Parameters
Parameter | Type |
---|---|
cell | Cell |
Returns
number
Source
getCellColorHtml()
static
getCellColorHtml(cell
):string
Returns a string representation of the color associated with the specified cell. For batch color manipulations, use getCellColor.
Parameters
Parameter | Type |
---|---|
cell | Cell |
Returns
string
Source
getContrastColor()
static
getContrastColor(color
):number
Returns either black or white color, depending on which one would be most contrast to the specified [color].
Parameters
Parameter | Type |
---|---|
color | number |
Returns
number
Source
getRowColor()
static
getRowColor(column
,row
):number
Parameters
Parameter | Type |
---|---|
column | Column <any > |
row | number |
Returns
number
Source
hexToPercentRgb()
static
hexToPercentRgb(hex
):null
|number
[]
For RDKit molecule substruct highlight
Parameters
Parameter | Type |
---|---|
hex | string |
Returns
null
| number
[]
Source
highlight()
static
highlight(color
):number
Parameters
Parameter | Type |
---|---|
color | number |
Returns
number
Source
r()
static
r(c
):number
Returns the Red component of the color represented as ARGB-formatted integer.
Parameters
Parameter | Type |
---|---|
c | number |
Returns
number
Source
scale()
static
scale(x
,min
,max
):number
Parameters
Parameter | Type |
---|---|
x | number |
min | number |
max | number |
Returns
number
Source
scaleColor()
static
scaleColor(x
,min
,max
,alpha
?,colorScheme
?):number
Parameters
Parameter | Type |
---|---|
x | number |
min | number |
max | number |
alpha ? | number |
colorScheme ? | number [] |
Returns
number
Source
setAlpha()
static
setAlpha(color
,alpha
):number
Returns the color with the specified alpha component (0-255).
Parameters
Parameter | Type |
---|---|
color | number |
alpha | number |
Returns
number
Source
toHtml()
static
toHtml(color
):string
Converts ARGB-formatted integer color to a HTML-formatted string (such as #ffffff
). See also toRgb.
Parameters
Parameter | Type |
---|---|
color | number |
Returns
string
Source
toRgb()
static
toRgb(color
):string
Converts ARGB-formatted integer color to a HTML-formatted string (such as rbg(20, 46, 124)
). See also toHtml.
Parameters
Parameter | Type |
---|---|
color | number |
Returns
string