cx 25.7.0 → 25.10.0

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/charts.js CHANGED
@@ -28,8 +28,8 @@ import {
28
28
  } from "cx/util";
29
29
  import { jsx, jsxs } from "react/jsx-runtime";
30
30
  import {
31
- tooltipMouseLeave,
32
31
  tooltipMouseMove,
32
+ tooltipMouseLeave,
33
33
  HtmlElement,
34
34
  tooltipParentWillUnmount,
35
35
  tooltipParentWillReceiveProps,
@@ -53,16 +53,16 @@ function _createForOfIteratorHelperLoose(r, e) {
53
53
  return function () {
54
54
  return o >= r.length
55
55
  ? {
56
- done: true,
57
- }
56
+ done: !0,
57
+ }
58
58
  : {
59
- done: false,
59
+ done: !1,
60
60
  value: r[o++],
61
- };
61
+ };
62
62
  };
63
63
  }
64
64
  throw new TypeError(
65
- "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
65
+ "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.",
66
66
  );
67
67
  }
68
68
  function _extends() {
@@ -75,7 +75,7 @@ function _extends() {
75
75
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
76
76
  }
77
77
  return n;
78
- }),
78
+ }),
79
79
  _extends.apply(null, arguments)
80
80
  );
81
81
  }
@@ -88,7 +88,7 @@ function _setPrototypeOf(t, e) {
88
88
  ? Object.setPrototypeOf.bind()
89
89
  : function (t, e) {
90
90
  return (t.__proto__ = e), t;
91
- }),
91
+ }),
92
92
  _setPrototypeOf(t, e)
93
93
  );
94
94
  }
@@ -101,8 +101,8 @@ function _unsupportedIterableToArray(r, a) {
101
101
  "Map" === t || "Set" === t
102
102
  ? Array.from(r)
103
103
  : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)
104
- ? _arrayLikeToArray(r, a)
105
- : void 0
104
+ ? _arrayLikeToArray(r, a)
105
+ : void 0
106
106
  );
107
107
  }
108
108
  }
@@ -214,7 +214,7 @@ var BoundedObject = /*#__PURE__*/ (function (_PureContainer) {
214
214
  margin: undefined,
215
215
  padding: undefined,
216
216
  },
217
- ].concat(Array.prototype.slice.call(arguments))
217
+ ].concat(Array.prototype.slice.call(arguments)),
218
218
  );
219
219
  };
220
220
  _proto.prepareData = function prepareData(context, instance) {
@@ -300,7 +300,7 @@ var Axis = /*#__PURE__*/ (function (_BoundedObject) {
300
300
  tickStyle: undefined,
301
301
  tickClass: undefined,
302
302
  },
303
- ].concat(Array.prototype.slice.call(arguments))
303
+ ].concat(Array.prototype.slice.call(arguments)),
304
304
  );
305
305
  };
306
306
  _proto.prepareData = function prepareData(context, instance) {
@@ -351,7 +351,7 @@ var Axis = /*#__PURE__*/ (function (_BoundedObject) {
351
351
  x2: x2,
352
352
  y2: y2,
353
353
  },
354
- "line"
354
+ "line",
355
355
  );
356
356
  }
357
357
  var t = [];
@@ -388,7 +388,7 @@ var Axis = /*#__PURE__*/ (function (_BoundedObject) {
388
388
  ? labelFormatter(formattedValue, v, {
389
389
  tickIndex: si,
390
390
  serieIndex: i,
391
- })
391
+ })
392
392
  : _this.wrapLines(formattedValue);
393
393
  res.push(
394
394
  /*#__PURE__*/ jsx(
@@ -402,8 +402,8 @@ var Axis = /*#__PURE__*/ (function (_BoundedObject) {
402
402
  transform: transform,
403
403
  children: _this.renderLabels(lines, x, _this.labelDy, _this.labelDx, offsetClass),
404
404
  },
405
- "label-" + si + "-" + i
406
- )
405
+ "label-" + si + "-" + i,
406
+ ),
407
407
  );
408
408
  });
409
409
  });
@@ -433,7 +433,7 @@ var Axis = /*#__PURE__*/ (function (_BoundedObject) {
433
433
  style: data.tickStyle,
434
434
  d: t.join(" "),
435
435
  },
436
- "ticks"
436
+ "ticks",
437
437
  );
438
438
  }
439
439
  return res;
@@ -477,24 +477,38 @@ var Axis = /*#__PURE__*/ (function (_BoundedObject) {
477
477
  dy: dy,
478
478
  children: "_",
479
479
  },
480
- -2
481
- )
480
+ -2,
481
+ ),
482
482
  );
483
483
  }
