-
Notifications
You must be signed in to change notification settings - Fork 49
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
Half Donut Vertical Centering #444
Conversation
Direction forward:
|
Current status:
halfDonutResizeDemoSmall.mov
I propose to make it configurable like this: <VisDonut
...
bleed={{ top: 0, bottom: 0, left: 0, right: 0 }} // Current not available as a prop
/> What do you think of this idea to expose the |
All other Unovis components calculate the
You can have all 4 of them on one page. This way it'll also be easier to test them with a visual testing framework. |
Current status:
export const halfDonutTopAngleRange: [number, number] = [-1.5707963267948966, 1.5707963267948966]
export const halfDonutRightAngleRange: [number, number] = [0, 3.141592653589793]
export const halfDonutBottomAngleRange: [number, number] = [1.5707963267948966, 4.71238898038469]
export const halfDonutLeftAngleRange: [number, number] = [3.141592653589793, 6.283185307179586] Not sure the best way to do that within the Unovis setup... Attach them as properties of e.g. import { VisDonut } from '@unovis/react'
...
<VisDonut
angleRange={VisDonut.halfDonutTopAngleRange}
/> Another option would be:
or something like that. Curious to know what the idiomatic Unovis API design would look like for something like this.
Plan for next steps:
|
@curran As for exporting the constants, we can add a |
Excellent! Thank you for this feedback. I will do it that way.
|
Finally nailed the scaling for top half donut! halfDonutResizing.mov |
Closing in favor of |
Closes #441