@fluentui/react-charting 5.24.13 → 5.24.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.
Files changed (32) hide show
  1. package/CHANGELOG.json +28 -1
  2. package/CHANGELOG.md +13 -2
  3. package/dist/react-charting.js +1 -1
  4. package/dist/react-charting.min.js +1 -1
  5. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +16 -10
  6. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  7. package/lib/components/LineChart/LineChart.base.js +6 -11
  8. package/lib/components/LineChart/LineChart.base.js.map +1 -1
  9. package/lib/components/ScatterChart/ScatterChart.base.js +4 -9
  10. package/lib/components/ScatterChart/ScatterChart.base.js.map +1 -1
  11. package/lib/utilities/scatterpolar-utils.d.ts +7 -4
  12. package/lib/utilities/scatterpolar-utils.js +19 -2
  13. package/lib/utilities/scatterpolar-utils.js.map +1 -1
  14. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +16 -10
  15. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  16. package/lib-amd/components/LineChart/LineChart.base.js +6 -11
  17. package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
  18. package/lib-amd/components/ScatterChart/ScatterChart.base.js +4 -9
  19. package/lib-amd/components/ScatterChart/ScatterChart.base.js.map +1 -1
  20. package/lib-amd/utilities/scatterpolar-utils.d.ts +7 -4
  21. package/lib-amd/utilities/scatterpolar-utils.js +21 -3
  22. package/lib-amd/utilities/scatterpolar-utils.js.map +1 -1
  23. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +16 -10
  24. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  25. package/lib-commonjs/components/LineChart/LineChart.base.js +6 -11
  26. package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
  27. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js +4 -9
  28. package/lib-commonjs/components/ScatterChart/ScatterChart.base.js.map +1 -1
  29. package/lib-commonjs/utilities/scatterpolar-utils.d.ts +7 -4
  30. package/lib-commonjs/utilities/scatterpolar-utils.js +21 -3
  31. package/lib-commonjs/utilities/scatterpolar-utils.js.map +1 -1
  32. package/package.json +2 -2
@@ -869,7 +869,7 @@ var LineChartBase = /** @class */ (function (_super) {
869
869
  // eslint-disable-next-line @typescript-eslint/no-deprecated
870
870
  LineChartBase.prototype._createLines = function (xElement, containerHeight) {
871
871
  var _this_1 = this;
872
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18;
872
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17;
873
873
  // eslint-disable-next-line @typescript-eslint/no-deprecated
874
874
  var lines = [];
875
875
  if (this.state.isSelectedLegend) {
@@ -902,7 +902,7 @@ var LineChartBase = /** @class */ (function (_super) {
902
902
  var yPadding = this_1._points[i].useSecondaryYScale && this_1._yScaleSecondary ? this_1._yPaddingSecondary : this_1._yPaddingPrimary;
903
903
  var extraMaxPixels = this_1._hasMarkersMode ? this_1._getRangeForScatterMarkerSize(yScale, yPadding) : 0;
904
904
  if (this_1._points[i].data.length === 1) {
905
- var _19 = this_1._points[i].data[0], x1_1 = _19.x, y1 = _19.y, xAxisCalloutData_1 = _19.xAxisCalloutData, xAxisCalloutAccessibilityData_1 = _19.xAxisCalloutAccessibilityData;
905
+ var _18 = this_1._points[i].data[0], x1_1 = _18.x, y1 = _18.y, xAxisCalloutData_1 = _18.xAxisCalloutData, xAxisCalloutAccessibilityData_1 = _18.xAxisCalloutAccessibilityData;
906
906
  var circleId_1 = "".concat(this_1._circleId, "_").concat(i);
907
907
  var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
908
908
  var currentMarkerSize = this_1._points[i].data[0].markerSize;
@@ -967,8 +967,8 @@ var LineChartBase = /** @class */ (function (_super) {
967
967
  var lineId = "".concat(this_1._lineId, "_").concat(i, "_").concat(j);
968
968
  var borderId = "".concat(this_1._borderId, "_").concat(i, "_").concat(j);
969
969
  var circleId = "".concat(this_1._circleId, "_").concat(i, "_").concat(j);
970
- var _20 = this_1._points[i].data[j - 1], x1 = _20.x, y1 = _20.y, xAxisCalloutData = _20.xAxisCalloutData, xAxisCalloutAccessibilityData = _20.xAxisCalloutAccessibilityData;
971
- var _21 = this_1._points[i].data[j], x2 = _21.x, y2 = _21.y;
970
+ var _19 = this_1._points[i].data[j - 1], x1 = _19.x, y1 = _19.y, xAxisCalloutData = _19.xAxisCalloutData, xAxisCalloutAccessibilityData = _19.xAxisCalloutAccessibilityData;
971
+ var _20 = this_1._points[i].data[j], x2 = _20.x, y2 = _20.y;
972
972
  var path = this_1._getPath(this_1._xAxisScale(x1), yScale(y1), circleId, j, false, this_1._points[i].index);
973
973
  var strokeWidth = ((_s = this_1._points[i].lineOptions) === null || _s === void 0 ? void 0 : _s.strokeWidth) || this_1.props.strokeWidth || DEFAULT_LINE_STROKE_SIZE;
974
974
  var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
@@ -989,7 +989,7 @@ var LineChartBase = /** @class */ (function (_super) {
989
989
  var hiddenHoverCircleId = "".concat(circleId).concat(j, "D");
990
990
  var lastPointHidden = this_1._points[i].hideNonActiveDots && activePoint !== lastCircleId_1;
991
991
  path = this_1._getPath(this_1._xAxisScale(x2), yScale(y2), lastCircleId_1, j, true, this_1._points[i].index);
992
- var _22 = this_1._points[i].data[j], lastCirlceXCallout_1 = _22.xAxisCalloutData, lastCirlceXCalloutAccessibilityData_1 = _22.xAxisCalloutAccessibilityData;
992
+ var _21 = this_1._points[i].data[j], lastCirlceXCallout_1 = _21.xAxisCalloutData, lastCirlceXCalloutAccessibilityData_1 = _21.xAxisCalloutAccessibilityData;
993
993
  currentMarkerSize = this_1._points[i].data[j].markerSize;
994
994
  var lastSupportsTextMode = (_z = (_y = this_1._points[i].lineOptions) === null || _y === void 0 ? void 0 : _y.mode) === null || _z === void 0 ? void 0 : _z.includes('text');
995
995
  var lastText = this_1._points[i].data[j].text;
@@ -1043,12 +1043,7 @@ var LineChartBase = /** @class */ (function (_super) {
1043
1043
  xAxisScale: this_1._xAxisScale,
1044
1044
  yAxisScale: yScale,
1045
1045
  className: classNames.markerLabel || '',
1046
- maybeLineOptions: ((_17 = this_1._points[i]) === null || _17 === void 0 ? void 0 : _17.lineOptions)
1047
- ? {
1048
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1049
- originXOffset: (_18 = this_1._points[i].lineOptions) === null || _18 === void 0 ? void 0 : _18.originXOffset,
1050
- }
1051
- : undefined,
1046
+ lineOptions: (_17 = this_1._points[i]) === null || _17 === void 0 ? void 0 : _17.lineOptions,
1052
1047
  }));
1053
1048
  }
1054
1049
  lines.push(React.createElement("g", { key: "line_".concat(i), role: "region", "aria-label": "".concat(legendVal, ", line ").concat(i + 1, " of ").concat(this_1._points.length, " with ").concat(this_1._points[i].data.length, " data points.") },