dojox/dgauges/components/utils (version 1.10)

Method Summary

  • _setter(obj,attributes,values)
  • brightness(col,b) Adjusts the brightness of a color.
  • createGradient(entries) Creates a gradient object
  • genericCircularGauge(scale,indicator,originX,originY,radius,startAngle,endAngle,orientation,font,labelPosition,tickShapeFunc) A helper method for configuring a circular gauge.

Methods

_setter(obj,attributes,values)
Parameter Type Description
obj undefined
attributes undefined
values undefined
brightness(col,b)

Adjusts the brightness of a color.

Parameter Type Description
col Number

The base color

b Number

A positive or negative value to adjust the brightness

Returns:Number | null

The modified color

createGradient(entries)

Creates a gradient object

Parameter Type Description
entries Array

An array of numbers representing colors

Returns:Number | object

The modified color

genericCircularGauge(scale,indicator,originX,originY,radius,startAngle,endAngle,orientation,font,labelPosition,tickShapeFunc)

A helper method for configuring a circular gauge.

Parameter Type Description
scale CircularScale

A circular scale

indicator IndicatorBase

A circular indicator

originX Number

The x-coordinate of the center of the scale (in pixels)

originY Number

The y-coordinate of the center of the scale (in pixels)

radius Number

The radius of the scale (in pixels)

startAngle Number

The start angle of the scale (in degrees)

endAngle Number

The end angle of the scale (in degrees)

orientation String
Optional

The orientation of the scale, can be "clockwise" or "cclockwise"

font Object
Optional

The font used for the gauge

labelPosition String
Optional

The position of the labels regarding

tickShapeFunc Object
Optional

A drawing function for the ticks

Returns:Number

The modified color

Error in the documentation? Can’t find what you are looking for? Let us know!