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(v2/column): extract common interval geometry #1391

Merged
merged 2 commits into from
Aug 4, 2020
Merged

Conversation

lessmost
Copy link
Member

@lessmost lessmost commented Aug 4, 2020

@liuzhenying 看下能满足双轴图要求不

@auto-add-label auto-add-label bot added the enhancement New feature or request label Aug 4, 2020
Copy link

@tests-checker tests-checker bot left a comment

Choose a reason for hiding this comment

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

Could you please add tests to make sure this change works as expected?

readonly style?: ShapeStyle | ((x: any, y: any, color?: any) => ShapeStyle);
};
}

Copy link
Member

Choose a reason for hiding this comment

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

  1. 可以把 interval 单独抽出成一个 type 吗,类似这种 https://github.com/antvis/G2Plot/blob/v2_feat_combo/src/adaptor/geometries/line.ts
  2. 这个配置应该是已经确定了吧,isGroup, groupField 等
  3. 其他的可以满足需求

Copy link
Member Author

Choose a reason for hiding this comment

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

interval 就是一个单独的 geometry type 了,看48行

const { stackField, seriesField, colorField } = options;

return stackField || seriesField || colorField;
}
Copy link
Member

@hustcc hustcc Aug 4, 2020

Choose a reason for hiding this comment

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

这两个属于 util 方法,放到 plots/bar/ 中?如果外面不需要用,就不 export 出去,作为这个文件的内部方法

Copy link
Member Author

Choose a reason for hiding this comment

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

外部现在不需要,那去掉 export 了

@hustcc hustcc merged commit df2a20d into v2 Aug 4, 2020
@hustcc hustcc deleted the feat-column-geometry branch August 4, 2020 09:57
BBSQQ pushed a commit that referenced this pull request Aug 25, 2020
* feat(v2/column): extract common interval geometry

* feat(v2/column): remove unnecessary exports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR: merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants