unoplatform / uno

Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
https://platform.uno
Apache License 2.0
8.77k stars 704 forks source link

[Wasm] Support animation of Geometry properties in a <Path> #3561

Open MartinZikmund opened 4 years ago

MartinZikmund commented 4 years ago

Current behavior

WCT RadialProgressBar does not render properly on WASM, probably because of some clipping/shapes inconsistency. Putting the issue here rather than in Uno WCT, as the control does render ok on other targets, so it should be something WASM specific.

Expected behavior

Should render as on other platforms.

How to reproduce it (as minimally and precisely as possible)

Public repo here - https://github.com/MartinZikmund/uno-health-app-concept . Run on app on WASM to see that RadialProgressBar is not rendered in the NavigationView pane footer.

Environment

Nuget Package:

Package Version(s):

Affected platform(s):

Visual Studio:

Relevant plugins:

Anything else we need to know?

carldebilly commented 4 years ago

WCT is creating geometries in a path. On Wasm Geometries are currently not designed to by dynamic: https://github.com/unoplatform/uno/blob/fe8f8a762bb95072bd186f6c61926f908131887a/src/Uno.UI/UI/Xaml/Shapes/Path.wasm.cs#L52_L84

The fix would be to create corresponding SVG elements for all .Figures objects and establish a managed object.

I'll change the title of this issue.

GitHub
unoplatform/uno
Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported. - unoplatform/uno