}
var margin = 0.5;
- this.bgcanvas_ctx_.lineWidth = this.getOption_('rangeSelectorBGLineWidth');
- ctx.strokeStyle = this.getOption_('rangeSelectorBGStrokeColor');
+ this.bgcanvas_ctx_.lineWidth = this.getOption_('rangeSelectorBackgroundLineWidth');
+ ctx.strokeStyle = this.getOption_('rangeSelectorBackgroundStrokeColor');
ctx.beginPath();
ctx.moveTo(margin, margin);
ctx.lineTo(margin, this.canvasRect_.h-margin);
*/
rangeSelector.prototype.drawMiniPlot_ = function() {
var fillStyle = this.getOption_('rangeSelectorPlotFillColor');
+ var fillGradientStyle = this.getOption_('rangeSelectorPlotFillGradientColor');
var strokeStyle = this.getOption_('rangeSelectorPlotStrokeColor');
if (!fillStyle && !strokeStyle) {
return;
}
- var gradientFillStyle = this.getOption_('rangeSelectorPlotGradientColor');
- if (!gradientFillStyle) { gradientFillStyle = fillStyle; }
var stepPlot = this.getOption_('stepPlot');
if (fillStyle) {
var lingrad = this.bgcanvas_ctx_.createLinearGradient(0, 0, 0, canvasHeight);
- lingrad.addColorStop(0, gradientFillStyle);
+ if (fillGradientStyle) {
+ lingrad.addColorStop(0, fillGradientStyle);
+ }
lingrad.addColorStop(1, fillStyle);
this.bgcanvas_ctx_.fillStyle = lingrad;
ctx.fill();
var height = this.canvasRect_.h - margin;
var zoomHandleStatus = this.getZoomHandleStatus_();
- ctx.strokeStyle = this.getOption_('rangeSelectorFGStrokeColor');
- ctx.lineWidth = this.getOption_('rangeSelectorFGLineWidth');
+ ctx.strokeStyle = this.getOption_('rangeSelectorForegroundStrokeColor');
+ ctx.lineWidth = this.getOption_('rangeSelectorForegroundLineWidth');
if (!zoomHandleStatus.isZoomed) {
ctx.beginPath();
ctx.moveTo(margin, margin);