GraphiteEditor / GraphiteEditor/Graphite
DAffine2 handling with "transform" as the primary attribute
- Vorherrschende Sprache
- Rust
- Sterne
- 27.2k
- Forks
- 1.3k
- Ø Merge
- 20 Std. 5 Min.
- Gemergte PRs (30 T.)
- 57
Beschreibung
Once the primary data (`Item::element` and `List::element`) live as equals with the attributes, meaning the element is no longer anonymous, we can treat the `"transform"` attribute as either secondary (living on other graphical content) or primary (being the first column in the Data panel). This solves the current problem where the Transform node cannot produce or edit values as an element, when it is designed to use the `"transform"` attribute exclusively.
Relatedly, we can also potentially distinguish a Vec2 value (`DVec2`) passed on a wire by its primary element/attribute name being `"position"` or `"direction"` to determine if a transformation matrix applied to it should use `w=0` or `w=1` to apply or skip factoring in the translation.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start by tracing how Item::element, List::element, graphical attributes, and the Transform node currently represent and edit values. Clarify the primary-versus-secondary "transform" model and the proposed DVec2 position/direction distinction, then define tests for element editing and translation handling before implementation.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- rust
- Bereich
- computer-graphics
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Aktiv
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100