484
484
  lines.forEach(function (p, i) {
485
+ var data =
486
+ p.data != null
487
+ ? Object.entries(p.data).reduce(function (acc, _ref) {
488
+ var key = _ref[0],
489
+ val = _ref[1];
490
+ acc["data-" + key] = val;
491
+ return acc;
492
+ }, {})
493
+ : null;
485
494
  result.push(
486
495
  /*#__PURE__*/ jsx(
487
496
  "tspan",
488
- {
489
- dy: lines.length > 1 ? (i == 0 ? offset : _this2.labelLineHeight) + "em" : dy,
490
- x: x,
491
- style: p.style,
492
- className: p.className,
493
- dx: dx,
494
- children: p.text,
495
- },
496
- i
497
- )
497
+ _extends(
498
+ {
499
+ dy: lines.length > 1 ? (i == 0 ? offset : _this2.labelLineHeight) + "em" : dy,
500
+ x: x,
501
+ style: p.style,
502
+ className: p.className,
503
+ dx: dx,
504
+ },
505
+ data,
506
+ {
507
+ children: p.text,
508
+ },
509
+ ),
510
+ i,
511
+ ),
498
512
  );
499
513
  });
500
514
  return result;
@@ -502,9 +516,9 @@ var Axis = /*#__PURE__*/ (function (_BoundedObject) {
502
516
  _proto.prepare = function prepare(context, instance) {
503
517
  _BoundedObject.prototype.prepare.call(this, context, instance);
504
518
  var bounds = instance.data.bounds;
505
- var _ref = !this.vertical ? [bounds.l, bounds.r] : [bounds.b, bounds.t],
506
- a = _ref[0],
507
- b = _ref[1];
519
+ var _ref2 = !this.vertical ? [bounds.l, bounds.r] : [bounds.b, bounds.t],
520
+ a = _ref2[0],
521
+ b = _ref2[1];
508
522
  instance.calculator.measure(a, b);
509
523
  if (this.onMeasured) instance.invoke("onMeasured", instance.calculator.hash(), instance);
510
524
  if (!instance.calculator.isSame(instance.cached.axis)) instance.markShouldUpdate(context);
@@ -620,7 +634,7 @@ var PieChart = /*#__PURE__*/ (function (_BoundedObject) {
620
634
  clockwise: undefined,
621
635
  gap: undefined,
622
636
  },
623
- ])
637
+ ]),
624
638
  );
625
639
  };
626
640
  _proto.explore = function explore(context, instance) {
@@ -801,8 +815,8 @@ function createSvgArc(cx, cy, r0, r, startAngle, endAngle, br, gap) {
801
815
  largeArcFlag(endAngle - innerSmallArcAngle - startAngle - innerSmallArcAngle),
802
816
  1,
803
817
  innerArcXTo,
804
- innerArcYTo
805
- )
818
+ innerArcYTo,
819
+ ),
806
820
  );
807
821
  var innerSmallArc2XTo = cx + Math.cos(startAngle) * innerHipDiagonal + Math.cos(startAngle + Math.PI / 2) * gap2;
808
822
  var innerSmallArc2YTo = cy - Math.sin(startAngle) * innerHipDiagonal - Math.sin(startAngle + Math.PI / 2) * gap2;
@@ -839,9 +853,9 @@ function createSvgArc(cx, cy, r0, r, startAngle, endAngle, br, gap) {
839
853
  largeArcFlag(endAngle - outerSmallArcAngle - startAngle - outerSmallArcAngle),
840
854
  0,
841
855
  outerLargeArcXTo,
842
- outerLargeArcYTo
856
+ outerLargeArcYTo,
843
857
  ),
844
- arc(outerBr, outerBr, 0, 0, 0, outerSmallArc2XTo, outerSmallArc2YTo)
858
+ arc(outerBr, outerBr, 0, 0, 0, outerSmallArc2XTo, outerSmallArc2YTo),
845
859
  );
846
860
  } else {
847
861
  if (r0 > 0) {
@@ -912,7 +926,7 @@ var PieSlice = /*#__PURE__*/ (function (_Container) {
912
926
  br: undefined,
913
927
  legendDisplayText: undefined,
914
928
  },
915
- ])
929
+ ]),
916
930
  );
917
931
  };
918
932
  _proto3.prepareData = function prepareData(context, instance) {
@@ -1035,7 +1049,7 @@ var PieSlice = /*#__PURE__*/ (function (_Container) {
1035
1049
  segment.startAngle,
1036
1050
  segment.endAngle,
1037
1051
  data.br,
1038
- segment.gap
1052
+ segment.gap,
1039
1053
  );
1040
1054
  return /*#__PURE__*/ jsxs(
1041
1055
  "g",
@@ -1061,7 +1075,7 @@ var PieSlice = /*#__PURE__*/ (function (_Container) {
1061
1075
  _this3.renderChildren(context, instance),
1062
1076
  ],
1063
1077
  },
1064
- key
1078
+ key,
1065
1079
  );
1066
1080
  });
1067
1081
  };
@@ -1139,7 +1153,7 @@ var PieLabel = /*#__PURE__*/ (function (_BoundedObject) {
1139
1153
  },
1140
1154
  lineColorIndex: undefined,
1141
1155
  },
