@checksub_team/peaks_timeline 1.5.10 → 1.5.11
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/package.json +1 -1
- package/peaks.js +0 -1
- package/src/line-indicator.js +2 -2
package/package.json
CHANGED
package/peaks.js
CHANGED
|
@@ -14450,7 +14450,6 @@ module.exports = function (Konva, Utils, SVGs) {
|
|
|
14450
14450
|
LineIndicator.prototype.removeIndicator = function (lineId, keepInList) {
|
|
14451
14451
|
if (this._indicators[lineId]) {
|
|
14452
14452
|
if (this._indicators[lineId].indicator) {
|
|
14453
|
-
console.log('remove', lineId);
|
|
14454
14453
|
this._indicators[lineId].indicator.destroy();
|
|
14455
14454
|
}
|
|
14456
14455
|
if (!keepInList) {
|
package/src/line-indicator.js
CHANGED
|
@@ -235,7 +235,6 @@ define([
|
|
|
235
235
|
LineIndicator.prototype.removeIndicator = function(lineId, keepInList) {
|
|
236
236
|
if (this._indicators[lineId]) {
|
|
237
237
|
if (this._indicators[lineId].indicator) {
|
|
238
|
-
console.log('remove', lineId);
|
|
239
238
|
this._indicators[lineId].indicator.destroy();
|
|
240
239
|
}
|
|
241
240
|
if (!keepInList) {
|
|
@@ -251,7 +250,8 @@ define([
|
|
|
251
250
|
if (this._indicators[lineId]) {
|
|
252
251
|
var y = this._indicators[lineId].line.getY();
|
|
253
252
|
|
|
254
|
-
if (y + this._indicators[lineId].line.lineHeight() + this._yPadding > 0
|
|
253
|
+
if (y + this._indicators[lineId].line.lineHeight() + this._yPadding > 0
|
|
254
|
+
&& y - this._yPadding < this._height) {
|
|
255
255
|
// The indicator is visible
|
|
256
256
|
if (!this._indicators[lineId].indicator) {
|
|
257
257
|
this._indicators[lineId].indicator = this._createIndicator(
|