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

feat: ✨ add batch for selection #1399

Merged
merged 1 commit into from
Oct 2, 2021

Conversation

OpportunityLiu
Copy link
Contributor

#1325 (comment)

Ralated: #1325, #1393

Description

添加 batch: boolean 选项,在选中时跳过 select unselect 流程,直接使用 reset 重置 collection。 See #1393

Motivation and Context

解决大量切换选中项目时的性能问题,see #1325

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Enhancement (changes that improvement of current feature or performance)
  • Refactoring (changes that neither fixes a bug nor adds a feature)
  • Test Case (changes that add missing tests or correct existing tests)
  • Code style optimization (changes that do not affect the meaning of the code)
  • Docs (changes that only update documentation)
  • Chore (changes that don't modify src or test files)

Self Check before Merge

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@x6-bot x6-bot bot added pkg:x6 PR: unreviewed PR does not have any reviews. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 2, 2021
@OpportunityLiu OpportunityLiu force-pushed the feat-batch-selection branch 2 times, most recently from d18679d to 7ff48ed Compare October 2, 2021 10:09
@codecov
Copy link

codecov bot commented Oct 2, 2021

Codecov Report

Merging #1399 (43e5d52) into master (37eb7b9) will not change coverage.
The diff coverage is 25.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1399   +/-   ##
=======================================
  Coverage   39.21%   39.21%           
=======================================
  Files         601      601           
  Lines       33511    33511           
  Branches     6807     6807           
=======================================
  Hits        13143    13143           
  Misses      19574    19574           
  Partials      794      794           
Flag Coverage Δ
x6 27.00% <25.00%> (ø)
x6-geometry 47.91% <ø> (ø)
x6-vector 81.36% <ø> (ø)

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

Impacted Files Coverage Δ
packages/x6/src/addon/selection/index.ts 14.18% <16.66%> (ø)
packages/x6/src/graph/graph.ts 29.62% <28.57%> (ø)
packages/x6/src/graph/selection.ts 27.06% <100.00%> (ø)

@NewByVector NewByVector merged commit 276abac into antvis:master Oct 2, 2021
@x6-bot x6-bot bot added PR: merged PR has merged. and removed PR: unreviewed PR does not have any reviews. labels Oct 2, 2021
@OpportunityLiu OpportunityLiu deleted the feat-batch-selection branch October 2, 2021 11:32
github-actions bot pushed a commit that referenced this pull request Oct 2, 2021
# @antv/x6 [1.28.0](https://github.com/antvis/x6/compare/@antv/x6@1.27.2...@antv/x6@1.28.0) (2021-10-02)

### Bug Fixes

* 🐛 modify the font size even if the text does not change ([#1397](#1397)) ([f93c290](f93c290))
* 🐛 stop propagation when enable following ([#1398](#1398)) ([59cbe44](59cbe44))

### Features

* ✨ add batch for selection ([#1399](#1399)) ([276abac](276abac))
* ✨ add excludeHiddenNodes for manhattan router ([#1400](#1400)) ([c57908f](c57908f))
@x6-bot
Copy link
Contributor

x6-bot bot commented Oct 2, 2021

🎉 This PR is included in the following release 🎉

Thanks for being a part of the AntV community! 💪💯

@x6-bot x6-bot bot added the released PR has released label Oct 2, 2021
@x6-bot
Copy link
Contributor

x6-bot bot commented Oct 12, 2021

🎉 This PR is included in the following release 🎉

Thanks for being a part of the AntV community! 💪💯

@x6-bot
Copy link
Contributor

x6-bot bot commented Oct 19, 2021

🎉 This PR is included in the following release 🎉

Thanks for being a part of the AntV community! 💪💯

@x6-bot
Copy link
Contributor

x6-bot bot commented Nov 8, 2021

🎉 This PR is included in the following release 🎉

Thanks for being a part of the AntV community! 💪💯

bubkoo pushed a commit that referenced this pull request Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: merged PR has merged. released PR has released size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants