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:
CartesianChartHost
recomposition failed to occur whenrememberCartesianChart
was recomposed with changed arguments. This was related to Jetpack Compose’s strong skipping mode, which is on by default since recently.- The
HorizontalAxis.ItemPlacer
implementation instantiated byHorizontalAxis.ItemPlacer.aligned
caused anOutOfMemoryError
whenaddExtremeLabelPadding
was true, andlabel
was 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
, thePadding
suffix has been removed from all parameters’ names. - In
rememberHorizontalLegend
andrememberVerticalLegend
, selected parameters have new names and/or default values. - In
BaseAxis
,SizeConstraint
is now calledSize
. ThesizeConstraint
properties and parameters have been renamed accordingly. - In
DynamicShader.bitmap
,tileXMode
is now calledxTileMode
, and analogously fortileYMode
.
Also, multiple APIs have been marked as immutable or stable. This facilitates composable skipping.
CartesianChart
and allCartesianLayer
s are now immutable—instead of mutation, use theircopy
functions.- In
CartesianLayerPadding
, thePadding
suffix has been removed from all properties’ names. - In
HorizontalLegend
andVerticalLegend
, selected properties have new names and/or default values. - In
BaseAxis
,SizeConstraint
is now calledSize
. ThesizeConstraint
properties and parameters have been renamed accordingly. - In
DynamicShader.bitmap
,tileXMode
is now calledxTileMode
, and analogously fortileYMode
.