Index: trunk/parsers/wikidom/lib/es/es.Position.js |
— | — | @@ -8,14 +8,17 @@ |
9 | 9 | * @param left {Integer} Horizontal position |
10 | 10 | * @param top {Integer} Vertical top position |
11 | 11 | * @param bottom {Integer} Vertical bottom position of bottom (optional, default: top) |
| 12 | + * @param line {Integer} Rendered line index (optional, default: undefined) |
12 | 13 | * @property left {Integer} Horizontal position |
13 | 14 | * @property top {Integer} Vertical top position |
14 | 15 | * @property bottom {Integer} Vertical bottom position of bottom |
| 16 | + * @property line {Integer} Rendered line index |
15 | 17 | */ |
16 | | -es.Position = function( left, top, bottom ) { |
| 18 | +es.Position = function( left, top, bottom, line ) { |
17 | 19 | this.left = left || 0; |
18 | 20 | this.top = top || 0; |
19 | 21 | this.bottom = bottom || this.top; |
| 22 | + this.line = line; |
20 | 23 | }; |
21 | 24 | |
22 | 25 | /* Static Methods */ |
Index: trunk/parsers/wikidom/lib/es/es.Flow.js |
— | — | @@ -125,7 +125,8 @@ |
126 | 126 | * left, top and bottom positions, which could be used to draw a cursor, highlighting, etc. |
127 | 127 | * |
128 | 128 | * @param offset {Integer} Offset within content |
129 | | - * @return {Object} Object containing left, top and bottom properties, each positions in pixels |
| 129 | + * @return {Object} Object containing left, top and bottom properties, each positions in pixels as |
| 130 | + * well as a line index |
130 | 131 | */ |
131 | 132 | es.Flow.prototype.getPosition = function( offset ) { |
132 | 133 | /* |