From 6a228b42cd0b0f64469f79fd5d1c5dc363b79cb3 Mon Sep 17 00:00:00 2001 From: skie1997 Date: Fri, 23 Aug 2024 14:40:19 +0800 Subject: [PATCH] fix: indicator stop tooltip interaction. fix@VisActor/VChart#3122 --- .../fix-indicator-interactive_2024-08-23-06-36.json | 10 ++++++++++ packages/vrender-components/src/indicator/indicator.ts | 7 +++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 common/changes/@visactor/vrender-components/fix-indicator-interactive_2024-08-23-06-36.json diff --git a/common/changes/@visactor/vrender-components/fix-indicator-interactive_2024-08-23-06-36.json b/common/changes/@visactor/vrender-components/fix-indicator-interactive_2024-08-23-06-36.json new file mode 100644 index 000000000..dcf5ad48e --- /dev/null +++ b/common/changes/@visactor/vrender-components/fix-indicator-interactive_2024-08-23-06-36.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@visactor/vrender-components", + "comment": "fix: indicator stop tooltip interaction. fix@VisActor/VChart#3123", + "type": "none" + } + ], + "packageName": "@visactor/vrender-components" +} \ No newline at end of file diff --git a/packages/vrender-components/src/indicator/indicator.ts b/packages/vrender-components/src/indicator/indicator.ts index 5fe38ff11..7cdbe6107 100644 --- a/packages/vrender-components/src/indicator/indicator.ts +++ b/packages/vrender-components/src/indicator/indicator.ts @@ -64,8 +64,11 @@ export class Indicator extends AbstractComponent> const limit = Math.min(size.width, size.height) * limitRatio; - const group = this.createOrUpdateChild('indicator-container', { x: 0, y: 0, zIndex: 1 }, 'group') as IGroup; - + const group = this.createOrUpdateChild( + 'indicator-container', + { x: 0, y: 0, zIndex: 1, pickable: this.attribute.pickable ?? true }, + 'group' + ) as IGroup; if (isValid(title)) { this._title = this._renderText(group, title, limit, limitRatio, 'title.style', 'indicator-title'); }