Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Modifying row/col size and being able to move/insert/remove cols/rows

Aperta
#83 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
18/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
zig
Ambito
desktop

Direzione di ricerca

The payload only describes the work at a high level: file grid storage (row height, column width, row and column counts), animations stored as lists of indexes, and the History system. It names no source files or tests, so locate the grid and animation code yourself before starting. The one open item is the ruler right-click menu for inserting or deleting rows and columns from the middle of the image; the other items are marked done. Done means that menu works and the animation and History updates are covered. Settle the open design questions with the maintainer first.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

@ZackeryRSmith

This was a request to be able to modify the canvas scale, which would mean changing the column width and row height of a file. Currently, files are ensured to be exactly divisible by rows/cols, because files don't store overall width or height. Instead, everything is calculated off of row height and col width, and number of each.

Currently, adding and removing columns can only be done from the bottom right, and rows or columns cannot be inserted or removed from the inner portion of the file.

https://github.com/user-attachments/assets/44be4fd2-5a2b-4ac8-8fab-bcaa0c911a9a

My thoughts would be that since the animations are now a list of indexes rather than a start and length, we can easily handle resizing the grid gracefully, either reassigning the sprite indexes if possible, or simply removing them if they no longer exist.

The trickier part comes with resizing the cell size, and if we want to scale the cell contents if they exist as well. I believe that we do, but we would need to include an option to leave the contents unscaled and centered for if you simply wanted to increase the space around your sprites without resizing them.

So I believe the action items for this one are as follows:

  • Create rulers for the canvas. Top ruler will be A-Z and left ruler will be the rows numerically.
  • Use the above rulers to offer right click menus similar to excel to allow inserting or deleting rows from the center of the image.
  • Allow a menu option to resize the grid cell size of the current file, and if the contents should be scaled as well or not.
  • Ensure that animations are correctly updated to reflect the new grid and finally work that into the History system.
Lingua principale
Zig
Stelle
1.5k
Fork
40
Merge medio
5h 35m
PR unite (30g)
151

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fizzyedit/fizzy

Tutte le issue di fizzyedit/fizzy

Issue simili

Altre issue su Desktop Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.