-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[charts] Save full-circle flag on rotation axis #22162
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
Changes from 2 commits
c07e306
bdd6fcc
9f91969
4bee879
8a98f2d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -609,6 +609,8 @@ export type PolarAxisDefaultized< | |
| * If true, the contents of the axis will be displayed by a tooltip with `trigger='axis'`. | ||
| */ | ||
| triggerTooltip?: boolean; | ||
| /** @ignore - internal. True when a rotation axis covers a full circle. */ | ||
| isFullCircle?: boolean; | ||
| }; | ||
|
Comment on lines
611
to
612
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this one necessary? The isFullCircle is only added in the computed axis
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried removing it and TypeScript breaks at the three write sites in The reads go through |
||
|
|
||
| export type ComputedAxis< | ||
|
|
@@ -626,6 +628,8 @@ export type ComputedAxis< | |
| * Indicate if the axis should be consider by a tooltip with `trigger='axis'`. | ||
| */ | ||
| triggerTooltip?: boolean; | ||
| /** @ignore - internal. True when a rotation axis covers a full circle. */ | ||
| isFullCircle?: boolean; | ||
| } & (AxisProps extends ChartsXAxisProps | ||
| ? AxisSideConfig<AxisProps> & { height: number } | ||
| : AxisProps extends ChartsYAxisProps | ||
|
|
||
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.
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.
Applied in
9f9196917. Thanks for catching it.