constructor(settings: ISettings) {
this.validateSettings(settings);
this.settings = settings;
// default options
this.minValue = this.settings.min;
this.maxValue = this.settings.max;
this.isTwoRunners = this.settings.isTwoRunners;
this.isScaleVisible = this.settings.isScaleVisible;
this.isVertical = this.settings.isVertical;
this.isTooltipsVisible = this.settings.isTooltipsVisible;
this.valueFrom = this.getThumbValue(this.settings, 'from');
this.valueTo = this.getThumbValue(this.settings, 'to');
this.step = this.getStepInPercents(this.settings.step);
this.rangePercent = (this.settings.max - this.settings.min) / 100;
this.getStepInPercents = this.getStepInPercents.bind(this);
}