1142
- ])
1156
+ ]),
1143
1157
  );
1144
1158
  };
1145
1159
  _proto.calculateBounds = function calculateBounds(context, instance) {
@@ -1178,7 +1192,7 @@ var PieLabel = /*#__PURE__*/ (function (_BoundedObject) {
1178
1192
  className: this.CSS.element(
1179
1193
  this.baseClass,
1180
1194
  "line",
1181
- data.lineColorIndex != null && "color-" + data.lineColorIndex
1195
+ data.lineColorIndex != null && "color-" + data.lineColorIndex,
1182
1196
  ),
1183
1197
  x1: actualBounds.l < originalBounds.l ? actualBounds.r : actualBounds.l,
1184
1198
  y1: (actualBounds.t + actualBounds.b) / 2,
@@ -1193,7 +1207,7 @@ var PieLabel = /*#__PURE__*/ (function (_BoundedObject) {
1193
1207
  }),
1194
1208
  ],
1195
1209
  },
1196
- key
1210
+ key,
1197
1211
  );
1198
1212
  };
1199
1213
  return PieLabel;
@@ -1301,7 +1315,7 @@ var ColumnBarBase = /*#__PURE__*/ (function (_PureContainer) {
1301
1315
  borderRadius: undefined,
1302
1316
  hidden: undefined,
1303
1317
  },
1304
- ])
1318
+ ]),
1305
1319
  );
1306
1320
  };
1307
1321
  _proto.prepareData = function prepareData(context, instance) {
@@ -1409,7 +1423,7 @@ var ColumnBarBase = /*#__PURE__*/ (function (_PureContainer) {
1409
1423
  _this2.renderChildren(context, instance),
1410
1424
  ],
1411
1425
  },
1412
- key
1426
+ key,
1413
1427
  );
1414
1428
  });
1415
1429
  };
@@ -1458,7 +1472,7 @@ var Column = /*#__PURE__*/ (function (_ColumnBarBase) {
1458
1472
  size: undefined,
1459
1473
  autoSize: undefined,
1460
1474
  },
1461
- ])
1475
+ ]),
1462
1476
  );
1463
1477
  };
1464
1478
  _proto.checkValid = function checkValid(data) {
@@ -1542,7 +1556,7 @@ var Bar = /*#__PURE__*/ (function (_ColumnBarBase) {
1542
1556
  size: undefined,
1543
1557
  autoSize: undefined,
1544
1558
  },
1545
- ])
1559
+ ]),
1546
1560
  );
1547
1561
  };
1548
1562
  _proto.checkValid = function checkValid(data) {
@@ -1624,7 +1638,7 @@ function circle(cx, cy, size, props, options) {
1624
1638
  cx: cx,
1625
1639
  cy: cy,
1626
1640
  r: size / 2,
1627
- })
1641
+ }),
1628
1642
  );
1629
1643
  }
1630
1644
  registerShape("circle", circle);
@@ -1637,7 +1651,7 @@ function square(cx, cy, size, props, options) {
1637
1651
  y: cy - size / 2,
1638
1652
  width: size,
1639
1653
  height: size,
1640
- })
1654
+ }),
1641
1655
  );
1642
1656
  }
1643
1657
  registerShape("square", square);
@@ -1651,7 +1665,7 @@ function bar(cx, cy, size, props, options) {
1651
1665
  y: cy - size / 4,
1652
1666
  width: size,
1653
1667
  height: size / 2,
1654
- })
1668
+ }),
1655
1669
  );
1656
1670
  }
1657
1671
  registerShape("bar", bar);
@@ -1664,7 +1678,7 @@ function column(cx, cy, size, props, options) {
1664
1678
  y: cy - size / 2,
1665
1679
  width: size / 2,
1666
1680
  height: size,
1667
- })
1681
+ }),
1668
1682
  );
1669
1683
  }
1670
1684
  registerShape("column", column);
@@ -1677,7 +1691,7 @@ function line(cx, cy, size, props, options) {
1677
1691
  y1: cy,
1678
1692
  x2: cx + size / 2,
1679
1693
  y2: cy,
1680
- })
1694
+ }),
1681
1695
  );
1682
1696
  }
1683
1697
  registerShape("line", line);
@@ -1691,7 +1705,7 @@ function vline(cx, cy, size, props, options) {
1691
1705
  y1: cy - size / 2,
1692
1706
  x2: cx,
1693
1707
  y2: cy + size / 2,
1694
- })
1708
+ }),
1695
1709
  );
1696
1710
  }
1697
1711
  registerShape("vline", vline);
@@ -1708,7 +1722,7 @@ function triangle(cx, cy, size, props, options) {
1708
1722
  "path",
1709
1723
  _extends({}, props, {
1710
1724
  d: d,
1711
- })
1725
+ }),
1712
1726
  );
1713
1727
  }
1714
1728
  registerShape("triangle", triangle);
@@ -1740,7 +1754,7 @@ var Legend = /*#__PURE__*/ (function (_HtmlElement) {
1740
1754
  },
1741
1755
  showValues: undefined,
1742
1756
  },
1743
- ])
1757
+ ]),
1744
1758
  );
1745
1759
  };
1746
1760
  _proto.init = function init() {
@@ -1822,7 +1836,7 @@ var Legend = /*#__PURE__*/ (function (_HtmlElement) {
1822
1836
  disabled: e.disabled,
1823
1837
  selected: e.selected,
1824
1838
  }),
1825
- entryClass
1839
+ entryClass,
1826
1840
  ),
1827
1841
  style: entryStyle,
1828
1842
  onClick: e.onClick,
@@ -1842,7 +1856,7 @@ var Legend = /*#__PURE__*/ (function (_HtmlElement) {
1842
1856
  }),
1843
1857
  ],
1844
1858
  },
1845
- i
1859
+ i,
1846
1860
  );
1847
1861
  });
1848
1862
  });
@@ -1857,7 +1871,7 @@ var Legend = /*#__PURE__*/ (function (_HtmlElement) {
1857
1871
  ((_this$CSS$element = {}),
1858
1872
  (_this$CSS$element["color-" + entry.colorIndex] =
1859
1873
  entry.colorIndex != null && (isUndefined(entry.active) || entry.active)),
1860
- _this$CSS$element)
1874
+ _this$CSS$element),
1861
1875
  );
1862
1876
  var shape = getShape(legendEntriesShape || entry.shape || "square");
1863
1877
 
@@ -1942,7 +1956,7 @@ var LegendEntry = /*#__PURE__*/ (function (_Container) {
1942
1956
  ry: undefined,
1943
1957
  text: undefined,
1944
1958
  },
1945
- ])
1959
+ ]),
1946
1960
  );
1947
1961
  };
1948
1962
  _proto.prepareData = function prepareData(context, instance) {
@@ -1992,7 +2006,7 @@ var LegendEntry = /*#__PURE__*/ (function (_Container) {
1992
2006
  }),
1993
2007
  ],
1994
2008
  },
1995
- key
2009
+ key,
1996
2010
  );
1997
2011
  };
1998
2012
  _proto.renderShape = function renderShape(instance) {
@@ -2007,7 +2021,7 @@ var LegendEntry = /*#__PURE__*/ (function (_Container) {
2007
2021
  }),
2008
2022
  (_this$CSS$element["color-" + entry.colorIndex] =
2009
2023
  entry.colorIndex != null && (isUndefined(entry.active) || entry.active)),
2010
- _this$CSS$element)
2024
+ _this$CSS$element),
2011
2025
  );
2012
2026
  var shape = getShape(entry.shape || "square");
2013
2027
 
@@ -2030,7 +2044,7 @@ var LegendEntry = /*#__PURE__*/ (function (_Container) {
2030
2044
  ry: entry.ry,
2031
2045
  }),
2032
2046
  },
2033
- "svg"
2047
+ "svg",
2034
2048
  );
2035
2049
  };
2036
2050
  return LegendEntry;
@@ -2060,7 +2074,7 @@ var ColorMap = /*#__PURE__*/ (function (_Widget) {
2060
2074
  step: undefined,
2061
2075
  size: undefined,
2062
2076
  },
2063
- ])
2077
+ ]),
2064
2078
  );
2065
2079
  };
2066
2080
  _proto.explore = function explore(context, instance) {
@@ -2196,7 +2210,7 @@ var Marker = /*#__PURE__*/ (function (_BoundedObject) {
2196
2210
  rx: undefined,
2197
2211
  ry: undefined,
2198
2212
  },
2199
- ])
2213
+ ]),
2200
2214
  );
2201
2215
  };
2202
2216
  _proto.prepareData = function prepareData(context, instance) {
@@ -2302,7 +2316,7 @@ var Marker = /*#__PURE__*/ (function (_BoundedObject) {
2302
2316
  shouldUpdate: instance.shouldUpdate,
2303
2317
  children: this.renderChildren(context, instance),
2304
2318
  },
2305
- key
2319
+ key,
2306
2320
  );
2307
2321
  };
2308
2322
  _proto.handleMouseDown = function handleMouseDown(e, instance) {
@@ -2322,7 +2336,7 @@ var Marker = /*#__PURE__*/ (function (_BoundedObject) {
2322
2336
  svgEl: svgEl,
2323
2337
  el: e.target,
2324
2338
  },
2325
- e.target.style.cursor
2339
+ e.target.style.cursor,
2326
2340
  );
2327
2341
  } else {
2328
2342
  if (!this.selection.isDummy) this.selection.selectInstance(instance);
@@ -2404,7 +2418,7 @@ var MarkerComponent = /*#__PURE__*/ (function (_VDOM$Component) {
2404
2418
  ((_CSS$element = {}),
2405
2419
  (_CSS$element["color-" + data.colorIndex] = data.colorIndex != null),
2406
2420
  (_CSS$element.selected = data.selected),
2407
- _CSS$element)
2421
+ _CSS$element),
2408
2422
  ),
2409
2423
  style: data.style,
2410
2424
  cx: (bounds.l + bounds.r) / 2,
@@ -2484,7 +2498,7 @@ var MarkerLine = /*#__PURE__*/ (function (_BoundedObject) {
2484
2498
  name: undefined,
2485
2499
  legend: undefined,
2486
2500
  },
2487
- ])
2501
+ ]),
2488
2502
  );
2489
2503
  };
2490
2504
  _proto.explore = function explore(context, instance) {
@@ -2568,7 +2582,7 @@ var MarkerLine = /*#__PURE__*/ (function (_BoundedObject) {
2568
2582
  this.renderChildren(context, instance),
2569
2583
  ],
2570
2584
  },
2571
- key
2585
+ key,
2572
2586
  );
2573
2587
  };
2574
2588
  return MarkerLine;
@@ -2603,7 +2617,7 @@ var Range = /*#__PURE__*/ (function (_BoundedObject) {
2603
2617
  name: undefined,
2604
2618
  legend: undefined,
2605
2619
  },
2606
- ])
2620
+ ]),
2607
2621
  );
2608
2622
  };
2609
2623
  _proto.explore = function explore(context, instance) {
@@ -2692,7 +2706,7 @@ var Range = /*#__PURE__*/ (function (_BoundedObject) {
2692
2706
  this.renderChildren(context, instance),
2693
2707
  ],
2694
2708
  },
2695
- key
2709
+ key,
2696
2710
  );
2697
2711
  };
2698
2712
  _proto.handleClick = function handleClick(e, instance) {
@@ -2730,7 +2744,7 @@ var Range = /*#__PURE__*/ (function (_BoundedObject) {
2730
2744
  },
2731
2745
  null,
2732
2746
  captureData,
2733
- e.target.style.cursor
2747
+ e.target.style.cursor,
2734
2748
  );
2735
2749
  }
2736
2750
  };
@@ -2822,7 +2836,7 @@ var Gridlines = /*#__PURE__*/ (function (_BoundedObject) {
2822
2836
  d: path,
2823
2837
  }),
2824
2838
  },
2825
- key
2839
+ key,
2826
2840
  );
2827
2841
  };
2828
2842
  return Gridlines;
@@ -2859,7 +2873,7 @@ var Swimlanes = /*#__PURE__*/ (function (_BoundedObject) {
2859
2873
  structured: true,
2860
2874
  },
2861
2875
  },
2862
- ])
2876
+ ]),
2863
2877
  );
2864
2878
  };
2865
2879
  _proto.explore = function explore(context, instance) {
@@ -2920,8 +2934,8 @@ var Swimlanes = /*#__PURE__*/ (function (_BoundedObject) {
2920
2934
  className: rectClass,
2921
2935
  style: data.laneStyle,
2922
2936
  },
2923
- index++
2924
- )
2937
+ index++,
2938
+ ),
2925
2939
  );
2926
2940
  } else {
2927
2941
  rects.push(
@@ -2935,8 +2949,8 @@ var Swimlanes = /*#__PURE__*/ (function (_BoundedObject) {
2935
2949
  className: rectClass,
2936
2950
  style: data.laneStyle,
2937
2951
  },
2938
- index++
2939
- )
2952
+ index++,
2953
+ ),
2940
2954
  );
2941
2955
  }
2942
2956
  at += data.step;
@@ -2947,7 +2961,7 @@ var Swimlanes = /*#__PURE__*/ (function (_BoundedObject) {
2947
2961
  className: data.classNames,
2948
2962
  children: rects,
2949
2963
  },
2950
- key
2964
+ key,
2951
2965
  );
2952
2966
  };
2953
2967
  return Swimlanes;
@@ -2991,7 +3005,7 @@ var Swimlane = /*#__PURE__*/ (function (_BoundedObject) {
2991
3005
  x: undefined,
2992
3006
  y: undefined,
2993
3007
  },
2994
- ])
3008
+ ]),
2995
3009
  );
2996
3010
  };
2997
3011
  _proto.explore = function explore(context, instance) {
@@ -3083,13 +3097,13 @@ var Swimlane = /*#__PURE__*/ (function (_BoundedObject) {
3083
3097
  className: rectClass,
3084
3098
  style: data.laneStyle,
3085
3099
  },
3086
- key
3100
+ key,
3087
3101
  ),
3088
3102
  this.renderChildren(context, instance),
3089
3103
  ";",
3090
3104
  ],
3091
3105
  },
3092
- key
3106
+ key,
3093
3107
  );
