From ee47b30e05ce248c5a8447b7c69fc1e89ed94c38 Mon Sep 17 00:00:00 2001 From: xiaoluoHe Date: Tue, 7 Jan 2025 15:02:44 +0800 Subject: [PATCH] fix: fix invisible region blocking mark events --- .../fix-region-foreground-event_2025-01-07-07-02.json | 10 ++++++++++ packages/vchart/src/region/region.ts | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 common/changes/@visactor/vchart/fix-region-foreground-event_2025-01-07-07-02.json diff --git a/common/changes/@visactor/vchart/fix-region-foreground-event_2025-01-07-07-02.json b/common/changes/@visactor/vchart/fix-region-foreground-event_2025-01-07-07-02.json new file mode 100644 index 0000000000..54a04a78fd --- /dev/null +++ b/common/changes/@visactor/vchart/fix-region-foreground-event_2025-01-07-07-02.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@visactor/vchart", + "comment": "fix: fix invisible region blocking mark events, #3638", + "type": "none" + } + ], + "packageName": "@visactor/vchart" +} \ No newline at end of file diff --git a/packages/vchart/src/region/region.ts b/packages/vchart/src/region/region.ts index 9664bb243a..1cd6fd8791 100644 --- a/packages/vchart/src/region/region.ts +++ b/packages/vchart/src/region/region.ts @@ -213,7 +213,8 @@ export class Region extends LayoutModel this._foregroundMark, { ...this._spec.style, - fillOpacity: 0 + fillOpacity: 0, + pickable: false }, 'normal', AttributeLevel.User_Mark