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

[Grida Canvas] Add Pixel Grid #225

Open
softmarshmallow opened this issue Jan 10, 2025 · 0 comments
Open

[Grida Canvas] Add Pixel Grid #225

softmarshmallow opened this issue Jan 10, 2025 · 0 comments
Labels
canvas good first issue Good for newcomers

Comments

@softmarshmallow
Copy link
Member

softmarshmallow commented Jan 10, 2025

Pixel grid

Pixel grid helps users to interact with the canvas in a high-zoom context, for instance, drawing a 15x15 icon paths.

Proposal & Terms

  • pixel grid is not a builtin canvas feature, but a default starter-kit addon
  • pixel grid shall be able to be configured to be on / off by user
  • unlike other surface components, pixel grid will use html5 canvas 2d to render.
  • the pixel grid shall be visible (by default) from zoom level 4+ (400%)
  • the pixel grid shall be able to expand (redraw) infinitely as editor tranform changes
  • the pixel grid shall align with editor transform, visually making the pixel grid to represent an actual content space pixels spaces.
  • the pixel grid shall be able to invert (or change) its color contrast to background to be always-visible

This is a minimal component for drawing a pixel grid, missing most features

https://github.com/gridaco/grida/blob/03369abc0096a51cb336592c8c19f420738d67d1/apps/forms/grida-react-canvas/viewport/pixelgrid.tsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
canvas good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant