Skip to content

v2.0.0-beta.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@patrykandpatrickbot patrykandpatrickbot released this 23 Nov 12:01
· 8 commits to master since this release
dc28e5e

Overview

core

  1. ShapeComponent and LineComponent now use Fill. color has been replaced by fill; strokeColor, by strokeFill.
  2. In CartesianMarker, draw has been split into drawUnderLayers and drawOverLayers. To migrate and preserve the same behavior, replace override draw(/* ... */) with override drawOverLayers(/* ... */).
  3. TextComponent has a new lineHeightSp constructor parameter.
  4. Fixes and improvements related to color extraction for CartesianMarkers have been made across all CartesianLayers.
  5. In CacheStore, an issue where cached values could fail to be retrieved has been addressed.
  6. In BaseAxis.Size, TextWidth is now called Text. This is more precise—for HorizontalAxis, the the text height is used.

compose

  1. In connection with core change 1, in rememberShapeComponent and rememberLineComponent, color has been replaced by fill, and strokeColor has been replaced by strokeFill. As mentioned in subsection 6.1.2 of the guide, Fill creation in Compose is performed via the fill factory function.
  2. In connection with core change 3, rememberTextComponent has a new lineHeight parameter.
  3. Compose BaseAxis.Size factory functions—BaseAxis.Size.auto, BaseAxis.Size.exact, and so on—have been added.

views

  1. Those CartesianChartView XML attributes that are more closely related to CartesianChart have been extracted to a dedicated attribute set: CartesianChartStyle. This is used with the new chartStyle attribute of CartesianChartView. The extracted attributes are as follows: axisStyle, *AxisStyle, *LayerStyle, *LayerPadding, and show*Axis.
  2. In connection with core change 3, the TextComponentStyle XML attribute set has a new android:lineHeight attribute.
  3. The color XML attribute has been removed in favor of android:color. Replace app:color with android:color.
  4. In CartesianChartView, the setModel function has been replaced by a model property.