ui-kit-ck-consultant 0.5.304 → 0.5.306
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -4382,6 +4382,10 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4382
4382
|
var step = _this.props.step ? _this.props.step : 1;
|
4383
4383
|
var position = Math.round(positionX * 100 / width) - Math.round(positionX * 100 / width) % step;
|
4384
4384
|
|
4385
|
+
if (Math.round(positionX * 100 / width) % step > step / 2) {
|
4386
|
+
position += step;
|
4387
|
+
}
|
4388
|
+
|
4385
4389
|
if (position > 100) {
|
4386
4390
|
position = 100;
|
4387
4391
|
} else if (position < 0) {
|
@@ -4523,7 +4527,7 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4523
4527
|
fontWeight: 'bold',
|
4524
4528
|
transition: '0.3s'
|
4525
4529
|
}
|
4526
|
-
},
|
4530
|
+
}, this.state.position.toFixed(0), "%"), /*#__PURE__*/React__default.createElement("div", {
|
4527
4531
|
className: "cursor-pointer",
|
4528
4532
|
style: {
|
4529
4533
|
position: 'absolute',
|