| 55 | * index (int): the annotation to draw |
| 56 | */ |
| 57 | function drawOne(gd, index) { |
| 58 | var fullLayout = gd._fullLayout; |
| 59 | var options = fullLayout.annotations[index] || {}; |
| 60 | var xa = Axes.getFromId(gd, options.xref); |
| 61 | var ya = Axes.getFromId(gd, options.yref); |
| 62 | |
| 63 | if(xa) xa.setScale(); |
| 64 | if(ya) ya.setScale(); |
| 65 | |
| 66 | drawRaw(gd, options, index, false, xa, ya); |
| 67 | } |
| 68 | |
| 69 | // Convert pixels to the coordinates relevant for the axis referred to. For |
| 70 | // example, for paper it would convert to a value normalized by the dimension of |