Design survey: Transform architecture #4213
Replies: 7 comments 17 replies
-
Use macros to reduce
|
Beta Was this translation helpful? Give feedback.
-
Common
|
Beta Was this translation helpful? Give feedback.
-
Dedicated 2D Transform type |
Beta Was this translation helpful? Give feedback.
-
Dedicated UI Transform typeGoals:
Currently, we're storing Transform, GlobalTransform, Size, and CalculatedSize, but only using the latter two. This is both inefficient and misleading. |
Beta Was this translation helpful? Give feedback.
-
Coordinate traits |
Beta Was this translation helpful? Give feedback.
-
Orientation trait |
Beta Was this translation helpful? Give feedback.
-
Heritable trait |
Beta Was this translation helpful? Give feedback.
-
This discussion is intended to collect issues and proposals in a central place, in order to provide an overview of the rather complex set of concerns that we should slowly try to untangle.
If you have additional challenges or constraints, please post them and I'll update this list. If you have design proposals, please post them here!
Current challenges
Transform
andGlobalTransform
.Transform
is not provided as an associated type in any form forGlobalTransform
or vice versa.Transform
, or any of its constituents.Transform
orGlobalTransform
" without a custom enum wrapper.Transform
andGlobalTransform
, and which one they should be modifying or reading for their various use cases.GlobalTransform
almost never has the desired results, and meddling with the transform values of UI elements, while extremely tempting, tends to lead to either no effect or very strange behavior.f64
(Ability to set Transform fundamental native type to f64 or fixed-point types #1680)Transform
when you only need to mutate a single constituent (such as the translation) is debatable.Constraints
Transform
types must ultimately be renderable.Beta Was this translation helpful? Give feedback.
All reactions