@opengeoweb/metronome 14.1.0 → 14.2.1
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.
- package/index.esm.js +3 -2
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -89,14 +89,15 @@ var Metronome = /*#__PURE__*/function () {
|
|
|
89
89
|
var distanceToDelay = _this.tickId - nearestDelay;
|
|
90
90
|
if (Math.abs(distanceToDelay) < 0.5 || distanceToDelay === -0.5) {
|
|
91
91
|
if (!timer.isPaused) {
|
|
92
|
-
timer.timerFunc
|
|
92
|
+
timer.timerFunc == null || timer.timerFunc(timer.timerId, _this.tickId);
|
|
93
93
|
triggeredTimerIds.push(timer.timerId);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
97
|
// Trigger the handleTimerTicks function with all collected timerIds
|
|
98
98
|
if (triggeredTimerIds.length > 0) {
|
|
99
|
-
|
|
99
|
+
var _this$handleTimerTick;
|
|
100
|
+
(_this$handleTimerTick = this.handleTimerTicks) == null || _this$handleTimerTick.call(this, triggeredTimerIds);
|
|
100
101
|
}
|
|
101
102
|
}
|
|
102
103
|
/**
|