feat(data): 扩展示例波形数据与测试覆盖
All checks were successful
Package component / package (push) Successful in 4m26s
All checks were successful
Package component / package (push) Successful in 4m26s
新增示例谐波对比数据,完善图例、多轴和演示测试,并同步文档说明。
This commit is contained in:
@@ -13,7 +13,7 @@ type ErrorGenerator = (
|
||||
|
||||
interface SimulatedSeriesDefinition extends Pick<
|
||||
WaveformSeries,
|
||||
'id' | 'shotNo' | 'name' | 'unit' | 'lineType' | 'pointType' | 'errorBar'
|
||||
'id' | 'trackId' | 'shotNo' | 'name' | 'unit' | 'color' | 'lineType' | 'pointType' | 'errorBar'
|
||||
> {
|
||||
signal: SignalGenerator
|
||||
errors?: ErrorGenerator
|
||||
@@ -60,6 +60,7 @@ const seriesDefinitions: SimulatedSeriesDefinition[] = [
|
||||
},
|
||||
{
|
||||
id: 'simulated-harmonic',
|
||||
trackId: 'simulated-harmonic-frame',
|
||||
shotNo: '13300',
|
||||
name: '谐波扰动',
|
||||
unit: 'V',
|
||||
@@ -68,6 +69,18 @@ const seriesDefinitions: SimulatedSeriesDefinition[] = [
|
||||
signal: (time) =>
|
||||
0.9 * Math.sin(TWO_PI * 0.55 * time) + 0.28 * Math.sin(TWO_PI * 2.2 * time + 0.4),
|
||||
},
|
||||
{
|
||||
id: 'simulated-harmonic-reference',
|
||||
trackId: 'simulated-harmonic-frame',
|
||||
shotNo: '13300',
|
||||
name: '谐波对比',
|
||||
unit: 'V',
|
||||
color: '#2ca02c',
|
||||
lineType: 'linear',
|
||||
pointType: 'none',
|
||||
signal: (time) =>
|
||||
0.62 * Math.sin(TWO_PI * 0.55 * time + 0.55) + 0.18 * Math.sin(TWO_PI * 2.2 * time - 0.2),
|
||||
},
|
||||
{
|
||||
id: 'simulated-damped',
|
||||
shotNo: '13300',
|
||||
|
||||
Reference in New Issue
Block a user