AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
25.22k stars 2.18k forks source link

add support for Rotate3DTransform in TransformOperations.Parse #16274

Open laolarou726 opened 2 months ago

laolarou726 commented 2 months ago

Is your feature request related to a problem? Please describe.

Currently, if we want to apply any transition for RenderTransform property we need to create transforms using TransformOperations.Parse

However, we can not create Rotate3DTransform using this method, which make us impossible to add transition for such transform.

Describe the solution you'd like

Maybe add the support for this transform or allow current matrix(1,2,3,4,5,6) syntax support 9 arguments instead of 6.

Describe alternatives you've considered

No response

Additional context

No response

maxkatz6 commented 2 months ago

Currently supported parsing of TransformOperations comes from CSS methods - https://www.w3schools.com/css/css3_2dtransforms.asp.

They also have separated methods for 3D operations https://www.w3schools.com/css/css3_3dtransforms.asp

laolarou726 commented 1 month ago

Currently supported parsing of TransformOperations comes from CSS methods - https://www.w3schools.com/css/css3_2dtransforms.asp.

They also have separated methods for 3D operations https://www.w3schools.com/css/css3_3dtransforms.asp

any plans to also add support for 3D ops? https://www.w3schools.com/css/css3_3dtransforms.asp

maxkatz6 commented 1 month ago

@laolarou726 we already support 3D matrix transforms. Since TransformOperations is also Matrix based, it just needs to parse and properly build matrix from the input.