Skip to content

v2.0.0-beta.4

Pre-release
Pre-release
Compare
Choose a tag to compare
@patrykandpatrickbot patrykandpatrickbot released this 23 Dec 11:47
· 117 commits to master since this release
25869fc

Overview

core

  1. In LineCartesianLayer, dashed lines have been introduced. The LineCartesianLayer.Line constructor has a new stroke parameter, which takes a LineCartesianLayer.LineStroke instance. Two implementations are available: LineCartesianLayer.LineStroke.Continuous and LineCartesianLayer.LineStroke.Dashed. Stroke thickness and cap customization is now also performed via LineStroke—the thicknessDp and cap parameters of the Line constructor have been moved to the constructors of the two LineStrokes.
  2. In HorizontalAxis.ItemPlacer.aligned, spacing and offset are now ExtraStore lambdas.
  3. In CartesianChart, layerPadding is now an ExtraStore lambda.
  4. An issue where the LineFill instantiated by LineFill.double could position the split at a noninteger pixel y coordinate, leading to unexpected LineCartesianLayerMarkerTarget.Point.color values, has been resolved.
  5. LineFill masking is now handled internally. Custom LineFills should be updated to draw their content normally, not using PorterDuff.Mode.SRC_IN.

compose

  1. In connection with core change 1, LineCartesianLayer.rememberLine has been modified accordingly, and LineCartesianLayer.LineStroke.continuous and LineCartesianLayer.LineStroke.dashed factory functions have been introduced.
  2. An issue where CartesianChartHost could consume all horizontal swipes when CartesianChart scroll was disabled—interfering with, for example, HorizontalPagers—has been resolved.

views

  1. In connection with core change 1, dashLength and gapLength XML attributes have been added to LineStyle. Additionally, there’s a new android:strokeLineCap XML attribute.