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

Allow specifying origin for Grid #1034

Open
juliusv opened this issue Apr 26, 2024 · 0 comments
Open

Allow specifying origin for Grid #1034

juliusv opened this issue Apr 26, 2024 · 0 comments
Assignees
Labels
b-enhancement New feature or request

Comments

@juliusv
Copy link

juliusv commented Apr 26, 2024

Description
As far as I can tell, the <Grid> component currently always "spreads out" from its center point. It would be nice to be able to configure this more. For example, I would like to show a coordinate system (X + Y axes) and use a grid as a backdrop that starts at the (0,0) point of the coordinate system in the bottom left and then generates regular grid lines towards the top right from there. This would help with the alignment of the grid (e.g. I want a line at 0, 100, 200, etc. of the Y axis). If I just center the grid in the middle of the coordinate system, the center would have to fall onto a desired tick line (for both X and Y) in order for the grid to be aligned correctly by happenstance.

Proposed solution
I'm honestly not sure what the right options for this would be, but something that allows setting the starting point or offset of the grid?

Considered alternatives
Maybe I'm missing something, but right now I'm looking at just drawing the grid myself vs. using <Grid>.

Additional context
Here's what it looks like when the grid lines don't align in the intended way:

image

@juliusv juliusv added the b-enhancement New feature or request label Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
b-enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants