fix(chart): support wheel zoom out
All checks were successful
Package component / package (push) Successful in 3m50s

This commit is contained in:
李启源
2026-07-31 12:07:08 +08:00
parent 979b698156
commit f98c264562
9 changed files with 200 additions and 16 deletions

View File

@@ -225,7 +225,7 @@ describe('WaveformChart', () => {
}
})
it('uses each track x domain in independent mode instead of the shared initial domain', async () => {
it('uses the shared initial x domain for every independent track by default', async () => {
const wrapper = await mountSizedChart(
{
kind: 'series',
@@ -262,7 +262,9 @@ describe('WaveformChart', () => {
)
const tracks = wrapper.findAll('.waveform-chart__track')
expect(tracks[0]?.get('.waveform-chart__axis-endpoint--end').text()).toBe('6.00')
expect(tracks[0]?.get('.waveform-chart__axis-endpoint--start').text()).toBe('-8.00')
expect(tracks[0]?.get('.waveform-chart__axis-endpoint--end').text()).toBe('5.00')
expect(tracks[1]?.get('.waveform-chart__axis-endpoint--start').text()).toBe('-8.00')
expect(tracks[1]?.get('.waveform-chart__axis-endpoint--end').text()).toBe('5.00')
})