Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rect元素在box中 box在App的tree层 使用插件指定includesType: ['Rect'] 鼠标放到rect元素上没有展示提示框 #3

Open
BDN233 opened this issue Nov 28, 2024 · 2 comments
Assignees

Comments

@BDN233
Copy link

BDN233 commented Nov 28, 2024

No description provided.

@214L
Copy link
Owner

214L commented Nov 28, 2024 via email

@214L 214L self-assigned this Nov 28, 2024
@214L
Copy link
Owner

214L commented Nov 28, 2024

No description provided.

@BDN233
在leafer的图形树结构中,box实际在box内子元素的“上方”。
所以box阻挡住了rect元素的拾取,且box不在includesType中,所以没有展示任何提示框。
当前插件版本中,可以使用如下配置拾取Rect元素。

new TooltipPlugin(app, {
  includesType: ['Rect'],
  excludesType: ['Box'],
  throughExcludes: true,
})

后续考虑优化这部分拾取逻辑,使其更简单易懂。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants