@evercam/ui 0.0.42 → 0.0.44
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 +14 -15
- 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 -6
- package/dist/src/index.d.ts +2 -6
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5237,7 +5237,7 @@ const Wt = {
|
|
|
5237
5237
|
this.yScale.domain([0, t]);
|
|
5238
5238
|
},
|
|
5239
5239
|
initZoomBehavior() {
|
|
5240
|
-
this.disableZoom || (this.zoomBehavior = u.zoom().on("zoom", this.handleZoom).scaleExtent([
|
|
5240
|
+
this.disableZoom || (this.zoomBehavior = u.zoom().on("zoom", this.handleZoom).scaleExtent([1e-4, 85e4]), this.svg.call(this.zoomBehavior));
|
|
5241
5241
|
},
|
|
5242
5242
|
initSelectedTimestampCursor() {
|
|
5243
5243
|
this.svg.append("line").attr("class", O.selectedTimestampCursor).style("stroke", "red").style("stroke-width", "1px").style("opacity", 0).attr("x1", 0).attr("x2", 0).attr("y1", 0).attr("y2", this.timelineHeight), this.repositionSelectedTimestampCursor();
|
|
@@ -5331,7 +5331,12 @@ const Wt = {
|
|
|
5331
5331
|
});
|
|
5332
5332
|
},
|
|
5333
5333
|
handleLineMouseOver(e, t, r) {
|
|
5334
|
-
this.hoveredCounts =
|
|
5334
|
+
this.hoveredCounts = Object.entries(
|
|
5335
|
+
this.countsByTimestamp[`${t.timestamp}`]
|
|
5336
|
+
).reduce((i, a) => {
|
|
5337
|
+
const [o, n] = a;
|
|
5338
|
+
return [...i, { type: o, count: n }];
|
|
5339
|
+
}, []), this.hoveredEvent = t, this.isHoveringEvent = !0, this.$emit("event-mouseover", {
|
|
5335
5340
|
eventData: t,
|
|
5336
5341
|
eventType: r,
|
|
5337
5342
|
hoveredCounts: this.hoveredCounts
|
|
@@ -5468,7 +5473,6 @@ const Wt = {
|
|
|
5468
5473
|
}), this.drawTextLabel({
|
|
5469
5474
|
color: o,
|
|
5470
5475
|
label: c,
|
|
5471
|
-
type: r,
|
|
5472
5476
|
yPosition: l,
|
|
5473
5477
|
gElement: d
|
|
5474
5478
|
});
|
|
@@ -5492,13 +5496,10 @@ const Wt = {
|
|
|
5492
5496
|
}) {
|
|
5493
5497
|
e.forEach((a) => {
|
|
5494
5498
|
const o = `${a.timestamp}`;
|
|
5495
|
-
this.countsByTimestamp[o] =
|
|
5496
|
-
...this.countsByTimestamp[o] ||
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
type: i
|
|
5500
|
-
}
|
|
5501
|
-
];
|
|
5499
|
+
this.countsByTimestamp[o] = {
|
|
5500
|
+
...this.countsByTimestamp[o] || {},
|
|
5501
|
+
[i]: a.count
|
|
5502
|
+
};
|
|
5502
5503
|
const n = t.append("circle").classed(
|
|
5503
5504
|
`${O.lineGraphDot} ${O.lineGraphDot}-${i}`,
|
|
5504
5505
|
!0
|
|
@@ -5540,7 +5541,6 @@ const Wt = {
|
|
|
5540
5541
|
}), this.drawTextLabel({
|
|
5541
5542
|
color: i,
|
|
5542
5543
|
label: a,
|
|
5543
|
-
type: e,
|
|
5544
5544
|
gElement: d,
|
|
5545
5545
|
yPosition: s
|
|
5546
5546
|
});
|
|
@@ -5581,17 +5581,16 @@ const Wt = {
|
|
|
5581
5581
|
gElement: e,
|
|
5582
5582
|
yPosition: t,
|
|
5583
5583
|
color: r,
|
|
5584
|
-
label: i
|
|
5585
|
-
type: a
|
|
5584
|
+
label: i
|
|
5586
5585
|
}) {
|
|
5587
|
-
const
|
|
5586
|
+
const a = {
|
|
5588
5587
|
x: -5,
|
|
5589
5588
|
y: t,
|
|
5590
5589
|
w: this.labelRectWidth + 5,
|
|
5591
5590
|
h: this.barChartHeight,
|
|
5592
5591
|
radius: 3
|
|
5593
5592
|
};
|
|
5594
|
-
e.append("rect").attr("class", O.labelBg).attr("data-color", r).attr("x",
|
|
5593
|
+
e.append("rect").attr("class", O.labelBg).attr("data-color", r).attr("x", a.x).attr("y", a.y).attr("width", a.w).attr("height", a.h).attr("rx", a.radius).attr("ry", a.radius).style("fill", this.dark ? "#131a29" : "white"), e.append("rect").attr("class", O.labelBgFill).attr("data-color", r).attr("x", a.x).attr("y", a.y).attr("width", a.w).attr("height", a.h).attr("rx", a.radius).attr("ry", a.radius).style("fill", this.getLabelBackgroundColor(r)).style("stroke", this.getTextFillColor(r)).style("stroke-width", 0.25), e.append("text").attr("class", O.labelText).attr("data-color", r).attr("x", 5).attr("y", t + this.barChartHeight / 2).attr("dy", "0.35em").style("text-anchor", "start").style("font-size", "12px").style("font-weight", 500).style("stroke-linejoin", "round").style("paint-order", "stroke").style("fill", this.getTextFillColor(r)).text(i);
|
|
5595
5594
|
},
|
|
5596
5595
|
getTextFillColor(e) {
|
|
5597
5596
|
var t, r;
|