@fluentui/react-charts 9.3.12 → 9.3.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.md +25 -2
- package/dist/index.d.ts +859 -0
- package/lib/VegaDeclarativeChart.js +1 -0
- package/lib/VegaDeclarativeChart.js.map +1 -0
- package/lib/components/LineChart/LineChart.js +47 -7
- package/lib/components/LineChart/LineChart.js.map +1 -1
- package/lib/components/ScatterChart/ScatterChart.js +12 -12
- package/lib/components/ScatterChart/ScatterChart.js.map +1 -1
- package/lib/components/VegaDeclarativeChart/VegaDeclarativeChart.js +405 -0
- package/lib/components/VegaDeclarativeChart/VegaDeclarativeChart.js.map +1 -0
- package/lib/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js +20 -0
- package/lib/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js.map +1 -0
- package/lib/components/VegaDeclarativeChart/VegaLiteColorAdapter.js +415 -0
- package/lib/components/VegaDeclarativeChart/VegaLiteColorAdapter.js.map +1 -0
- package/lib/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.js +537 -0
- package/lib/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.js.map +1 -0
- package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js +3279 -0
- package/lib/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js.map +1 -0
- package/lib/components/VegaDeclarativeChart/VegaLiteTypes.js +28 -0
- package/lib/components/VegaDeclarativeChart/VegaLiteTypes.js.map +1 -0
- package/lib/components/VegaDeclarativeChart/index.js +1 -0
- package/lib/components/VegaDeclarativeChart/index.js.map +1 -0
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js +5 -2
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/utilities/utilities.js +41 -0
- package/lib/utilities/utilities.js.map +1 -1
- package/lib-commonjs/VegaDeclarativeChart.js +6 -0
- package/lib-commonjs/VegaDeclarativeChart.js.map +1 -0
- package/lib-commonjs/components/LineChart/LineChart.js +46 -6
- package/lib-commonjs/components/LineChart/LineChart.js.map +1 -1
- package/lib-commonjs/components/ScatterChart/ScatterChart.js +11 -11
- package/lib-commonjs/components/ScatterChart/ScatterChart.js.map +1 -1
- package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChart.js +274 -0
- package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChart.js.map +1 -0
- package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js +35 -0
- package/lib-commonjs/components/VegaDeclarativeChart/VegaDeclarativeChartHooks.js.map +1 -0
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteColorAdapter.js +412 -0
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteColorAdapter.js.map +1 -0
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.js +533 -0
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteExpressionEvaluator.js.map +1 -0
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js +3214 -0
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteSchemaAdapter.js.map +1 -0
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteTypes.js +31 -0
- package/lib-commonjs/components/VegaDeclarativeChart/VegaLiteTypes.js.map +1 -0
- package/lib-commonjs/components/VegaDeclarativeChart/index.js +6 -0
- package/lib-commonjs/components/VegaDeclarativeChart/index.js.map +1 -0
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +4 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
- package/lib-commonjs/index.js +1 -0
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/utilities/utilities.js +33 -0
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/VegaDeclarativeChart.ts"],"sourcesContent":["export * from './components/VegaDeclarativeChart';\n"],"names":[],"mappings":";;;;;uBAAc,oCAAoC"}
|
|
@@ -451,7 +451,14 @@ const LineChart = /*#__PURE__*/ _react.forwardRef(({ isCalloutForStack = true, .
|
|
|
451
451
|
}, /*#__PURE__*/ _react.createElement("circle", {
|
|
452
452
|
id: circleId,
|
|
453
453
|
key: circleId,
|
|
454
|
-
r:
|
|
454
|
+
r: (0, _index1.calculateMarkerRadius)({
|
|
455
|
+
pointMarkerSize: currentMarkerSize,
|
|
456
|
+
minMarkerSize: 0,
|
|
457
|
+
maxMarkerSize,
|
|
458
|
+
extraMaxPixels,
|
|
459
|
+
isContinuousXY: true,
|
|
460
|
+
isActive: activePoint === circleId
|
|
461
|
+
}),
|
|
455
462
|
cx: xPoint,
|
|
456
463
|
cy: yPoint,
|
|
457
464
|
fill: activePoint === circleId ? _reacttheme.tokens.colorNeutralBackground1 : lineColor,
|
|
@@ -583,7 +590,14 @@ const LineChart = /*#__PURE__*/ _react.forwardRef(({ isCalloutForStack = true, .
|
|
|
583
590
|
var _points_i_data_k_text;
|
|
584
591
|
pointsForLine.push(/*#__PURE__*/ _react.createElement("circle", {
|
|
585
592
|
key: `${_circleId}_${i}_${k}_marker`,
|
|
586
|
-
r:
|
|
593
|
+
r: (0, _index1.calculateMarkerRadius)({
|
|
594
|
+
pointMarkerSize: markerSize,
|
|
595
|
+
minMarkerSize: 0,
|
|
596
|
+
maxMarkerSize,
|
|
597
|
+
extraMaxPixels,
|
|
598
|
+
isContinuousXY: true,
|
|
599
|
+
isActive: activePoint === _circleId
|
|
600
|
+
}),
|
|
587
601
|
cx: xPoint,
|
|
588
602
|
cy: yPoint,
|
|
589
603
|
fill: activePoint === _circleId ? _reacttheme.tokens.colorNeutralBackground1 : perPointColor || ((_points_i = _points[i]) === null || _points_i === void 0 ? void 0 : _points_i.color) || lineColor,
|
|
@@ -630,7 +644,14 @@ const LineChart = /*#__PURE__*/ _react.forwardRef(({ isCalloutForStack = true, .
|
|
|
630
644
|
pointsForLine.push(((_points_i_lineOptions15 = _points[i].lineOptions) === null || _points_i_lineOptions15 === void 0 ? void 0 : (_points_i_lineOptions_mode3 = _points_i_lineOptions15.mode) === null || _points_i_lineOptions_mode3 === void 0 ? void 0 : _points_i_lineOptions_mode3.includes('markers')) || supportsTextMode ? /*#__PURE__*/ _react.createElement(_react.Fragment, null, /*#__PURE__*/ _react.createElement("circle", {
|
|
631
645
|
id: circleId,
|
|
632
646
|
key: circleId,
|
|
633
|
-
r:
|
|
647
|
+
r: (0, _index1.calculateMarkerRadius)({
|
|
648
|
+
pointMarkerSize: currentMarkerSize,
|
|
649
|
+
minMarkerSize: 0,
|
|
650
|
+
maxMarkerSize,
|
|
651
|
+
extraMaxPixels,
|
|
652
|
+
isContinuousXY: true,
|
|
653
|
+
isActive: activePoint === circleId
|
|
654
|
+
}),
|
|
634
655
|
cx: xPoint1,
|
|
635
656
|
cy: yPoint1,
|
|
636
657
|
tabIndex: isLegendSelected ? 0 : undefined,
|
|
@@ -649,7 +670,13 @@ const LineChart = /*#__PURE__*/ _react.forwardRef(({ isCalloutForStack = true, .
|
|
|
649
670
|
}), !_isScatterPolar && supportsTextMode && text && /*#__PURE__*/ _react.createElement("text", {
|
|
650
671
|
key: `${circleId}-label`,
|
|
651
672
|
x: xPoint1,
|
|
652
|
-
y: yPoint1 +
|
|
673
|
+
y: yPoint1 + (0, _index1.calculateMarkerRadius)({
|
|
674
|
+
pointMarkerSize: currentMarkerSize,
|
|
675
|
+
minMarkerSize: 0,
|
|
676
|
+
maxMarkerSize,
|
|
677
|
+
extraMaxPixels,
|
|
678
|
+
isContinuousXY: true
|
|
679
|
+
}) + 12,
|
|
653
680
|
className: classes.markerLabel,
|
|
654
681
|
opacity: isLegendSelected && !currentPointHidden ? 1 : 0.01
|
|
655
682
|
}, text)) : /*#__PURE__*/ _react.createElement("path", {
|
|
@@ -691,7 +718,14 @@ const LineChart = /*#__PURE__*/ _react.forwardRef(({ isCalloutForStack = true, .
|
|
|
691
718
|
}, ((_points_i_lineOptions17 = _points[i].lineOptions) === null || _points_i_lineOptions17 === void 0 ? void 0 : (_points_i_lineOptions_mode5 = _points_i_lineOptions17.mode) === null || _points_i_lineOptions_mode5 === void 0 ? void 0 : _points_i_lineOptions_mode5.includes('markers')) || lastSupportsTextMode ? /*#__PURE__*/ _react.createElement(_react.Fragment, null, /*#__PURE__*/ _react.createElement("circle", {
|
|
692
719
|
id: lastCircleId,
|
|
693
720
|
key: lastCircleId,
|
|
694
|
-
r:
|
|
721
|
+
r: (0, _index1.calculateMarkerRadius)({
|
|
722
|
+
pointMarkerSize: currentMarkerSize,
|
|
723
|
+
minMarkerSize: 0,
|
|
724
|
+
maxMarkerSize,
|
|
725
|
+
extraMaxPixels,
|
|
726
|
+
isContinuousXY: true,
|
|
727
|
+
isActive: activePoint === lastCircleId
|
|
728
|
+
}),
|
|
695
729
|
cx: xPoint2,
|
|
696
730
|
cy: yPoint2,
|
|
697
731
|
tabIndex: isLegendSelected ? 0 : undefined,
|
|
@@ -710,7 +744,13 @@ const LineChart = /*#__PURE__*/ _react.forwardRef(({ isCalloutForStack = true, .
|
|
|
710
744
|
}), !_isScatterPolar && lastSupportsTextMode && lastText && /*#__PURE__*/ _react.createElement("text", {
|
|
711
745
|
key: `${lastCircleId}-label`,
|
|
712
746
|
x: xPoint2,
|
|
713
|
-
y: yPoint2 +
|
|
747
|
+
y: yPoint2 + (0, _index1.calculateMarkerRadius)({
|
|
748
|
+
pointMarkerSize: currentMarkerSize,
|
|
749
|
+
minMarkerSize: 0,
|
|
750
|
+
maxMarkerSize,
|
|
751
|
+
extraMaxPixels,
|
|
752
|
+
isContinuousXY: true
|
|
753
|
+
}) + 12,
|
|
714
754
|
className: classes.markerLabel
|
|
715
755
|
}, text)) : /*#__PURE__*/ _react.createElement("path", {
|
|
716
756
|
id: lastCircleId,
|