Doc API updates...almost ready

This commit is contained in:
Garen Torikian 2012-04-17 11:02:08 -07:00
commit 23f74a3be3
4 changed files with 47 additions and 54 deletions

View file

@ -111,9 +111,7 @@ var Marker = function(parentEl) {
return (row - layerConfig.firstRowScreen) * layerConfig.lineHeight;
};
/**
* Draws a marker, which spans a range of text on multiple lines
*/
// Draws a marker, which spans a range of text on multiple lines
this.drawTextMarker = function(stringBuilder, range, clazz, layerConfig) {
// selection start
var row = range.start.row;
@ -137,9 +135,7 @@ var Marker = function(parentEl) {
}
};
/**
* Draws a multi line marker, where lines span the full width
*/
// Draws a multi line marker, where lines span the full width
this.drawMultiLineMarker = function(stringBuilder, range, clazz, layerConfig, type) {
var padding = type === "background" ? 0 : this.$padding;
var layerWidth = layerConfig.width + 2 * this.$padding - padding;
@ -186,9 +182,7 @@ var Marker = function(parentEl) {
);
};
/**
* Draws a marker which covers part or whole width of a single screen line
*/
// Draws a marker which covers part or whole width of a single screen line
this.drawSingleLineMarker = function(stringBuilder, range, clazz, layerConfig, extraLength, type) {
var padding = type === "background" ? 0 : this.$padding;
var height = layerConfig.lineHeight;