@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
|
@@ -855,7 +855,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
855
855
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
856
856
|
LineChartBase.prototype._createLines = function (xElement, containerHeight) {
|
|
857
857
|
var _this_1 = this;
|
|
858
|
-
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
|
|
858
|
+
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;
|
|
859
859
|
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
860
860
|
var lines = [];
|
|
861
861
|
if (this.state.isSelectedLegend) {
|
|
@@ -888,7 +888,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
888
888
|
var yPadding = this_1._points[i].useSecondaryYScale && this_1._yScaleSecondary ? this_1._yPaddingSecondary : this_1._yPaddingPrimary;
|
|
889
889
|
var extraMaxPixels = this_1._hasMarkersMode ? this_1._getRangeForScatterMarkerSize(yScale, yPadding) : 0;
|
|
890
890
|
if (this_1._points[i].data.length === 1) {
|
|
891
|
-
var
|
|
891
|
+
var _18 = this_1._points[i].data[0], x1_1 = _18.x, y1 = _18.y, xAxisCalloutData_1 = _18.xAxisCalloutData, xAxisCalloutAccessibilityData_1 = _18.xAxisCalloutAccessibilityData;
|
|
892
892
|
var circleId_1 = "".concat(this_1._circleId, "_").concat(i);
|
|
893
893
|
var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
|
|
894
894
|
var currentMarkerSize = this_1._points[i].data[0].markerSize;
|
|
@@ -953,8 +953,8 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
953
953
|
var lineId = "".concat(this_1._lineId, "_").concat(i, "_").concat(j);
|
|
954
954
|
var borderId = "".concat(this_1._borderId, "_").concat(i, "_").concat(j);
|
|
955
955
|
var circleId = "".concat(this_1._circleId, "_").concat(i, "_").concat(j);
|
|
956
|
-
var
|
|
957
|
-
var
|
|
956
|
+
var _19 = this_1._points[i].data[j - 1], x1 = _19.x, y1 = _19.y, xAxisCalloutData = _19.xAxisCalloutData, xAxisCalloutAccessibilityData = _19.xAxisCalloutAccessibilityData;
|
|
957
|
+
var _20 = this_1._points[i].data[j], x2 = _20.x, y2 = _20.y;
|
|
958
958
|
var path = this_1._getPath(this_1._xAxisScale(x1), yScale(y1), circleId, j, false, this_1._points[i].index);
|
|
959
959
|
var strokeWidth = ((_s = this_1._points[i].lineOptions) === null || _s === void 0 ? void 0 : _s.strokeWidth) || this_1.props.strokeWidth || DEFAULT_LINE_STROKE_SIZE;
|
|
960
960
|
var isLegendSelected = this_1._legendHighlighted(legendVal) || this_1._noLegendHighlighted() || this_1.state.isSelectedLegend;
|
|
@@ -975,7 +975,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
975
975
|
var hiddenHoverCircleId = "".concat(circleId).concat(j, "D");
|
|
976
976
|
var lastPointHidden = this_1._points[i].hideNonActiveDots && activePoint !== lastCircleId_1;
|
|
977
977
|
path = this_1._getPath(this_1._xAxisScale(x2), yScale(y2), lastCircleId_1, j, true, this_1._points[i].index);
|
|
978
|
-
var
|
|
978
|
+
var _21 = this_1._points[i].data[j], lastCirlceXCallout_1 = _21.xAxisCalloutData, lastCirlceXCalloutAccessibilityData_1 = _21.xAxisCalloutAccessibilityData;
|
|
979
979
|
currentMarkerSize = this_1._points[i].data[j].markerSize;
|
|
980
980
|
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');
|
|
981
981
|
var lastText = this_1._points[i].data[j].text;
|
|
@@ -1029,12 +1029,7 @@ define(["require", "exports", "tslib", "react", "d3-selection", "d3-array", "../
|
|
|
1029
1029
|
xAxisScale: this_1._xAxisScale,
|
|
1030
1030
|
yAxisScale: yScale,
|
|
1031
1031
|
className: classNames.markerLabel || '',
|
|
1032
|
-
|
|
1033
|
-
? {
|
|
1034
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1035
|
-
originXOffset: (_18 = this_1._points[i].lineOptions) === null || _18 === void 0 ? void 0 : _18.originXOffset,
|
|
1036
|
-
}
|
|
1037
|
-
: undefined,
|
|
1032
|
+
lineOptions: (_17 = this_1._points[i]) === null || _17 === void 0 ? void 0 : _17.lineOptions,
|
|
1038
1033
|
}));
|
|
1039
1034
|
}
|
|
1040
1035
|
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.") },
|