|
|
@ -81213,19 +81213,23 @@ BI.IntervalSliderLabel = BI.inherit(BI.Widget, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_rePosBySizeAfterMove: function (size, isLeft) { |
|
|
|
_rePosBySizeAfterMove: function (size, isLeft) { |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
var percent = size * 100 / (this._getGrayTrackLength()); |
|
|
|
var percent = size * 100 / (this._getGrayTrackLength()); |
|
|
|
var significantPercent = BI.parseFloat(percent.toFixed(1)); |
|
|
|
var significantPercent = BI.parseFloat(percent.toFixed(1)); |
|
|
|
var v = this._getValueByPercent(significantPercent); |
|
|
|
var v = this._getValueByPercent(significantPercent); |
|
|
|
v = this._assertValue(v); |
|
|
|
v = this._assertValue(v); |
|
|
|
|
|
|
|
v = o.digit === false ? v : v.toFixed(o.digit); |
|
|
|
if(isLeft){ |
|
|
|
if(isLeft){ |
|
|
|
this._setLabelOnePosition(significantPercent); |
|
|
|
this._setLabelOnePosition(significantPercent); |
|
|
|
this._setSliderOnePosition(significantPercent); |
|
|
|
this._setSliderOnePosition(significantPercent); |
|
|
|
this.labelOne.setValue(v); |
|
|
|
this.labelOne.setValue(v); |
|
|
|
|
|
|
|
self.labelOne.setText(v + o.unit); |
|
|
|
this.valueOne = v; |
|
|
|
this.valueOne = v; |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
this._setLabelTwoPosition(significantPercent); |
|
|
|
this._setLabelTwoPosition(significantPercent); |
|
|
|
this._setSliderTwoPosition(significantPercent); |
|
|
|
this._setSliderTwoPosition(significantPercent); |
|
|
|
this.labelTwo.setValue(v); |
|
|
|
this.labelTwo.setValue(v); |
|
|
|
|
|
|
|
self.labelTwo.setText(v + o.unit); |
|
|
|
this.valueTwo = v; |
|
|
|
this.valueTwo = v; |
|
|
|
} |
|
|
|
} |
|
|
|
this._setBlueTrack(); |
|
|
|
this._setBlueTrack(); |
|
|
@ -81526,6 +81530,7 @@ BI.IntervalSliderLabel = BI.inherit(BI.Widget, { |
|
|
|
var valueOne = BI.parseFloat(v.min); |
|
|
|
var valueOne = BI.parseFloat(v.min); |
|
|
|
var valueTwo = BI.parseFloat(v.max); |
|
|
|
var valueTwo = BI.parseFloat(v.max); |
|
|
|
valueOne = o.digit === false ? valueOne : valueOne.toFixed(o.digit); |
|
|
|
valueOne = o.digit === false ? valueOne : valueOne.toFixed(o.digit); |
|
|
|
|
|
|
|
valueTwo = o.digit === false ? valueTwo : valueTwo.toFixed(o.digit); |
|
|
|
if (!isNaN(valueOne) && !isNaN(valueTwo)) { |
|
|
|
if (!isNaN(valueOne) && !isNaN(valueTwo)) { |
|
|
|
if (this._checkValidation(valueOne)) { |
|
|
|
if (this._checkValidation(valueOne)) { |
|
|
|
this.valueOne = valueOne; |
|
|
|
this.valueOne = valueOne; |
|
|
|