Debian Codegraph @

dojox/gauges/AnalogCircleIndicator.js

raw symbols SCIP
1 define(["dojo/_base/declare","./AnalogIndicatorBase"],
2 function(declare, AnalogIndicatorBase) {
3
4 return declare("dojox.gauges.AnalogCircleIndicator", [AnalogIndicatorBase], {
5 // summary:
6 // An indicator for the AnalogGauge that draws a circle. The center of the circle is positioned
7 // on the circular gauge according to the value of the indicator. The circle has for radius the
8 // length of the indicator. This indicator is mainly used to draw round ticks for the scale.
9
10
11 _getShapes: function(group){
12 // summary:
13 // Override of dojox.gauges.AnalogLineIndicator._getShapes
14 var color = this.color ? this.color : 'black';
15 var strokeColor = this.strokeColor ? this.strokeColor : color;
16 var stroke = {
17 color: strokeColor,
18 width: 1
19 };
20 if (this.color.type && !this.strokeColor){
21 stroke.color = this.color.colors[0].color;
22 }
23
24 return [group.createCircle({
25 cx: 0,
26 cy: -this.offset,
27 r: this.length
28 }).setFill(color).setStroke(stroke)];
29 }
30 });
31 });