@tsingroc/tsingroc-components 5.0.0-alpha.10 → 5.0.0-alpha.12
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/components/Auth.d.ts +310 -0
- package/dist/components/Auth.js +267 -0
- package/dist/components/AutoResizedECharts.d.ts +21 -0
- package/dist/components/AutoResizedECharts.js +98 -0
- package/dist/components/Calendar.d.ts +50 -0
- package/dist/components/Calendar.js +130 -0
- package/dist/components/CircularProgress.d.ts +21 -0
- package/dist/components/CircularProgress.js +34 -0
- package/dist/components/ConnectedECharts.d.ts +31 -0
- package/dist/components/ConnectedECharts.js +100 -0
- package/dist/components/ECharts.d.ts +57 -0
- package/dist/components/ECharts.js +255 -0
- package/dist/components/Header.d.ts +67 -0
- package/dist/components/Header.js +171 -0
- package/dist/components/ImageBackground.d.ts +32 -0
- package/dist/components/ImageBackground.js +76 -0
- package/dist/components/IndicatorLight.d.ts +44 -0
- package/dist/components/IndicatorLight.js +124 -0
- package/dist/components/LeftAlignedECharts.d.ts +42 -0
- package/dist/components/LeftAlignedECharts.js +270 -0
- package/dist/components/LineChartEditor.d.ts +74 -0
- package/dist/components/LineChartEditor.js +458 -0
- package/dist/components/LineChartTable.d.ts +38 -0
- package/dist/components/LineChartTable.js +245 -0
- package/dist/components/LinkedLineChart.d.ts +45 -0
- package/dist/components/LinkedLineChart.js +159 -0
- package/dist/components/QuickDateRangePicker.d.ts +30 -0
- package/dist/components/QuickDateRangePicker.js +58 -0
- package/dist/components/SegmentedButtons.d.ts +22 -0
- package/dist/components/SegmentedButtons.js +86 -0
- package/dist/components/Sidebar.d.ts +79 -0
- package/dist/components/Sidebar.js +178 -0
- package/dist/components/TsingrocDatePicker.d.ts +38 -0
- package/dist/components/TsingrocDatePicker.js +64 -0
- package/dist/components/TsingrocTheme.d.ts +15 -0
- package/dist/components/TsingrocTheme.js +72 -0
- package/dist/components/UserButton.d.ts +42 -0
- package/dist/components/UserButton.js +105 -0
- package/dist/components/VerticalColorLegend.d.ts +7 -0
- package/dist/components/VerticalColorLegend.js +208 -0
- package/dist/components/WeatherMap.d.ts +18 -0
- package/dist/components/WeatherMap.js +658 -0
- package/dist/deckgl/TiandituLayer.d.ts +13 -0
- package/dist/deckgl/TiandituLayer.js +44 -0
- package/dist/deckgl/WeatherData.d.ts +53 -0
- package/dist/deckgl/WeatherData.js +94 -0
- package/dist/deckgl/index.d.ts +1 -0
- package/dist/deckgl/index.js +1 -0
- package/dist/echarts/coordinateSystems/grid.d.ts +43 -0
- package/dist/echarts/coordinateSystems/grid.js +107 -0
- package/dist/echarts/coordinateSystems/index.js +2 -0
- package/dist/echarts/coordinateSystems/polar.d.ts +45 -0
- package/dist/echarts/coordinateSystems/polar.js +96 -0
- package/dist/echarts/gl-types.d.js +0 -0
- package/dist/echarts/gl.d.ts +115 -0
- package/dist/echarts/gl.js +47 -0
- package/dist/echarts/index.d.ts +46 -0
- package/dist/echarts/index.js +46 -0
- package/dist/echarts/legend.d.ts +17 -0
- package/dist/echarts/legend.js +15 -0
- package/dist/echarts/radar.d.ts +24 -0
- package/dist/echarts/radar.js +22 -0
- package/dist/echarts/series/barSeries.d.ts +23 -0
- package/dist/echarts/series/barSeries.js +18 -0
- package/dist/echarts/series/boxplotSeries.d.ts +21 -0
- package/dist/echarts/series/boxplotSeries.js +40 -0
- package/dist/echarts/series/index.js +7 -0
- package/dist/echarts/series/intervalSeries.d.ts +32 -0
- package/dist/echarts/series/intervalSeries.js +55 -0
- package/dist/echarts/series/lineSeries.d.ts +36 -0
- package/dist/echarts/series/lineSeries.js +45 -0
- package/dist/echarts/series/maxBarSeries.d.ts +18 -0
- package/dist/echarts/series/maxBarSeries.js +39 -0
- package/dist/echarts/series/pieSeries.d.ts +31 -0
- package/dist/echarts/series/pieSeries.js +47 -0
- package/dist/echarts/series/windLineSeries.d.ts +47 -0
- package/dist/echarts/series/windLineSeries.js +51 -0
- package/{src/echarts/tooltip.ts → dist/echarts/tooltip.d.ts} +1 -5
- package/dist/echarts/tooltip.js +18 -0
- package/dist/env.d.js +0 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +20 -0
- package/dist/utils/debug.d.ts +1 -0
- package/dist/utils/debug.js +25 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/math.d.ts +9 -0
- package/{src/utils/math.ts → dist/utils/math.js} +2 -2
- package/dist/utils/mock.d.ts +8 -0
- package/dist/utils/mock.js +40 -0
- package/dist/utils/startOfQuarter.d.ts +2 -0
- package/dist/utils/startOfQuarter.js +4 -0
- package/package.json +26 -14
- package/src/components/Auth.tsx +0 -623
- package/src/components/AutoResizedECharts.tsx +0 -70
- package/src/components/Calendar.tsx +0 -182
- package/src/components/CircularProgress.tsx +0 -38
- package/src/components/ConnectedECharts.tsx +0 -62
- package/src/components/ECharts.tsx +0 -206
- package/src/components/Header.tsx +0 -136
- package/src/components/ImageBackground.tsx +0 -58
- package/src/components/IndicatorLight.tsx +0 -106
- package/src/components/LeftAlignedECharts.tsx +0 -190
- package/src/components/LineChartEditor.tsx +0 -558
- package/src/components/LineChartTable.tsx +0 -286
- package/src/components/LinkedECharts.tsx +0 -51
- package/src/components/LinkedLineChart.tsx +0 -144
- package/src/components/QuickDateRangePicker.tsx +0 -84
- package/src/components/SegmentedButtons.tsx +0 -46
- package/src/components/Sidebar.tsx +0 -271
- package/src/components/StrictECharts.d.ts +0 -47
- package/src/components/StrictECharts.js +0 -1
- package/src/components/TsingrocDatePicker.tsx +0 -103
- package/src/components/TsingrocTheme.tsx +0 -48
- package/src/components/UserButton.tsx +0 -165
- package/src/components/VerticalColorLegend.tsx +0 -73
- package/src/components/WeatherMap.tsx +0 -522
- package/src/deckgl/TiandituLayer.ts +0 -56
- package/src/deckgl/WeatherData.ts +0 -157
- package/src/deckgl/index.ts +0 -4
- package/src/echarts/coordinateSystems/grid.ts +0 -143
- package/src/echarts/coordinateSystems/polar.ts +0 -148
- package/src/echarts/gl.ts +0 -159
- package/src/echarts/index.ts +0 -129
- package/src/echarts/legend.ts +0 -36
- package/src/echarts/radar.ts +0 -46
- package/src/echarts/series/barSeries.ts +0 -37
- package/src/echarts/series/boxplotSeries.ts +0 -62
- package/src/echarts/series/intervalSeries.ts +0 -70
- package/src/echarts/series/lineSeries.ts +0 -78
- package/src/echarts/series/maxBarSeries.ts +0 -55
- package/src/echarts/series/pieSeries.ts +0 -76
- package/src/echarts/series/windLineSeries.ts +0 -113
- package/src/index.ts +0 -118
- package/src/types.d.ts +0 -5
- package/src/utils/debug.ts +0 -39
- package/src/utils/mock.ts +0 -69
- package/src/utils/startOfQuarter.ts +0 -6
- /package/{src/echarts/coordinateSystems/index.ts → dist/echarts/coordinateSystems/index.d.ts} +0 -0
- /package/{src/echarts/series/index.ts → dist/echarts/series/index.d.ts} +0 -0
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import type { LineSeriesOption as OrigLineSeriesOption } from "echarts";
|
|
2
|
-
|
|
3
|
-
import type { EChartsSeries } from "..";
|
|
4
|
-
import type { LineSeriesPreset } from "./lineSeries";
|
|
5
|
-
|
|
6
|
-
export interface WindLineSeriesOption {
|
|
7
|
-
/** 系列名称,不可与其他系列重名。*/
|
|
8
|
-
name: string;
|
|
9
|
-
/**
|
|
10
|
-
* 风力数据,支持两种形式:
|
|
11
|
-
*
|
|
12
|
-
* - `type: "cartesian"`,用沿经线和沿纬线的风速分量表示风力;
|
|
13
|
-
* - `type: "polar"`,用风速和风向表示风力。
|
|
14
|
-
*/
|
|
15
|
-
data:
|
|
16
|
-
| {
|
|
17
|
-
type: "cartesian";
|
|
18
|
-
/** 沿纬线向**东**吹(西风)的风速分量,单位 m/s。*/
|
|
19
|
-
u: number[];
|
|
20
|
-
/** 沿经线向**北**吹(南风)的风速分量,单位 m/s。*/
|
|
21
|
-
v: number[];
|
|
22
|
-
}
|
|
23
|
-
| {
|
|
24
|
-
type: "polar";
|
|
25
|
-
/** 风速,单位 m/s。*/
|
|
26
|
-
speed: number[];
|
|
27
|
-
/** 风向,单位是角度(deg),`0` 表示**北风**(往南吹),随着角度增大,风向**顺时针**旋转。*/
|
|
28
|
-
direction: number[];
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* 风向标的宽度和长度。
|
|
32
|
-
* @default [10, 20]
|
|
33
|
-
*/
|
|
34
|
-
symbolSize?: [number, number];
|
|
35
|
-
/**
|
|
36
|
-
* 其它需要添加到系列上的选项,参见 [ECharts 文档][1]。优先级**低于**预设 `presets`。
|
|
37
|
-
*
|
|
38
|
-
* [1]: https://echarts.apache.org/zh/option.html#series-line
|
|
39
|
-
*/
|
|
40
|
-
option?: OrigLineSeriesOption;
|
|
41
|
-
/**
|
|
42
|
-
* 需要应用的配置预设。预设的优先级**高于** `option`。
|
|
43
|
-
*
|
|
44
|
-
* 可用的预设:{@linkcode gradientArea}
|
|
45
|
-
*/
|
|
46
|
-
presets?: LineSeriesPreset[];
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* 风速风向折线图。
|
|
51
|
-
*/
|
|
52
|
-
export function windLineSeries(
|
|
53
|
-
option: WindLineSeriesOption,
|
|
54
|
-
): EChartsSeries<OrigLineSeriesOption> {
|
|
55
|
-
const data = option.data;
|
|
56
|
-
const { speed, direction } =
|
|
57
|
-
data.type === "polar"
|
|
58
|
-
? data
|
|
59
|
-
: {
|
|
60
|
-
speed: data.u.map((u, i) => Math.sqrt(u * u + data.v[i] * data.v[i])),
|
|
61
|
-
direction: data.u.map(
|
|
62
|
-
(u, i) => (Math.atan2(-u, -data.v[i]) / Math.PI) * 180,
|
|
63
|
-
),
|
|
64
|
-
};
|
|
65
|
-
const symbolSize = option.symbolSize ?? [10, 20];
|
|
66
|
-
const series: OrigLineSeriesOption = {
|
|
67
|
-
type: "line",
|
|
68
|
-
id: option.name,
|
|
69
|
-
name: option.name,
|
|
70
|
-
data: speed,
|
|
71
|
-
smooth: true,
|
|
72
|
-
symbol: "arrow",
|
|
73
|
-
symbolSize: symbolSize,
|
|
74
|
-
symbolOffset: (data, param) => {
|
|
75
|
-
const rad = (direction[param.dataIndex] / 180) * Math.PI;
|
|
76
|
-
const halfSize = symbolSize[1] / 2;
|
|
77
|
-
return [-halfSize * Math.sin(rad), halfSize * Math.cos(rad)];
|
|
78
|
-
},
|
|
79
|
-
symbolRotate: (data, param) => 180 - direction[param.dataIndex],
|
|
80
|
-
...option.option,
|
|
81
|
-
itemStyle: {
|
|
82
|
-
borderWidth: 1,
|
|
83
|
-
borderColor: "#fff",
|
|
84
|
-
...option.option?.itemStyle,
|
|
85
|
-
},
|
|
86
|
-
tooltip: {
|
|
87
|
-
valueFormatter: (value, index) => {
|
|
88
|
-
const dir = direction[index];
|
|
89
|
-
if (Number.isNaN(dir) || Number.isNaN(value)) return "--";
|
|
90
|
-
return (
|
|
91
|
-
(value as number).toFixed(2) +
|
|
92
|
-
" m/s," +
|
|
93
|
-
WIND_DIRECTIONS[(Math.round(dir / 45) + 8) % 8] +
|
|
94
|
-
"风"
|
|
95
|
-
);
|
|
96
|
-
},
|
|
97
|
-
...option.option?.tooltip,
|
|
98
|
-
},
|
|
99
|
-
};
|
|
100
|
-
option.presets?.forEach((preset) => preset(series));
|
|
101
|
-
return { series: [series] };
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
const WIND_DIRECTIONS = [
|
|
105
|
-
"北",
|
|
106
|
-
"东北",
|
|
107
|
-
"东",
|
|
108
|
-
"东南",
|
|
109
|
-
"南",
|
|
110
|
-
"西南",
|
|
111
|
-
"西",
|
|
112
|
-
"西北",
|
|
113
|
-
];
|
package/src/index.ts
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
export {
|
|
2
|
-
AuthProvider,
|
|
3
|
-
type AuthProviderProps,
|
|
4
|
-
AuthCheck,
|
|
5
|
-
type AuthCheckProps,
|
|
6
|
-
AuthCallback,
|
|
7
|
-
type AuthCallbackProps,
|
|
8
|
-
useAuth,
|
|
9
|
-
type Auth,
|
|
10
|
-
type CasdoorAuth,
|
|
11
|
-
type LocalAuth,
|
|
12
|
-
} from "./components/Auth";
|
|
13
|
-
|
|
14
|
-
export {
|
|
15
|
-
default as AutoResizedECharts,
|
|
16
|
-
withAutoResize,
|
|
17
|
-
} from "./components/AutoResizedECharts";
|
|
18
|
-
|
|
19
|
-
export { default as Calendar, type CalendarProps } from "./components/Calendar";
|
|
20
|
-
|
|
21
|
-
export {
|
|
22
|
-
default as CircularProgress,
|
|
23
|
-
type CircularProgressProps,
|
|
24
|
-
} from "./components/CircularProgress";
|
|
25
|
-
|
|
26
|
-
export {
|
|
27
|
-
default as ConnectedECharts,
|
|
28
|
-
withConnector,
|
|
29
|
-
} from "./components/ConnectedECharts";
|
|
30
|
-
|
|
31
|
-
export {
|
|
32
|
-
default as ECharts,
|
|
33
|
-
type EChartsProps,
|
|
34
|
-
type EChartsRef,
|
|
35
|
-
type EChartsComponentType,
|
|
36
|
-
type EChartsHOCType,
|
|
37
|
-
} from "./components/ECharts";
|
|
38
|
-
|
|
39
|
-
export { default as Header, type HeaderProps } from "./components/Header";
|
|
40
|
-
|
|
41
|
-
export {
|
|
42
|
-
default as ImageBackground,
|
|
43
|
-
type ImageBackgroundProps,
|
|
44
|
-
} from "./components/ImageBackground";
|
|
45
|
-
|
|
46
|
-
export {
|
|
47
|
-
default as IndicatorLight,
|
|
48
|
-
type IndicatorLightProps,
|
|
49
|
-
} from "./components/IndicatorLight";
|
|
50
|
-
|
|
51
|
-
export {
|
|
52
|
-
default as LeftAlignedECharts,
|
|
53
|
-
withLeftAlign,
|
|
54
|
-
} from "./components/LeftAlignedECharts";
|
|
55
|
-
|
|
56
|
-
export {
|
|
57
|
-
default as LineChartEditor,
|
|
58
|
-
type LineChartEditorProps,
|
|
59
|
-
} from "./components/LineChartEditor";
|
|
60
|
-
|
|
61
|
-
export {
|
|
62
|
-
default as StrictECharts,
|
|
63
|
-
type StrictEChartsProps,
|
|
64
|
-
type ECEventDefinition,
|
|
65
|
-
type EChartsInitOpts,
|
|
66
|
-
} from "./components/StrictECharts";
|
|
67
|
-
|
|
68
|
-
export {
|
|
69
|
-
default as LineChartTable,
|
|
70
|
-
type LineChartTableProps,
|
|
71
|
-
} from "./components/LineChartTable";
|
|
72
|
-
|
|
73
|
-
export {
|
|
74
|
-
default as LinkedECharts,
|
|
75
|
-
withEChartsLink,
|
|
76
|
-
EChartsLinkProvider,
|
|
77
|
-
} from "./components/LinkedECharts";
|
|
78
|
-
|
|
79
|
-
export {
|
|
80
|
-
default as LinkedLineChart,
|
|
81
|
-
LineChartLinkProvider,
|
|
82
|
-
type LinkedLineChartProps,
|
|
83
|
-
type LineChartLinkProviderProps,
|
|
84
|
-
} from "./components/LinkedLineChart";
|
|
85
|
-
|
|
86
|
-
export {
|
|
87
|
-
default as QuickDateRangePicker,
|
|
88
|
-
type QuickDateRangePickerProps,
|
|
89
|
-
} from "./components/QuickDateRangePicker";
|
|
90
|
-
|
|
91
|
-
export {
|
|
92
|
-
default as SegmentedButtons,
|
|
93
|
-
TimeUnitSwitcher,
|
|
94
|
-
type TimeUnitSwitcherProps,
|
|
95
|
-
} from "./components/SegmentedButtons";
|
|
96
|
-
|
|
97
|
-
export { default as Sidebar, type SidebarProps } from "./components/Sidebar";
|
|
98
|
-
|
|
99
|
-
export {
|
|
100
|
-
default as TsingrocDatePicker,
|
|
101
|
-
type DatePickerProps,
|
|
102
|
-
} from "./components/TsingrocDatePicker";
|
|
103
|
-
|
|
104
|
-
export {
|
|
105
|
-
default as TsingrocTheme,
|
|
106
|
-
type TsingrocThemeProps,
|
|
107
|
-
} from "./components/TsingrocTheme";
|
|
108
|
-
|
|
109
|
-
export {
|
|
110
|
-
default as UserButton,
|
|
111
|
-
type UserButtonProps,
|
|
112
|
-
} from "./components/UserButton";
|
|
113
|
-
|
|
114
|
-
export {
|
|
115
|
-
default as WeatherMap,
|
|
116
|
-
type WeatherMapProps,
|
|
117
|
-
type WeatherData,
|
|
118
|
-
} from "./components/WeatherMap";
|
package/src/types.d.ts
DELETED
package/src/utils/debug.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export const debugAssert: (cond: any, ...msg: any[]) => asserts cond =
|
|
2
|
-
import.meta.env.DEV
|
|
3
|
-
? (cond: any, ...msg: any[]) => {
|
|
4
|
-
if (!cond) {
|
|
5
|
-
throw new AssertionError(...msg);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
: () => {};
|
|
9
|
-
|
|
10
|
-
class AssertionError extends Error {
|
|
11
|
-
originalMessage: any[];
|
|
12
|
-
constructor(...msg: any[]) {
|
|
13
|
-
super();
|
|
14
|
-
this.originalMessage = msg;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
if (import.meta.env.DEV) {
|
|
19
|
-
const consoleError = console.error;
|
|
20
|
-
console.error = (...msg: any[]) => {
|
|
21
|
-
if (
|
|
22
|
-
msg.length === 4 && msg[1] instanceof AssertionError
|
|
23
|
-
) {
|
|
24
|
-
const error = msg[1];
|
|
25
|
-
const originalMessage = error.originalMessage;
|
|
26
|
-
console.groupCollapsed(
|
|
27
|
-
"%c❌ Assertion failed:" + " %c%o".repeat(originalMessage.length),
|
|
28
|
-
"color: orange; font-weight: normal;",
|
|
29
|
-
...originalMessage.flatMap(
|
|
30
|
-
(item) => ["color: unset; font-weight: normal;", item],
|
|
31
|
-
),
|
|
32
|
-
);
|
|
33
|
-
console.log(error);
|
|
34
|
-
console.groupEnd();
|
|
35
|
-
} else {
|
|
36
|
-
consoleError(...msg);
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}
|
package/src/utils/mock.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import type { Dayjs } from "dayjs";
|
|
2
|
-
|
|
3
|
-
import { clamp, normal } from "./math";
|
|
4
|
-
|
|
5
|
-
export function mockData(
|
|
6
|
-
length: number,
|
|
7
|
-
mean: number,
|
|
8
|
-
sd: number,
|
|
9
|
-
sdDelta: number,
|
|
10
|
-
min: number = -Infinity,
|
|
11
|
-
max: number = Infinity,
|
|
12
|
-
) {
|
|
13
|
-
if (sd === 0) {
|
|
14
|
-
return Array(length).fill(mean);
|
|
15
|
-
}
|
|
16
|
-
const result: number[] = [];
|
|
17
|
-
if (length <= 0) {
|
|
18
|
-
return result;
|
|
19
|
-
}
|
|
20
|
-
result.push(clamp(mean + normal() * sd, min, max));
|
|
21
|
-
for (let i = 0; i < length - 1; i++) {
|
|
22
|
-
const diffMean = result[i] - mean;
|
|
23
|
-
const delta = normal() * sdDelta;
|
|
24
|
-
result.push(
|
|
25
|
-
clamp(
|
|
26
|
-
result[i] +
|
|
27
|
-
delta *
|
|
28
|
-
(Math.sign(diffMean * delta) > 0
|
|
29
|
-
? Math.exp(-Math.abs(diffMean / sd))
|
|
30
|
-
: Math.log(Math.E + Math.abs(diffMean / sd))),
|
|
31
|
-
min,
|
|
32
|
-
max,
|
|
33
|
-
),
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
return result;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function mockPrediction(
|
|
40
|
-
length: number,
|
|
41
|
-
mean: number,
|
|
42
|
-
sd: number,
|
|
43
|
-
sdDelta: number,
|
|
44
|
-
sdError: number,
|
|
45
|
-
pManual: number,
|
|
46
|
-
min: number = -Infinity,
|
|
47
|
-
max: number = Infinity,
|
|
48
|
-
) {
|
|
49
|
-
const real = mockData(length, mean, sd, sdDelta, min, max);
|
|
50
|
-
const error = mockData(length, 0, sdError, sdDelta);
|
|
51
|
-
const prediction = real.map((x, i) => clamp(x + error[i], min, max));
|
|
52
|
-
const manualAdjust = mockData(length, 0, sdError, sdDelta);
|
|
53
|
-
const manual = prediction.map((x, i) =>
|
|
54
|
-
Math.random() < pManual ? clamp(x + manualAdjust[i], min, max) : x,
|
|
55
|
-
);
|
|
56
|
-
return { prediction, manual, real };
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function mockTimeSeries(length: number, start: Dayjs) {
|
|
60
|
-
const result: Dayjs[] = [];
|
|
61
|
-
if (length <= 0) {
|
|
62
|
-
return result;
|
|
63
|
-
}
|
|
64
|
-
result.push(start);
|
|
65
|
-
for (let i = 1; i < length; i++) {
|
|
66
|
-
result.push(start.add(15 * i, "minutes"));
|
|
67
|
-
}
|
|
68
|
-
return result;
|
|
69
|
-
}
|
/package/{src/echarts/coordinateSystems/index.ts → dist/echarts/coordinateSystems/index.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|