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: 添加 geometry 的点击选中 #1383

Merged
merged 1 commit into from
Mar 9, 2022
Merged

feat: 添加 geometry 的点击选中 #1383

merged 1 commit into from
Mar 9, 2022

Conversation

zengyue
Copy link
Member

@zengyue zengyue commented Mar 9, 2022

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Description of change

selection?: {
type?: 'single' | 'multiple';
defaultSelected?: any[];
style: ShapeAttrs | StyleType;
Copy link
Member

Choose a reason for hiding this comment

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

这个字段用selectedStyle会不会好一点

const scales = chart.getScales();
const fields = Object.keys(scales);
const selectedMap = {};
selected.forEach((item) => {
Copy link
Member

Choose a reason for hiding this comment

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

多选模式下的cancelable好像有点问题,我看 柱图-多选-3-snap 这个,绿色柱子没有被反选出去

Copy link
Member Author

Choose a reason for hiding this comment

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

那个是对的,只反选了1个

@zengyue zengyue merged commit 2247ebe into master Mar 9, 2022
@zengyue zengyue deleted the feat-selected branch March 9, 2022 06:57
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.

3 participants