From c8bd058f3241619fb8c699e144c6a1960daaa3f4 Mon Sep 17 00:00:00 2001 From: pearmini Date: Thu, 21 Mar 2024 11:39:51 +0800 Subject: [PATCH] fix: tooltip for multi view --- .../api/chart-emit-series-tooltip/step0.html | 2 +- .../api/chart-emit-series-tooltip/step1.html | 2 +- .../tooltip/mock-line-flex/step0.html | 46 ++++++++++++ __tests__/plots/tooltip/index.ts | 1 + __tests__/plots/tooltip/mock-line-flex.ts | 72 +++++++++++++++++++ src/interaction/utils.ts | 15 ++-- 6 files changed, 131 insertions(+), 7 deletions(-) create mode 100644 __tests__/integration/snapshots/tooltip/mock-line-flex/step0.html create mode 100644 __tests__/plots/tooltip/mock-line-flex.ts diff --git a/__tests__/integration/snapshots/api/chart-emit-series-tooltip/step0.html b/__tests__/integration/snapshots/api/chart-emit-series-tooltip/step0.html index 83a5092c55..1f5242c2fc 100644 --- a/__tests__/integration/snapshots/api/chart-emit-series-tooltip/step0.html +++ b/__tests__/integration/snapshots/api/chart-emit-series-tooltip/step0.html @@ -1,7 +1,7 @@