Debian Codegraph @

dojox/gauges/Range.js

raw symbols SCIP
1 define(["dojo/_base/declare","dijit/_Widget"],
2 function(declare, Widget) {
3
4 return declare("dojox.gauges.Range", [Widget], {
5 // summary:
6 // a range to be used in a _Gauge
7 // description:
8 // a range widget, which has given properties. drawn by a _Gauge.
9 // example:
10 // | <script type="text/javascript">
11 // | require(["dojox/gauges/AnalogGauge"]);
12 // | </script>
13 // | ...
14 // | <div dojoType="dojox.gauges.AnalogGauge"
15 // | id="testGauge"
16 // | width="300"
17 // | height="200"
18 // | cx=150
19 // | cy=175
20 // | radius=125
21 // | image="gaugeOverlay.png"
22 // | imageOverlay="false"
23 // | imageWidth="280"
24 // | imageHeight="155"
25 // | imageX="12"
26 // | imageY="38">
27 // | <div dojoType="dojox.gauges.Range"
28 // | low=5
29 // | high=10
30 // | hover="5 - 10"
31 // | ></div>
32 // | <div dojoType="dojox.gauges.Range"
33 // | low=10
34 // | high=20
35 // | hover="10 - 20"
36 // | ></div>
37 // | </div>
38
39 // low: Number
40 // the low value of the range
41 low: 0,
42
43 // high: Number
44 // the high value of the range
45 high: 0,
46
47 // hover: String
48 // the text to put in the tooltip for the gauge
49 hover: '',
50
51 // color: Object
52 // the color of the range. This must be an object of one of two forms:
53 // {'color': 'color-name'}
54 // OR
55 // (for a gradient:)
56 // {'type': 'linear', 'colors': [{offset: 0, color:'#C0C0C0'}, {offset: 1, color: '#E0E0E0'}] }
57 color: null,
58
59 // size: Number
60 // for a circular gauge (such as an AnalogGauge), this dictates the size of the arc
61 size: 0,
62
63 startup: function(){
64 this.color = this.color ? ( this.color.color || this.color) : 'black';
65 }
66 });
67 });