3094
3108
  } else {
3095
3109
  var _c = axis.map.apply(axis, valueFunction(data.y, -data.size / 2 + data.laneOffset));
@@ -3109,13 +3123,13 @@ var Swimlane = /*#__PURE__*/ (function (_BoundedObject) {
3109
3123
  className: rectClass,
3110
3124
  style: data.laneStyle,
3111
3125
  },
3112
- key
3126
+ key,
3113
3127
  ),
3114
3128
  this.renderChildren(context, instance),
3115
3129
  ";",
3116
3130
  ],
3117
3131
  },
3118
- key
3132
+ key,
3119
3133
  );
3120
3134
  }
3121
3135
  };
@@ -3157,7 +3171,7 @@ var RangeMarker = /*#__PURE__*/ (function (_BoundedObject) {
3157
3171
  capSize: undefined,
3158
3172
  inflate: undefined,
3159
3173
  },
3160
- ])
3174
+ ]),
3161
3175
  );
3162
3176
  };
3163
3177
  _proto.init = function init() {
@@ -3279,7 +3293,7 @@ var RangeMarker = /*#__PURE__*/ (function (_BoundedObject) {
3279
3293
  this.renderChildren(context, instance),
3280
3294
  ],
3281
3295
  },
3282
- key
3296
+ key,
3283
3297
  );
3284
3298
  };
3285
3299
  return RangeMarker;
@@ -3333,7 +3347,7 @@ var LineGraph = /*#__PURE__*/ (function (_Widget) {
3333
3347
  smooth: undefined,
3334
3348
  smoothingRatio: undefined,
3335
3349
  },
3336
- ])
3350
+ ]),
3337
3351
  );
3338
3352
  };
3339
3353
  _proto.prepareData = function prepareData(context, instance) {
@@ -3465,8 +3479,8 @@ var LineGraph = /*#__PURE__*/ (function (_Widget) {
3465
3479
  i == 0
3466
3480
  ? "M " + p.x + " " + p.y
3467
3481
  : !data.smooth || span.length < 2
3468
- ? "L " + p.x + " " + p.y
3469
- : _this4.getCurvedPathSegment(p, span, i - 1, i - 2, i - 1, i + 1, r);
3482
+ ? "L " + p.x + " " + p.y
3483
+ : _this4.getCurvedPathSegment(p, span, i - 1, i - 2, i - 1, i + 1, r);
3470
3484
  });
3471
3485
  });
3472
3486
  line = /*#__PURE__*/ jsx("path", {
@@ -3519,7 +3533,7 @@ var LineGraph = /*#__PURE__*/ (function (_Widget) {
3519
3533
  className: data.classNames,
3520
3534
  children: [line, area],
3521
3535
  },
3522
- key
3536
+ key,
3523
3537
  );
3524
3538
  };
3525
3539
  _proto.getCurvedPathSegment = function getCurvedPathSegment(p, points, i1, i2, j1, j2, r, yField) {
@@ -3634,7 +3648,7 @@ var ColumnBarGraphBase = /*#__PURE__*/ (function (_Widget) {
3634
3648
  stack: undefined,
3635
3649
  borderRadius: undefined,
3636
3650
  },
3637
- ])
3651
+ ]),
3638
3652
  );
3639
3653
  };
3640
3654
  _proto.prepareData = function prepareData(context, instance) {
@@ -3688,7 +3702,7 @@ var ColumnBarGraphBase = /*#__PURE__*/ (function (_Widget) {
3688
3702
  className: data.classNames,
3689
3703
  children: data.active && this.renderGraph(context, instance),
3690
3704
  },
3691
- key
3705
+ key,
3692
3706
  );
3693
3707
  };
3694
3708
  _proto.handleClick = function handleClick(e, instance, point, index) {
@@ -3824,7 +3838,7 @@ var ColumnGraph = /*#__PURE__*/ (function (_ColumnBarGraphBase) {
3824
3838
  onMouseLeave: mleave,
3825
3839
  rx: data.borderRadius,
3826
3840
  },
3827
- i
3841
+ i,
3828
3842
  );
3829
3843
  });
3830
3844
  };
@@ -3935,7 +3949,7 @@ var BarGraph = /*#__PURE__*/ (function (_ColumnBarGraphBase) {
3935
3949
  onMouseLeave: mleave,
3936
3950
  rx: data.borderRadius,
3937
3951
  },
3938
- i
3952
+ i,
3939
3953
  );
3940
3954
  });
3941
3955
  };
@@ -3978,7 +3992,7 @@ var ScatterGraph = /*#__PURE__*/ (function (_Widget) {
3978
3992
  active: true,
3979
3993
  },
3980
3994
  selection,
3981
- ])
3995
+ ]),
3982
3996
  );
3983
3997
  };
3984
3998
  _proto.prepareData = function prepareData(context, instance) {
@@ -4045,7 +4059,7 @@ var ScatterGraph = /*#__PURE__*/ (function (_Widget) {
4045
4059
  className: data.classNames,
4046
4060
  children: this.renderData(context, instance),
4047
4061
  },
4048
- key
4062
+ key,
4049
4063
  );
4050
4064
  };
