@tsingroc/tsingroc-components 5.0.0-alpha.14 → 5.0.0-alpha.16
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.
|
@@ -224,11 +224,14 @@ export const withSelectable = ECharts => function SelectableECharts(props) {
|
|
|
224
224
|
...inputOption
|
|
225
225
|
};
|
|
226
226
|
if (inputSeries) {
|
|
227
|
+
const series = {
|
|
228
|
+
...inputSeries,
|
|
229
|
+
showSymbol: true,
|
|
230
|
+
markArea: {
|
|
231
|
+
data: []
|
|
232
|
+
}
|
|
233
|
+
};
|
|
227
234
|
if (selectedIndices.size > 0 || mode === "add" && mouseState?.end) {
|
|
228
|
-
const series = {
|
|
229
|
-
...inputSeries,
|
|
230
|
-
showSymbol: true
|
|
231
|
-
};
|
|
232
235
|
const allSelectedIndices = new Set();
|
|
233
236
|
series.data = inputSeries.data?.map((point_1, i_2) => {
|
|
234
237
|
const destructured_1 = destructureLineDataItem(point_1, i_2);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Dayjs } from "dayjs";
|
|
2
2
|
import type { XAXisComponentOption } from "echarts";
|
|
3
|
-
export
|
|
3
|
+
export declare function timeAxisLabel(startTime: Dayjs, endTime: Dayjs): (XAXisComponentOption & {
|
|
4
4
|
type: "time";
|
|
5
5
|
})["axisLabel"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import dayjs from "dayjs";
|
|
2
|
-
export
|
|
2
|
+
export function timeAxisLabel(startTime, endTime) {
|
|
3
3
|
return {
|
|
4
4
|
formatter: endTime.diff(startTime, "day", true) <= 1 ? value => dayjs(value).isSame(endTime) && endTime.hour() === 0 ? "24:00" : "{HH}:{mm}" : value => {
|
|
5
5
|
const time = dayjs(value);
|