| 1 |
define(["dojo/_base/declare","./AnalogIndicatorBase"], |
| 2 |
function(declare, AnalogIndicatorBase) { |
| 3 |
|
| 4 |
return declare("dojox.gauges.AnalogCircleIndicator", [AnalogIndicatorBase], { |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
_getShapes: function(group){ |
| 12 |
|
| 13 |
|
| 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 |
}); |