4051
4065
  _proto.renderData = function renderData(context, instance) {
@@ -4069,7 +4083,7 @@ var ScatterGraph = /*#__PURE__*/ (function (_Widget) {
4069
4083
  selectable: !_this3.selection.isDummy,
4070
4084
  }),
4071
4085
  (_CSS$element["color-" + data.colorIndex] = data.colorIndex != null),
4072
- _CSS$element)
4086
+ _CSS$element),
4073
4087
  );
4074
4088
  var cx = xAxis.map(p[_this3.xField]),
4075
4089
  cy = yAxis.map(p[_this3.yField]),
@@ -4128,7 +4142,7 @@ var BubbleGraph = /*#__PURE__*/ (function (_Widget) {
4128
4142
  },
4129
4143
  },
4130
4144
  selection,
4131
- ])
4145
+ ]),
4132
4146
  );
4133
4147
  };
4134
4148
  _proto.init = function init() {
@@ -4162,7 +4176,7 @@ var BubbleGraph = /*#__PURE__*/ (function (_Widget) {
4162
4176
  className: data.classNames,
4163
4177
  children: this.renderData(context, instance),
4164
4178
  },
4165
- key
4179
+ key,
4166
4180
  );
4167
4181
  };
4168
4182
  _proto.renderData = function renderData(context, instance) {
@@ -4191,7 +4205,7 @@ var BubbleGraph = /*#__PURE__*/ (function (_Widget) {
4191
4205
  _this2.onBubbleClick(e, instance, i);
4192
4206
  },
4193
4207
  },
4194
- i
4208
+ i,
4195
4209
  );
4196
4210
  })
4197
4211
  );
@@ -4230,7 +4244,7 @@ var MouseTracker = /*#__PURE__*/ (function (_BoundedObject) {
4230
4244
  x: undefined,
4231
4245
  y: undefined,
4232
4246
  },
4233
- ])
4247
+ ]),
4234
4248
  );
4235
4249
  };
4236
4250
  _proto.explore = function explore(context, instance) {
@@ -4265,7 +4279,7 @@ var MouseTracker = /*#__PURE__*/ (function (_BoundedObject) {
4265
4279
  this.renderChildren(context, instance),
4266
4280
  ],
4267
4281
  },
4268
- key
4282
+ key,
4269
4283
  );
4270
4284
  };
4271
4285
  _proto.handleMouseMove = function handleMouseMove(e, instance) {
@@ -4373,7 +4387,7 @@ var NumericAxis = /*#__PURE__*/ (function (_Axis) {
4373
4387
  lowerDeadZone: undefined,
4374
4388
  upperDeadZone: undefined,
4375
4389
  },
4376
- ])
4390
+ ]),
4377
4391
  );
4378
4392
  };
4379
4393
  _proto.initInstance = function initInstance(context, instance) {
@@ -4400,7 +4414,7 @@ var NumericAxis = /*#__PURE__*/ (function (_Axis) {
4400
4414
  normalized,
4401
4415
  inverted,
4402
4416
  lowerDeadZone,
4403
- upperDeadZone
4417
+ upperDeadZone,
4404
4418
  );
4405
4419
  };
4406
4420
  _proto.render = function render(context, instance, key) {
@@ -4411,7 +4425,7 @@ var NumericAxis = /*#__PURE__*/ (function (_Axis) {
4411
4425
  data.labelDivisor != 1
4412
4426
  ? function (v) {
4413
4427
  return baseFormatter(v / data.labelDivisor);
4414
- }
4428
+ }
4415
4429
  : baseFormatter;
4416
4430
  return /*#__PURE__*/ jsx(
4417
4431
  "g",
@@ -4420,7 +4434,7 @@ var NumericAxis = /*#__PURE__*/ (function (_Axis) {
4420
4434
  style: data.style,
4421
4435
  children: this.renderTicksAndLabels(context, instance, formatter, this.minLabelDistance),
4422
4436
  },
4423
- key
4437
+ key,
4424
4438
  );
4425
4439
  };
4426
4440
  NumericAxis.XY = function XY() {
@@ -4463,7 +4477,7 @@ var NumericScale = /*#__PURE__*/ (function () {
4463
4477
  normalized,
4464
4478
  inverted,
4465
4479
  lowerDeadZone,
4466
- upperDeadZone
4480
+ upperDeadZone,
4467
4481
  ) {
4468
4482
  this.min = min;
4469
4483
  this.max = max;
@@ -4586,7 +4600,7 @@ var NumericScale = /*#__PURE__*/ (function () {
4586
4600
  var factor =
4587
4601
  smin < smax
4588
4602
  ? (Math.abs(this.b - this.a) - this.lowerDeadZone - this.upperDeadZone) /
4589
- (smax - smin + minPadding + maxPadding)
4603
+ (smax - smin + minPadding + maxPadding)
4590
4604
  : 0;
4591
4605
  if (factor < 0) factor = 0;
4592
4606
  if (factor > 0 && (this.lowerDeadZone > 0 || this.upperDeadZone > 0)) {
@@ -4735,7 +4749,7 @@ var CategoryAxis = /*#__PURE__*/ (function (_Axis) {
4735
4749
  categoryCount: undefined,
4736
4750
  format: undefined,
4737
4751
  },
4738
- ])
4752
+ ]),
4739
4753
  );
4740
4754
  };
4741
4755
  _proto.initInstance = function initInstance(context, instance) {
@@ -4776,7 +4790,7 @@ var CategoryAxis = /*#__PURE__*/ (function (_Axis) {
4776
4790
  style: data.style,
4777
4791
  children: this.renderTicksAndLabels(context, instance, labelFormatter),
4778
4792
  },
4779
- key
4793
+ key,
4780
4794
  );
4781
4795
  };
4782
4796
  return CategoryAxis;
@@ -5008,7 +5022,7 @@ var TimeAxis = /*#__PURE__*/ (function (_Axis) {
5008
5022
  this.minLabelDistanceFormatOverride = _extends(
5009
5023
  {},
5010
5024
  this.minLabelDistanceFormatOverrideDefaults,
5011
- this.minLabelDistanceFormatOverride
5025
+ this.minLabelDistanceFormatOverride,
5012
5026
  );
5013
5027
  _Axis.prototype.init.call(this);
5014
5028
  };
@@ -5025,7 +5039,7 @@ var TimeAxis = /*#__PURE__*/ (function (_Axis) {
5025
5039
  lowerDeadZone: undefined,
5026
5040
  upperDeadZone: undefined,
5027
5041
  },
5028
- ])
5042
+ ]),
5029
5043
  );
5030
5044
  };
