@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.
- package/CHANGELOG.json +28 -1
- package/CHANGELOG.md +13 -2
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +16 -10
- package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib/components/LineChart/LineChart.base.js +6 -11
- package/lib/components/LineChart/LineChart.base.js.map +1 -1
- package/lib/components/ScatterChart/ScatterChart.base.js +4 -9
- package/lib/components/ScatterChart/ScatterChart.base.js.map +1 -1
- package/lib/utilities/scatterpolar-utils.d.ts +7 -4
- package/lib/utilities/scatterpolar-utils.js +19 -2
- package/lib/utilities/scatterpolar-utils.js.map +1 -1
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +16 -10
- package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.base.js +6 -11
- package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-amd/components/ScatterChart/ScatterChart.base.js +4 -9
- package/lib-amd/components/ScatterChart/ScatterChart.base.js.map +1 -1
- package/lib-amd/utilities/scatterpolar-utils.d.ts +7 -4
- package/lib-amd/utilities/scatterpolar-utils.js +21 -3
- package/lib-amd/utilities/scatterpolar-utils.js.map +1 -1
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +16 -10
- package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.base.js +6 -11
- package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-commonjs/components/ScatterChart/ScatterChart.base.js +4 -9
- package/lib-commonjs/components/ScatterChart/ScatterChart.base.js.map +1 -1
- package/lib-commonjs/utilities/scatterpolar-utils.d.ts +7 -4
- package/lib-commonjs/utilities/scatterpolar-utils.js +21 -3
- package/lib-commonjs/utilities/scatterpolar-utils.js.map +1 -1
- 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
|
|
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
|
|
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
|
|
968
|
-
var
|
|
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
|
|
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
|
-
|
|
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.") },
|