@evercam/ui 0.0.52-beta.12 → 0.0.52-beta.13

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/dist/index.mjs CHANGED
@@ -5152,7 +5152,8 @@ const qt = {
5152
5152
  textPadding: 5,
5153
5153
  debouncedOnResize: () => {
5154
5154
  },
5155
- isFirstPaint: !0
5155
+ isFirstPaint: !0,
5156
+ timeouts: []
5156
5157
  };
5157
5158
  },
5158
5159
  computed: {
@@ -5307,15 +5308,17 @@ const qt = {
5307
5308
  this.initTimeline();
5308
5309
  },
5309
5310
  beforeDestroy() {
5310
- document.removeEventListener("mouseup", this.handleDocumentMouseUp);
5311
+ this.svg.remove(), document.removeEventListener("mouseup", this.handleDocumentMouseUp);
5311
5312
  },
5312
5313
  methods: {
5313
5314
  initTimeline(e, t) {
5314
5315
  if (this.initRefs(), !this.timeline) {
5315
- setTimeout(this.initTimeline, 500);
5316
+ this.timeouts.push(
5317
+ setTimeout(this.initTimeline, 500)
5318
+ );
5316
5319
  return;
5317
5320
  }
5318
- this.initSvg(), this.initDefs(), this.initUtcOffset(), this.initTimeScale(e, t), this.initXAxes(), this.initYScale(), this.initZoomBehavior(), this.drawEventsGroups(), this.initCurtains(), this.emitCurtainChange(), this.initSelectedTimestampCursor(), this.registerEventsListeners(), this.emitVisibleInterval(re.initial);
5321
+ this.initSvg(), this.initDefs(), this.initUtcOffset(), this.initTimeScale(e, t), this.initXAxes(), this.initYScale(), this.initZoomBehavior(), this.drawEventsGroups(), this.curtains && (this.initCurtains(), this.emitCurtainChange()), this.initSelectedTimestampCursor(), this.registerEventsListeners(), this.emitVisibleInterval(re.initial);
5319
5322
  },
5320
5323
  initRefs() {
5321
5324
  this.tooltip = this.$refs.tooltip, this.cursor = this.$refs.cursor, this.timeline = this.$refs.timelineContainer, this.selectedTimestampCursor = this.$refs.selectedTimestamp;