5031
5045
  _proto.initInstance = function initInstance(context, instance) {
@@ -5054,7 +5068,7 @@ var TimeAxis = /*#__PURE__*/ (function (_Axis) {
5054
5068
  upperDeadZone,
5055
5069
  this.decode,
5056
5070
  this.useLabelDistanceFormatOverrides ? this.minLabelDistanceFormatOverride : {},
5057
- this.format
5071
+ this.format,
5058
5072
  );
5059
5073
  };
5060
5074
  _proto.render = function render(context, instance, key) {
@@ -5073,7 +5087,7 @@ var TimeAxis = /*#__PURE__*/ (function (_Axis) {
5073
5087
  style: data.style,
5074
5088
  children: this.renderTicksAndLabels(context, instance, formatter, minLabelDistance),
5075
5089
  },
5076
- key
5090
+ key,
5077
5091
  );
5078
5092
  };
5079
5093
  return TimeAxis;
@@ -5144,7 +5158,7 @@ var TimeScale = /*#__PURE__*/ (function () {
5144
5158
  upperDeadZone,
5145
5159
  decode,
5146
5160
  minLabelDistanceFormatOverride,
5147
- format
5161
+ format,
5148
5162
  ) {
5149
5163
  this.dateCache = {};
5150
5164
  this.min = min != null ? this.decodeValue(min) : null;
@@ -5422,7 +5436,7 @@ var TimeScale = /*#__PURE__*/ (function () {
5422
5436
  size: s * unitSize,
5423
5437
  measure: unit,
5424
5438
  };
5425
- })
5439
+ }),
5426
5440
  );
5427
5441
  return 1; // break
5428
5442
  }
@@ -5618,7 +5632,7 @@ var PointReducer = /*#__PURE__*/ (function (_PureContainer) {
5618
5632
  structured: true,
5619
5633
  },
5620
5634
  },
5621
- ])
5635
+ ]),
5622
5636
  );
5623
5637
  };
5624
5638
  _proto.prepareData = function prepareData(context, instance) {
@@ -5686,7 +5700,7 @@ var MinMaxFinder = /*#__PURE__*/ (function (_PointReducer) {
5686
5700
  structured: true,
5687
5701
  },
5688
5702
  },
5689
- ])
5703
+ ]),
5690
5704
  );
5691
5705
  };
5692
5706
  _proto.onInitAccumulator = function onInitAccumulator(acc, _ref) {
@@ -5745,7 +5759,7 @@ var SnapPointFinder = /*#__PURE__*/ (function (_PointReducer) {
5745
5759
  snapRecord: undefined,
5746
5760
  maxDistance: undefined,
5747
5761
  },
5748
- ])
5762
+ ]),
5749
5763
  );
5750
5764
  };
5751
5765
  _proto.explore = function explore(context, instance) {
@@ -5821,7 +5835,7 @@ var ValueAtFinder = /*#__PURE__*/ (function (_PointReducer) {
5821
5835
  at: undefined,
5822
5836
  value: undefined,
5823
5837
  },
5824
- ])
5838
+ ]),
5825
5839
  );
5826
5840
  };
5827
5841
  _proto.onInitAccumulator = function onInitAccumulator(acc, _ref) {