v2.0.0-beta.3
Pre-release
Pre-release
patrykandpatrickbot
released this
23 Nov 12:01
·
2 commits
to master
since this release
Overview
- breaking changes: minor
- addressed: #794, #902
- external contributors: @cristianboicu01
core
ShapeComponent
andLineComponent
now useFill
.color
has been replaced byfill
;strokeColor
, bystrokeFill
.- In
CartesianMarker
,draw
has been split intodrawUnderLayers
anddrawOverLayers
. To migrate and preserve the same behavior, replaceoverride draw(/* ... */)
withoverride drawOverLayers(/* ... */)
. TextComponent
has a newlineHeightSp
constructor parameter.- Fixes and improvements related to color extraction for
CartesianMarker
s have been made across allCartesianLayer
s. - In
CacheStore
, an issue where cached values could fail to be retrieved has been addressed. - In
BaseAxis.Size
,TextWidth
is now calledText
. This is more precise—forHorizontalAxis
, the the text height is used.
compose
- In connection with
core
change 1, inrememberShapeComponent
andrememberLineComponent
,color
has been replaced byfill
, andstrokeColor
has been replaced bystrokeFill
. As mentioned in subsection 6.1.2 of the guide,Fill
creation in Compose is performed via thefill
factory function. - In connection with
core
change 3,rememberTextComponent
has a newlineHeight
parameter. - Compose
BaseAxis.Size
factory functions—BaseAxis.Size.auto
,BaseAxis.Size.exact
, and so on—have been added.
views
- Those
CartesianChartView
XML attributes that are more closely related toCartesianChart
have been extracted to a dedicated attribute set:CartesianChartStyle
. This is used with the newchartStyle
attribute ofCartesianChartView
. The extracted attributes are as follows:axisStyle
,*AxisStyle
,*LayerStyle
,*LayerPadding
, andshow*Axis
. - In connection with
core
change 3, theTextComponentStyle
XML attribute set has a newandroid:lineHeight
attribute. - The
color
XML attribute has been removed in favor ofandroid:color
. Replaceapp:color
withandroid:color
. - In
CartesianChartView
, thesetModel
function has been replaced by amodel
property.