| 1 | define(["dojo/_base/declare"], |
| 2 | function(declare){ |
| 3 | |
| 4 | return declare("dojox.color.api.ColorModel", null, { |
| 5 | // summary: |
| 6 | // API for classes that implement a color model that returns a color from a data value. |
| 7 | |
| 8 | constructor: function(){ |
| 9 | // summary: |
| 10 | // Constructor. |
| 11 | }, |
| 12 | |
| 13 | initialize: function(items, colorFunc){ |
| 14 | // summary: |
| 15 | // Optionally initialize the color model from a list of data items and using a function |
| 16 | // that returns the value used to compute the color for a given item. |
| 17 | // items: Object[] |
| 18 | // The data items. |
| 19 | // colorFunc: Function |
| 20 | // The function that returns the value used to compute the color for particular data item. |
| 21 | }, |
| 22 | |
| 23 | getColor: function(value){ |
| 24 | // summary: |
| 25 | // return the color for a given data value. |
| 26 | // value: Number |
| 27 | // The data value. |
| 28 | } |
| 29 | }); |
| 30 | }); |