@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
@@ -866,7 +866,7 @@ var LineChartBase = /** @class */ (function (_super) {
866
866
  // eslint-disable-next-line @typescript-eslint/no-deprecated
867
867
  LineChartBase.prototype._createLines = function (xElement, containerHeight) {
868
868
  var _this_1 = this;
869
- 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;
869
+ 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;
870
870
  // eslint-disable-next-line @typescript-eslint/no-deprecated
871
871
  var lines = [];
872
872
  if (this.state.isSelectedLegend) {
@@ -899,7 +899,7 @@ var LineChartBase = /** @class */ (function (_super) {
899
899
  var yPadding = this_1._points[i].useSecondaryYScale && this_1._yScaleSecondary ? this_1._yPaddingSecondary : this_1._yPaddingPrimary;
900
900
  var extraMaxPixels = this_1._hasMarkersMode ? this_1._getRangeForScatterMarkerSize(yScale, yPadding) : 0;
901
901
  if (this_1._points[i].data.length === 1) {
902
- var _19 = this_1._points[i].data[0], x1_1 = _19.x, y1 = _19.y, xAxisCalloutData_1 = _19.xAxisCalloutData, xAxisCalloutAccessibilityData_1 = _19.xAxisCalloutAccessibilityData;
902
+ var _18 = this_1._points[i].data[0], x1_1 = _18.x, y1 = _18.y, xAxisCalloutData_1 = _18.xAxisCalloutData, xAxisCalloutAccessibilityData_1 = _18.xAxisCalloutAccessibilityData;
903
903
  var circleId_1 = "".concat(this_1._circleId, "_").concat(i);
904
904
  var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
905
905
  var currentMarkerSize = this_1._points[i].data[0].markerSize;
@@ -964,8 +964,8 @@ var LineChartBase = /** @class */ (function (_super) {
964
964
  var lineId = "".concat(this_1._lineId, "_").concat(i, "_").concat(j);
965
965
  var borderId = "".concat(this_1._borderId, "_").concat(i, "_").concat(j);
966
966
  var circleId = "".concat(this_1._circleId, "_").concat(i, "_").concat(j);
967
- var _20 = this_1._points[i].data[j - 1], x1 = _20.x, y1 = _20.y, xAxisCalloutData = _20.xAxisCalloutData, xAxisCalloutAccessibilityData = _20.xAxisCalloutAccessibilityData;
968
- var _21 = this_1._points[i].data[j], x2 = _21.x, y2 = _21.y;
967
+ var _19 = this_1._points[i].data[j - 1], x1 = _19.x, y1 = _19.y, xAxisCalloutData = _19.xAxisCalloutData, xAxisCalloutAccessibilityData = _19.xAxisCalloutAccessibilityData;
968
+ var _20 = this_1._points[i].data[j], x2 = _20.x, y2 = _20.y;
969
969
  var path = this_1._getPath(this_1._xAxisScale(x1), yScale(y1), circleId, j, false, this_1._points[i].index);
970
970
  var strokeWidth = ((_s = this_1._points[i].lineOptions) === null || _s === void 0 ? void 0 : _s.strokeWidth) || this_1.props.strokeWidth || DEFAULT_LINE_STROKE_SIZE;
971
971
  var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
@@ -986,7 +986,7 @@ var LineChartBase = /** @class */ (function (_super) {
986
986
  var hiddenHoverCircleId = "".concat(circleId).concat(j, "D");
987
987
  var lastPointHidden = this_1._points[i].hideNonActiveDots && activePoint !== lastCircleId_1;
988
988
  path = this_1._getPath(this_1._xAxisScale(x2), yScale(y2), lastCircleId_1, j, true, this_1._points[i].index);
989
- var _22 = this_1._points[i].data[j], lastCirlceXCallout_1 = _22.xAxisCalloutData, lastCirlceXCalloutAccessibilityData_1 = _22.xAxisCalloutAccessibilityData;
989
+ var _21 = this_1._points[i].data[j], lastCirlceXCallout_1 = _21.xAxisCalloutData, lastCirlceXCalloutAccessibilityData_1 = _21.xAxisCalloutAccessibilityData;
990
990
  currentMarkerSize = this_1._points[i].data[j].markerSize;
991
991
  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');
992
992
  var lastText = this_1._points[i].data[j].text;
@@ -1040,12 +1040,7 @@ var LineChartBase = /** @class */ (function (_super) {
1040
1040
  xAxisScale: this_1._xAxisScale,
1041
1041
  yAxisScale: yScale,
1042
1042
  className: classNames.markerLabel || '',
1043
- maybeLineOptions: ((_17 = this_1._points[i]) === null || _17 === void 0 ? void 0 : _17.lineOptions)
1044
- ? {
1045
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
1046
- originXOffset: (_18 = this_1._points[i].lineOptions) === null || _18 === void 0 ? void 0 : _18.originXOffset,
1047
- }
1048
- : undefined,
1043
+ lineOptions: (_17 = this_1._points[i]) === null || _17 === void 0 ? void 0 : _17.lineOptions,
1049
1044
  }));
1050
1045
  }
1051
1046
  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.") },