@quantumwake/terminal-ux-dashboard-components 0.1.24 → 0.1.25
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/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -277,6 +277,7 @@ var DEFAULT_CHART_STYLE = {
|
|
|
277
277
|
areaOpacity: 0.15,
|
|
278
278
|
yFromZero: false,
|
|
279
279
|
barLabels: true,
|
|
280
|
+
animate: false,
|
|
280
281
|
seriesColors: []
|
|
281
282
|
};
|
|
282
283
|
var DEFAULT_SERIES_COLORS = [
|
|
@@ -603,6 +604,7 @@ function BarView({ records, groupColumn, valueColumn, aggFn = "count", data: pre
|
|
|
603
604
|
labelSkipWidth: 12,
|
|
604
605
|
labelSkipHeight: 12,
|
|
605
606
|
labelTextColor: { from: "color", modifiers: [["darker", 3]] },
|
|
607
|
+
animate: s.animate,
|
|
606
608
|
theme: buildNivoTheme(style)
|
|
607
609
|
}
|
|
608
610
|
) });
|
|
@@ -641,6 +643,7 @@ function PieView({ records, groupColumn, data: presetData, style }) {
|
|
|
641
643
|
arcLabelsSkipAngle: 10,
|
|
642
644
|
arcLabelsTextColor: { from: "color", modifiers: [["darker", 3]] },
|
|
643
645
|
legends: legend ? [legend] : [],
|
|
646
|
+
animate: s.animate,
|
|
644
647
|
theme: buildNivoTheme(style)
|
|
645
648
|
}
|
|
646
649
|
) });
|
|
@@ -712,6 +715,7 @@ function LineView({ records, xColumn, yColumn, data: presetData, style }) {
|
|
|
712
715
|
axisLeft: makeAxis(style, "y", yColumn, { numeric: true }),
|
|
713
716
|
useMesh: true,
|
|
714
717
|
layers: ["grid", "markers", "axes", "areas", bandsLayer, linesLayer, "crosshair", "slices", "mesh", "legends"],
|
|
718
|
+
animate: s.animate,
|
|
715
719
|
theme: buildNivoTheme(style)
|
|
716
720
|
}
|
|
717
721
|
) });
|
|
@@ -773,6 +777,7 @@ function ScatterView({ records, xColumn, yColumn, data: presetData, style }) {
|
|
|
773
777
|
axisBottom: makeAxis(style, "x", xColumn, { numeric: true }),
|
|
774
778
|
axisLeft: makeAxis(style, "y", yColumn, { numeric: true }),
|
|
775
779
|
useMesh: true,
|
|
780
|
+
animate: s.animate,
|
|
776
781
|
theme: buildNivoTheme(style)
|
|
777
782
|
}
|
|
778
783
|
) });
|
|
@@ -880,6 +885,7 @@ function HeatmapView({
|
|
|
880
885
|
borderColor: "#334155",
|
|
881
886
|
labelTextColor: { from: "color", modifiers: [["darker", 3]] },
|
|
882
887
|
hoverTarget: "cell",
|
|
888
|
+
animate: s.animate,
|
|
883
889
|
theme: buildNivoTheme(style)
|
|
884
890
|
}
|
|
885
891
|
) });
|
|
@@ -1034,6 +1040,7 @@ function HeatmapPlusView({
|
|
|
1034
1040
|
borderColor: "#334155",
|
|
1035
1041
|
labelTextColor: ((cell) => heatLabelColor(tAt(cell.serieId, cell.data.x))),
|
|
1036
1042
|
hoverTarget: "cell",
|
|
1043
|
+
animate: s.animate,
|
|
1037
1044
|
theme: buildNivoTheme(style)
|
|
1038
1045
|
}
|
|
1039
1046
|
) });
|