@selectwin/kit 0.1.20 → 0.1.21
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.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4610,7 +4610,7 @@ function Q1({ series: t, labels: n, height: l = 240, format: c = Y, area: s = !1
|
|
|
4610
4610
|
N
|
|
4611
4611
|
)),
|
|
4612
4612
|
n.map(
|
|
4613
|
-
(w, N) => N % k === 0 || N === _ - 1 ? /* @__PURE__ */ e("text", { x: p(N), y: l - y.bottom + 16, className: "select-chart__xlabel", textAnchor: "middle", children: w }, N) : null
|
|
4613
|
+
(w, N) => N % k === 0 || N === _ - 1 ? /* @__PURE__ */ e("text", { x: p(N), y: l - y.bottom + 16, className: "select-chart__xlabel", textAnchor: N === 0 ? "start" : N === _ - 1 ? "end" : "middle", children: w }, N) : null
|
|
4614
4614
|
),
|
|
4615
4615
|
n.map((w, N) => /* @__PURE__ */ e(
|
|
4616
4616
|
"rect",
|
|
@@ -4676,7 +4676,7 @@ function eo({ series: t, labels: n, height: l = 240, format: c = Y, className: s
|
|
|
4676
4676
|
}),
|
|
4677
4677
|
h != null && /* @__PURE__ */ e("line", { x1: p(h), x2: p(h), y1: x.top, y2: M, className: "select-chart__crosshair" }),
|
|
4678
4678
|
n.map(
|
|
4679
|
-
(N, C) => C % k === 0 || C === f - 1 ? /* @__PURE__ */ e("text", { x: p(C), y: l - x.bottom + 16, className: "select-chart__xlabel", textAnchor: "middle", children: N }, C) : null
|
|
4679
|
+
(N, C) => C % k === 0 || C === f - 1 ? /* @__PURE__ */ e("text", { x: p(C), y: l - x.bottom + 16, className: "select-chart__xlabel", textAnchor: C === 0 ? "start" : C === f - 1 ? "end" : "middle", children: N }, C) : null
|
|
4680
4680
|
),
|
|
4681
4681
|
n.map((N, C) => /* @__PURE__ */ e(
|
|
4682
4682
|
"rect",
|
|
@@ -5425,7 +5425,7 @@ function mo({ series: t, height: n = 240, xFormat: l = Y, yFormat: c = Y, xMax:
|
|
|
5425
5425
|
),
|
|
5426
5426
|
/* @__PURE__ */ e("text", { x: x.left - 8, y: S(M), className: "select-chart__ylabel", dominantBaseline: "middle", textAnchor: "end", children: c(M) })
|
|
5427
5427
|
] }, `y${w}`)),
|
|
5428
|
-
we(g).map((M, w) => /* @__PURE__ */ e("text", { x: b(M), y: n - x.bottom + 16, className: "select-chart__xlabel", textAnchor: "middle", children: l(M) }, `x${w}`)),
|
|
5428
|
+
we(g).map((M, w, N) => /* @__PURE__ */ e("text", { x: b(M), y: n - x.bottom + 16, className: "select-chart__xlabel", textAnchor: w === 0 ? "start" : w === N.length - 1 ? "end" : "middle", children: l(M) }, `x${w}`)),
|
|
5429
5429
|
t.map((M, w) => {
|
|
5430
5430
|
const N = M.color ?? j(w);
|
|
5431
5431
|
return /* @__PURE__ */ e("g", { fill: N, children: M.points.map((C, L) => /* @__PURE__ */ e(
|
|
@@ -6893,7 +6893,7 @@ function Do({ series: t, labels: n, height: l = 240, format: c = Y, className: s
|
|
|
6893
6893
|
d > 0 && /* @__PURE__ */ m("svg", { width: d, height: l, className: "select-chart", onMouseLeave: () => {
|
|
6894
6894
|
h(null), o.hide();
|
|
6895
6895
|
}, children: [
|
|
6896
|
-
n.map((p, b) => /* @__PURE__ */ e("text", { x: $(b), y: l - u.bottom + 16, className: "select-chart__xlabel", textAnchor: "middle", children: p }, b)),
|
|
6896
|
+
n.map((p, b) => /* @__PURE__ */ e("text", { x: $(b), y: l - u.bottom + 16, className: "select-chart__xlabel", textAnchor: b === 0 ? "start" : b === f - 1 ? "end" : "middle", children: p }, b)),
|
|
6897
6897
|
t.map((p, b) => {
|
|
6898
6898
|
const S = p.color ?? j(b), k = x[b].map((M, w) => [$(w), _(M)]);
|
|
6899
6899
|
return /* @__PURE__ */ m("g", { style: { opacity: i === null || i === b ? 1 : 0.22 }, children: [
|
package/package.json
CHANGED