Olivier Goffart
6d12b276a9
Polish of the rotation feature
...
- Add a check that this only Applies to Image element without children
- Default the origin to the center of the Image
- Add docs and test
cc: #1481
2022-08-30 12:10:42 +02:00
Simon Hausmann
e5d8b0e9d9
Remove unnecessary collect in lower_property_to_element
...
We can pass an iterator instead
2022-08-17 08:39:10 +02:00
Simon Hausmann
56cbb0e642
Adjust lower_property_to_element signature to visibily separate between main property and extra properties
2022-08-17 08:39:10 +02:00
Simon Hausmann
ef318c4f69
Make the property to element lowering a little less magic
...
Instead of automatically mapping property bindings if the initial property has a `-` infix,
supply the list of all properties as a parameter.
2022-08-17 08:39:10 +02:00
Simon Hausmann
686df50e9f
Revive support for rotation of elements
...
The rotation-angle/rotation-origin-x/y properties are lowered to an
injected Rotate element, that we already had.
This needs further fixes for transforming input events and an
implementation of rotation in Skia.
2022-08-11 10:34:41 +02:00
Simon Hausmann
535e134223
Add a Layer element that's created when using a layer boolean property
...
For now no backend implements this optimization hint.
2022-03-21 20:22:43 +01:00