@evercam/ui 0.0.52-beta.1 → 0.0.52-beta.2

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
@@ -5775,7 +5775,10 @@ const qt = {
5775
5775
  type: a
5776
5776
  }) {
5777
5777
  const o = this;
5778
- t.selectAll(y.eventRect).data(e).enter().append("rect").classed(y.eventRect, !0).attr("x", this.getEventRectX).attr("y", r + this.barYPadding / 2).attr("ry", 1.5).attr("rx", 1.5).attr("width", this.getEventRectWidth).attr("height", this.barChartHeight - this.barYPadding).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").style("fill", (i) => i.color || n).on("mouseover", function(i, d) {
5778
+ t.selectAll(y.eventRect).data(e).enter().append("rect").attr(
5779
+ "class",
5780
+ (i) => y.eventRect + (i.className ? ` ${i.className}` : "")
5781
+ ).attr("x", this.getEventRectX).attr("y", r + this.barYPadding / 2).attr("ry", 1.5).attr("rx", 1.5).attr("width", this.getEventRectWidth).attr("height", this.barChartHeight - this.barYPadding).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").style("fill", (i) => i.color || n).on("mouseover", function(i, d) {
5779
5782
  u.select(this).classed(`${y.eventRect}--hovered`, !0), o.handleBarMouseOver(i, d, a);
5780
5783
  }).on("mouseout", function() {
5781
5784
  u.select(this).classed(`${y.eventRect}--hovered`, !1), o.handleBarMouseOut();
@@ -5791,16 +5794,19 @@ const qt = {
5791
5794
  type: n
5792
5795
  }) {
5793
5796
  const a = this, o = (s) => this.getEventRectX(s) + this.barXPadding, i = (s) => this.yScale(s.count), d = (s) => this.getEventRectWidth(s) - this.barXPadding * 2, l = (s) => this.yScale.range()[0] - this.yScale(s.count);
5794
- t.selectAll(y.eventBar).data(e).enter().append("rect").classed(y.eventBar, !0).attr("x", o).attr("y", i).attr("width", d).attr("height", l).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").attr(
5795
- "fill",
5796
- (s) => s.color || `url(#${Y.transparencyGradient}-${n})`
5797
- ).on("mouseover", function(s, c) {
5797
+ t.selectAll(y.eventBar).data(e).enter().append("rect").attr(
5798
+ "class",
5799
+ (s) => y.eventBar + (s.className ? ` ${s.className}` : "")
5800
+ ).attr("x", o).attr("y", i).attr("width", d).attr("height", l).attr("stroke-width", 5).attr("cursor", "pointer").attr("stroke", "#0000").attr("fill", `url(#${Y.transparencyGradient}-${n})`).on("mouseover", function(s, c) {
5798
5801
  const g = u.select(this);
5799
5802
  g.classed(`${y.eventBar}--hovered`, !0), g.attr("fill", s.color || r), g.attr("fill-opacity", 0.5), a.handleBarMouseOver(s, c, n);
5800
5803
  }).on("mouseout", function() {
5801
5804
  const s = u.select(this);
5802
5805
  s.attr("fill", `url(#${Y.transparencyGradient}-${n})`), s.attr("fill-opacity", 1), s.classed(`${y.eventBar}--hovered`, !1), a.handleBarMouseOut();
5803
- }), t.selectAll(y.eventBarCap).data(e).enter().append("rect").classed(y.eventBarCap, !0).attr("x", o).attr("y", i).attr("width", d).attr("height", 2).attr("stroke-width", 0).style("fill", (s) => s.color || r);
5806
+ }), t.selectAll(y.eventBarCap).data(e).enter().append("rect").attr(
5807
+ "class",
5808
+ (s) => y.eventBarCap + (s.className ? ` ${s.className}` : "")
5809
+ ).attr("x", o).attr("y", i).attr("width", d).attr("height", 2).attr("stroke-width", 0).style("fill", (s) => s.color || r);
5804
5810
  },
5805
5811
  drawTextLabel({
5806
5812
  gElement: e,