fix(monitoring): 修复飞线图白色渲染残影

This commit is contained in:
Cheng Zhou
2026-07-20 11:10:08 +08:00
parent 795e0a75ca
commit 46a6dda753
2 changed files with 6 additions and 4 deletions
@@ -223,8 +223,9 @@ const mapLoadError = ref("");
const mapReady = ref(false);
const lastUpdatedAt = ref<Date | null>(null);
const getDevicePixelRatio = () => (typeof window === "undefined" ? 1 : window.devicePixelRatio || 1);
const chartInitOptions = { devicePixelRatio: Math.min(getDevicePixelRatio(), 2), useDirtyRect: true };
const fullscreenChartInitOptions = { devicePixelRatio: Math.min(getDevicePixelRatio(), 2), useDirtyRect: true };
// Animated lines/effectScatter leave cleared rectangles over the geo layer when dirty-rect rendering is enabled.
const chartInitOptions = { devicePixelRatio: Math.min(getDevicePixelRatio(), 2), useDirtyRect: false };
const fullscreenChartInitOptions = { devicePixelRatio: Math.min(getDevicePixelRatio(), 2), useDirtyRect: false };
const chartUpdateOptions = { notMerge: true };
const chartAutoresize = { throttle: 120 };
const fullscreenVisible = ref(false);