-
Notifications
You must be signed in to change notification settings - Fork 605
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
Conversation
There was a problem hiding this 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); | ||
}; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 可以把 interval 单独抽出成一个 type 吗,类似这种 https://github.com/antvis/G2Plot/blob/v2_feat_combo/src/adaptor/geometries/line.ts
- 这个配置应该是已经确定了吧,isGroup, groupField 等
- 其他的可以满足需求
There was a problem hiding this comment.
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; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这两个属于 util 方法,放到 plots/bar/ 中?如果外面不需要用,就不 export 出去,作为这个文件的内部方法
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
外部现在不需要,那去掉 export 了
* feat(v2/column): extract common interval geometry * feat(v2/column): remove unnecessary exports
@liuzhenying 看下能满足双轴图要求不