GraphiteEditor / GraphiteEditor/Graphite

Make the Fill tool work on strokes

Aperta
#2,615 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Graphics
Lingua principale
Rust
Stelle
27.2k
Fork
1.3k
Merge medio
20h 5m
PR unite (30g)
57

Descrizione

When hovering over a layer stroke, it should display the dotted overlay like we do for fills:

![Image](https://github.com/user-attachments/assets/efe41bd3-c7f4-4b84-823d-c169dd5906fb)

So in this image, we'd have the white dotted lines over the black layer stroke instead. See .

Additionally, we'd like to prevent the dotted overlays from extending into half the stroke area, like we see above. This can be achieved by using some compositing tricks with the 2D canvas API to render the stroke in such a manner that it erases the drawable area where the fill dotted pattern goes. (This can't affect other overlays also drawn in that area, though, so no erasing the full canvas in that area.)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start with the Fill tool's hover overlay rendering and the 2D canvas compositing path, using the referenced CanvasRenderingContext2D strokeStyle documentation for stroke behavior. Make the dotted overlay appear when hovering a layer stroke, keep it within the stroke area, and avoid erasing other overlays; verify the result against the attached image.

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

Valutazione

Stack tecnologico
rust
Ambito
computer-graphics
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.