tvcharts 0.9.22 → 0.9.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -517,7 +517,13 @@ var MarkLabelView = /** @class */function (_super) {
|
|
|
517
517
|
var _this = this;
|
|
518
518
|
var timerMap = this._timerMap;
|
|
519
519
|
var timer = setTimeout(function () {
|
|
520
|
-
|
|
520
|
+
if (item.countDown.nextTime) {
|
|
521
|
+
var current_time = Date.now() + (item.countDown.dataTimeDiff || 0) * 1000;
|
|
522
|
+
var countDown = Math.round(item.countDown.nextTime - current_time / 1000);
|
|
523
|
+
item.countDown.value = countDown;
|
|
524
|
+
} else {
|
|
525
|
+
item.countDown.value = item.countDown.value - 1;
|
|
526
|
+
}
|
|
521
527
|
var text = formatSeconds(item.countDown.value);
|
|
522
528
|
el.attr('style', {
|
|
523
529
|
text: text
|
package/package.json
CHANGED
package/types/dist/echarts.d.ts
CHANGED
package/types/dist/shared.d.ts
CHANGED