| 1 |
define(["dojo/_base/declare","./AnalogIndicatorBase"], |
| 2 |
function(declare, AnalogIndicatorBase) { |
| 3 |
|
| 4 |
return declare("dojox.gauges.AnalogLineIndicator", [AnalogIndicatorBase], { |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
_getShapes: function( group){ |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
var direction = this.direction; |
| 15 |
var length = this.length; |
| 16 |
if (direction == 'inside') |
| 17 |
length = - length; |
| 18 |
|
| 19 |
return [group.createLine({x1: 0, y1: -this.offset, x2: 0, y2: -length-this.offset}) |
| 20 |
.setStroke({color: this.color, width: this.width})]; |
| 21 |
} |
| 22 |
|
| 23 |
}); |
| 24 |
|
| 25 |
}); |