@evercam/ui 0.0.52-beta.12 → 0.0.52-beta.14
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 +13 -10
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/ETimeline.vue.d.ts +2 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
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
|
-
if (this.initRefs(), !this.timeline) {
|
|
5315
|
-
|
|
5315
|
+
if (this.initRefs(), !this.timeline || this.timeline.offsetWidth === 0) {
|
|
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;
|
|
@@ -5831,7 +5834,7 @@ const qt = {
|
|
|
5831
5834
|
(c) => g.eventBarCap + (c.className ? ` ${c.className}` : "")
|
|
5832
5835
|
).attr("x", i).attr("y", d).attr("width", l).attr("height", 2).attr("stroke-width", 0).style("fill", (c) => c.color || r), f.on("mouseover", function(c, m) {
|
|
5833
5836
|
const C = u.select(this);
|
|
5834
|
-
o.onBarChartBarMouseOver(C,
|
|
5837
|
+
o.onBarChartBarMouseOver(C, r), o.handleBarMouseOver(c, m, s);
|
|
5835
5838
|
}).on("mouseout", function() {
|
|
5836
5839
|
const c = u.select(this);
|
|
5837
5840
|
o.onBarChartBarMouseOut(c, s), o.handleBarMouseOut();
|
|
@@ -5839,13 +5842,13 @@ const qt = {
|
|
|
5839
5842
|
t.selectAll(`.${g.eventBarContainerSelected}`).classed(g.eventBarContainerSelected, !1), u.select(this).classed(g.eventBarContainerSelected, !0);
|
|
5840
5843
|
});
|
|
5841
5844
|
},
|
|
5842
|
-
onBarChartBarMouseOver(e, t
|
|
5845
|
+
onBarChartBarMouseOver(e, t) {
|
|
5843
5846
|
e.classed(g.eventBarContainerHovered, !0), e.selectAll(`.${g.eventBarHoverZone}`).attr("fill-opacity", 0.2);
|
|
5844
|
-
const
|
|
5845
|
-
|
|
5847
|
+
const n = e.selectAll(`.${g.eventBar}`);
|
|
5848
|
+
n.attr("fill", t), n.attr("fill-opacity", 0.5);
|
|
5846
5849
|
},
|
|
5847
5850
|
onBarChartBarMouseOut(e, t) {
|
|
5848
|
-
e.classed(g.eventBarContainerHovered, !
|
|
5851
|
+
e.classed(g.eventBarContainerHovered, !1), e.selectAll(`.${g.eventBarHoverZone}`).attr("fill-opacity", 0);
|
|
5849
5852
|
const n = e.selectAll(`.${g.eventBar}`);
|
|
5850
5853
|
n.attr("fill", `url(#${Y.transparencyGradient}-${t})`), n.attr("fill-opacity", 1);
|
|
5851
5854
|
},
|