Skip to content

Commit

Permalink
fix: indicator stop tooltip interaction. fix@VisActor/VChart#3122
Browse files Browse the repository at this point in the history
  • Loading branch information
skie1997 committed Aug 23, 2024
1 parent 68334f0 commit 6a228b4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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"
}
7 changes: 5 additions & 2 deletions packages/vrender-components/src/indicator/indicator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ export class Indicator extends AbstractComponent<Required<IndicatorAttributes>>

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');
}
Expand Down

0 comments on commit 6a228b4

Please sign in to comment.