GraphiteEditor / GraphiteEditor/Graphite

Node variadic inputs to represent T as T[]

Aperta
#2,462 4 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

A node which takes a Vec should be able to expose itself as a variadic input, which looks like this:

| 100% Zoom | 200% Zoom |
|--------|--------|
| ![Image](https://github.com/user-attachments/assets/88268d1d-def4-4571-8a72-e6f94f28f29a) | ![Image](https://github.com/user-attachments/assets/452ca529-2e6e-4204-8938-d7b6108c6adc) |

*(7x14 rectangle with 2px rounding)*

Multiple wires can enter this. The order of the wires entering the variadic input does matter, and it laid out from top to bottom. The node receives these as a Vec of T and otherwise acts normally.

The node macro can define whether a data type, that's a Vec, is shown as variadic or regular. We should also consider whether we support the Table data type, where multiple wires become multiple table rows.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by tracing the node macro's handling of Vec inputs and the variadic-input node-graph behavior described in this issue. Confirm how wire order and top-to-bottom layout should be represented, then define completion around variadic Vec inputs working normally; Table support remains an open design question.

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

Valutazione

Stack tecnologico
rust
Ambito
computer-graphics
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.