GraphiteEditor / GraphiteEditor/Graphite

Design a user-facing textual grammar for Graphene nodes and networks

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

Descrizione

Currently the `CopyBufferEntry` is serialised using JSON when a user copies a layer:
```json
{
"nodes": {
"2": {
"alias": "custom alias",
"name": "Transform",
"inputs": [
{
"Node": {
"node_id": 3,
"output_index": 0,
"lambda": false
}
},
{
"Value": {
"tagged_value": {
"DVec2": [
5.049571603427239,
118.83782129742963
]
},
"exposed": false
}
},
```

However this should be changed to be in a format that looks something like:

```toml
[node parent(4) / transform(2)]
alias = "custom alias"
position = [1, 3]
vector_data = { node_id = 3, output_index = 0 }
translation = { value = [5.04, 118.8], exposed = false }
```

whereby each input is stored in snake case if it is overwritten.

Or possibly a format using the [ron](https://github.com/ron-rs/ron) grammar. This is the current line of thinking for the design.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.