Skip to content

Commit

Permalink
chore: disable transform of tooltip in bugserver
Browse files Browse the repository at this point in the history
  • Loading branch information
xile611 committed Dec 10, 2024
1 parent 435e9a5 commit 3de845a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/bugserver-trigger/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import * as VChart from '@visactor/vchart';
import * as VChartExtension '@visactor/vchart-extension';


const defaultTheme = VChart.ThemeManager.getDefaultTheme();
const defaultTheme = VChart.ThemeManager.getCurrentTheme();
const defaultTransformedTheme = VChart.ThemeManager.getCurrentTheme(true);

// 强制设置tooltip不进行动画
defaultTheme.component.tooltip.transitionDuration = 0;
defaultTransformedTheme.component.tooltip.transitionDuration = 0;

(window as any).VChart = VChart;
(window as any).VChartExtension = VChartExtension;
Expand Down

0 comments on commit 3de845a

Please sign in to comment.