GraphiteEditor / GraphiteEditor/Graphite
DAffine2 handling with "transform" as the primary attribute
- Lenguaje dominante
- Rust
- Estrellas
- 27.2k
- Forks
- 1.3k
- Merge medio
- 20 h 5 min
- PR fusionados (30 d)
- 57
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- rust
- Área
- computer-graphics
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Activo
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100