GraphiteEditor / GraphiteEditor/Graphite

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

Offen
#1,605 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Graphene
Vorherrschende Sprache
Rust
Sterne
27.2k
Forks
1.3k
Ø Merge
20 Std. 5 Min.
Gemergte PRs (30 T.)
57

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.