VisActor / VisActor/VTable

[Feature] 判断单元格是否被选中

Open
#4,321 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
TypeScript
Stars
3.7k
Forks
486
Avg merge
1d 19h
Merged PRs (30d)
16

Description

What problem does this feature solve?
Image 需求: 当我框选了一些单元格后,想进行右键操作,这时候需要判断一下 右键的单元格是否在框选的单元格内 问题: 因为框选的时候 支持ctrl 和shift 所以复杂度很高,且右键非选中区域又会再次触发选中逻辑 结论:所以 最好能提供一个方法来判断单元格是否被选中,或者把是否选中这个参数加进单元格信息内
What does the proposed API look like?

cellSelected 方法的ranges 也不够用

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing cellSelected method and its ranges parameter, then review the Ctrl/Shift selection and right-click selection paths. Define a precise way to determine whether a cell lies within the current selection, and verify that right-clicking outside the selection does not trigger selection logic.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.