VisActor / VTable

VTable is not just a high-performance multidimensional data analysis table, but also a grid artist that creates art between rows and columns.
https://visactor.io/vtable
MIT License
1.57k stars 129 forks source link

[Feature] 是否可以提供canvas绘制空白处的点击事件 #2055

Open mzhang-eric opened 1 month ago

mzhang-eric commented 1 month ago

What problem does this feature solve?

我想要能够区分点击事件是否发生在下图B区域,比如 SELECT_CLEAR 事件触发时我想知道是点击了A区域(outside) 还是B区域(blank Area),又比如我想实现点击A外部区域隐藏右键菜单,而点击B空白区域的时候不隐藏。

但我现在似乎没有办法确定发生在B区域的鼠标点击事件。

windexport_1720403629359

What does the proposed API look like?

希望能够提供canvas绘制空白处的点击事件监听

fangsmile commented 1 month ago

事件有抛出原始事件e吧 通过e上的target应该可以区分开的