Skip to content

The getNeighborIds method within the ClickSelect behavior has been changed from private to protected.#7481

Merged
XiaoMing-xmg666 merged 2 commits intov5from
chore/xmg/click-select-type
Nov 11, 2025
Merged

The getNeighborIds method within the ClickSelect behavior has been changed from private to protected.#7481
XiaoMing-xmg666 merged 2 commits intov5from
chore/xmg/click-select-type

Conversation

@XiaoMing-xmg666
Copy link
Copy Markdown
Member

Fix #6871

效果:
image

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @XiaoMing-xmg666, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses issue #6871 by modifying the access level of a key method within the ClickSelect behavior. By changing getNeighborIds from private to protected, it allows for greater extensibility, enabling subclasses to access or override this method, which likely facilitates custom behavior or fixes a specific interaction as suggested by the accompanying image.

Highlights

  • Access Modifier Change: The getNeighborIds method within the ClickSelect behavior has been changed from private to protected.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request changes the visibility of the getNeighborIds method in the ClickSelect class from private to protected. This is a positive change that enhances the extensibility of the behavior, allowing developers to create subclasses with custom logic for identifying neighbor elements. The change is minimal, correct, and serves its intended purpose well.

@XiaoMing-xmg666 XiaoMing-xmg666 changed the title chore: clickSelect, getNeighborIds private change to protected The getNeighborIds method within the ClickSelect behavior has been changed from private to protected. Nov 10, 2025
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.60%. Comparing base (1d76473) to head (8afe421).
⚠️ Report is 1 commits behind head on v5.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##               v5    #7481   +/-   ##
=======================================
  Coverage   95.60%   95.60%           
=======================================
  Files         188      188           
  Lines        9874     9874           
  Branches     2083     2083           
=======================================
  Hits         9440     9440           
  Misses        402      402           
  Partials       32       32           
Flag Coverage Δ
g6 95.60% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
packages/g6/src/behaviors/click-select.ts 98.38% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@XiaoMing-xmg666 XiaoMing-xmg666 merged commit 0da05ac into v5 Nov 11, 2025
2 checks passed
@XiaoMing-xmg666 XiaoMing-xmg666 deleted the chore/xmg/click-select-type branch November 11, 2025 00:56
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

Successfully merging this pull request may close these issues.

[Feat]: Make getNeighborIds in ClickSelect public

3 participants