@youcan/celeste 0.10.0 → 0.10.1
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.
|
@@ -10093,7 +10093,7 @@ var bar_chart_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
10093
10093
|
}
|
|
10094
10094
|
const formatValue = (0, vue.computed)(() => (v) => props.format(v, locale.value));
|
|
10095
10095
|
const formatTick = (0, vue.computed)(() => (v) => props.tickFormat(v, locale.value));
|
|
10096
|
-
const y = (0, vue.computed)(() => props.dense ? [totalOf] : props.series.map((s) => hidden.value.includes(s.key) ? () => EPSILON : (d) => valueOf(d, s.key)));
|
|
10096
|
+
const y = (0, vue.computed)(() => props.dense ? [(d) => totalOf(d) || EPSILON] : props.series.map((s) => hidden.value.includes(s.key) ? () => EPSILON : (d) => valueOf(d, s.key) || EPSILON));
|
|
10097
10097
|
const color = (0, vue.computed)(() => {
|
|
10098
10098
|
const map = colors.value;
|
|
10099
10099
|
if (props.dense) return () => require_chart.chartColor(0);
|
|
@@ -10090,7 +10090,7 @@ var bar_chart_default = /* @__PURE__ */ defineComponent({
|
|
|
10090
10090
|
}
|
|
10091
10091
|
const formatValue = computed(() => (v) => props.format(v, locale.value));
|
|
10092
10092
|
const formatTick = computed(() => (v) => props.tickFormat(v, locale.value));
|
|
10093
|
-
const y = computed(() => props.dense ? [totalOf] : props.series.map((s) => hidden.value.includes(s.key) ? () => EPSILON : (d) => valueOf(d, s.key)));
|
|
10093
|
+
const y = computed(() => props.dense ? [(d) => totalOf(d) || EPSILON] : props.series.map((s) => hidden.value.includes(s.key) ? () => EPSILON : (d) => valueOf(d, s.key) || EPSILON));
|
|
10094
10094
|
const color = computed(() => {
|
|
10095
10095
|
const map = colors.value;
|
|
10096
10096
|
if (props.dense) return () => chartColor(0);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@youcan/celeste",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.1",
|
|
5
5
|
"author": "YouCan <tech@youcan.shop>",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"reka-ui": "^2.10.1",
|
|
52
52
|
"tinycolor2": "^1.6.0",
|
|
53
53
|
"vue-sonner": "^2.0.9",
|
|
54
|
-
"@youcan/celeste-icons": "0.10.
|
|
55
|
-
"@youcan/celeste-tokens": "0.10.
|
|
54
|
+
"@youcan/celeste-icons": "0.10.1",
|
|
55
|
+
"@youcan/celeste-tokens": "0.10.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@chromatic-com/storybook": "^5.3.0",
|
|
@@ -115,10 +115,10 @@ const formatValue = computed(() => (v: number) => props.format(v, locale.value))
|
|
|
115
115
|
const formatTick = computed(() => (v: number) => props.tickFormat(v, locale.value));
|
|
116
116
|
|
|
117
117
|
const y = computed(() => props.dense
|
|
118
|
-
? [totalOf]
|
|
118
|
+
? [(d: BarDatum) => totalOf(d) || EPSILON]
|
|
119
119
|
: props.series.map(s => hidden.value.includes(s.key)
|
|
120
120
|
? () => EPSILON
|
|
121
|
-
: (d: BarDatum) => valueOf(d, s.key)));
|
|
121
|
+
: (d: BarDatum) => valueOf(d, s.key) || EPSILON));
|
|
122
122
|
|
|
123
123
|
const color = computed(() => {
|
|
124
124
|
const map = colors.value;
|