v2.0.0-beta.4
Pre-release
Pre-release
·
117 commits
to master
since this release
Overview
- breaking changes: minor
- addressed: #469, #835, #939, #942
- external contributors: @anshu7vyas, @Tyler-Lopez
core
- In
LineCartesianLayer
, dashed lines have been introduced. TheLineCartesianLayer.Line
constructor has a newstroke
parameter, which takes aLineCartesianLayer.LineStroke
instance. Two implementations are available:LineCartesianLayer.LineStroke.Continuous
andLineCartesianLayer.LineStroke.Dashed
. Stroke thickness and cap customization is now also performed viaLineStroke
—thethicknessDp
andcap
parameters of theLine
constructor have been moved to the constructors of the twoLineStroke
s. - In
HorizontalAxis.ItemPlacer.aligned
,spacing
andoffset
are nowExtraStore
lambdas. - In
CartesianChart
,layerPadding
is now anExtraStore
lambda. - An issue where the
LineFill
instantiated byLineFill.double
could position the split at a noninteger pixel y coordinate, leading to unexpectedLineCartesianLayerMarkerTarget.Point.color
values, has been resolved. LineFill
masking is now handled internally. CustomLineFill
s should be updated to draw their content normally, not usingPorterDuff.Mode.SRC_IN
.
compose
- In connection with
core
change 1,LineCartesianLayer.rememberLine
has been modified accordingly, andLineCartesianLayer.LineStroke.continuous
andLineCartesianLayer.LineStroke.dashed
factory functions have been introduced. - An issue where
CartesianChartHost
could consume all horizontal swipes whenCartesianChart
scroll was disabled—interfering with, for example,HorizontalPager
s—has been resolved.
views
- In connection with
core
change 1,dashLength
andgapLength
XML attributes have been added toLineStyle
. Additionally, there’s a newandroid:strokeLineCap
XML attribute.