2.0.0-beta.2
This release includes bug fixes and API enhancements.
| Breaking changes | Addressed |
|---|---|
| Minor | #862, #889, #890, #900 |
- Compose
- Views
The following bugs have been fixed:
CartesianChartHostrecomposition failed to occur whenrememberCartesianChartwas recomposed with changed arguments. This was related to Jetpack Compose’s strong skipping mode, which is on by default since recently.- The
HorizontalAxis.ItemPlacerimplementation instantiated byHorizontalAxis.ItemPlacer.alignedcaused anOutOfMemoryErrorwhenaddExtremeLabelPaddingwas true, andlabelwas null.
An issue where the HorizontalAxis.ItemPlacer implementation instantiated by
HorizontalAxis.ItemPlacer.aligned caused an OutOfMemoryError has been addressed. The exception occurred when
addExtremeLabelPadding was set to true, and label was null.
Some API changes have been made:
- Compose
- Views
- In
cartesianLayerPadding, thePaddingsuffix has been removed from all parameters’ names. - In
rememberHorizontalLegendandrememberVerticalLegend, selected parameters have new names and/or default values. - In
BaseAxis,SizeConstraintis now calledSize. ThesizeConstraintproperties and parameters have been renamed accordingly. - In
DynamicShader.bitmap,tileXModeis now calledxTileMode, and analogously fortileYMode.
Also, multiple APIs have been marked as immutable or stable. This facilitates composable skipping.
CartesianChartand allCartesianLayers are now immutable—instead of mutation, use theircopyfunctions.- In
CartesianLayerPadding, thePaddingsuffix has been removed from all properties’ names. - In
HorizontalLegendandVerticalLegend, selected properties have new names and/or default values. - In
BaseAxis,SizeConstraintis now calledSize. ThesizeConstraintproperties and parameters have been renamed accordingly. - In
DynamicShader.bitmap,tileXModeis now calledxTileMode, and analogously fortileYMode.