GraphiteEditor / GraphiteEditor/Graphite

Allow the Select tool to partially interact with artboards

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

Descrizione

Right now, the Select tool doesn't let you interact with artboards (except for one undesired side-effect: it visualizes the yellow pivot gizmo at the artboard center when an artboard is selected). Only the Artboard tool lets you, but we want to replicate some of the Artboard tool's features in the Select tool in certain states.

If an artboard is (or multiple are) selected (from the Layers panel), we want the Select tool to display the transform cage bounds gizmos that we currently have with the Artboard tool. If both an artboard and a non-artboard is selected, we filter out the artboard(s) and only show the selection for the non-artboards.

When multiple artboards are selected, dragging the combined transform cage bounds should scale all the selected artboards proportionally, just as with regular rectangle layers. The only difference is that we have to round to integer values since artboards must be integer-sized. Currently, the Artboard tool only draws bounds around the most recently selected artboard even if multiple are selected, so that needs to change for both the Artboard and Select tools.

Selecting an artboard should be possible by double-clicking its background (in a location where no inner content is covering up the artboard background) or by single-clicking the artboard title which is drawn at its top-left. Holding Shift in both cases should allow adding/removing to the selection of artboards. Single-clicking an artboard background with the Select tool active should deselect it, just as it does currently in Graphite.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by tracing the Select tool and Artboard tool interaction paths, including selection from the Layers panel and transform cage handling. Compare behavior for single and multiple artboards, mixed selections, double-clicks, title clicks, and Shift-modified clicks. Done means the described selection, bounds, proportional scaling, and integer sizing behavior works consistently in both tools.

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

Valutazione

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.