anarock-widgets 1.0.397 → 1.0.399
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.js +38 -38
- package/dist/index.es.js +15 -4
- package/dist/index.umd.js +6 -6
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -53987,7 +53987,14 @@ const che = ({ data: e }) => {
|
|
|
53987
53987
|
scales: {
|
|
53988
53988
|
x: {
|
|
53989
53989
|
grid: { display: !1 },
|
|
53990
|
-
ticks: {
|
|
53990
|
+
ticks: {
|
|
53991
|
+
color: "#64748B",
|
|
53992
|
+
font: { size: 12 },
|
|
53993
|
+
callback: function(d) {
|
|
53994
|
+
const f = this.getLabelForValue(d);
|
|
53995
|
+
return f?.length > 10 ? `${f?.slice(0, 10)}...` : f;
|
|
53996
|
+
}
|
|
53997
|
+
}
|
|
53991
53998
|
},
|
|
53992
53999
|
y: {
|
|
53993
54000
|
beginAtZero: !0,
|
|
@@ -55043,6 +55050,7 @@ function Ehe({ data: e = [] }) {
|
|
|
55043
55050
|
dataKey: "block_name",
|
|
55044
55051
|
tick: { fontSize: 12, fill: "#64748B" },
|
|
55045
55052
|
axisLine: !1,
|
|
55053
|
+
tickFormatter: (c) => c?.length > 8 ? `${c?.slice(0, 8)}...` : c,
|
|
55046
55054
|
tickLine: !1
|
|
55047
55055
|
}
|
|
55048
55056
|
),
|
|
@@ -55766,7 +55774,8 @@ const kP = (e) => String(e).padStart(2, "0"), PP = (e, t = "start") => e ? `${[
|
|
|
55766
55774
|
dataKey: "building_name",
|
|
55767
55775
|
tick: { fontSize: 12, fill: "#64748B" },
|
|
55768
55776
|
axisLine: !0,
|
|
55769
|
-
tickLine: !1
|
|
55777
|
+
tickLine: !1,
|
|
55778
|
+
tickFormatter: (o) => o?.length > 8 ? `${o?.slice(0, 8)}...` : o
|
|
55770
55779
|
}
|
|
55771
55780
|
),
|
|
55772
55781
|
/* @__PURE__ */ h.jsx(
|
|
@@ -56018,7 +56027,8 @@ function $he({ data: e }) {
|
|
|
56018
56027
|
dataKey: "building_name",
|
|
56019
56028
|
axisLine: !1,
|
|
56020
56029
|
tickLine: !1,
|
|
56021
|
-
tick: { fill: "#64748B", fontSize: 12 }
|
|
56030
|
+
tick: { fill: "#64748B", fontSize: 12 },
|
|
56031
|
+
tickFormatter: (r) => r?.length > 8 ? `${r?.slice(0, 8)}...` : r
|
|
56022
56032
|
}
|
|
56023
56033
|
),
|
|
56024
56034
|
/* @__PURE__ */ h.jsx(
|
|
@@ -56397,7 +56407,8 @@ const _f = ["#8CB33E", "#F59E0B", "#3B82F6", "#06B6D4", "#CFCFCF"], zhe = [
|
|
|
56397
56407
|
dataKey: "name",
|
|
56398
56408
|
tick: { fill: "#64748B", fontSize: 12 },
|
|
56399
56409
|
axisLine: !1,
|
|
56400
|
-
tickLine: !1
|
|
56410
|
+
tickLine: !1,
|
|
56411
|
+
tickFormatter: (s) => s?.length > 8 ? `${s?.slice(0, 8)}...` : s
|
|
56401
56412
|
}
|
|
56402
56413
|
),
|
|
56403
56414
|
/* @__PURE__ */ h.jsx(
|